Imported Upstream version 2.5.1
[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 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 GREP EGREP 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 DEFAULT_RAW_TAPE_DEVICE DEFAULT_CHANGER_DEVICE GNUTAR_LISTED_INCREMENTAL_DIRX GNUTAR_LISTED_INCREMENTAL_DIR MAXTAPEBLOCKSIZE AMANDA_TMPDIR AMANDA_DBGDIR AMANDA_DEBUG_DAYS SERVICE_SUFFIX MT_FILE_FLAG CPP AR AWK_VAR_ASSIGNMENT_OPT YACC CAT COMPRESS DD GETCONF GNUPLOT GNUTAR SAMBA_CLIENT GZIP 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 LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB 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 ALLOCA LIBOBJS 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 BUILD_MAN_PAGES_TRUE BUILD_MAN_PAGES_FALSE XSLTPROC HAVE_XSLTPROC_TRUE HAVE_XSLTPROC_FALSE AM_CFLAGS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510   # If the previous option needs an argument, assign it.
511   if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515   fi
516
517   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519   # Accept the important Cygnus configure options, so we can diagnose typos.
520
521   case $ac_option in
522
523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526     bindir=$ac_optarg ;;
527
528   -build | --build | --buil | --bui | --bu)
529     ac_prev=build_alias ;;
530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531     build_alias=$ac_optarg ;;
532
533   -cache-file | --cache-file | --cache-fil | --cache-fi \
534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538     cache_file=$ac_optarg ;;
539
540   --config-cache | -C)
541     cache_file=config.cache ;;
542
543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546   | --da=*)
547     datadir=$ac_optarg ;;
548
549   -disable-* | --disable-*)
550     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554    { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     eval "enable_$ac_feature=no" ;;
557
558   -enable-* | --enable-*)
559     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560     # Reject names that are not valid shell variable names.
561     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563    { (exit 1); exit 1; }; }
564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565     case $ac_option in
566       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567       *) ac_optarg=yes ;;
568     esac
569     eval "enable_$ac_feature='$ac_optarg'" ;;
570
571   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573   | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577   | --exec=* | --exe=* | --ex=*)
578     exec_prefix=$ac_optarg ;;
579
580   -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583
584   -help | --help | --hel | --he | -h)
585     ac_init_help=long ;;
586   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587     ac_init_help=recursive ;;
588   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589     ac_init_help=short ;;
590
591   -host | --host | --hos | --ho)
592     ac_prev=host_alias ;;
593   -host=* | --host=* | --hos=* | --ho=*)
594     host_alias=$ac_optarg ;;
595
596   -includedir | --includedir | --includedi | --included | --include \
597   | --includ | --inclu | --incl | --inc)
598     ac_prev=includedir ;;
599   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600   | --includ=* | --inclu=* | --incl=* | --inc=*)
601     includedir=$ac_optarg ;;
602
603   -infodir | --infodir | --infodi | --infod | --info | --inf)
604     ac_prev=infodir ;;
605   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606     infodir=$ac_optarg ;;
607
608   -libdir | --libdir | --libdi | --libd)
609     ac_prev=libdir ;;
610   -libdir=* | --libdir=* | --libdi=* | --libd=*)
611     libdir=$ac_optarg ;;
612
613   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614   | --libexe | --libex | --libe)
615     ac_prev=libexecdir ;;
616   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617   | --libexe=* | --libex=* | --libe=*)
618     libexecdir=$ac_optarg ;;
619
620   -localstatedir | --localstatedir | --localstatedi | --localstated \
621   | --localstate | --localstat | --localsta | --localst \
622   | --locals | --local | --loca | --loc | --lo)
623     ac_prev=localstatedir ;;
624   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627     localstatedir=$ac_optarg ;;
628
629   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630     ac_prev=mandir ;;
631   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632     mandir=$ac_optarg ;;
633
634   -nfp | --nfp | --nf)
635     # Obsolete; use --without-fp.
636     with_fp=no ;;
637
638   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639   | --no-cr | --no-c | -n)
640     no_create=yes ;;
641
642   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644     no_recursion=yes ;;
645
646   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648   | --oldin | --oldi | --old | --ol | --o)
649     ac_prev=oldincludedir ;;
650   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653     oldincludedir=$ac_optarg ;;
654
655   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656     ac_prev=prefix ;;
657   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658     prefix=$ac_optarg ;;
659
660   -program-prefix | --program-prefix | --program-prefi | --program-pref \
661   | --program-pre | --program-pr | --program-p)
662     ac_prev=program_prefix ;;
663   -program-prefix=* | --program-prefix=* | --program-prefi=* \
664   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665     program_prefix=$ac_optarg ;;
666
667   -program-suffix | --program-suffix | --program-suffi | --program-suff \
668   | --program-suf | --program-su | --program-s)
669     ac_prev=program_suffix ;;
670   -program-suffix=* | --program-suffix=* | --program-suffi=* \
671   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672     program_suffix=$ac_optarg ;;
673
674   -program-transform-name | --program-transform-name \
675   | --program-transform-nam | --program-transform-na \
676   | --program-transform-n | --program-transform- \
677   | --program-transform | --program-transfor \
678   | --program-transfo | --program-transf \
679   | --program-trans | --program-tran \
680   | --progr-tra | --program-tr | --program-t)
681     ac_prev=program_transform_name ;;
682   -program-transform-name=* | --program-transform-name=* \
683   | --program-transform-nam=* | --program-transform-na=* \
684   | --program-transform-n=* | --program-transform-=* \
685   | --program-transform=* | --program-transfor=* \
686   | --program-transfo=* | --program-transf=* \
687   | --program-trans=* | --program-tran=* \
688   | --progr-tra=* | --program-tr=* | --program-t=*)
689     program_transform_name=$ac_optarg ;;
690
691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692   | -silent | --silent | --silen | --sile | --sil)
693     silent=yes ;;
694
695   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696     ac_prev=sbindir ;;
697   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698   | --sbi=* | --sb=*)
699     sbindir=$ac_optarg ;;
700
701   -sharedstatedir | --sharedstatedir | --sharedstatedi \
702   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703   | --sharedst | --shareds | --shared | --share | --shar \
704   | --sha | --sh)
705     ac_prev=sharedstatedir ;;
706   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709   | --sha=* | --sh=*)
710     sharedstatedir=$ac_optarg ;;
711
712   -site | --site | --sit)
713     ac_prev=site ;;
714   -site=* | --site=* | --sit=*)
715     site=$ac_optarg ;;
716
717   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718     ac_prev=srcdir ;;
719   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720     srcdir=$ac_optarg ;;
721
722   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723   | --syscon | --sysco | --sysc | --sys | --sy)
724     ac_prev=sysconfdir ;;
725   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727     sysconfdir=$ac_optarg ;;
728
729   -target | --target | --targe | --targ | --tar | --ta | --t)
730     ac_prev=target_alias ;;
731   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732     target_alias=$ac_optarg ;;
733
734   -v | -verbose | --verbose | --verbos | --verbo | --verb)
735     verbose=yes ;;
736
737   -version | --version | --versio | --versi | --vers | -V)
738     ac_init_version=: ;;
739
740   -with-* | --with-*)
741     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742     # Reject names that are not valid shell variable names.
743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744       { echo "$as_me: error: invalid package name: $ac_package" >&2
745    { (exit 1); exit 1; }; }
746     ac_package=`echo $ac_package| sed 's/-/_/g'`
747     case $ac_option in
748       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749       *) ac_optarg=yes ;;
750     esac
751     eval "with_$ac_package='$ac_optarg'" ;;
752
753   -without-* | --without-*)
754     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package | sed 's/-/_/g'`
760     eval "with_$ac_package=no" ;;
761
762   --x)
763     # Obsolete; use --with-x.
764     with_x=yes ;;
765
766   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767   | --x-incl | --x-inc | --x-in | --x-i)
768     ac_prev=x_includes ;;
769   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771     x_includes=$ac_optarg ;;
772
773   -x-libraries | --x-libraries | --x-librarie | --x-librari \
774   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775     ac_prev=x_libraries ;;
776   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778     x_libraries=$ac_optarg ;;
779
780   -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782    { (exit 1); exit 1; }; }
783     ;;
784
785   *=*)
786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790    { (exit 1); exit 1; }; }
791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792     eval "$ac_envvar='$ac_optarg'"
793     export $ac_envvar ;;
794
795   *)
796     # FIXME: should be removed in autoconf 3.0.
797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801     ;;
802
803   esac
804 done
805
806 if test -n "$ac_prev"; then
807   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808   { echo "$as_me: error: missing argument to $ac_option" >&2
809    { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815   eval ac_val=$`echo $ac_var`
816   case $ac_val in
817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819    { (exit 1); exit 1; }; };;
820   esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825               localstatedir libdir includedir oldincludedir infodir mandir
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* ) ;;
830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831    { (exit 1); exit 1; }; };;
832   esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844   if test "x$build_alias" = x; then
845     cross_compiling=maybe
846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847     If a cross compiler is detected then cross compile mode will be used." >&2
848   elif test "x$build_alias" != "x$host_alias"; then
849     cross_compiling=yes
850   fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861   ac_srcdir_defaulted=yes
862   # Try the directory containing this script, then its parent.
863   ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865          X"$0" : 'X\(//\)[^/]' \| \
866          X"$0" : 'X\(//\)$' \| \
867          X"$0" : 'X\(/\)' \| \
868          .     : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872           /^X\(\/\/\)$/{ s//\1/; q; }
873           /^X\(\/\).*/{ s//\1/; q; }
874           s/.*/./; q'`
875   srcdir=$ac_confdir
876   if test ! -r $srcdir/$ac_unique_file; then
877     srcdir=..
878   fi
879 else
880   ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883   if test "$ac_srcdir_defaulted" = yes; then
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885    { (exit 1); exit 1; }; }
886   else
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888    { (exit 1); exit 1; }; }
889   fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893    { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952   # Omit some internal or obsolete options to make the list less imposing.
953   # This message is too long to be a string in the A/UX 3.1 sh.
954   cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965   -h, --help              display this help and exit
966       --help=short        display options specific to this package
967       --help=recursive    display the short help of all the included packages
968   -V, --version           display version information and exit
969   -q, --quiet, --silent   do not print \`checking...' messages
970       --cache-file=FILE   cache test results in FILE [disabled]
971   -C, --config-cache      alias for \`--cache-file=config.cache'
972   -n, --no-create         do not create output files
973       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977   cat <<_ACEOF
978 Installation directories:
979   --prefix=PREFIX         install architecture-independent files in PREFIX
980                           [$ac_default_prefix]
981   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982                           [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992   --bindir=DIR           user executables [EPREFIX/bin]
993   --sbindir=DIR          system admin executables [EPREFIX/sbin]
994   --libexecdir=DIR       program executables [EPREFIX/libexec]
995   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999   --libdir=DIR           object code libraries [EPREFIX/lib]
1000   --includedir=DIR       C header files [PREFIX/include]
1001   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002   --infodir=DIR          info documentation [PREFIX/info]
1003   --mandir=DIR           man documentation [PREFIX/man]
1004 _ACEOF
1005
1006   cat <<\_ACEOF
1007
1008 Program names:
1009   --program-prefix=PREFIX            prepend PREFIX to installed program names
1010   --program-suffix=SUFFIX            append SUFFIX to installed program names
1011   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013 System types:
1014   --build=BUILD     configure for building on BUILD [guessed]
1015   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016   --target=TARGET   configure for building compilers for TARGET [HOST]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021
1022   cat <<\_ACEOF
1023
1024 Optional Features:
1025   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027   --disable-dependency-tracking  speeds up one-time build
1028   --enable-dependency-tracking   do not reject slow dependency extractors
1029   --disable-largefile     omit support for large files
1030   --enable-shared[=PKGS]
1031                           build shared libraries [default=yes]
1032   --enable-static[=PKGS]
1033                           build static libraries [default=yes]
1034   --enable-fast-install[=PKGS]
1035                           optimize for fast installation [default=yes]
1036   --disable-libtool-lock  avoid locking (might break parallel builds)
1037
1038 Optional Packages:
1039   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1040   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1041   --with-cflags=CFLAGS   arguments to the c compiler (-Wall, -g, etc)
1042   --with-includes=DIR    site header files for readline, etc in DIR
1043   --with-libraries=DIR   site library directories for readline, etc in DIR
1044   --with-dumperdir=DIR   where we install the dumpers [EPREFIX/dumper]
1045   --with-configdir=DIR   runtime config files in DIR [sysconfdir/amanda]
1046   --with-indexdir        deprecated, use indexdir in amanda.conf
1047   --with-dbdir           deprecated, use infofile in amanda.conf
1048   --with-logdir          deprecated, use logfile in amanda.conf
1049   --with-suffixes        install binaries with version string appended to name
1050   --with-client-only     deprecated, use --without-server
1051   --with-server-only     deprecated, use --without-client
1052   --without-client       do not build client stuff
1053   --without-server       do not build server stuff (set --without-restore)
1054   --without-restore      do not build amrestore nor amidxtaped
1055   --without-amrecover    do not build amrecover
1056   --with-index-server=HOST default amanda index server [`uname -n`]
1057   --without-force-uid    do not force the uid to --with-user
1058   --with-user=USER       force execution to USER on client systems [required]
1059   --with-group=GROUP     group allowed to execute setuid-root programs [required]
1060   --with-owner=USER       force ownership of files to USER [default == --with-user value]
1061   --with-rundump         use rundump (setuid-root) to invoke dump
1062   --with-config=CONFIG   default configuration [DailySet1]
1063   --with-tape-server=HOST default restoring tape server is HOST [same as --with-index-server]
1064   --with-tape-device=ARG restoring tape server HOST's no rewinding tape drive
1065   --with-ftape-rawdevice=ARG raw device on tape server HOST's if using Linux ftape >=3.04d
1066   --with-rew-tape        deprecated, use --with-tape-device
1067   --with-norew-tape=ARG  deprecated, use --with-tape-device
1068   --with-changer-device=ARG default tape changer device [/dev/ch0 if it exists]
1069   --with-fqdn            use FQDN's to backup multiple networks
1070   --with-broken-fsf      only enable if tape fsf calls fail mid-file
1071   --without-reuseaddr    Don't closed network connections to be reused until full timeout period.
1072   --with-gnutar[=PROG]      use PROG as GNU tar executable [default: looks for one]
1073   --with-smbclient[=PROG]   use PROG as Samba's smbclient executable [default: looks for one]
1074   --with-samba-user was deprecated
1075   --with-gnutar-listdir=DIR  gnutar directory lists go in DIR [localstatedir/amanda/gnutar-lists]
1076   --with-gnutar-listed-incremental was deprecated, use --with-gnutar-listdir
1077   --without-bsd-security do not use BSD rsh/rlogin style security
1078   --without-amandahosts  use .rhosts instead of .amandahosts
1079   --with-dbmalloc=DIR  Location of dbmalloc libs and headers
1080   --with-krb4-security=DIR   Location of Kerberos software [/usr/kerberos /usr/cygnus /usr /opt/kerberos]
1081   --with-rsh-security use rsh as a transport
1082   --with-ssh-security use ssh as a transport
1083   --with-bsdtcp-security use tcp as a transport
1084   --with-bsdudp-security use tcp as a transport
1085     --with-server-principal=ARG    server host principal  ["amanda"]
1086     --with-server-instance=ARG     server host instance   ["amanda"]
1087     --with-server-keyfile=ARG      server host key file   ["/.amanda"]
1088     --with-client-principal=ARG    client host principal  ["rcmd"]
1089     --with-client-instance=ARG     client host instance   [HOSTNAME_INSTANCE]
1090     --with-client-keyfile=ARG      client host key file   [KEYFILE]
1091     --with-ticket-lifetime=ARG     ticket lifetime        [128]
1092   --with-krb5-security=DIR   Location of Kerberos V software [/usr/kerberos /usr/cygnus /usr /opt/kerberos]
1093   --with-low-tcpportrange=low,high     bind reserved TCP server sockets to ports within this range unlimited (mainly for amrecover)
1094   --with-tcpportrange=low,high  bind unreserved TCP server sockets to ports within this range [unlimited]
1095   --with-udpportrange=low,high  bind reserved UDP server sockets to ports within this range [unlimited]
1096   --with-maxtapeblocksize=kb            Maximum size of a tape block
1097   --with-db={text,db,dbm,gdbm,ndbm} use the selected database format [text]
1098   --with-mmap            force use of mmap instead of shared memory support
1099   --with-buffered-dump   buffer the dumping sockets on the server for speed
1100   --with-assertions      compile assertions into code
1101   --with-tmpdir=/temp/dir area Amanda can use for temp files [/tmp/amanda]
1102   --with[out]-debugging[=/debug/dir] [do not] record runtime debugging information in specified directory [--with-tmpdir]
1103   --with-debug-days=NN    number of days to keep debugging files [default=4]
1104   --with-testing[=suffix] use alternate service names
1105   --with-dump-honor-nodump  if dump supports -h, use it for level0s too
1106   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1107   --with-pic              try to use only PIC/non-PIC objects [default=use
1108                           both]
1109   --with-tags[=TAGS]
1110                           include additional configurations [automatic]
1111   --without-built-manpages Do not build manpages from XML source.
1112
1113 Some influential environment variables:
1114   CC          C compiler command
1115   CFLAGS      C compiler flags
1116   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1117               nonstandard directory <lib dir>
1118   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1119               headers in a nonstandard directory <include dir>
1120   CPP         C preprocessor
1121   CXX         C++ compiler command
1122   CXXFLAGS    C++ compiler flags
1123   CXXCPP      C++ preprocessor
1124   F77         Fortran 77 compiler command
1125   FFLAGS      Fortran 77 compiler flags
1126
1127 Use these variables to override the choices made by `configure' or to help
1128 it to find libraries and programs with nonstandard names/locations.
1129
1130 _ACEOF
1131 fi
1132
1133 if test "$ac_init_help" = "recursive"; then
1134   # If there are subdirs, report their specific --help.
1135   ac_popdir=`pwd`
1136   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1137     test -d $ac_dir || continue
1138     ac_builddir=.
1139
1140 if test "$ac_dir" != .; then
1141   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1142   # A "../" for each directory in $ac_dir_suffix.
1143   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1144 else
1145   ac_dir_suffix= ac_top_builddir=
1146 fi
1147
1148 case $srcdir in
1149   .)  # No --srcdir option.  We are building in place.
1150     ac_srcdir=.
1151     if test -z "$ac_top_builddir"; then
1152        ac_top_srcdir=.
1153     else
1154        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1155     fi ;;
1156   [\\/]* | ?:[\\/]* )  # Absolute path.
1157     ac_srcdir=$srcdir$ac_dir_suffix;
1158     ac_top_srcdir=$srcdir ;;
1159   *) # Relative path.
1160     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1161     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1162 esac
1163
1164 # Do not use `cd foo && pwd` to compute absolute paths, because
1165 # the directories may not exist.
1166 case `pwd` in
1167 .) ac_abs_builddir="$ac_dir";;
1168 *)
1169   case "$ac_dir" in
1170   .) ac_abs_builddir=`pwd`;;
1171   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1172   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1173   esac;;
1174 esac
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1177 *)
1178   case ${ac_top_builddir}. in
1179   .) ac_abs_top_builddir=$ac_abs_builddir;;
1180   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1181   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1182   esac;;
1183 esac
1184 case $ac_abs_builddir in
1185 .) ac_abs_srcdir=$ac_srcdir;;
1186 *)
1187   case $ac_srcdir in
1188   .) ac_abs_srcdir=$ac_abs_builddir;;
1189   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1190   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1191   esac;;
1192 esac
1193 case $ac_abs_builddir in
1194 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1195 *)
1196   case $ac_top_srcdir in
1197   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1198   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1199   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1200   esac;;
1201 esac
1202
1203     cd $ac_dir
1204     # Check for guested configure; otherwise get Cygnus style configure.
1205     if test -f $ac_srcdir/configure.gnu; then
1206       echo
1207       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1208     elif test -f $ac_srcdir/configure; then
1209       echo
1210       $SHELL $ac_srcdir/configure  --help=recursive
1211     elif test -f $ac_srcdir/configure.ac ||
1212            test -f $ac_srcdir/configure.in; then
1213       echo
1214       $ac_configure --help
1215     else
1216       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1217     fi
1218     cd $ac_popdir
1219   done
1220 fi
1221
1222 test -n "$ac_init_help" && exit 0
1223 if $ac_init_version; then
1224   cat <<\_ACEOF
1225
1226 Copyright (C) 2003 Free Software Foundation, Inc.
1227 This configure script is free software; the Free Software Foundation
1228 gives unlimited permission to copy, distribute and modify it.
1229 _ACEOF
1230   exit 0
1231 fi
1232 exec 5>config.log
1233 cat >&5 <<_ACEOF
1234 This file contains any messages produced by compilers while
1235 running configure, to aid debugging if configure makes a mistake.
1236
1237 It was created by $as_me, which was
1238 generated by GNU Autoconf 2.59.  Invocation command line was
1239
1240   $ $0 $@
1241
1242 _ACEOF
1243 {
1244 cat <<_ASUNAME
1245 ## --------- ##
1246 ## Platform. ##
1247 ## --------- ##
1248
1249 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1250 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1251 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1252 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1253 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1254
1255 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1256 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1257
1258 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1259 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1260 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1261 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1262 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1263 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1264 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1265
1266 _ASUNAME
1267
1268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1269 for as_dir in $PATH
1270 do
1271   IFS=$as_save_IFS
1272   test -z "$as_dir" && as_dir=.
1273   echo "PATH: $as_dir"
1274 done
1275
1276 } >&5
1277
1278 cat >&5 <<_ACEOF
1279
1280
1281 ## ----------- ##
1282 ## Core tests. ##
1283 ## ----------- ##
1284
1285 _ACEOF
1286
1287
1288 # Keep a trace of the command line.
1289 # Strip out --no-create and --no-recursion so they do not pile up.
1290 # Strip out --silent because we don't want to record it for future runs.
1291 # Also quote any args containing shell meta-characters.
1292 # Make two passes to allow for proper duplicate-argument suppression.
1293 ac_configure_args=
1294 ac_configure_args0=
1295 ac_configure_args1=
1296 ac_sep=
1297 ac_must_keep_next=false
1298 for ac_pass in 1 2
1299 do
1300   for ac_arg
1301   do
1302     case $ac_arg in
1303     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1304     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1305     | -silent | --silent | --silen | --sile | --sil)
1306       continue ;;
1307     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1309     esac
1310     case $ac_pass in
1311     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1312     2)
1313       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1314       if test $ac_must_keep_next = true; then
1315         ac_must_keep_next=false # Got value, back to normal.
1316       else
1317         case $ac_arg in
1318           *=* | --config-cache | -C | -disable-* | --disable-* \
1319           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1320           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1321           | -with-* | --with-* | -without-* | --without-* | --x)
1322             case "$ac_configure_args0 " in
1323               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1324             esac
1325             ;;
1326           -* ) ac_must_keep_next=true ;;
1327         esac
1328       fi
1329       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1330       # Get rid of the leading space.
1331       ac_sep=" "
1332       ;;
1333     esac
1334   done
1335 done
1336 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1337 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1338
1339 # When interrupted or exit'd, cleanup temporary files, and complete
1340 # config.log.  We remove comments because anyway the quotes in there
1341 # would cause problems or look ugly.
1342 # WARNING: Be sure not to use single quotes in there, as some shells,
1343 # such as our DU 5.0 friend, will then `close' the trap.
1344 trap 'exit_status=$?
1345   # Save into config.log some information that might help in debugging.
1346   {
1347     echo
1348
1349     cat <<\_ASBOX
1350 ## ---------------- ##
1351 ## Cache variables. ##
1352 ## ---------------- ##
1353 _ASBOX
1354     echo
1355     # The following way of writing the cache mishandles newlines in values,
1356 {
1357   (set) 2>&1 |
1358     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1359     *ac_space=\ *)
1360       sed -n \
1361         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1362           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1363       ;;
1364     *)
1365       sed -n \
1366         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1367       ;;
1368     esac;
1369 }
1370     echo
1371
1372     cat <<\_ASBOX
1373 ## ----------------- ##
1374 ## Output variables. ##
1375 ## ----------------- ##
1376 _ASBOX
1377     echo
1378     for ac_var in $ac_subst_vars
1379     do
1380       eval ac_val=$`echo $ac_var`
1381       echo "$ac_var='"'"'$ac_val'"'"'"
1382     done | sort
1383     echo
1384
1385     if test -n "$ac_subst_files"; then
1386       cat <<\_ASBOX
1387 ## ------------- ##
1388 ## Output files. ##
1389 ## ------------- ##
1390 _ASBOX
1391       echo
1392       for ac_var in $ac_subst_files
1393       do
1394         eval ac_val=$`echo $ac_var`
1395         echo "$ac_var='"'"'$ac_val'"'"'"
1396       done | sort
1397       echo
1398     fi
1399
1400     if test -s confdefs.h; then
1401       cat <<\_ASBOX
1402 ## ----------- ##
1403 ## confdefs.h. ##
1404 ## ----------- ##
1405 _ASBOX
1406       echo
1407       sed "/^$/d" confdefs.h | sort
1408       echo
1409     fi
1410     test "$ac_signal" != 0 &&
1411       echo "$as_me: caught signal $ac_signal"
1412     echo "$as_me: exit $exit_status"
1413   } >&5
1414   rm -f core *.core &&
1415   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1416     exit $exit_status
1417      ' 0
1418 for ac_signal in 1 2 13 15; do
1419   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1420 done
1421 ac_signal=0
1422
1423 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1424 rm -rf conftest* confdefs.h
1425 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1426 echo >confdefs.h
1427
1428 # Predefined preprocessor variables.
1429
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_NAME "$PACKAGE_NAME"
1432 _ACEOF
1433
1434
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1437 _ACEOF
1438
1439
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1442 _ACEOF
1443
1444
1445 cat >>confdefs.h <<_ACEOF
1446 #define PACKAGE_STRING "$PACKAGE_STRING"
1447 _ACEOF
1448
1449
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1452 _ACEOF
1453
1454
1455 # Let the site file select an alternate cache file if it wants to.
1456 # Prefer explicitly selected file to automatically selected ones.
1457 if test -z "$CONFIG_SITE"; then
1458   if test "x$prefix" != xNONE; then
1459     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1460   else
1461     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1462   fi
1463 fi
1464 for ac_site_file in $CONFIG_SITE; do
1465   if test -r "$ac_site_file"; then
1466     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1467 echo "$as_me: loading site script $ac_site_file" >&6;}
1468     sed 's/^/| /' "$ac_site_file" >&5
1469     . "$ac_site_file"
1470   fi
1471 done
1472
1473 if test -r "$cache_file"; then
1474   # Some versions of bash will fail to source /dev/null (special
1475   # files actually), so we avoid doing that.
1476   if test -f "$cache_file"; then
1477     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1478 echo "$as_me: loading cache $cache_file" >&6;}
1479     case $cache_file in
1480       [\\/]* | ?:[\\/]* ) . $cache_file;;
1481       *)                      . ./$cache_file;;
1482     esac
1483   fi
1484 else
1485   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1486 echo "$as_me: creating cache $cache_file" >&6;}
1487   >$cache_file
1488 fi
1489
1490 # Check that the precious variables saved in the cache have kept the same
1491 # value.
1492 ac_cache_corrupted=false
1493 for ac_var in `(set) 2>&1 |
1494                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1495   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1496   eval ac_new_set=\$ac_env_${ac_var}_set
1497   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1498   eval ac_new_val="\$ac_env_${ac_var}_value"
1499   case $ac_old_set,$ac_new_set in
1500     set,)
1501       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1502 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1503       ac_cache_corrupted=: ;;
1504     ,set)
1505       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1506 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1507       ac_cache_corrupted=: ;;
1508     ,);;
1509     *)
1510       if test "x$ac_old_val" != "x$ac_new_val"; then
1511         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1512 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1513         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1514 echo "$as_me:   former value:  $ac_old_val" >&2;}
1515         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1516 echo "$as_me:   current value: $ac_new_val" >&2;}
1517         ac_cache_corrupted=:
1518       fi;;
1519   esac
1520   # Pass precious variables to config.status.
1521   if test "$ac_new_set" = set; then
1522     case $ac_new_val in
1523     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1524       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1525     *) ac_arg=$ac_var=$ac_new_val ;;
1526     esac
1527     case " $ac_configure_args " in
1528       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1529       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1530     esac
1531   fi
1532 done
1533 if $ac_cache_corrupted; then
1534   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1535 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1536   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1537 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1538    { (exit 1); exit 1; }; }
1539 fi
1540
1541 ac_ext=c
1542 ac_cpp='$CPP $CPPFLAGS'
1543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566 ac_aux_dir=
1567 for ac_dir in config $srcdir/config; do
1568   if test -f $ac_dir/install-sh; then
1569     ac_aux_dir=$ac_dir
1570     ac_install_sh="$ac_aux_dir/install-sh -c"
1571     break
1572   elif test -f $ac_dir/install.sh; then
1573     ac_aux_dir=$ac_dir
1574     ac_install_sh="$ac_aux_dir/install.sh -c"
1575     break
1576   elif test -f $ac_dir/shtool; then
1577     ac_aux_dir=$ac_dir
1578     ac_install_sh="$ac_aux_dir/shtool install -c"
1579     break
1580   fi
1581 done
1582 if test -z "$ac_aux_dir"; then
1583   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1584 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1585    { (exit 1); exit 1; }; }
1586 fi
1587 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1588 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1589 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1590
1591 # Make sure we can run config.sub.
1592 $ac_config_sub sun4 >/dev/null 2>&1 ||
1593   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1594 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1595    { (exit 1); exit 1; }; }
1596
1597 echo "$as_me:$LINENO: checking build system type" >&5
1598 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1599 if test "${ac_cv_build+set}" = set; then
1600   echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602   ac_cv_build_alias=$build_alias
1603 test -z "$ac_cv_build_alias" &&
1604   ac_cv_build_alias=`$ac_config_guess`
1605 test -z "$ac_cv_build_alias" &&
1606   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1607 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1608    { (exit 1); exit 1; }; }
1609 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1610   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1612    { (exit 1); exit 1; }; }
1613
1614 fi
1615 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1616 echo "${ECHO_T}$ac_cv_build" >&6
1617 build=$ac_cv_build
1618 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623 echo "$as_me:$LINENO: checking host system type" >&5
1624 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1625 if test "${ac_cv_host+set}" = set; then
1626   echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628   ac_cv_host_alias=$host_alias
1629 test -z "$ac_cv_host_alias" &&
1630   ac_cv_host_alias=$ac_cv_build_alias
1631 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1632   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1633 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1634    { (exit 1); exit 1; }; }
1635
1636 fi
1637 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1638 echo "${ECHO_T}$ac_cv_host" >&6
1639 host=$ac_cv_host
1640 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643
1644
1645 echo "$as_me:$LINENO: checking target system type" >&5
1646 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1647 if test "${ac_cv_target+set}" = set; then
1648   echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650   ac_cv_target_alias=$target_alias
1651 test "x$ac_cv_target_alias" = "x" &&
1652   ac_cv_target_alias=$ac_cv_host_alias
1653 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1654   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1655 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1656    { (exit 1); exit 1; }; }
1657
1658 fi
1659 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1660 echo "${ECHO_T}$ac_cv_target" >&6
1661 target=$ac_cv_target
1662 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1663 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1664 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1665
1666
1667 # The aliases save the names the user supplied, while $host etc.
1668 # will get canonicalized.
1669 test -n "$target_alias" &&
1670   test "$program_prefix$program_suffix$program_transform_name" = \
1671     NONENONEs,x,x, &&
1672   program_prefix=${target_alias}-
1673
1674
1675 CONFIGURE_COMMAND="'$0'"
1676 for arg in "$@"; do
1677   CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
1678 done
1679
1680 cat >>confdefs.h <<_ACEOF
1681 #define CONFIGURE_COMMAND "$CONFIGURE_COMMAND"
1682 _ACEOF
1683
1684
1685
1686 am__api_version="1.9"
1687 # Find a good install program.  We prefer a C program (faster),
1688 # so one script is as good as another.  But avoid the broken or
1689 # incompatible versions:
1690 # SysV /etc/install, /usr/sbin/install
1691 # SunOS /usr/etc/install
1692 # IRIX /sbin/install
1693 # AIX /bin/install
1694 # AmigaOS /C/install, which installs bootblocks on floppy discs
1695 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1696 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1697 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1698 # OS/2's system install, which has a completely different semantic
1699 # ./install, which can be erroneously created by make from ./install.sh.
1700 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1701 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1702 if test -z "$INSTALL"; then
1703 if test "${ac_cv_path_install+set}" = set; then
1704   echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 for as_dir in $PATH
1708 do
1709   IFS=$as_save_IFS
1710   test -z "$as_dir" && as_dir=.
1711   # Account for people who put trailing slashes in PATH elements.
1712 case $as_dir/ in
1713   ./ | .// | /cC/* | \
1714   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1715   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1716   /usr/ucb/* ) ;;
1717   *)
1718     # OSF1 and SCO ODT 3.0 have their own names for install.
1719     # Don't use installbsd from OSF since it installs stuff as root
1720     # by default.
1721     for ac_prog in ginstall scoinst install; do
1722       for ac_exec_ext in '' $ac_executable_extensions; do
1723         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1724           if test $ac_prog = install &&
1725             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1726             # AIX install.  It has an incompatible calling convention.
1727             :
1728           elif test $ac_prog = install &&
1729             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1730             # program-specific install script used by HP pwplus--don't use.
1731             :
1732           else
1733             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1734             break 3
1735           fi
1736         fi
1737       done
1738     done
1739     ;;
1740 esac
1741 done
1742
1743
1744 fi
1745   if test "${ac_cv_path_install+set}" = set; then
1746     INSTALL=$ac_cv_path_install
1747   else
1748     # As a last resort, use the slow shell script.  We don't cache a
1749     # path for INSTALL within a source directory, because that will
1750     # break other packages using the cache if that directory is
1751     # removed, or if the path is relative.
1752     INSTALL=$ac_install_sh
1753   fi
1754 fi
1755 echo "$as_me:$LINENO: result: $INSTALL" >&5
1756 echo "${ECHO_T}$INSTALL" >&6
1757
1758 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1759 # It thinks the first close brace ends the variable substitution.
1760 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1761
1762 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1763
1764 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1765
1766 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1767 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1768 # Just in case
1769 sleep 1
1770 echo timestamp > conftest.file
1771 # Do `set' in a subshell so we don't clobber the current shell's
1772 # arguments.  Must try -L first in case configure is actually a
1773 # symlink; some systems play weird games with the mod time of symlinks
1774 # (eg FreeBSD returns the mod time of the symlink's containing
1775 # directory).
1776 if (
1777    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1778    if test "$*" = "X"; then
1779       # -L didn't work.
1780       set X `ls -t $srcdir/configure conftest.file`
1781    fi
1782    rm -f conftest.file
1783    if test "$*" != "X $srcdir/configure conftest.file" \
1784       && test "$*" != "X conftest.file $srcdir/configure"; then
1785
1786       # If neither matched, then we have a broken ls.  This can happen
1787       # if, for instance, CONFIG_SHELL is bash and it inherits a
1788       # broken ls alias from the environment.  This has actually
1789       # happened.  Such a system could not be considered "sane".
1790       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1791 alias in your environment" >&5
1792 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1793 alias in your environment" >&2;}
1794    { (exit 1); exit 1; }; }
1795    fi
1796
1797    test "$2" = conftest.file
1798    )
1799 then
1800    # Ok.
1801    :
1802 else
1803    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1804 Check your system clock" >&5
1805 echo "$as_me: error: newly created file is older than distributed files!
1806 Check your system clock" >&2;}
1807    { (exit 1); exit 1; }; }
1808 fi
1809 echo "$as_me:$LINENO: result: yes" >&5
1810 echo "${ECHO_T}yes" >&6
1811 test "$program_prefix" != NONE &&
1812   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1813 # Use a double $ so make ignores it.
1814 test "$program_suffix" != NONE &&
1815   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1816 # Double any \ or $.  echo might interpret backslashes.
1817 # By default was `s,x,x', remove it if useless.
1818 cat <<\_ACEOF >conftest.sed
1819 s/[\\$]/&&/g;s/;s,x,x,$//
1820 _ACEOF
1821 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1822 rm conftest.sed
1823
1824 # expand $ac_aux_dir to an absolute path
1825 am_aux_dir=`cd $ac_aux_dir && pwd`
1826
1827 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1828 # Use eval to expand $SHELL
1829 if eval "$MISSING --run true"; then
1830   am_missing_run="$MISSING --run "
1831 else
1832   am_missing_run=
1833   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1834 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1835 fi
1836
1837 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1838   # We used to keeping the `.' as first argument, in order to
1839   # allow $(mkdir_p) to be used without argument.  As in
1840   #   $(mkdir_p) $(somedir)
1841   # where $(somedir) is conditionally defined.  However this is wrong
1842   # for two reasons:
1843   #  1. if the package is installed by a user who cannot write `.'
1844   #     make install will fail,
1845   #  2. the above comment should most certainly read
1846   #     $(mkdir_p) $(DESTDIR)$(somedir)
1847   #     so it does not work when $(somedir) is undefined and
1848   #     $(DESTDIR) is not.
1849   #  To support the latter case, we have to write
1850   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1851   #  so the `.' trick is pointless.
1852   mkdir_p='mkdir -p --'
1853 else
1854   # On NextStep and OpenStep, the `mkdir' command does not
1855   # recognize any option.  It will interpret all options as
1856   # directories to create, and then abort because `.' already
1857   # exists.
1858   for d in ./-p ./--version;
1859   do
1860     test -d $d && rmdir $d
1861   done
1862   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1863   if test -f "$ac_aux_dir/mkinstalldirs"; then
1864     mkdir_p='$(mkinstalldirs)'
1865   else
1866     mkdir_p='$(install_sh) -d'
1867   fi
1868 fi
1869
1870 for ac_prog in gawk mawk nawk awk
1871 do
1872   # Extract the first word of "$ac_prog", so it can be a program name with args.
1873 set dummy $ac_prog; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_AWK+set}" = set; then
1877   echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879   if test -n "$AWK"; then
1880   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1881 else
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885   IFS=$as_save_IFS
1886   test -z "$as_dir" && as_dir=.
1887   for ac_exec_ext in '' $ac_executable_extensions; do
1888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889     ac_cv_prog_AWK="$ac_prog"
1890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891     break 2
1892   fi
1893 done
1894 done
1895
1896 fi
1897 fi
1898 AWK=$ac_cv_prog_AWK
1899 if test -n "$AWK"; then
1900   echo "$as_me:$LINENO: result: $AWK" >&5
1901 echo "${ECHO_T}$AWK" >&6
1902 else
1903   echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1905 fi
1906
1907   test -n "$AWK" && break
1908 done
1909
1910 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1911 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1912 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1913 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1914   echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916   cat >conftest.make <<\_ACEOF
1917 all:
1918         @echo 'ac_maketemp="$(MAKE)"'
1919 _ACEOF
1920 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1921 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1922 if test -n "$ac_maketemp"; then
1923   eval ac_cv_prog_make_${ac_make}_set=yes
1924 else
1925   eval ac_cv_prog_make_${ac_make}_set=no
1926 fi
1927 rm -f conftest.make
1928 fi
1929 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1930   echo "$as_me:$LINENO: result: yes" >&5
1931 echo "${ECHO_T}yes" >&6
1932   SET_MAKE=
1933 else
1934   echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1936   SET_MAKE="MAKE=${MAKE-make}"
1937 fi
1938
1939 rm -rf .tst 2>/dev/null
1940 mkdir .tst 2>/dev/null
1941 if test -d .tst; then
1942   am__leading_dot=.
1943 else
1944   am__leading_dot=_
1945 fi
1946 rmdir .tst 2>/dev/null
1947
1948 # test to see if srcdir already configured
1949 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1950    test -f $srcdir/config.status; then
1951   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1952 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1953    { (exit 1); exit 1; }; }
1954 fi
1955
1956 # test whether we have cygpath
1957 if test -z "$CYGPATH_W"; then
1958   if (cygpath --version) >/dev/null 2>/dev/null; then
1959     CYGPATH_W='cygpath -w'
1960   else
1961     CYGPATH_W=echo
1962   fi
1963 fi
1964
1965
1966 # Define the identity of the package.
1967  PACKAGE=amanda
1968  VERSION=2.5.1
1969
1970
1971 cat >>confdefs.h <<_ACEOF
1972 #define PACKAGE "$PACKAGE"
1973 _ACEOF
1974
1975
1976 cat >>confdefs.h <<_ACEOF
1977 #define VERSION "$VERSION"
1978 _ACEOF
1979
1980 # Some tools Automake needs.
1981
1982 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1983
1984
1985 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1986
1987
1988 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1989
1990
1991 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1992
1993
1994 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1995
1996 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1997
1998 # Installed binaries are usually stripped using `strip' when the user
1999 # run `make install-strip'.  However `strip' might not be the right
2000 # tool to use in cross-compilation environments, therefore Automake
2001 # will honor the `STRIP' environment variable to overrule this program.
2002 if test "$cross_compiling" != no; then
2003   if test -n "$ac_tool_prefix"; then
2004   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2005 set dummy ${ac_tool_prefix}strip; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_STRIP+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   if test -n "$STRIP"; then
2012   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2013 else
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2016 do
2017   IFS=$as_save_IFS
2018   test -z "$as_dir" && as_dir=.
2019   for ac_exec_ext in '' $ac_executable_extensions; do
2020   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023     break 2
2024   fi
2025 done
2026 done
2027
2028 fi
2029 fi
2030 STRIP=$ac_cv_prog_STRIP
2031 if test -n "$STRIP"; then
2032   echo "$as_me:$LINENO: result: $STRIP" >&5
2033 echo "${ECHO_T}$STRIP" >&6
2034 else
2035   echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2037 fi
2038
2039 fi
2040 if test -z "$ac_cv_prog_STRIP"; then
2041   ac_ct_STRIP=$STRIP
2042   # Extract the first word of "strip", so it can be a program name with args.
2043 set dummy strip; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2047   echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049   if test -n "$ac_ct_STRIP"; then
2050   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2051 else
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055   IFS=$as_save_IFS
2056   test -z "$as_dir" && as_dir=.
2057   for ac_exec_ext in '' $ac_executable_extensions; do
2058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059     ac_cv_prog_ac_ct_STRIP="strip"
2060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061     break 2
2062   fi
2063 done
2064 done
2065
2066   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2067 fi
2068 fi
2069 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2070 if test -n "$ac_ct_STRIP"; then
2071   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2072 echo "${ECHO_T}$ac_ct_STRIP" >&6
2073 else
2074   echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2076 fi
2077
2078   STRIP=$ac_ct_STRIP
2079 else
2080   STRIP="$ac_cv_prog_STRIP"
2081 fi
2082
2083 fi
2084 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2085
2086 # We need awk for the "check" target.  The system "awk" is bad on
2087 # some platforms.
2088 # Always define AMTAR for backward compatibility.
2089
2090 AMTAR=${AMTAR-"${am_missing_run}tar"}
2091
2092 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2093
2094
2095
2096
2097
2098           ac_config_headers="$ac_config_headers config/config.h"
2099
2100
2101
2102 if test -f "$srcdir/SNAPSHOT"; then
2103   cat < "$srcdir/SNAPSHOT"
2104
2105   snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
2106
2107   test -z "$snapdate" || VERSION="$VERSION-$snapdate"
2108   SNAPSHOT_STAMP=SNAPSHOT
2109 else
2110   SNAPSHOT_STAMP=
2111 fi
2112
2113
2114 if test -f config.local; then
2115     echo "running local script ./config.local"
2116     . ./config.local
2117 fi
2118
2119
2120 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
2121 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
2122 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
2123 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
2124
2125
2126 VERSION_SUFFIX="$VERSION"
2127
2128
2129
2130
2131
2132
2133 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc"
2134 LOCPATH=`(
2135     test "x$prefix" = xNONE && prefix=$ac_default_prefix
2136     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2137     eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
2138 )`
2139 SYSLOCPATH="$SYSPATH:$LOCPATH"
2140 LOCSYSPATH="$LOCPATH:$SYSPATH"
2141
2142
2143
2144 # Check whether --with-cflags or --without-cflags was given.
2145 if test "${with_cflags+set}" = set; then
2146   withval="$with_cflags"
2147
2148         case "$withval" in
2149         "" | y | ye | yes | n | no)
2150             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
2151 echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
2152    { (exit 1); exit 1; }; }
2153             ;;
2154         esac
2155         CFLAGS="$withval"
2156
2157 fi;
2158
2159 CFLAGS="-D_GNU_SOURCE $CFLAGS"
2160
2161 ac_ext=c
2162 ac_cpp='$CPP $CPPFLAGS'
2163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2166 if test -n "$ac_tool_prefix"; then
2167   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2168 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2169 echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174   if test -n "$CC"; then
2175   ac_cv_prog_CC="$CC" # Let the user override the test.
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180   IFS=$as_save_IFS
2181   test -z "$as_dir" && as_dir=.
2182   for ac_exec_ext in '' $ac_executable_extensions; do
2183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186     break 2
2187   fi
2188 done
2189 done
2190
2191 fi
2192 fi
2193 CC=$ac_cv_prog_CC
2194 if test -n "$CC"; then
2195   echo "$as_me:$LINENO: result: $CC" >&5
2196 echo "${ECHO_T}$CC" >&6
2197 else
2198   echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6
2200 fi
2201
2202 fi
2203 if test -z "$ac_cv_prog_CC"; then
2204   ac_ct_CC=$CC
2205   # Extract the first word of "gcc", so it can be a program name with args.
2206 set dummy gcc; ac_word=$2
2207 echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2209 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   if test -n "$ac_ct_CC"; then
2213   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218   IFS=$as_save_IFS
2219   test -z "$as_dir" && as_dir=.
2220   for ac_exec_ext in '' $ac_executable_extensions; do
2221   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2222     ac_cv_prog_ac_ct_CC="gcc"
2223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224     break 2
2225   fi
2226 done
2227 done
2228
2229 fi
2230 fi
2231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2232 if test -n "$ac_ct_CC"; then
2233   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2234 echo "${ECHO_T}$ac_ct_CC" >&6
2235 else
2236   echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6
2238 fi
2239
2240   CC=$ac_ct_CC
2241 else
2242   CC="$ac_cv_prog_CC"
2243 fi
2244
2245 if test -z "$CC"; then
2246   if test -n "$ac_tool_prefix"; then
2247   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2248 set dummy ${ac_tool_prefix}cc; ac_word=$2
2249 echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2251 if test "${ac_cv_prog_CC+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   if test -n "$CC"; then
2255   ac_cv_prog_CC="$CC" # Let the user override the test.
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260   IFS=$as_save_IFS
2261   test -z "$as_dir" && as_dir=.
2262   for ac_exec_ext in '' $ac_executable_extensions; do
2263   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2264     ac_cv_prog_CC="${ac_tool_prefix}cc"
2265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266     break 2
2267   fi
2268 done
2269 done
2270
2271 fi
2272 fi
2273 CC=$ac_cv_prog_CC
2274 if test -n "$CC"; then
2275   echo "$as_me:$LINENO: result: $CC" >&5
2276 echo "${ECHO_T}$CC" >&6
2277 else
2278   echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6
2280 fi
2281
2282 fi
2283 if test -z "$ac_cv_prog_CC"; then
2284   ac_ct_CC=$CC
2285   # Extract the first word of "cc", so it can be a program name with args.
2286 set dummy cc; ac_word=$2
2287 echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2289 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   if test -n "$ac_ct_CC"; then
2293   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2294 else
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2297 do
2298   IFS=$as_save_IFS
2299   test -z "$as_dir" && as_dir=.
2300   for ac_exec_ext in '' $ac_executable_extensions; do
2301   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2302     ac_cv_prog_ac_ct_CC="cc"
2303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304     break 2
2305   fi
2306 done
2307 done
2308
2309 fi
2310 fi
2311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2312 if test -n "$ac_ct_CC"; then
2313   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2314 echo "${ECHO_T}$ac_ct_CC" >&6
2315 else
2316   echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6
2318 fi
2319
2320   CC=$ac_ct_CC
2321 else
2322   CC="$ac_cv_prog_CC"
2323 fi
2324
2325 fi
2326 if test -z "$CC"; then
2327   # Extract the first word of "cc", so it can be a program name with args.
2328 set dummy cc; ac_word=$2
2329 echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2331 if test "${ac_cv_prog_CC+set}" = set; then
2332   echo $ECHO_N "(cached) $ECHO_C" >&6
2333 else
2334   if test -n "$CC"; then
2335   ac_cv_prog_CC="$CC" # Let the user override the test.
2336 else
2337   ac_prog_rejected=no
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 for as_dir in $PATH
2340 do
2341   IFS=$as_save_IFS
2342   test -z "$as_dir" && as_dir=.
2343   for ac_exec_ext in '' $ac_executable_extensions; do
2344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2345     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2346        ac_prog_rejected=yes
2347        continue
2348      fi
2349     ac_cv_prog_CC="cc"
2350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351     break 2
2352   fi
2353 done
2354 done
2355
2356 if test $ac_prog_rejected = yes; then
2357   # We found a bogon in the path, so make sure we never use it.
2358   set dummy $ac_cv_prog_CC
2359   shift
2360   if test $# != 0; then
2361     # We chose a different compiler from the bogus one.
2362     # However, it has the same basename, so the bogon will be chosen
2363     # first if we set CC to just the basename; use the full file name.
2364     shift
2365     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2366   fi
2367 fi
2368 fi
2369 fi
2370 CC=$ac_cv_prog_CC
2371 if test -n "$CC"; then
2372   echo "$as_me:$LINENO: result: $CC" >&5
2373 echo "${ECHO_T}$CC" >&6
2374 else
2375   echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6
2377 fi
2378
2379 fi
2380 if test -z "$CC"; then
2381   if test -n "$ac_tool_prefix"; then
2382   for ac_prog in cl
2383   do
2384     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2386 echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2388 if test "${ac_cv_prog_CC+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   if test -n "$CC"; then
2392   ac_cv_prog_CC="$CC" # Let the user override the test.
2393 else
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2396 do
2397   IFS=$as_save_IFS
2398   test -z "$as_dir" && as_dir=.
2399   for ac_exec_ext in '' $ac_executable_extensions; do
2400   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403     break 2
2404   fi
2405 done
2406 done
2407
2408 fi
2409 fi
2410 CC=$ac_cv_prog_CC
2411 if test -n "$CC"; then
2412   echo "$as_me:$LINENO: result: $CC" >&5
2413 echo "${ECHO_T}$CC" >&6
2414 else
2415   echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6
2417 fi
2418
2419     test -n "$CC" && break
2420   done
2421 fi
2422 if test -z "$CC"; then
2423   ac_ct_CC=$CC
2424   for ac_prog in cl
2425 do
2426   # Extract the first word of "$ac_prog", so it can be a program name with args.
2427 set dummy $ac_prog; ac_word=$2
2428 echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   if test -n "$ac_ct_CC"; then
2434   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439   IFS=$as_save_IFS
2440   test -z "$as_dir" && as_dir=.
2441   for ac_exec_ext in '' $ac_executable_extensions; do
2442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2443     ac_cv_prog_ac_ct_CC="$ac_prog"
2444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445     break 2
2446   fi
2447 done
2448 done
2449
2450 fi
2451 fi
2452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2453 if test -n "$ac_ct_CC"; then
2454   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2455 echo "${ECHO_T}$ac_ct_CC" >&6
2456 else
2457   echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6
2459 fi
2460
2461   test -n "$ac_ct_CC" && break
2462 done
2463
2464   CC=$ac_ct_CC
2465 fi
2466
2467 fi
2468
2469
2470 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: no acceptable C compiler found in \$PATH
2473 See \`config.log' for more details." >&2;}
2474    { (exit 1); exit 1; }; }
2475
2476 # Provide some information about the compiler.
2477 echo "$as_me:$LINENO:" \
2478      "checking for C compiler version" >&5
2479 ac_compiler=`set X $ac_compile; echo $2`
2480 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2481   (eval $ac_compiler --version </dev/null >&5) 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }
2485 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2486   (eval $ac_compiler -v </dev/null >&5) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }
2490 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2491   (eval $ac_compiler -V </dev/null >&5) 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }
2495
2496 cat >conftest.$ac_ext <<_ACEOF
2497 /* confdefs.h.  */
2498 _ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h.  */
2502
2503 int
2504 main ()
2505 {
2506
2507   ;
2508   return 0;
2509 }
2510 _ACEOF
2511 ac_clean_files_save=$ac_clean_files
2512 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2513 # Try to create an executable without -o first, disregard a.out.
2514 # It will help us diagnose broken compilers, and finding out an intuition
2515 # of exeext.
2516 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2517 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2518 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2519 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2520   (eval $ac_link_default) 2>&5
2521   ac_status=$?
2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523   (exit $ac_status); }; then
2524   # Find the output, starting from the most likely.  This scheme is
2525 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2526 # resort.
2527
2528 # Be careful to initialize this variable, since it used to be cached.
2529 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2530 ac_cv_exeext=
2531 # b.out is created by i960 compilers.
2532 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2533 do
2534   test -f "$ac_file" || continue
2535   case $ac_file in
2536     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2537         ;;
2538     conftest.$ac_ext )
2539         # This is the source file.
2540         ;;
2541     [ab].out )
2542         # We found the default executable, but exeext='' is most
2543         # certainly right.
2544         break;;
2545     *.* )
2546         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2547         # FIXME: I believe we export ac_cv_exeext for Libtool,
2548         # but it would be cool to find out if it's true.  Does anybody
2549         # maintain Libtool? --akim.
2550         export ac_cv_exeext
2551         break;;
2552     * )
2553         break;;
2554   esac
2555 done
2556 else
2557   echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: C compiler cannot create executables
2563 See \`config.log' for more details." >&2;}
2564    { (exit 77); exit 77; }; }
2565 fi
2566
2567 ac_exeext=$ac_cv_exeext
2568 echo "$as_me:$LINENO: result: $ac_file" >&5
2569 echo "${ECHO_T}$ac_file" >&6
2570
2571 # Check the compiler produces executables we can run.  If not, either
2572 # the compiler is broken, or we cross compile.
2573 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2574 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2575 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2576 # If not cross compiling, check that we can run a simple program.
2577 if test "$cross_compiling" != yes; then
2578   if { ac_try='./$ac_file'
2579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580   (eval $ac_try) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; }; then
2584     cross_compiling=no
2585   else
2586     if test "$cross_compiling" = maybe; then
2587         cross_compiling=yes
2588     else
2589         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2590 If you meant to cross compile, use \`--host'.
2591 See \`config.log' for more details." >&5
2592 echo "$as_me: error: cannot run C compiled programs.
2593 If you meant to cross compile, use \`--host'.
2594 See \`config.log' for more details." >&2;}
2595    { (exit 1); exit 1; }; }
2596     fi
2597   fi
2598 fi
2599 echo "$as_me:$LINENO: result: yes" >&5
2600 echo "${ECHO_T}yes" >&6
2601
2602 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2603 ac_clean_files=$ac_clean_files_save
2604 # Check the compiler produces executables we can run.  If not, either
2605 # the compiler is broken, or we cross compile.
2606 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2607 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2608 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2609 echo "${ECHO_T}$cross_compiling" >&6
2610
2611 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2612 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2614   (eval $ac_link) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; then
2618   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2619 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2620 # work properly (i.e., refer to `conftest.exe'), while it won't with
2621 # `rm'.
2622 for ac_file in conftest.exe conftest conftest.*; do
2623   test -f "$ac_file" || continue
2624   case $ac_file in
2625     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2626     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2627           export ac_cv_exeext
2628           break;;
2629     * ) break;;
2630   esac
2631 done
2632 else
2633   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2634 See \`config.log' for more details." >&5
2635 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2636 See \`config.log' for more details." >&2;}
2637    { (exit 1); exit 1; }; }
2638 fi
2639
2640 rm -f conftest$ac_cv_exeext
2641 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2642 echo "${ECHO_T}$ac_cv_exeext" >&6
2643
2644 rm -f conftest.$ac_ext
2645 EXEEXT=$ac_cv_exeext
2646 ac_exeext=$EXEEXT
2647 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2648 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2649 if test "${ac_cv_objext+set}" = set; then
2650   echo $ECHO_N "(cached) $ECHO_C" >&6
2651 else
2652   cat >conftest.$ac_ext <<_ACEOF
2653 /* confdefs.h.  */
2654 _ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h.  */
2658
2659 int
2660 main ()
2661 {
2662
2663   ;
2664   return 0;
2665 }
2666 _ACEOF
2667 rm -f conftest.o conftest.obj
2668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669   (eval $ac_compile) 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); }; then
2673   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2674   case $ac_file in
2675     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2676     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2677        break;;
2678   esac
2679 done
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2685 See \`config.log' for more details." >&5
2686 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2687 See \`config.log' for more details." >&2;}
2688    { (exit 1); exit 1; }; }
2689 fi
2690
2691 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2692 fi
2693 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2694 echo "${ECHO_T}$ac_cv_objext" >&6
2695 OBJEXT=$ac_cv_objext
2696 ac_objext=$OBJEXT
2697 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2698 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2699 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2700   echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702   cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h.  */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h.  */
2708
2709 int
2710 main ()
2711 {
2712 #ifndef __GNUC__
2713        choke me
2714 #endif
2715
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722   (eval $ac_compile) 2>conftest.er1
2723   ac_status=$?
2724   grep -v '^ *+' conftest.er1 >conftest.err
2725   rm -f conftest.er1
2726   cat conftest.err >&5
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } &&
2729          { ac_try='test -z "$ac_c_werror_flag"
2730                          || test ! -s conftest.err'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; } &&
2736          { ac_try='test -s conftest.$ac_objext'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   ac_compiler_gnu=yes
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747 ac_compiler_gnu=no
2748 fi
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2751
2752 fi
2753 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2754 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2755 GCC=`test $ac_compiler_gnu = yes && echo yes`
2756 ac_test_CFLAGS=${CFLAGS+set}
2757 ac_save_CFLAGS=$CFLAGS
2758 CFLAGS="-g"
2759 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2760 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2761 if test "${ac_cv_prog_cc_g+set}" = set; then
2762   echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764   cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h.  */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h.  */
2770
2771 int
2772 main ()
2773 {
2774
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781   (eval $ac_compile) 2>conftest.er1
2782   ac_status=$?
2783   grep -v '^ *+' conftest.er1 >conftest.err
2784   rm -f conftest.er1
2785   cat conftest.err >&5
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); } &&
2788          { ac_try='test -z "$ac_c_werror_flag"
2789                          || test ! -s conftest.err'
2790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791   (eval $ac_try) 2>&5
2792   ac_status=$?
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); }; } &&
2795          { ac_try='test -s conftest.$ac_objext'
2796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797   (eval $ac_try) 2>&5
2798   ac_status=$?
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); }; }; then
2801   ac_cv_prog_cc_g=yes
2802 else
2803   echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2805
2806 ac_cv_prog_cc_g=no
2807 fi
2808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 fi
2810 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2811 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2812 if test "$ac_test_CFLAGS" = set; then
2813   CFLAGS=$ac_save_CFLAGS
2814 elif test $ac_cv_prog_cc_g = yes; then
2815   if test "$GCC" = yes; then
2816     CFLAGS="-g -O2"
2817   else
2818     CFLAGS="-g"
2819   fi
2820 else
2821   if test "$GCC" = yes; then
2822     CFLAGS="-O2"
2823   else
2824     CFLAGS=
2825   fi
2826 fi
2827 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2828 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2829 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2830   echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832   ac_cv_prog_cc_stdc=no
2833 ac_save_CC=$CC
2834 cat >conftest.$ac_ext <<_ACEOF
2835 /* confdefs.h.  */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h.  */
2840 #include <stdarg.h>
2841 #include <stdio.h>
2842 #include <sys/types.h>
2843 #include <sys/stat.h>
2844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2845 struct buf { int x; };
2846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2847 static char *e (p, i)
2848      char **p;
2849      int i;
2850 {
2851   return p[i];
2852 }
2853 static char *f (char * (*g) (char **, int), char **p, ...)
2854 {
2855   char *s;
2856   va_list v;
2857   va_start (v,p);
2858   s = g (p, va_arg (v,int));
2859   va_end (v);
2860   return s;
2861 }
2862
2863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2864    function prototypes and stuff, but not '\xHH' hex character constants.
2865    These don't provoke an error unfortunately, instead are silently treated
2866    as 'x'.  The following induces an error, until -std1 is added to get
2867    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2868    array size at least.  It's necessary to write '\x00'==0 to get something
2869    that's true only with -std1.  */
2870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2871
2872 int test (int i, double x);
2873 struct s1 {int (*f) (int a);};
2874 struct s2 {int (*f) (double a);};
2875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2876 int argc;
2877 char **argv;
2878 int
2879 main ()
2880 {
2881 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2882   ;
2883   return 0;
2884 }
2885 _ACEOF
2886 # Don't try gcc -ansi; that turns off useful extensions and
2887 # breaks some systems' header files.
2888 # AIX                   -qlanglvl=ansi
2889 # Ultrix and OSF/1      -std1
2890 # HP-UX 10.20 and later -Ae
2891 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2892 # SVR4                  -Xc -D__EXTENSIONS__
2893 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2894 do
2895   CC="$ac_save_CC $ac_arg"
2896   rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898   (eval $ac_compile) 2>conftest.er1
2899   ac_status=$?
2900   grep -v '^ *+' conftest.er1 >conftest.err
2901   rm -f conftest.er1
2902   cat conftest.err >&5
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); } &&
2905          { ac_try='test -z "$ac_c_werror_flag"
2906                          || test ! -s conftest.err'
2907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908   (eval $ac_try) 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }; } &&
2912          { ac_try='test -s conftest.$ac_objext'
2913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914   (eval $ac_try) 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }; }; then
2918   ac_cv_prog_cc_stdc=$ac_arg
2919 break
2920 else
2921   echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2923
2924 fi
2925 rm -f conftest.err conftest.$ac_objext
2926 done
2927 rm -f conftest.$ac_ext conftest.$ac_objext
2928 CC=$ac_save_CC
2929
2930 fi
2931
2932 case "x$ac_cv_prog_cc_stdc" in
2933   x|xno)
2934     echo "$as_me:$LINENO: result: none needed" >&5
2935 echo "${ECHO_T}none needed" >&6 ;;
2936   *)
2937     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2938 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2939     CC="$CC $ac_cv_prog_cc_stdc" ;;
2940 esac
2941
2942 # Some people use a C++ compiler to compile C.  Since we use `exit',
2943 # in C++ we need to declare it.  In case someone uses the same compiler
2944 # for both compiling C and C++ we need to have the C++ compiler decide
2945 # the declaration of exit, since it's the most demanding environment.
2946 cat >conftest.$ac_ext <<_ACEOF
2947 #ifndef __cplusplus
2948   choke me
2949 #endif
2950 _ACEOF
2951 rm -f conftest.$ac_objext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953   (eval $ac_compile) 2>conftest.er1
2954   ac_status=$?
2955   grep -v '^ *+' conftest.er1 >conftest.err
2956   rm -f conftest.er1
2957   cat conftest.err >&5
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); } &&
2960          { ac_try='test -z "$ac_c_werror_flag"
2961                          || test ! -s conftest.err'
2962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963   (eval $ac_try) 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }; } &&
2967          { ac_try='test -s conftest.$ac_objext'
2968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969   (eval $ac_try) 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; }; then
2973   for ac_declaration in \
2974    '' \
2975    'extern "C" void std::exit (int) throw (); using std::exit;' \
2976    'extern "C" void std::exit (int); using std::exit;' \
2977    'extern "C" void exit (int) throw ();' \
2978    'extern "C" void exit (int);' \
2979    'void exit (int);'
2980 do
2981   cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h.  */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h.  */
2987 $ac_declaration
2988 #include <stdlib.h>
2989 int
2990 main ()
2991 {
2992 exit (42);
2993   ;
2994   return 0;
2995 }
2996 _ACEOF
2997 rm -f conftest.$ac_objext
2998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2999   (eval $ac_compile) 2>conftest.er1
3000   ac_status=$?
3001   grep -v '^ *+' conftest.er1 >conftest.err
3002   rm -f conftest.er1
3003   cat conftest.err >&5
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); } &&
3006          { ac_try='test -z "$ac_c_werror_flag"
3007                          || test ! -s conftest.err'
3008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009   (eval $ac_try) 2>&5
3010   ac_status=$?
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); }; } &&
3013          { ac_try='test -s conftest.$ac_objext'
3014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015   (eval $ac_try) 2>&5
3016   ac_status=$?
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); }; }; then
3019   :
3020 else
3021   echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024 continue
3025 fi
3026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3027   cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h.  */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h.  */
3033 $ac_declaration
3034 int
3035 main ()
3036 {
3037 exit (42);
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044   (eval $ac_compile) 2>conftest.er1
3045   ac_status=$?
3046   grep -v '^ *+' conftest.er1 >conftest.err
3047   rm -f conftest.er1
3048   cat conftest.err >&5
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } &&
3051          { ac_try='test -z "$ac_c_werror_flag"
3052                          || test ! -s conftest.err'
3053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054   (eval $ac_try) 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }; } &&
3058          { ac_try='test -s conftest.$ac_objext'
3059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060   (eval $ac_try) 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }; }; then
3064   break
3065 else
3066   echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069 fi
3070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3071 done
3072 rm -f conftest*
3073 if test -n "$ac_declaration"; then
3074   echo '#ifdef __cplusplus' >>confdefs.h
3075   echo $ac_declaration      >>confdefs.h
3076   echo '#endif'             >>confdefs.h
3077 fi
3078
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083 fi
3084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_ext=c
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 DEPDIR="${am__leading_dot}deps"
3091
3092           ac_config_commands="$ac_config_commands depfiles"
3093
3094
3095 am_make=${MAKE-make}
3096 cat > confinc << 'END'
3097 am__doit:
3098         @echo done
3099 .PHONY: am__doit
3100 END
3101 # If we don't find an include directive, just comment out the code.
3102 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3103 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3104 am__include="#"
3105 am__quote=
3106 _am_result=none
3107 # First try GNU make style include.
3108 echo "include confinc" > confmf
3109 # We grep out `Entering directory' and `Leaving directory'
3110 # messages which can occur if `w' ends up in MAKEFLAGS.
3111 # In particular we don't look at `^make:' because GNU make might
3112 # be invoked under some other name (usually "gmake"), in which
3113 # case it prints its new name instead of `make'.
3114 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3115    am__include=include
3116    am__quote=
3117    _am_result=GNU
3118 fi
3119 # Now try BSD make style include.
3120 if test "$am__include" = "#"; then
3121    echo '.include "confinc"' > confmf
3122    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3123       am__include=.include
3124       am__quote="\""
3125       _am_result=BSD
3126    fi
3127 fi
3128
3129
3130 echo "$as_me:$LINENO: result: $_am_result" >&5
3131 echo "${ECHO_T}$_am_result" >&6
3132 rm -f confinc confmf
3133
3134 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3135 if test "${enable_dependency_tracking+set}" = set; then
3136   enableval="$enable_dependency_tracking"
3137
3138 fi;
3139 if test "x$enable_dependency_tracking" != xno; then
3140   am_depcomp="$ac_aux_dir/depcomp"
3141   AMDEPBACKSLASH='\'
3142 fi
3143
3144
3145 if test "x$enable_dependency_tracking" != xno; then
3146   AMDEP_TRUE=
3147   AMDEP_FALSE='#'
3148 else
3149   AMDEP_TRUE='#'
3150   AMDEP_FALSE=
3151 fi
3152
3153
3154
3155
3156 depcc="$CC"   am_compiler_list=
3157
3158 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3159 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3160 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3161   echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3164   # We make a subdir and do the tests there.  Otherwise we can end up
3165   # making bogus files that we don't know about and never remove.  For
3166   # instance it was reported that on HP-UX the gcc test will end up
3167   # making a dummy file named `D' -- because `-MD' means `put the output
3168   # in D'.
3169   mkdir conftest.dir
3170   # Copy depcomp to subdir because otherwise we won't find it if we're
3171   # using a relative directory.
3172   cp "$am_depcomp" conftest.dir
3173   cd conftest.dir
3174   # We will build objects and dependencies in a subdirectory because
3175   # it helps to detect inapplicable dependency modes.  For instance
3176   # both Tru64's cc and ICC support -MD to output dependencies as a
3177   # side effect of compilation, but ICC will put the dependencies in
3178   # the current directory while Tru64 will put them in the object
3179   # directory.
3180   mkdir sub
3181
3182   am_cv_CC_dependencies_compiler_type=none
3183   if test "$am_compiler_list" = ""; then
3184      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3185   fi
3186   for depmode in $am_compiler_list; do
3187     # Setup a source with many dependencies, because some compilers
3188     # like to wrap large dependency lists on column 80 (with \), and
3189     # we should not choose a depcomp mode which is confused by this.
3190     #
3191     # We need to recreate these files for each test, as the compiler may
3192     # overwrite some of them when testing with obscure command lines.
3193     # This happens at least with the AIX C compiler.
3194     : > sub/conftest.c
3195     for i in 1 2 3 4 5 6; do
3196       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3197       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3198       # Solaris 8's {/usr,}/bin/sh.
3199       touch sub/conftst$i.h
3200     done
3201     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3202
3203     case $depmode in
3204     nosideeffect)
3205       # after this tag, mechanisms are not by side-effect, so they'll
3206       # only be used when explicitly requested
3207       if test "x$enable_dependency_tracking" = xyes; then
3208         continue
3209       else
3210         break
3211       fi
3212       ;;
3213     none) break ;;
3214     esac
3215     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3216     # mode.  It turns out that the SunPro C++ compiler does not properly
3217     # handle `-M -o', and we need to detect this.
3218     if depmode=$depmode \
3219        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3220        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3221        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3222          >/dev/null 2>conftest.err &&
3223        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3224        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3225        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3226       # icc doesn't choke on unknown options, it will just issue warnings
3227       # or remarks (even with -Werror).  So we grep stderr for any message
3228       # that says an option was ignored or not supported.
3229       # When given -MP, icc 7.0 and 7.1 complain thusly:
3230       #   icc: Command line warning: ignoring option '-M'; no argument required
3231       # The diagnosis changed in icc 8.0:
3232       #   icc: Command line remark: option '-MP' not supported
3233       if (grep 'ignoring option' conftest.err ||
3234           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3235         am_cv_CC_dependencies_compiler_type=$depmode
3236         break
3237       fi
3238     fi
3239   done
3240
3241   cd ..
3242   rm -rf conftest.dir
3243 else
3244   am_cv_CC_dependencies_compiler_type=none
3245 fi
3246
3247 fi
3248 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3249 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3250 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3251
3252
3253
3254 if
3255   test "x$enable_dependency_tracking" != xno \
3256   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3257   am__fastdepCC_TRUE=
3258   am__fastdepCC_FALSE='#'
3259 else
3260   am__fastdepCC_TRUE='#'
3261   am__fastdepCC_FALSE=
3262 fi
3263
3264
3265
3266
3267
3268 # Check whether --enable-largefile or --disable-largefile was given.
3269 if test "${enable_largefile+set}" = set; then
3270   enableval="$enable_largefile"
3271
3272 fi;
3273 if test "$enable_largefile" != no; then
3274
3275   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3276 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3277 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3278   echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280   ac_cv_sys_largefile_CC=no
3281      if test "$GCC" != yes; then
3282        ac_save_CC=$CC
3283        while :; do
3284          # IRIX 6.2 and later do not support large files by default,
3285          # so use the C compiler's -n32 option if that helps.
3286          cat >conftest.$ac_ext <<_ACEOF
3287 /* confdefs.h.  */
3288 _ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h.  */
3292 #include <sys/types.h>
3293  /* Check that off_t can represent 2**63 - 1 correctly.
3294     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3295     since some C++ compilers masquerading as C compilers
3296     incorrectly reject 9223372036854775807.  */
3297 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3298   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3299                        && LARGE_OFF_T % 2147483647 == 1)
3300                       ? 1 : -1];
3301 int
3302 main ()
3303 {
3304
3305   ;
3306   return 0;
3307 }
3308 _ACEOF
3309          rm -f conftest.$ac_objext
3310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3311   (eval $ac_compile) 2>conftest.er1
3312   ac_status=$?
3313   grep -v '^ *+' conftest.er1 >conftest.err
3314   rm -f conftest.er1
3315   cat conftest.err >&5
3316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317   (exit $ac_status); } &&
3318          { ac_try='test -z "$ac_c_werror_flag"
3319                          || test ! -s conftest.err'
3320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321   (eval $ac_try) 2>&5
3322   ac_status=$?
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); }; } &&
3325          { ac_try='test -s conftest.$ac_objext'
3326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327   (eval $ac_try) 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }; }; then
3331   break
3332 else
3333   echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3335
3336 fi
3337 rm -f conftest.err conftest.$ac_objext
3338          CC="$CC -n32"
3339          rm -f conftest.$ac_objext
3340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3341   (eval $ac_compile) 2>conftest.er1
3342   ac_status=$?
3343   grep -v '^ *+' conftest.er1 >conftest.err
3344   rm -f conftest.er1
3345   cat conftest.err >&5
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } &&
3348          { ac_try='test -z "$ac_c_werror_flag"
3349                          || test ! -s conftest.err'
3350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351   (eval $ac_try) 2>&5
3352   ac_status=$?
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); }; } &&
3355          { ac_try='test -s conftest.$ac_objext'
3356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357   (eval $ac_try) 2>&5
3358   ac_status=$?
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); }; }; then
3361   ac_cv_sys_largefile_CC=' -n32'; break
3362 else
3363   echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366 fi
3367 rm -f conftest.err conftest.$ac_objext
3368          break
3369        done
3370        CC=$ac_save_CC
3371        rm -f conftest.$ac_ext
3372     fi
3373 fi
3374 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3375 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3376   if test "$ac_cv_sys_largefile_CC" != no; then
3377     CC=$CC$ac_cv_sys_largefile_CC
3378   fi
3379
3380   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3381 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3382 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385   while :; do
3386   ac_cv_sys_file_offset_bits=no
3387   cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h.  */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h.  */
3393 #include <sys/types.h>
3394  /* Check that off_t can represent 2**63 - 1 correctly.
3395     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3396     since some C++ compilers masquerading as C compilers
3397     incorrectly reject 9223372036854775807.  */
3398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3399   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3400                        && LARGE_OFF_T % 2147483647 == 1)
3401                       ? 1 : -1];
3402 int
3403 main ()
3404 {
3405
3406   ;
3407   return 0;
3408 }
3409 _ACEOF
3410 rm -f conftest.$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412   (eval $ac_compile) 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } &&
3419          { ac_try='test -z "$ac_c_werror_flag"
3420                          || test ! -s conftest.err'
3421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422   (eval $ac_try) 2>&5
3423   ac_status=$?
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); }; } &&
3426          { ac_try='test -s conftest.$ac_objext'
3427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428   (eval $ac_try) 2>&5
3429   ac_status=$?
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); }; }; then
3432   break
3433 else
3434   echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437 fi
3438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3439   cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h.  */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h.  */
3445 #define _FILE_OFFSET_BITS 64
3446 #include <sys/types.h>
3447  /* Check that off_t can represent 2**63 - 1 correctly.
3448     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3449     since some C++ compilers masquerading as C compilers
3450     incorrectly reject 9223372036854775807.  */
3451 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3452   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3453                        && LARGE_OFF_T % 2147483647 == 1)
3454                       ? 1 : -1];
3455 int
3456 main ()
3457 {
3458
3459   ;
3460   return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465   (eval $ac_compile) 2>conftest.er1
3466   ac_status=$?
3467   grep -v '^ *+' conftest.er1 >conftest.err
3468   rm -f conftest.er1
3469   cat conftest.err >&5
3470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471   (exit $ac_status); } &&
3472          { ac_try='test -z "$ac_c_werror_flag"
3473                          || test ! -s conftest.err'
3474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475   (eval $ac_try) 2>&5
3476   ac_status=$?
3477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); }; } &&
3479          { ac_try='test -s conftest.$ac_objext'
3480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481   (eval $ac_try) 2>&5
3482   ac_status=$?
3483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484   (exit $ac_status); }; }; then
3485   ac_cv_sys_file_offset_bits=64; break
3486 else
3487   echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3489
3490 fi
3491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3492   break
3493 done
3494 fi
3495 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3496 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3497 if test "$ac_cv_sys_file_offset_bits" != no; then
3498
3499 cat >>confdefs.h <<_ACEOF
3500 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3501 _ACEOF
3502
3503 fi
3504 rm -f conftest*
3505   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3506 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3507 if test "${ac_cv_sys_large_files+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   while :; do
3511   ac_cv_sys_large_files=no
3512   cat >conftest.$ac_ext <<_ACEOF
3513 /* confdefs.h.  */
3514 _ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h.  */
3518 #include <sys/types.h>
3519  /* Check that off_t can represent 2**63 - 1 correctly.
3520     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3521     since some C++ compilers masquerading as C compilers
3522     incorrectly reject 9223372036854775807.  */
3523 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3524   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3525                        && LARGE_OFF_T % 2147483647 == 1)
3526                       ? 1 : -1];
3527 int
3528 main ()
3529 {
3530
3531   ;
3532   return 0;
3533 }
3534 _ACEOF
3535 rm -f conftest.$ac_objext
3536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537   (eval $ac_compile) 2>conftest.er1
3538   ac_status=$?
3539   grep -v '^ *+' conftest.er1 >conftest.err
3540   rm -f conftest.er1
3541   cat conftest.err >&5
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); } &&
3544          { ac_try='test -z "$ac_c_werror_flag"
3545                          || test ! -s conftest.err'
3546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547   (eval $ac_try) 2>&5
3548   ac_status=$?
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); }; } &&
3551          { ac_try='test -s conftest.$ac_objext'
3552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553   (eval $ac_try) 2>&5
3554   ac_status=$?
3555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556   (exit $ac_status); }; }; then
3557   break
3558 else
3559   echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562 fi
3563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3564   cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h.  */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h.  */
3570 #define _LARGE_FILES 1
3571 #include <sys/types.h>
3572  /* Check that off_t can represent 2**63 - 1 correctly.
3573     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3574     since some C++ compilers masquerading as C compilers
3575     incorrectly reject 9223372036854775807.  */
3576 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3577   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3578                        && LARGE_OFF_T % 2147483647 == 1)
3579                       ? 1 : -1];
3580 int
3581 main ()
3582 {
3583
3584   ;
3585   return 0;
3586 }
3587 _ACEOF
3588 rm -f conftest.$ac_objext
3589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3590   (eval $ac_compile) 2>conftest.er1
3591   ac_status=$?
3592   grep -v '^ *+' conftest.er1 >conftest.err
3593   rm -f conftest.er1
3594   cat conftest.err >&5
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); } &&
3597          { ac_try='test -z "$ac_c_werror_flag"
3598                          || test ! -s conftest.err'
3599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600   (eval $ac_try) 2>&5
3601   ac_status=$?
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); }; } &&
3604          { ac_try='test -s conftest.$ac_objext'
3605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606   (eval $ac_try) 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); }; }; then
3610   ac_cv_sys_large_files=1; break
3611 else
3612   echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3614
3615 fi
3616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3617   break
3618 done
3619 fi
3620 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3621 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3622 if test "$ac_cv_sys_large_files" != no; then
3623
3624 cat >>confdefs.h <<_ACEOF
3625 #define _LARGE_FILES $ac_cv_sys_large_files
3626 _ACEOF
3627
3628 fi
3629 rm -f conftest*
3630 fi
3631
3632
3633 for ac_prog in grep
3634 do
3635   # Extract the first word of "$ac_prog", so it can be a program name with args.
3636 set dummy $ac_prog; ac_word=$2
3637 echo "$as_me:$LINENO: checking for $ac_word" >&5
3638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3639 if test "${ac_cv_path_GREP+set}" = set; then
3640   echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642   case $GREP in
3643   [\\/]* | ?:[\\/]*)
3644   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3645   ;;
3646   *)
3647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $LOCSYSPATH
3649 do
3650   IFS=$as_save_IFS
3651   test -z "$as_dir" && as_dir=.
3652   for ac_exec_ext in '' $ac_executable_extensions; do
3653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3654     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3656     break 2
3657   fi
3658 done
3659 done
3660
3661   ;;
3662 esac
3663 fi
3664 GREP=$ac_cv_path_GREP
3665
3666 if test -n "$GREP"; then
3667   echo "$as_me:$LINENO: result: $GREP" >&5
3668 echo "${ECHO_T}$GREP" >&6
3669 else
3670   echo "$as_me:$LINENO: result: no" >&5
3671 echo "${ECHO_T}no" >&6
3672 fi
3673
3674   test -n "$GREP" && break
3675 done
3676
3677 if test -z "$GREP"; then
3678     GREP=grep
3679 fi
3680
3681 cat >>confdefs.h <<_ACEOF
3682 #define GREP "$GREP"
3683 _ACEOF
3684
3685 for ac_prog in egrep
3686 do
3687   # Extract the first word of "$ac_prog", so it can be a program name with args.
3688 set dummy $ac_prog; ac_word=$2
3689 echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3691 if test "${ac_cv_path_EGREP+set}" = set; then
3692   echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694   case $EGREP in
3695   [\\/]* | ?:[\\/]*)
3696   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3697   ;;
3698   *)
3699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $LOCSYSPATH
3701 do
3702   IFS=$as_save_IFS
3703   test -z "$as_dir" && as_dir=.
3704   for ac_exec_ext in '' $ac_executable_extensions; do
3705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708     break 2
3709   fi
3710 done
3711 done
3712
3713   ;;
3714 esac
3715 fi
3716 EGREP=$ac_cv_path_EGREP
3717
3718 if test -n "$EGREP"; then
3719   echo "$as_me:$LINENO: result: $EGREP" >&5
3720 echo "${ECHO_T}$EGREP" >&6
3721 else
3722   echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6
3724 fi
3725
3726   test -n "$EGREP" && break
3727 done
3728
3729
3730 for ac_prog in lint
3731 do
3732   # Extract the first word of "$ac_prog", so it can be a program name with args.
3733 set dummy $ac_prog; ac_word=$2
3734 echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736 if test "${ac_cv_path_AMLINT+set}" = set; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739   case $AMLINT in
3740   [\\/]* | ?:[\\/]*)
3741   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
3742   ;;
3743   *)
3744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
3746 for as_dir in $as_dummy
3747 do
3748   IFS=$as_save_IFS
3749   test -z "$as_dir" && as_dir=.
3750   for ac_exec_ext in '' $ac_executable_extensions; do
3751   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
3753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3754     break 2
3755   fi
3756 done
3757 done
3758
3759   ;;
3760 esac
3761 fi
3762 AMLINT=$ac_cv_path_AMLINT
3763
3764 if test -n "$AMLINT"; then
3765   echo "$as_me:$LINENO: result: $AMLINT" >&5
3766 echo "${ECHO_T}$AMLINT" >&6
3767 else
3768   echo "$as_me:$LINENO: result: no" >&5
3769 echo "${ECHO_T}no" >&6
3770 fi
3771
3772   test -n "$AMLINT" && break
3773 done
3774
3775 if test ! -z "$AMLINT"; then
3776   $AMLINT -flags | $GREP -- '-errfmt=' 2>&1 > /dev/null
3777   if test $? -eq 0; then
3778     AMLINTFLAGS="-n -s -u -m -x"
3779     AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
3780     AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
3781     AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
3782     AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
3783     AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
3784     AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
3785     AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
3786     AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
3787     AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
3788     AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
3789     AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
3790     AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
3791     AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
3792     AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
3793     AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
3794     AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
3795     AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
3796     AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
3797     AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
3798     AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
3799     AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
3800     AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
3801     AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
3802     AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
3803     AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
3804     AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
3805     AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
3806     AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
3807     AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
3808     AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
3809     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
3810     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
3811     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
3812     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
3813     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
3814     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
3815     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
3816     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
3817     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
3818     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
3819     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
3820     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
3821     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
3822     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
3823     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
3824     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
3825     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
3826     AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
3827     AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
3828     AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
3829   else
3830     AMLINTFLAGS=""
3831   fi
3832 else
3833   for ac_prog in splint
3834 do
3835   # Extract the first word of "$ac_prog", so it can be a program name with args.
3836 set dummy $ac_prog; ac_word=$2
3837 echo "$as_me:$LINENO: checking for $ac_word" >&5
3838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3839 if test "${ac_cv_path_AMLINT+set}" = set; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842   case $AMLINT in
3843   [\\/]* | ?:[\\/]*)
3844   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
3845   ;;
3846   *)
3847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $SYSLOCPATH
3849 do
3850   IFS=$as_save_IFS
3851   test -z "$as_dir" && as_dir=.
3852   for ac_exec_ext in '' $ac_executable_extensions; do
3853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
3855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3856     break 2
3857   fi
3858 done
3859 done
3860
3861   ;;
3862 esac
3863 fi
3864 AMLINT=$ac_cv_path_AMLINT
3865
3866 if test -n "$AMLINT"; then
3867   echo "$as_me:$LINENO: result: $AMLINT" >&5
3868 echo "${ECHO_T}$AMLINT" >&6
3869 else
3870   echo "$as_me:$LINENO: result: no" >&5
3871 echo "${ECHO_T}no" >&6
3872 fi
3873
3874   test -n "$AMLINT" && break
3875 done
3876
3877   if test ! -z "$AMLINT"; then
3878     AMLINT="splint"
3879   fi
3880   AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
3881 fi
3882
3883
3884
3885 # Check whether --with-includes or --without-includes was given.
3886 if test "${with_includes+set}" = set; then
3887   withval="$with_includes"
3888
3889         case "$withval" in
3890         "" | y | ye | yes | n | no)
3891             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
3892 echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
3893    { (exit 1); exit 1; }; }
3894           ;;
3895         esac
3896         INCLUDE_DIRS="$withval"
3897
3898 fi;
3899
3900 if test "$INCLUDE_DIRS"; then
3901         for dir in $INCLUDE_DIRS; do
3902             if test -d "$dir"; then
3903                 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS -I$dir"
3904             else
3905                 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3906 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3907             fi
3908         done
3909 fi
3910
3911
3912 # Check whether --with-libraries or --without-libraries was given.
3913 if test "${with_libraries+set}" = set; then
3914   withval="$with_libraries"
3915
3916         case "$withval" in
3917         "" | y | ye | yes | n | no)
3918             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
3919 echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
3920    { (exit 1); exit 1; }; }
3921           ;;
3922         esac
3923         LIBRARY_DIRS="$withval"
3924
3925 fi;
3926
3927 if test "$LIBRARY_DIRS"; then
3928         for dir in $LIBRARY_DIRS; do
3929             if test -d "$dir"; then
3930                 case "$target" in
3931                   *-solaris2*,*-netbsd*)
3932                         AMANDA_LDFLAGS="$AMANDA_LDFLAGS -R$dir"
3933                         ;;
3934                 esac
3935                 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -L$dir"
3936             else
3937                 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3938 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3939             fi
3940         done
3941 fi
3942
3943
3944
3945 # Check whether --with-dumperdir or --without-dumperdir was given.
3946 if test "${with_dumperdir+set}" = set; then
3947   withval="$with_dumperdir"
3948
3949         case "$withval" in
3950         "" | y | ye | yes | n | no)
3951             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-dumperdir option." >&5
3952 echo "$as_me: error: *** You must supply an argument to the --with-dumperdir option." >&2;}
3953    { (exit 1); exit 1; }; }
3954           ;;
3955         esac
3956         DUMPER_DIR="$withval"
3957
3958 else
3959
3960         test "x$prefix" = xNONE && prefix=$ac_default_prefix
3961         test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3962         DUMPER_DIR=$exec_prefix/dumper
3963
3964
3965 fi;
3966 DUMPER_DIR=`(
3967     test "x$prefix" = xNONE && prefix=$ac_default_prefix
3968     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3969     eval echo "$DUMPER_DIR"
3970 )`
3971
3972 cat >>confdefs.h <<_ACEOF
3973 #define DUMPER_DIR "$DUMPER_DIR"
3974 _ACEOF
3975
3976
3977
3978
3979 # Check whether --with-configdir or --without-configdir was given.
3980 if test "${with_configdir+set}" = set; then
3981   withval="$with_configdir"
3982
3983         case "$withval" in
3984         "" | y | ye | yes | n | no)
3985             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
3986 echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
3987    { (exit 1); exit 1; }; }
3988           ;;
3989         *) CONFIG_DIR="$withval"
3990           ;;
3991         esac
3992
3993 else
3994   : ${CONFIG_DIR="$sysconfdir/amanda"}
3995
3996 fi;
3997 CONFIG_DIR=`(
3998     test "x$prefix" = xNONE && prefix=$ac_default_prefix
3999     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
4000     eval echo "$CONFIG_DIR"
4001 )`
4002
4003 cat >>confdefs.h <<_ACEOF
4004 #define CONFIG_DIR "$CONFIG_DIR"
4005 _ACEOF
4006
4007
4008
4009
4010 # Check whether --with-indexdir or --without-indexdir was given.
4011 if test "${with_indexdir+set}" = set; then
4012   withval="$with_indexdir"
4013      { { echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&5
4014 echo "$as_me: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&2;}
4015    { (exit 1); exit 1; }; }
4016
4017 fi;
4018
4019
4020 # Check whether --with-dbdir or --without-dbdir was given.
4021 if test "${with_dbdir+set}" = set; then
4022   withval="$with_dbdir"
4023      { { echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&5
4024 echo "$as_me: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&2;}
4025    { (exit 1); exit 1; }; }
4026
4027 fi;
4028
4029
4030 # Check whether --with-logdir or --without-logdir was given.
4031 if test "${with_logdir+set}" = set; then
4032   withval="$with_logdir"
4033      { { echo "$as_me:$LINENO: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&5
4034 echo "$as_me: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&2;}
4035    { (exit 1); exit 1; }; }
4036
4037 fi;
4038
4039
4040 # Check whether --with-suffixes or --without-suffixes was given.
4041 if test "${with_suffixes+set}" = set; then
4042   withval="$with_suffixes"
4043   USE_VERSION_SUFFIXES=$withval
4044 else
4045   : ${USE_VERSION_SUFFIXES=no}
4046
4047 fi;
4048 case "$USE_VERSION_SUFFIXES" in
4049 y | ye | yes)
4050
4051 cat >>confdefs.h <<\_ACEOF
4052 #define USE_VERSION_SUFFIXES 1
4053 _ACEOF
4054
4055
4056     program_suffix="-$VERSION"
4057     # This is from the output of configure.in.
4058     if test "x$program_transform_name" = xs,x,x,; then
4059         program_transform_name=
4060     else
4061         # Double any \ or $.  echo might interpret backslashes.
4062         cat <<\EOF_SED > conftestsed
4063 s,\\,\\\\,g; s,\$,$$,g
4064 EOF_SED
4065         program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
4066         rm -f conftestsed
4067     fi
4068     test "x$program_prefix" != xNONE &&
4069         program_transform_name="s,^,${program_prefix},; $program_transform_name"
4070     # Use a double $ so make ignores it.
4071     test "x$program_suffix" != xNONE &&
4072         program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
4073
4074     # sed with no file args requires a program.
4075     test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
4076     # Remove empty command
4077     cat <<\EOF_SED > conftestsed
4078 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
4079 EOF_SED
4080     program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
4081     rm -f conftestsed
4082   ;;
4083 n | no) USE_VERSION_SUFFIXES=no
4084   ;;
4085 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
4086 echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
4087    { (exit 1); exit 1; }; }
4088   ;;
4089 esac
4090
4091
4092 case "$target" in
4093     *-hp-*)
4094         CLIENT_SCRIPTS_OPT=amhpfixdevs
4095         ;;
4096     *-sni-sysv4)
4097         CLIENT_SCRIPTS_OPT=amsinixfixdevs
4098         ;;
4099     *)
4100         CLIENT_SCRIPTS_OPT=
4101         ;;
4102 esac
4103
4104
4105
4106
4107 # Check whether --with-client-only or --without-client-only was given.
4108 if test "${with_client_only+set}" = set; then
4109   withval="$with_client_only"
4110      { { echo "$as_me:$LINENO: error: *** --with-client-only is deprecated, use --without-server instead." >&5
4111 echo "$as_me: error: *** --with-client-only is deprecated, use --without-server instead." >&2;}
4112    { (exit 1); exit 1; }; }
4113
4114 fi;
4115
4116 # Check whether --with-server-only or --without-server-only was given.
4117 if test "${with_server_only+set}" = set; then
4118   withval="$with_server_only"
4119      { { echo "$as_me:$LINENO: error: *** --with-server-only is deprecated, use --without-client instead." >&5
4120 echo "$as_me: error: *** --with-server-only is deprecated, use --without-client instead." >&2;}
4121    { (exit 1); exit 1; }; }
4122
4123 fi;
4124
4125
4126 # Check whether --with-client or --without-client was given.
4127 if test "${with_client+set}" = set; then
4128   withval="$with_client"
4129
4130         case "$withval" in
4131         y | ye | yes) NO_CLIENT_MODE=false;;
4132         n | no) NO_CLIENT_MODE=true;;
4133         *)
4134             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-client option." >&5
4135 echo "$as_me: error: *** You must not supply an argument to --with-client option." >&2;}
4136    { (exit 1); exit 1; }; }
4137           ;;
4138         esac
4139
4140
4141 fi;
4142
4143
4144 # Check whether --with-server or --without-server was given.
4145 if test "${with_server+set}" = set; then
4146   withval="$with_server"
4147
4148         case "$withval" in
4149         y | ye | yes) NO_SERVER_MODE=false ;;
4150         n | no) NO_SERVER_MODE=true;NO_RESTORE_MODE=true;;
4151         *)
4152             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-server option.  Maybe you meant --with-index-server=$withval" >&5
4153 echo "$as_me: error: *** You must not supply an argument to --with-server option.  Maybe you meant --with-index-server=$withval" >&2;}
4154    { (exit 1); exit 1; }; }
4155           ;;
4156         esac
4157
4158
4159 fi;
4160 if test "x${NO_SERVER_MODE+set}" != xset ; then
4161    NO_SERVER_MODE=false
4162 fi
4163
4164
4165 # Check whether --with-restore or --without-restore was given.
4166 if test "${with_restore+set}" = set; then
4167   withval="$with_restore"
4168
4169         case "$withval" in
4170         y | ye | yes) NO_RESTORE_MODE=false;;
4171         n | no) NO_RESTORE_MODE=true;;
4172         *)
4173             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-restore option." >&5
4174 echo "$as_me: error: *** You must not supply an argument to --with-restore option." >&2;}
4175    { (exit 1); exit 1; }; }
4176           ;;
4177         esac
4178
4179
4180 fi;
4181 if test "x${NO_RESTORE_MODE+set}" != xset ; then
4182    NO_RESTORE_MODE=${NO_SERVER_MODE-false}
4183 fi
4184
4185 if ${NO_SERVER_MODE-false}; then
4186    if ${NO_RESTORE_MODE-false}; then
4187                         true
4188    else
4189       { { echo "$as_me:$LINENO: error: *** --without-server requires --without-restore" >&5
4190 echo "$as_me: error: *** --without-server requires --without-restore" >&2;}
4191    { (exit 1); exit 1; }; }
4192    fi
4193 fi
4194
4195
4196 # Check whether --with-amrecover or --without-amrecover was given.
4197 if test "${with_amrecover+set}" = set; then
4198   withval="$with_amrecover"
4199
4200         case "$withval" in
4201         y | ye | yes)
4202             if ${NO_CLIENT_MODE-false}; then
4203                 { { echo "$as_me:$LINENO: error: *** --without-client and --with-amrecover are incompatible" >&5
4204 echo "$as_me: error: *** --without-client and --with-amrecover are incompatible" >&2;}
4205    { (exit 1); exit 1; }; }
4206             fi
4207             NO_RECOVER_MODE=false;;
4208         n | no) NO_RECOVER_MODE=true;;
4209         *)
4210             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amrecover option." >&5
4211 echo "$as_me: error: *** You must not supply an argument to --with-amrecover option." >&2;}
4212    { (exit 1); exit 1; }; }
4213           ;;
4214         esac
4215
4216
4217 fi;
4218
4219
4220 # Check whether --with-index-server or --without-index-server was given.
4221 if test "${with_index_server+set}" = set; then
4222   withval="$with_index_server"
4223
4224         case "$withval" in
4225         "" | y | ye | yes | n | no)
4226             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
4227 echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
4228    { (exit 1); exit 1; }; }
4229           ;;
4230         *) DEFAULT_SERVER="$withval"
4231           ;;
4232         esac
4233
4234 else
4235   : ${DEFAULT_SERVER=`uname -n`}
4236
4237 fi;
4238
4239 cat >>confdefs.h <<_ACEOF
4240 #define DEFAULT_SERVER "$DEFAULT_SERVER"
4241 _ACEOF
4242
4243
4244
4245
4246 # Check whether --with-force-uid or --without-force-uid was given.
4247 if test "${with_force_uid+set}" = set; then
4248   withval="$with_force_uid"
4249   FORCE_USERID="$withval"
4250 else
4251   : ${FORCE_USERID=yes}
4252
4253 fi;
4254 case "$FORCE_USERID" in
4255 y | ye | yes)
4256 cat >>confdefs.h <<\_ACEOF
4257 #define FORCE_USERID 1
4258 _ACEOF
4259
4260   ;;
4261 n | no) :
4262   ;;
4263 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
4264 echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
4265    { (exit 1); exit 1; }; }
4266 esac
4267
4268
4269 # Check whether --with-user or --without-user was given.
4270 if test "${with_user+set}" = set; then
4271   withval="$with_user"
4272
4273         case "$withval" in
4274         "" | y | ye | yes | n | no)
4275             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
4276 echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
4277    { (exit 1); exit 1; }; }
4278           ;;
4279         *) CLIENT_LOGIN="$withval"
4280           ;;
4281         esac
4282
4283
4284 fi;
4285 if test "x${CLIENT_LOGIN+set}" != xset; then
4286     { { echo "$as_me:$LINENO: error: *** --with-user=USER is missing" >&5
4287 echo "$as_me: error: *** --with-user=USER is missing" >&2;}
4288    { (exit 1); exit 1; }; }
4289 fi
4290
4291 cat >>confdefs.h <<_ACEOF
4292 #define CLIENT_LOGIN "$CLIENT_LOGIN"
4293 _ACEOF
4294
4295
4296
4297
4298 # Check whether --with-group or --without-group was given.
4299 if test "${with_group+set}" = set; then
4300   withval="$with_group"
4301
4302         case "$withval" in
4303         "" | y | ye | yes | n | no)
4304             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
4305 echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
4306    { (exit 1); exit 1; }; }
4307           ;;
4308         *) SETUID_GROUP="$withval"
4309           ;;
4310         esac
4311
4312
4313 fi;
4314 if test "x${SETUID_GROUP+set}" != xset; then
4315     { { echo "$as_me:$LINENO: error: *** --with-group=GROUP is missing" >&5
4316 echo "$as_me: error: *** --with-group=GROUP is missing" >&2;}
4317    { (exit 1); exit 1; }; }
4318 fi
4319
4320
4321
4322 # Check whether --with-owner or --without-owner was given.
4323 if test "${with_owner+set}" = set; then
4324   withval="$with_owner"
4325
4326         case "$withval" in
4327         "" | y | ye | yes | n | no)
4328             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
4329 echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
4330    { (exit 1); exit 1; }; }
4331           ;;
4332         *) BINARY_OWNER="$withval"
4333           ;;
4334         esac
4335
4336
4337 fi;
4338 if test "x${BINARY_OWNER+set}" != xset ; then
4339    BINARY_OWNER=$CLIENT_LOGIN
4340 fi
4341
4342 cat >>confdefs.h <<_ACEOF
4343 #define BINARY_OWNER "$BINARY_OWNER"
4344 _ACEOF
4345
4346
4347
4348
4349 # Check whether --with-rundump or --without-rundump was given.
4350 if test "${with_rundump+set}" = set; then
4351   withval="$with_rundump"
4352
4353     case "$withval" in
4354         n | no | y | ye | yes) FORCE_USE_RUNDUMP="$withval";;
4355         *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rundump option." >&5
4356 echo "$as_me: error: *** You must not supply an argument to --with-rundump option." >&2;}
4357    { (exit 1); exit 1; }; };;
4358     esac
4359
4360
4361 fi;
4362
4363
4364 # Check whether --with-config or --without-config was given.
4365 if test "${with_config+set}" = set; then
4366   withval="$with_config"
4367
4368         case "$withval" in
4369         "" | y | ye | yes | n | no)
4370             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
4371 echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
4372    { (exit 1); exit 1; }; }
4373           ;;
4374         *) DEFAULT_CONFIG="$withval"
4375           ;;
4376         esac
4377
4378 else
4379   : ${DEFAULT_CONFIG=DailySet1}
4380
4381 fi;
4382
4383 cat >>confdefs.h <<_ACEOF
4384 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
4385 _ACEOF
4386
4387
4388
4389
4390 # Check whether --with-tape-server or --without-tape-server was given.
4391 if test "${with_tape_server+set}" = set; then
4392   withval="$with_tape_server"
4393
4394         case "$withval" in
4395         "" | y | ye | yes | n | no)
4396             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
4397 echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
4398    { (exit 1); exit 1; }; }
4399           ;;
4400         *) DEFAULT_TAPE_SERVER="$withval"
4401           ;;
4402         esac
4403
4404 else
4405   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
4406
4407 fi;
4408
4409 cat >>confdefs.h <<_ACEOF
4410 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
4411 _ACEOF
4412
4413
4414
4415
4416 # Check whether --with-tape-device or --without-tape-device was given.
4417 if test "${with_tape_device+set}" = set; then
4418   withval="$with_tape_device"
4419
4420         case "$withval" in
4421         "" | y | ye | yes | n | no)
4422             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
4423 echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
4424    { (exit 1); exit 1; }; }
4425           ;;
4426         *) DEFAULT_TAPE_DEVICE="$withval"
4427           ;;
4428         esac
4429
4430 else
4431
4432         if test -z "$DEFAULT_TAPE_DEVICE"; then
4433             echo "$as_me:$LINENO: checking for non-rewinding tape device" >&5
4434 echo $ECHO_N "checking for non-rewinding tape device... $ECHO_C" >&6
4435                                                                     tape_dev=
4436             nr_tape_dev=
4437             if test -d /dev/rmt; then
4438
4439
4440                 for num in 9 8 7 6 5 4 3 2 1 0; do
4441                     td=/dev/rmt/${num}b
4442                     ntd=/dev/rmt/${num}bn
4443                     if test -r $td -a -r $ntd; then
4444                         tape_dev=$td
4445                         nr_tape_dev=$ntd
4446                     fi
4447                 done
4448             else
4449                                 for num in 9 8 7 6 5 4 3 2 1 0; do
4450                     td=/dev/rst${num}
4451                     ntd=/dev/nrst${num}
4452                     if test -r $td -a -r $ntd; then
4453                         tape_dev=$td
4454                         nr_tape_dev=$ntd
4455                     fi
4456                 done
4457             fi
4458             DEFAULT_TAPE_DEVICE=$nr_tape_dev
4459             echo "$as_me:$LINENO: result: $DEFAULT_TAPE_DEVICE" >&5
4460 echo "${ECHO_T}$DEFAULT_TAPE_DEVICE" >&6
4461         fi
4462
4463
4464 fi;
4465
4466 if test ! -z "$DEFAULT_TAPE_DEVICE"; then
4467
4468 cat >>confdefs.h <<_ACEOF
4469 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
4470 _ACEOF
4471
4472
4473 fi
4474
4475
4476 # Check whether --with-ftape-raw-device or --without-ftape-raw-device was given.
4477 if test "${with_ftape_raw_device+set}" = set; then
4478   withval="$with_ftape_raw_device"
4479
4480         case "$withval" in
4481         "" | y | ye | yes | n | no)
4482             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&5
4483 echo "$as_me: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&2;}
4484    { (exit 1); exit 1; }; }
4485           ;;
4486         *) DEFAULT_RAW_TAPE_DEVICE="$withval"
4487           ;;
4488         esac
4489
4490 else
4491
4492         if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
4493             echo "$as_me:$LINENO: checking for raw ftape device" >&5
4494 echo $ECHO_N "checking for raw ftape device... $ECHO_C" >&6
4495                     raw_tape_dev=/dev/null
4496                                 for num in 3 2 1 0 ; do
4497                     td=/dev/rawft${num}
4498                     if test -r $td; then
4499                         raw_tape_dev=$td
4500                     fi
4501                 done
4502             DEFAULT_RAW_TAPE_DEVICE=$raw_tape_dev
4503             echo "$as_me:$LINENO: result: $DEFAULT_RAW_TAPE_DEVICE" >&5
4504 echo "${ECHO_T}$DEFAULT_RAW_TAPE_DEVICE" >&6
4505         fi
4506
4507
4508 fi;
4509
4510 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
4511     DEFAULT_RAW_TAPE_DEVICE=/dev/null
4512 fi
4513
4514
4515 cat >>confdefs.h <<_ACEOF
4516 #define DEFAULT_RAW_TAPE_DEVICE "$DEFAULT_RAW_TAPE_DEVICE"
4517 _ACEOF
4518
4519
4520
4521
4522 # Check whether --with-rew-tape or --without-rew-tape was given.
4523 if test "${with_rew_tape+set}" = set; then
4524   withval="$with_rew_tape"
4525      { { echo "$as_me:$LINENO: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&5
4526 echo "$as_me: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&2;}
4527    { (exit 1); exit 1; }; }
4528
4529 fi;
4530
4531
4532 # Check whether --with-norew-tape or --without-norew-tape was given.
4533 if test "${with_norew_tape+set}" = set; then
4534   withval="$with_norew_tape"
4535      { { echo "$as_me:$LINENO: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&5
4536 echo "$as_me: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&2;}
4537    { (exit 1); exit 1; }; }
4538
4539 fi;
4540
4541
4542 # Check whether --with-changer-device or --without-changer-device was given.
4543 if test "${with_changer_device+set}" = set; then
4544   withval="$with_changer_device"
4545
4546         case "$withval" in
4547         "" | y | ye | yes | n | no)
4548             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
4549 echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
4550    { (exit 1); exit 1; }; }
4551           ;;
4552         *) DEFAULT_CHANGER_DEVICE="$withval"
4553           ;;
4554         esac
4555
4556 else
4557
4558         if test -z "$DEFAULT_CHANGER_DEVICE" &&
4559            test -f /dev/ch0; then
4560             DEFAULT_CHANGER_DEVICE=/dev/ch0
4561         fi
4562
4563
4564 fi;
4565
4566 if test -z "$DEFAULT_CHANGER_DEVICE"; then
4567     DEFAULT_CHANGER_DEVICE=/dev/null
4568 fi
4569
4570
4571 cat >>confdefs.h <<_ACEOF
4572 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
4573 _ACEOF
4574
4575
4576
4577
4578 # Check whether --with-fqdn or --without-fqdn was given.
4579 if test "${with_fqdn+set}" = set; then
4580   withval="$with_fqdn"
4581   USE_FQDN=$withval
4582 else
4583   : ${USE_FQDN=no}
4584
4585 fi;
4586 case "$USE_FQDN" in
4587 n | no) : ;;
4588 y |  ye | yes)
4589 cat >>confdefs.h <<\_ACEOF
4590 #define USE_FQDN 1
4591 _ACEOF
4592
4593   ;;
4594 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-fqdn option." >&5
4595 echo "$as_me: error: *** You must not supply an argument to --with-fqdn option." >&2;}
4596    { (exit 1); exit 1; }; }
4597   ;;
4598 esac
4599
4600
4601 # Check whether --with-broken-fsf or --without-broken-fsf was given.
4602 if test "${with_broken_fsf+set}" = set; then
4603   withval="$with_broken_fsf"
4604   HAVE_BROKEN_FSF=$withval
4605 else
4606   : ${HAVE_BROKEN_FSF=no}
4607
4608 fi;
4609 case "$HAVE_BROKEN_FSF" in
4610 n | no) : ;;
4611 y |  ye | yes)
4612 cat >>confdefs.h <<\_ACEOF
4613 #define HAVE_BROKEN_FSF 1
4614 _ACEOF
4615
4616   ;;
4617 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-broken-fsf option." >&5
4618 echo "$as_me: error: *** You must not supply an argument to --with-broken-fsf option." >&2;}
4619    { (exit 1); exit 1; }; }
4620   ;;
4621 esac
4622
4623
4624 # Check whether --with-reuseports or --without-reuseports was given.
4625 if test "${with_reuseports+set}" = set; then
4626   withval="$with_reuseports"
4627    case "$withval" in
4628         y | ye | yes)
4629           REUSEADDR=no;;
4630         n | no)
4631           REUSEADDR=yes;;
4632         *)
4633           REUSEADDR=no;;
4634       esac
4635
4636 else
4637    REUSEADDR=yes;
4638 fi;
4639 case "$REUSEADDR" in
4640 n | no) :
4641     ;;
4642 y |  ye | yes)
4643
4644 cat >>confdefs.h <<\_ACEOF
4645 #define USE_REUSEADDR 1
4646 _ACEOF
4647
4648     ;;
4649 *)
4650     { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-reuseports option." >&5
4651 echo "$as_me: error: *** You must not supply an argument to --with-reuseports option." >&2;}
4652    { (exit 1); exit 1; }; }
4653     ;;
4654 esac
4655
4656
4657 # Check whether --with-gnutar or --without-gnutar was given.
4658 if test "${with_gnutar+set}" = set; then
4659   withval="$with_gnutar"
4660
4661         case "$withval" in
4662             /*) GNUTAR="$withval";;
4663             y|ye|yes) :;;
4664             n|no) GNUTAR=;;
4665             *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
4666 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
4667    { (exit 1); exit 1; }; };;
4668         esac
4669
4670
4671 fi;
4672
4673
4674 # Check whether --with-smbclient or --without-smbclient was given.
4675 if test "${with_smbclient+set}" = set; then
4676   withval="$with_smbclient"
4677
4678         case "$withval" in
4679             /*) SAMBA_CLIENT="$withval";;
4680             y|ye|yes) :;;
4681             n|no) SAMBA_CLIENT=;;
4682             *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
4683 echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
4684    { (exit 1); exit 1; }; };;
4685         esac
4686
4687
4688 fi;
4689
4690
4691 # Check whether --with-samba-user or --without-samba-user was given.
4692 if test "${with_samba_user+set}" = set; then
4693   withval="$with_samba_user"
4694       { { echo "$as_me:$LINENO: error: *** The samba-user option was deprecated, the username go in the amandapass" >&5
4695 echo "$as_me: error: *** The samba-user option was deprecated, the username go in the amandapass" >&2;}
4696    { (exit 1); exit 1; }; }
4697
4698
4699 fi;
4700
4701
4702 # Check whether --with-gnutar-listdir or --without-gnutar-listdir was given.
4703 if test "${with_gnutar_listdir+set}" = set; then
4704   withval="$with_gnutar_listdir"
4705
4706         case "$withval" in
4707             n | no)             unset GNUTAR_LISTDIR ;;
4708             y | ye | yes)       : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists} ;;
4709             /*)                 GNUTAR_LISTDIR="$withval" ;;
4710             *)                  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar-listdir" >&5
4711 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar-listdir" >&2;}
4712    { (exit 1); exit 1; }; }
4713         esac
4714
4715 else
4716   : ${GNUTAR_LISTDIR="$localstatedir/amanda/gnutar-lists"}
4717
4718 fi;
4719 if test "$GNUTAR_LISTDIR"; then
4720     GNUTAR_LISTDIR=`(
4721         test "x$prefix" = xNONE && prefix=$ac_default_prefix
4722         eval echo "$GNUTAR_LISTDIR"
4723     )`
4724
4725 cat >>confdefs.h <<_ACEOF
4726 #define GNUTAR_LISTED_INCREMENTAL_DIR "$GNUTAR_LISTDIR"
4727 _ACEOF
4728
4729     GNUTAR_LISTED_INCREMENTAL_DIRX=$GNUTAR_LISTDIR
4730 else
4731     GNUTAR_LISTED_INCREMENTAL_DIRX=
4732 fi
4733
4734
4735
4736 # Check whether --with-gnutar-listed-incremental or --without-gnutar-listed-incremental was given.
4737 if test "${with_gnutar_listed_incremental+set}" = set; then
4738   withval="$with_gnutar_listed_incremental"
4739       { { echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&5
4740 echo "$as_me: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&2;}
4741    { (exit 1); exit 1; }; }
4742
4743
4744 fi;
4745 GNUTAR_LISTED_INCREMENTAL_DIR=$GNUTAR_LISTDIR
4746
4747
4748
4749 # Check whether --with-bsd-security or --without-bsd-security was given.
4750 if test "${with_bsd_security+set}" = set; then
4751   withval="$with_bsd_security"
4752   BSD_SECURITY=$withval
4753 else
4754   : ${BSD_SECURITY=yes}
4755
4756 fi;
4757 case "$BSD_SECURITY" in
4758 n | no) : ;;
4759 y |  ye | yes)
4760 cat >>confdefs.h <<\_ACEOF
4761 #define BSD_SECURITY 1
4762 _ACEOF
4763
4764   ;;
4765 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsd-security option." >&5
4766 echo "$as_me: error: *** You must not supply an argument to --with-bsd-security option." >&2;}
4767    { (exit 1); exit 1; }; }
4768   ;;
4769 esac
4770
4771
4772 # Check whether --with-amandahosts or --without-amandahosts was given.
4773 if test "${with_amandahosts+set}" = set; then
4774   withval="$with_amandahosts"
4775   USE_AMANDAHOSTS=$withval
4776 else
4777   : ${USE_AMANDAHOSTS=yes}
4778
4779 fi;
4780 case "$USE_AMANDAHOSTS" in
4781 n | no) : ;;
4782 y |  ye | yes) :
4783   case "$BSD_SECURITY" in
4784   y | ye | yes)
4785 cat >>confdefs.h <<\_ACEOF
4786 #define USE_AMANDAHOSTS 1
4787 _ACEOF
4788
4789     ;;
4790   esac
4791   ;;
4792 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amandahosts option." >&5
4793 echo "$as_me: error: *** You must not supply an argument to --with-amandahosts option." >&2;}
4794    { (exit 1); exit 1; }; }
4795   ;;
4796 esac
4797
4798
4799
4800 # Check whether --with-dbmalloc or --without-dbmalloc was given.
4801 if test "${with_dbmalloc+set}" = set; then
4802   withval="$with_dbmalloc"
4803   DBMALLOC="$withval"
4804 else
4805   : ${DBMALLOC=no}
4806
4807 fi;
4808
4809 case "$DBMALLOC" in
4810 n | no)
4811     DBMALLOCCFLAGS=""
4812     DBMALLOCLIBS=""
4813     ;;
4814 *)
4815
4816 echo "$as_me:$LINENO: checking for malloc in -ldbmalloc" >&5
4817 echo $ECHO_N "checking for malloc in -ldbmalloc... $ECHO_C" >&6
4818 if test "${ac_cv_lib_dbmalloc_malloc+set}" = set; then
4819   echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4821   ac_check_lib_save_LIBS=$LIBS
4822 LIBS="-ldbmalloc  $LIBS"
4823 cat >conftest.$ac_ext <<_ACEOF
4824 /* confdefs.h.  */
4825 _ACEOF
4826 cat confdefs.h >>conftest.$ac_ext
4827 cat >>conftest.$ac_ext <<_ACEOF
4828 /* end confdefs.h.  */
4829
4830 /* Override any gcc2 internal prototype to avoid an error.  */
4831 #ifdef __cplusplus
4832 extern "C"
4833 #endif
4834 /* We use char because int might match the return type of a gcc2
4835    builtin and then its argument prototype would still apply.  */
4836 char malloc ();
4837 int
4838 main ()
4839 {
4840 malloc ();
4841   ;
4842   return 0;
4843 }
4844 _ACEOF
4845 rm -f conftest.$ac_objext conftest$ac_exeext
4846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4847   (eval $ac_link) 2>conftest.er1
4848   ac_status=$?
4849   grep -v '^ *+' conftest.er1 >conftest.err
4850   rm -f conftest.er1
4851   cat conftest.err >&5
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); } &&
4854          { ac_try='test -z "$ac_c_werror_flag"
4855                          || test ! -s conftest.err'
4856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857   (eval $ac_try) 2>&5
4858   ac_status=$?
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); }; } &&
4861          { ac_try='test -s conftest$ac_exeext'
4862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863   (eval $ac_try) 2>&5
4864   ac_status=$?
4865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866   (exit $ac_status); }; }; then
4867   ac_cv_lib_dbmalloc_malloc=yes
4868 else
4869   echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4871
4872 ac_cv_lib_dbmalloc_malloc=no
4873 fi
4874 rm -f conftest.err conftest.$ac_objext \
4875       conftest$ac_exeext conftest.$ac_ext
4876 LIBS=$ac_check_lib_save_LIBS
4877 fi
4878 echo "$as_me:$LINENO: result: $ac_cv_lib_dbmalloc_malloc" >&5
4879 echo "${ECHO_T}$ac_cv_lib_dbmalloc_malloc" >&6
4880 if test $ac_cv_lib_dbmalloc_malloc = yes; then
4881   cat >>confdefs.h <<_ACEOF
4882 #define HAVE_LIBDBMALLOC 1
4883 _ACEOF
4884
4885   LIBS="-ldbmalloc $LIBS"
4886
4887 fi
4888
4889     if test "x$ac_cv_lib_dbmalloc_malloc" != "xyes"; then
4890       { echo "$as_me:$LINENO: WARNING: *** dbmalloc library not found - no malloc debugging support!" >&5
4891 echo "$as_me: WARNING: *** dbmalloc library not found - no malloc debugging support!" >&2;}
4892       DBMALLOCCFLAGS=""
4893       DBMALLOCLIBS=""
4894     else
4895       DBMALLOCCFLAGS="-I$DBMALLOC -DUSE_DBMALLOC"
4896       DBMALLOCLIBS="-L$DBMALLOC -ldbmalloc"
4897     fi
4898     ;;
4899 esac
4900
4901
4902 : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
4903
4904
4905 # Check whether --with-krb4-security or --without-krb4-security was given.
4906 if test "${with_krb4_security+set}" = set; then
4907   withval="$with_krb4_security"
4908   KRB4_SECURITY="$withval"
4909 else
4910   : ${KRB4_SECURITY=no}
4911
4912 fi;
4913
4914 case "$KRB4_SECURITY" in
4915 n | no) KRB4_SECURITY=no ;;
4916 y | ye | yes) : ;;
4917 *) KRB4_SPOTS="$KRB4_SECURITY"
4918    KRB4_SECURITY=yes
4919    ;;
4920 esac
4921
4922 echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
4923 echo $ECHO_N "checking for Kerberos and Amanda kerberos4 bits... $ECHO_C" >&6
4924 if test "x${KRB4_SECURITY}" = xyes -a -f  ${srcdir-.}/common-src/krb4-security.c ; then
4925     for dir in $KRB4_SPOTS; do
4926         if test -f ${dir}/lib/libkrb.a -a -f ${dir}/lib/libdes.a ; then
4927             #
4928             # This is the original Kerberos 4.
4929             #
4930             echo "$as_me:$LINENO: result: found in $dir" >&5
4931 echo "${ECHO_T}found in $dir" >&6
4932             KRB4_SECURITY=yes
4933
4934 cat >>confdefs.h <<\_ACEOF
4935 #define KRB4_SECURITY 1
4936 _ACEOF
4937
4938             if test -d $dir/include/kerberosIV ; then
4939                 #
4940                 # This handles BSD/OS.
4941                 #
4942                 KRB4INCLUDES=-I$dir/include/kerberosIV
4943             else
4944                 KRB4INCLUDES=-I$dir/include
4945             fi
4946             KRB4LDFLAGS=-L$dir/lib
4947             KRB4LIBS="-lkrb -ldes"
4948             if test -f ${dir}/lib/libcom_err.a; then
4949                 KRB4LIBS="$KRB4LIBS -lcom_err"
4950             fi
4951             break
4952         elif test -f ${dir}/lib/libkrb4.a &&
4953              test -f ${dir}/lib/libcrypto.a &&
4954              test -f ${dir}/lib/libdes425.a ; then
4955             #
4956             # This is Kerberos 5 with Kerberos 4 back-support.
4957             #
4958             echo "$as_me:$LINENO: result: found in $dir" >&5
4959 echo "${ECHO_T}found in $dir" >&6
4960             KRB4_SECURITY=yes
4961
4962 cat >>confdefs.h <<\_ACEOF
4963 #define KRB4_SECURITY 1
4964 _ACEOF
4965
4966             KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
4967             KRB4LDFLAGS=-L$dir/lib
4968             if test -f ${dir}/lib/libkrb5.a &&
4969                test -f ${dir}/lib/libcom_err.a; then
4970                 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
4971             else
4972                 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
4973             fi
4974             break
4975         fi
4976     done
4977
4978     if test "x$KRB4LDFLAGS" = "x" ; then
4979         echo "$as_me:$LINENO: result: no libraries found" >&5
4980 echo "${ECHO_T}no libraries found" >&6
4981     fi
4982 else
4983     echo "$as_me:$LINENO: result: no" >&5
4984 echo "${ECHO_T}no" >&6
4985 fi
4986
4987
4988 # Check whether --with-rsh-security or --without-rsh-security was given.
4989 if test "${with_rsh_security+set}" = set; then
4990   withval="$with_rsh_security"
4991   RSH_SECURITY=$withval
4992 else
4993   : ${RSH_SECURITY=yes}
4994
4995 fi;
4996 case "$RSH_SECURITY" in
4997 n | no) : ;;
4998 y |  ye | yes)
4999 cat >>confdefs.h <<\_ACEOF
5000 #define RSH_SECURITY 1
5001 _ACEOF
5002
5003   ;;
5004 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-rsh-security option." >&5
5005 echo "$as_me: error: *** You must not supply an argument the to --with-rsh-security option." >&2;}
5006    { (exit 1); exit 1; }; }
5007   ;;
5008 esac
5009
5010
5011 # Check whether --with-ssh-security or --without-ssh-security was given.
5012 if test "${with_ssh_security+set}" = set; then
5013   withval="$with_ssh_security"
5014   SSH_SECURITY=$withval
5015 else
5016   : ${SSH_SECURITY=no}
5017
5018 fi;
5019 case "$SSH_SECURITY" in
5020 n | no) : ;;
5021 y |  ye | yes)
5022 cat >>confdefs.h <<\_ACEOF
5023 #define SSH_SECURITY 1
5024 _ACEOF
5025
5026                SSH_SECURITY_SET=true
5027   ;;
5028 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-ssh-security option." >&5
5029 echo "$as_me: error: *** You must not supply an argument the to --with-ssh-security option." >&2;}
5030    { (exit 1); exit 1; }; }
5031   ;;
5032 esac
5033
5034
5035 # Check whether --with-bsdtcp-security or --without-bsdtcp-security was given.
5036 if test "${with_bsdtcp_security+set}" = set; then
5037   withval="$with_bsdtcp_security"
5038   BSDTCP_SECURITY=$withval
5039 else
5040   : ${BSDTCP_SECURITY=yes}
5041
5042 fi;
5043 case "$BSDTCP_SECURITY" in
5044 n | no) : ;;
5045 y |  ye | yes)
5046 cat >>confdefs.h <<\_ACEOF
5047 #define BSDTCP_SECURITY 1
5048 _ACEOF
5049
5050                BSDTCP_SECURITY_SET=true
5051   ;;
5052 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-bsdtcp-security option." >&5
5053 echo "$as_me: error: *** You must not supply an argument the to --with-bsdtcp-security option." >&2;}
5054    { (exit 1); exit 1; }; }
5055   ;;
5056 esac
5057
5058
5059 # Check whether --with-bsdudp-security or --without-bsdudp-security was given.
5060 if test "${with_bsdudp_security+set}" = set; then
5061   withval="$with_bsdudp_security"
5062   BSDUDP_SECURITY=$withval
5063 else
5064   : ${BSDUDP_SECURITY=yes}
5065
5066 fi;
5067 case "$BSDUDP_SECURITY" in
5068 n | no) : ;;
5069 y |  ye | yes)
5070 cat >>confdefs.h <<\_ACEOF
5071 #define BSDUDP_SECURITY 1
5072 _ACEOF
5073
5074                BSDUDP_SECURITY_SET=true
5075   ;;
5076 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-bsdudp-security option." >&5
5077 echo "$as_me: error: *** You must not supply an argument the to --with-bsdudp-security option." >&2;}
5078    { (exit 1); exit 1; }; }
5079   ;;
5080 esac
5081
5082
5083 # Check whether --with-server-principal or --without-server-principal was given.
5084 if test "${with_server_principal+set}" = set; then
5085   withval="$with_server_principal"
5086
5087         case "$withval" in
5088         "" | y | ye | yes | n | no)
5089             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
5090 echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
5091    { (exit 1); exit 1; }; }
5092           ;;
5093         *)
5094             SERVER_HOST_PRINCIPLE="$withval"
5095           ;;
5096         esac
5097
5098 else
5099   : ${SERVER_HOST_PRINCIPLE="amanda"}
5100
5101 fi;
5102
5103 cat >>confdefs.h <<_ACEOF
5104 #define SERVER_HOST_PRINCIPLE "$SERVER_HOST_PRINCIPLE"
5105 _ACEOF
5106
5107
5108
5109 # Check whether --with-server-instance or --without-server-instance was given.
5110 if test "${with_server_instance+set}" = set; then
5111   withval="$with_server_instance"
5112
5113         case "$withval" in
5114         "" | y | ye | yes | n | no)
5115             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
5116 echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
5117    { (exit 1); exit 1; }; }
5118           ;;
5119         *) SERVER_HOST_INSTANCE="$withval"
5120           ;;
5121         esac
5122
5123 else
5124   : ${SERVER_HOST_INSTANCE="amanda"}
5125
5126 fi;
5127
5128 cat >>confdefs.h <<_ACEOF
5129 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
5130 _ACEOF
5131
5132
5133
5134 # Check whether --with-server-keyfile or --without-server-keyfile was given.
5135 if test "${with_server_keyfile+set}" = set; then
5136   withval="$with_server_keyfile"
5137
5138         case "$withval" in
5139         "" | y | ye | yes | n | no)
5140             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
5141 echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
5142    { (exit 1); exit 1; }; }
5143           ;;
5144         *) SERVER_HOST_KEY_FILE="$withval"
5145           ;;
5146         esac
5147
5148 else
5149   : ${SERVER_HOST_KEY_FILE="/.amanda"}
5150
5151 fi;
5152
5153 cat >>confdefs.h <<_ACEOF
5154 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
5155 _ACEOF
5156
5157
5158
5159 # Check whether --with-client-principal or --without-client-principal was given.
5160 if test "${with_client_principal+set}" = set; then
5161   withval="$with_client_principal"
5162
5163         case "$withval" in
5164         "" | y | ye | yes | n | no)
5165             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
5166 echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
5167    { (exit 1); exit 1; }; }
5168           ;;
5169         *) CLIENT_HOST_PRINCIPLE="$withval"
5170           ;;
5171         esac
5172
5173 else
5174   : ${CLIENT_HOST_PRINCIPLE="rcmd"}
5175
5176 fi;
5177
5178 cat >>confdefs.h <<_ACEOF
5179 #define CLIENT_HOST_PRINCIPLE "$CLIENT_HOST_PRINCIPLE"
5180 _ACEOF
5181
5182
5183
5184 # Check whether --with-client-instance or --without-client-instance was given.
5185 if test "${with_client_instance+set}" = set; then
5186   withval="$with_client_instance"
5187
5188         case "$withval" in
5189         "" | y | ye | yes | n | no)
5190             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
5191 echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
5192    { (exit 1); exit 1; }; }
5193           ;;
5194         *) CLIENT_HOST_INSTANCE="$withval"
5195           ;;
5196         esac
5197
5198 else
5199   : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
5200
5201 fi;
5202
5203 cat >>confdefs.h <<_ACEOF
5204 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
5205 _ACEOF
5206
5207
5208
5209 # Check whether --with-client-keyfile or --without-client-keyfile was given.
5210 if test "${with_client_keyfile+set}" = set; then
5211   withval="$with_client_keyfile"
5212
5213         case "$withval" in
5214         "" | y | ye | yes | n | no)
5215             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
5216 echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
5217    { (exit 1); exit 1; }; }
5218           ;;
5219         *) CLIENT_HOST_KEY_FILE="$withval"
5220           ;;
5221         esac
5222
5223 else
5224   : ${CLIENT_HOST_KEY_FILE=KEYFILE}
5225
5226 fi;
5227
5228 # Assume it's either KEYFILE (defined in krb.h), or a string filename...
5229 if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
5230   CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
5231 fi
5232
5233
5234 cat >>confdefs.h <<_ACEOF
5235 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
5236 _ACEOF
5237
5238
5239
5240 # Check whether --with-ticket-lifetime or --without-ticket-lifetime was given.
5241 if test "${with_ticket_lifetime+set}" = set; then
5242   withval="$with_ticket_lifetime"
5243
5244         case "$withval" in
5245         "" | y | ye | yes | n | no)
5246             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
5247 echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
5248    { (exit 1); exit 1; }; }
5249           ;;
5250         *) TICKET_LIFETIME="$withval"
5251           ;;
5252         esac
5253
5254 else
5255   : ${TICKET_LIFETIME=128}
5256
5257 fi;
5258
5259 cat >>confdefs.h <<_ACEOF
5260 #define TICKET_LIFETIME $TICKET_LIFETIME
5261 _ACEOF
5262
5263
5264
5265 : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
5266
5267
5268 # Check whether --with-krb5-security or --without-krb5-security was given.
5269 if test "${with_krb5_security+set}" = set; then
5270   withval="$with_krb5_security"
5271   KRB5_SECURITY="$withval"
5272 else
5273   : ${KRB5_SECURITY=no}
5274
5275 fi;
5276
5277 case "$KRB5_SECURITY" in
5278 n | no) KRB5_SECURITY=no
5279         KRB5_SPOTS=""
5280         ;;
5281 y | ye | yes) : ;;
5282 *) KRB5_SPOTS="$KRB5_SECURITY"
5283    KRB5_SECURITY=yes
5284    ;;
5285 esac
5286
5287 # if found, force the static versions of these libs (.a) by linking directly
5288 # with the .a files.  I don't know how to get -R dependancies checked
5289 # in autoconf at this time. -kashmir
5290 echo "$as_me:$LINENO: checking for Kerberos V" >&5
5291 echo $ECHO_N "checking for Kerberos V... $ECHO_C" >&6
5292 KRB5_DIR_FOUND=""
5293 KRB5_CFLAGS=""
5294 for dir in $KRB5_SPOTS; do
5295   for lib in lib lib64; do
5296     k5libdir=${dir}/${lib}
5297     if test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libgssapi_krb5.a -a -f ${k5libdir}/libcom_err.a; then
5298         if test -f ${k5libdir}/libk5crypto.a; then
5299             K5CRYPTO=${k5libdir}/libk5crypto.a
5300         elif test -f ${k5libdir}/libcrypto.a; then
5301             K5CRYPTO=${k5libdir}/libcrypto.a
5302         else
5303             K5CRYPTO=""
5304         fi
5305         if test -f ${k5libdir}/libkrb5support.a; then
5306             K5SUPPORT=${k5libdir}/libkrb5support.a
5307         else
5308             K5SUPPORT=""
5309         fi
5310         KRB5_DIR_FOUND=$dir
5311         KRB5LIBS="${k5libdir}/libgssapi_krb5.a ${k5libdir}/libkrb5.a $K5CRYPTO $K5SUPPORT ${k5libdir}/libcom_err.a"
5312         KRB5CFLAGS=""
5313         break
5314     elif test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libasn1.a -a -f ${k5libdir}/libgssapi.a; then
5315         KRB5_DIR_FOUND=$dir
5316         KRB5LIBS="${k5libdir}/libgssapi.a ${k5libdir}/libkrb5.a ${k5libdir}/libasn1.a"
5317         KRB5_CFLAGS="-DKRB5_HEIMDAL_INCLUDES"
5318         break
5319     fi
5320   done
5321 done
5322
5323 if test "$KRB5_DIR_FOUND"; then
5324         echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
5325 echo "${ECHO_T}found in $KRB5_DIR_FOUND" >&6
5326         KRB5_SECURITY=yes
5327
5328 cat >>confdefs.h <<\_ACEOF
5329 #define KRB5_SECURITY 1
5330 _ACEOF
5331
5332         #
5333         # some OS's, such as NetBSD, stick krb5 includes out of the way...
5334         # should probably just use autoconf to look for various include
5335         # options and set them, but don't quite want to do that until I've
5336         # dug into it a bit more.
5337         #
5338         if test -d "$KRB5_DIR_FOUND/krb5" ; then
5339                 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include/krb5"
5340         else
5341                 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include"
5342         fi
5343         if test "$KRB5_CFLAGS" ; then
5344                 KRB5INCLUDES="$KRB5INCLUDES $KRB5_CFLAGS"
5345         fi
5346
5347 echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
5348 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6
5349 if test "${ac_cv_lib_krb5support_main+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   ac_check_lib_save_LIBS=$LIBS
5353 LIBS="-lkrb5support  $LIBS"
5354 cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h.  */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h.  */
5360
5361
5362 int
5363 main ()
5364 {
5365 main ();
5366   ;
5367   return 0;
5368 }
5369 _ACEOF
5370 rm -f conftest.$ac_objext conftest$ac_exeext
5371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5372   (eval $ac_link) 2>conftest.er1
5373   ac_status=$?
5374   grep -v '^ *+' conftest.er1 >conftest.err
5375   rm -f conftest.er1
5376   cat conftest.err >&5
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); } &&
5379          { ac_try='test -z "$ac_c_werror_flag"
5380                          || test ! -s conftest.err'
5381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382   (eval $ac_try) 2>&5
5383   ac_status=$?
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); }; } &&
5386          { ac_try='test -s conftest$ac_exeext'
5387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388   (eval $ac_try) 2>&5
5389   ac_status=$?
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); }; }; then
5392   ac_cv_lib_krb5support_main=yes
5393 else
5394   echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5396
5397 ac_cv_lib_krb5support_main=no
5398 fi
5399 rm -f conftest.err conftest.$ac_objext \
5400       conftest$ac_exeext conftest.$ac_ext
5401 LIBS=$ac_check_lib_save_LIBS
5402 fi
5403 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
5404 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6
5405 if test $ac_cv_lib_krb5support_main = yes; then
5406   cat >>confdefs.h <<_ACEOF
5407 #define HAVE_LIBKRB5SUPPORT 1
5408 _ACEOF
5409
5410   LIBS="-lkrb5support $LIBS"
5411
5412 fi
5413
5414         KRB5LDFLAGS=-L$k5libdir
5415         break
5416 fi
5417
5418 if test "x$KRB5LDFLAGS" = "x" ; then
5419     echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
5420 echo "${ECHO_T}no krb5 system libraries found" >&6
5421 fi
5422
5423
5424
5425 # Check whether --with-low-tcpportrange or --without-low-tcpportrange was given.
5426 if test "${with_low_tcpportrange+set}" = set; then
5427   withval="$with_low_tcpportrange"
5428
5429         LOW_TCPPORTRANGE="$withval"
5430
5431
5432 fi;
5433
5434 if test x"${LOW_TCPPORTRANGE+set}" = x"set"; then
5435     if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
5436         { { echo "$as_me:$LINENO: error: *** --with-low-tcpportrange requires two comma-separated positive numbers" >&5
5437 echo "$as_me: error: *** --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
5438    { (exit 1); exit 1; }; }
5439     fi
5440     min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
5441     max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
5442     if test $min_low_tcp_port -gt $max_low_tcp_port; then
5443         { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
5444 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
5445    { (exit 1); exit 1; }; }
5446     fi
5447     if test $min_low_tcp_port -lt 512; then
5448         { echo "$as_me:$LINENO: WARNING: *** the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
5449 echo "$as_me: WARNING: *** the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
5450     fi
5451     if test $max_low_tcp_port -ge 1024; then
5452         { echo "$as_me:$LINENO: WARNING: *** the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
5453 echo "$as_me: WARNING: *** the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
5454     fi
5455
5456 cat >>confdefs.h <<_ACEOF
5457 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
5458 _ACEOF
5459
5460 fi
5461
5462
5463 # Check whether --with-tcpportrange or --without-tcpportrange was given.
5464 if test "${with_tcpportrange+set}" = set; then
5465   withval="$with_tcpportrange"
5466
5467         TCPPORTRANGE="$withval"
5468
5469
5470 fi;
5471 if test x"${TCPPORTRANGE+set}" = x"set"; then
5472     if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
5473         { { echo "$as_me:$LINENO: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&5
5474 echo "$as_me: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&2;}
5475    { (exit 1); exit 1; }; }
5476     fi
5477     min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
5478     max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
5479     if test $min_tcp_port -gt $max_tcp_port; then
5480         { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&5
5481 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
5482    { (exit 1); exit 1; }; }
5483     fi
5484     if test $min_tcp_port -lt 1024; then
5485         { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
5486 echo "$as_me: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
5487     fi
5488     if test $max_tcp_port -ge 65536; then
5489         { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&5
5490 echo "$as_me: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
5491     fi
5492
5493 cat >>confdefs.h <<_ACEOF
5494 #define TCPPORTRANGE $TCPPORTRANGE
5495 _ACEOF
5496
5497 fi
5498
5499
5500 # Check whether --with-udpportrange or --without-udpportrange was given.
5501 if test "${with_udpportrange+set}" = set; then
5502   withval="$with_udpportrange"
5503
5504         UDPPORTRANGE="$withval"
5505
5506
5507 fi;
5508 if test x"${UDPPORTRANGE+set}" = x"set"; then
5509     if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
5510         { { echo "$as_me:$LINENO: error: *** --with-udpportrange requires two comma-separated positive numbers" >&5
5511 echo "$as_me: error: *** --with-udpportrange requires two comma-separated positive numbers" >&2;}
5512    { (exit 1); exit 1; }; }
5513     fi
5514     min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
5515     max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
5516     if test $min_udp_port -gt $max_udp_port; then
5517         { { echo "$as_me:$LINENO: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&5
5518 echo "$as_me: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
5519    { (exit 1); exit 1; }; }
5520     fi
5521     if test $max_udp_port -ge 1024; then
5522         { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&5
5523 echo "$as_me: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&2;}
5524     fi
5525     if test $min_udp_port -le 0; then
5526         { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&5
5527 echo "$as_me: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
5528     fi
5529
5530 cat >>confdefs.h <<_ACEOF
5531 #define UDPPORTRANGE $UDPPORTRANGE
5532 _ACEOF
5533
5534 fi
5535
5536
5537 # Check whether --with-maxtapeblocksize or --without-maxtapeblocksize was given.
5538 if test "${with_maxtapeblocksize+set}" = set; then
5539   withval="$with_maxtapeblocksize"
5540
5541         MAXTAPEBLOCKSIZE="$withval"
5542
5543 else
5544   : ${MAXTAPEBLOCKSIZE=32}
5545
5546 fi;
5547
5548
5549 cat >>confdefs.h <<_ACEOF
5550 #define MAX_TAPE_BLOCK_KB ($MAXTAPEBLOCKSIZE)
5551 _ACEOF
5552
5553
5554
5555
5556 # Check whether --with-db or --without-db was given.
5557 if test "${with_db+set}" = set; then
5558   withval="$with_db"
5559
5560         case "$withval" in
5561         "" | y | ye | yes | n | no)
5562             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-db option." >&5
5563 echo "$as_me: error: *** You must supply an argument to the --with-db option." >&2;}
5564    { (exit 1); exit 1; }; }
5565           ;;
5566         *) DB_STYLE="$withval"
5567           ;;
5568         esac
5569
5570
5571 fi;
5572 if test "$DB_STYLE"; then
5573     case "$DB_STYLE" in
5574         db | dbm | gdbm | ndbm | text)  ;;
5575         *)
5576             { { echo "$as_me:$LINENO: error: *** Unknown argument $DB_STYLE given to --with-db.  Choose from db, dbm, gdbm, ndbm, text." >&5
5577 echo "$as_me: error: *** Unknown argument $DB_STYLE given to --with-db.  Choose from db, dbm, gdbm, ndbm, text." >&2;}
5578    { (exit 1); exit 1; }; }
5579             DB_STYLE=
5580             ;;
5581     esac
5582 fi
5583
5584
5585 # Check whether --with-mmap or --without-mmap was given.
5586 if test "${with_mmap+set}" = set; then
5587   withval="$with_mmap"
5588   FORCE_MMAP=$withval
5589 else
5590   : ${FORCE_MMAP=no}
5591
5592 fi;
5593 case "$FORCE_MMAP" in
5594 y | ye | yes | n | no) : ;;
5595 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
5596 echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
5597    { (exit 1); exit 1; }; }
5598   ;;
5599 esac
5600
5601
5602 # Check whether --with-buffered-dump or --without-buffered-dump was given.
5603 if test "${with_buffered_dump+set}" = set; then
5604   withval="$with_buffered_dump"
5605   DUMPER_SOCKET_BUFFERING=$withval
5606 else
5607   : ${DUMPER_SOCKET_BUFFERING=no}
5608
5609 fi;
5610 case "$DUMPER_SOCKET_BUFFERING" in
5611 n | no) :
5612   ;;
5613 y | ye | yes)
5614 cat >>confdefs.h <<\_ACEOF
5615 #define DUMPER_SOCKET_BUFFERING 1
5616 _ACEOF
5617
5618   ;;
5619 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-buffered-dump." >&5
5620 echo "$as_me: error: *** You must not supply an argument to --with-buffered-dump." >&2;}
5621    { (exit 1); exit 1; }; }
5622   ;;
5623 esac
5624
5625
5626 # Check whether --with-assertions or --without-assertions was given.
5627 if test "${with_assertions+set}" = set; then
5628   withval="$with_assertions"
5629   ASSERTIONS="$withval"
5630 else
5631   : ${ASSERTIONS=no}
5632
5633 fi;
5634 case "$ASSERTIONS" in
5635 n | no) : ;;
5636 y |  ye | yes)
5637 cat >>confdefs.h <<\_ACEOF
5638 #define ASSERTIONS 1
5639 _ACEOF
5640
5641   ;;
5642 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
5643 echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
5644    { (exit 1); exit 1; }; }
5645   ;;
5646 esac
5647
5648
5649 # Check whether --with-tmpdir or --without-tmpdir was given.
5650 if test "${with_tmpdir+set}" = set; then
5651   withval="$with_tmpdir"
5652   tmpdir="$withval"
5653 else
5654   : ${tmpdir=yes}
5655
5656 fi;
5657 tmpdir=`(
5658     test "x$prefix" = xNONE && prefix=$ac_default_prefix
5659     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
5660     eval echo "$tmpdir"
5661 )`
5662 case "$tmpdir" in
5663 n | no) { { echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
5664 echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
5665    { (exit 1); exit 1; }; };;
5666 y |  ye | yes)
5667         AMANDA_TMPDIR="/tmp/amanda";;
5668 /*)
5669         AMANDA_TMPDIR="$tmpdir";;
5670 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-tmpdir option." >&5
5671 echo "$as_me: error: *** You must supply a full pathname to --with-tmpdir option." >&2;}
5672    { (exit 1); exit 1; }; };;
5673 esac
5674
5675 cat >>confdefs.h <<_ACEOF
5676 #define AMANDA_TMPDIR "$AMANDA_TMPDIR"
5677 _ACEOF
5678
5679
5680
5681
5682 # Check whether --with-debugging or --without-debugging was given.
5683 if test "${with_debugging+set}" = set; then
5684   withval="$with_debugging"
5685   debugging="$withval"
5686 else
5687   : ${debugging=yes}
5688
5689 fi;
5690 debugging=`(
5691     test "x$prefix" = xNONE && prefix=$ac_default_prefix
5692     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
5693     eval echo "$debugging"
5694 )`
5695 case "$debugging" in
5696 n | no) AMANDA_DBGDIR="";;
5697 y |  ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
5698 /*) AMANDA_DBGDIR="$debugging";;
5699 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-debugging option." >&5
5700 echo "$as_me: error: *** You must supply a full pathname to --with-debugging option." >&2;}
5701    { (exit 1); exit 1; }; }
5702   ;;
5703 esac
5704 case "$AMANDA_DBGDIR" in
5705 "") :;;
5706 *)
5707 cat >>confdefs.h <<\_ACEOF
5708 #define DEBUG_CODE 1
5709 _ACEOF
5710
5711
5712 cat >>confdefs.h <<_ACEOF
5713 #define AMANDA_DBGDIR "$AMANDA_DBGDIR"
5714 _ACEOF
5715
5716    ;;
5717 esac
5718
5719
5720 # Check whether --with-debug_days or --without-debug_days was given.
5721 if test "${with_debug_days+set}" = set; then
5722   withval="$with_debug_days"
5723   debug_days="$withval"
5724 else
5725   : ${debug_days=4}
5726
5727 fi;
5728 case "$debug_days" in
5729 n | no) AMANDA_DEBUG_DAYS=0 ;;
5730 y |  ye | yes) AMANDA_DEBUG_DAYS=4 ;;
5731 [0-9] | [0-9][0-9] | [0-9][0-9][0-9]) AMANDA_DEBUG_DAYS="$debug_days" ;;
5732 *) { { echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
5733 echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
5734    { (exit 1); exit 1; }; }
5735   ;;
5736 esac
5737
5738 cat >>confdefs.h <<_ACEOF
5739 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
5740 _ACEOF
5741
5742
5743
5744
5745 # Check whether --with-testing or --without-testing was given.
5746 if test "${with_testing+set}" = set; then
5747   withval="$with_testing"
5748   TESTING="$withval"
5749 else
5750   : ${TESTING=no}
5751
5752 fi;
5753 case "$TESTING" in
5754 n | no) SERVICE_SUFFIX="";;
5755 y |  ye | yes) SERVICE_SUFFIX="-test";;
5756 *) SERVICE_SUFFIX="-$TESTING";;
5757 esac
5758 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
5759 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
5760
5761
5762 cat >>confdefs.h <<_ACEOF
5763 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
5764 _ACEOF
5765
5766
5767 cat >>confdefs.h <<_ACEOF
5768 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
5769 _ACEOF
5770
5771
5772 cat >>confdefs.h <<_ACEOF
5773 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
5774 _ACEOF
5775
5776
5777 (
5778     test "x$prefix" = xNONE && prefix=$ac_default_prefix
5779     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
5780
5781     tmp=`eval echo "$bindir"`
5782
5783 cat >>confdefs.h <<_ACEOF
5784 #define bindir "$tmp"
5785 _ACEOF
5786
5787
5788     tmp=`eval echo "$sbindir"`
5789
5790 cat >>confdefs.h <<_ACEOF
5791 #define sbindir "$tmp"
5792 _ACEOF
5793
5794
5795     tmp=`eval echo "$libexecdir"`
5796
5797 cat >>confdefs.h <<_ACEOF
5798 #define libexecdir "$tmp"
5799 _ACEOF
5800
5801
5802     tmp=`eval echo $mandir`
5803
5804 cat >>confdefs.h <<_ACEOF
5805 #define mandir "$tmp"
5806 _ACEOF
5807
5808 )
5809
5810 DUMP_PROGRAMS="ufsdump dump backup"
5811 GETCONF_LFS="LFS"
5812
5813 dump_returns_1=
5814 xenix_tapeio=
5815 case "$target" in
5816     *-dec-osf*)
5817
5818 cat >>confdefs.h <<\_ACEOF
5819 #define STATFS_OSF1 1
5820 _ACEOF
5821
5822                         ;;
5823     *-dg-*)
5824                         DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
5825                         : ${USE_RUNDUMP=yes}
5826                         dump_returns_1=yes
5827                         ;;
5828     *-netbsd*)
5829                         ;;
5830     *-freebsd*)
5831                         ;;
5832     *-openbsd*)
5833                         ;;
5834     *-hp-*)
5835                         MT_FILE_FLAG="-t"
5836                         GETCONF_LFS="XBS5_ILP32_OFFBIG"
5837                         case "$CC" in
5838                             *gcc*)
5839                                 AMANDA_CPPFLAGS="-D__STDC_EXT__ $AMANDA_CPPFLAGS"
5840                                 ;;
5841                             *cc*)
5842                                 AMANDA_CFLAGS="-Ae $AMANDA_CFLAGS"
5843                                 ;;
5844                         esac
5845                         ;;
5846   *-ibm-aix*)
5847                         GETCONF_LFS="XBS5_ILP32_OFFBIG"
5848                         DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
5849
5850 cat >>confdefs.h <<\_ACEOF
5851 #define AIX_TAPEIO 1
5852 _ACEOF
5853
5854
5855 cat >>confdefs.h <<\_ACEOF
5856 #define AIX_BACKUP 1
5857 _ACEOF
5858
5859                         ;;
5860   m88k-motorola-sysv4)
5861                         ;;
5862   *-nextstep3)
5863                         ;;
5864   *-pc-bsdi*)
5865                         ;;
5866   *-pc-linux-*)
5867                         ;;
5868   *-redhat-linux-*)
5869                         ;;
5870   x86_64-*-linux-*)
5871                         ;;
5872   alpha*-*-linux-*)
5873                         ;;
5874   sparc*-*-linux-*)
5875                         ;;
5876   powerpc-*-linux-*)
5877                         ;;
5878   *-sgi-irix3*)
5879                                                 CC=gcc
5880                         ;;
5881   *-sgi-irix4*)
5882                         ;;
5883   *-sgi-irix5*)
5884                         ;;
5885   *-sgi-irix6*)
5886                         ;;
5887   *-solaris2*)
5888                         ;;
5889   *-sun-sunos4.1*)
5890                         ;;
5891   *-ultrix*)
5892                         : ${USE_RUNDUMP=yes}
5893
5894 cat >>confdefs.h <<\_ACEOF
5895 #define STATFS_ULTRIX 1
5896 _ACEOF
5897
5898                         dump_returns_1=yes
5899                         ;;
5900   *-sysv4.2uw2*)
5901
5902 cat >>confdefs.h <<\_ACEOF
5903 #define UWARE_TAPEIO 1
5904 _ACEOF
5905
5906                         ;;
5907   *-sco3.2v4*)
5908                         DEV_PREFIX=/dev/
5909                         RDEV_PREFIX=/dev/
5910                         ;;
5911   *-sco3.2v5*)
5912                         xenix_tapeio=yes
5913
5914 cat >>confdefs.h <<\_ACEOF
5915 #define STATFS_SCO_OS5 1
5916 _ACEOF
5917
5918                         ;;
5919   i386-pc-isc4*)
5920                         xenix_tapeio=yes
5921                         ;;
5922   *-sni-sysv4)
5923                         ;;
5924   *-pc-cygwin)
5925
5926 cat >>confdefs.h <<\_ACEOF
5927 #define IGNORE_TAR_ERRORS 1
5928 _ACEOF
5929
5930                         # Cygwin needs PATH to find cygwin1.dll
5931
5932 cat >>confdefs.h <<\_ACEOF
5933 #define NEED_PATH_ENV 1
5934 _ACEOF
5935
5936
5937 cat >>confdefs.h <<\_ACEOF
5938 #define IGNORE_UID_CHECK 1
5939 _ACEOF
5940
5941
5942 cat >>confdefs.h <<\_ACEOF
5943 #define IGNORE_FSTAB 1
5944 _ACEOF
5945
5946
5947 cat >>confdefs.h <<\_ACEOF
5948 #define DONT_SUID_ROOT 1
5949 _ACEOF
5950
5951                         NEED_SETUID_CLIENT=false
5952                         NEED_RUNTIME_PSEUDO_RELOC=true
5953                         ;;
5954   *)
5955                         cat <<END
5956
5957 *****
5958 This machine, target type $target, is not known
5959 to be fully supported by this configure script.  If the
5960 installation of Amanda on this system succeeds or needed
5961 any patches, please email amanda-hackers@amanda.org with
5962 the patches or an indication of the sucess or failure of
5963 the Amanda installation on your system.
5964 *****
5965
5966 END
5967                 ;;
5968 esac
5969
5970 if test -n "$dump_returns_1"; then
5971
5972 cat >>confdefs.h <<\_ACEOF
5973 #define DUMP_RETURNS_1 1
5974 _ACEOF
5975
5976 fi
5977
5978 if test -n "$xenix_tapeio"; then
5979
5980 cat >>confdefs.h <<\_ACEOF
5981 #define XENIX_TAPEIO 1
5982 _ACEOF
5983
5984 fi
5985
5986 AMANDA_CFLAGS="$AMANDA_CFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCCFLAGS"
5987 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCINCLUDES"
5988 AMANDA_LDFLAGS="$AMANDA_LDFLAGS $KRB4LDFLAGS $KRB5LDFLAGS"
5989 AMANDA_LIBS="$KRB4LIBS $KRB5LIBS $DBMALLOCLIBS $AMANDA_LIBS"
5990 CFLAGS="$CFLAGS $AMANDA_CFLAGS"
5991 CPPFLAGS="$CPPFLAGS $AMANDA_CPPFLAGS"
5992 LDFLAGS="$LDFLAGS $AMANDA_LDFLAGS"
5993 LIBS="$AMANDA_LIBS $LIBS"
5994
5995
5996 : ${MT_FILE_FLAG="-f"}
5997
5998
5999 cat >>confdefs.h <<_ACEOF
6000 #define MT_FILE_FLAG "$MT_FILE_FLAG"
6001 _ACEOF
6002
6003
6004 ac_ext=c
6005 ac_cpp='$CPP $CPPFLAGS'
6006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6009 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6010 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6011 # On Suns, sometimes $CPP names a directory.
6012 if test -n "$CPP" && test -d "$CPP"; then
6013   CPP=
6014 fi
6015 if test -z "$CPP"; then
6016   if test "${ac_cv_prog_CPP+set}" = set; then
6017   echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019       # Double quotes because CPP needs to be expanded
6020     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6021     do
6022       ac_preproc_ok=false
6023 for ac_c_preproc_warn_flag in '' yes
6024 do
6025   # Use a header file that comes with gcc, so configuring glibc
6026   # with a fresh cross-compiler works.
6027   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6028   # <limits.h> exists even on freestanding compilers.
6029   # On the NeXT, cc -E runs the code through the compiler's parser,
6030   # not just through cpp. "Syntax error" is here to catch this case.
6031   cat >conftest.$ac_ext <<_ACEOF
6032 /* confdefs.h.  */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h.  */
6037 #ifdef __STDC__
6038 # include <limits.h>
6039 #else
6040 # include <assert.h>
6041 #endif
6042                      Syntax error
6043 _ACEOF
6044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6046   ac_status=$?
6047   grep -v '^ *+' conftest.er1 >conftest.err
6048   rm -f conftest.er1
6049   cat conftest.err >&5
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); } >/dev/null; then
6052   if test -s conftest.err; then
6053     ac_cpp_err=$ac_c_preproc_warn_flag
6054     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6055   else
6056     ac_cpp_err=
6057   fi
6058 else
6059   ac_cpp_err=yes
6060 fi
6061 if test -z "$ac_cpp_err"; then
6062   :
6063 else
6064   echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6066
6067   # Broken: fails on valid input.
6068 continue
6069 fi
6070 rm -f conftest.err conftest.$ac_ext
6071
6072   # OK, works on sane cases.  Now check whether non-existent headers
6073   # can be detected and how.
6074   cat >conftest.$ac_ext <<_ACEOF
6075 /* confdefs.h.  */
6076 _ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h.  */
6080 #include <ac_nonexistent.h>
6081 _ACEOF
6082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6083   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6084   ac_status=$?
6085   grep -v '^ *+' conftest.er1 >conftest.err
6086   rm -f conftest.er1
6087   cat conftest.err >&5
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); } >/dev/null; then
6090   if test -s conftest.err; then
6091     ac_cpp_err=$ac_c_preproc_warn_flag
6092     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6093   else
6094     ac_cpp_err=
6095   fi
6096 else
6097   ac_cpp_err=yes
6098 fi
6099 if test -z "$ac_cpp_err"; then
6100   # Broken: success on invalid input.
6101 continue
6102 else
6103   echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6105
6106   # Passes both tests.
6107 ac_preproc_ok=:
6108 break
6109 fi
6110 rm -f conftest.err conftest.$ac_ext
6111
6112 done
6113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6114 rm -f conftest.err conftest.$ac_ext
6115 if $ac_preproc_ok; then
6116   break
6117 fi
6118
6119     done
6120     ac_cv_prog_CPP=$CPP
6121
6122 fi
6123   CPP=$ac_cv_prog_CPP
6124 else
6125   ac_cv_prog_CPP=$CPP
6126 fi
6127 echo "$as_me:$LINENO: result: $CPP" >&5
6128 echo "${ECHO_T}$CPP" >&6
6129 ac_preproc_ok=false
6130 for ac_c_preproc_warn_flag in '' yes
6131 do
6132   # Use a header file that comes with gcc, so configuring glibc
6133   # with a fresh cross-compiler works.
6134   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6135   # <limits.h> exists even on freestanding compilers.
6136   # On the NeXT, cc -E runs the code through the compiler's parser,
6137   # not just through cpp. "Syntax error" is here to catch this case.
6138   cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h.  */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h.  */
6144 #ifdef __STDC__
6145 # include <limits.h>
6146 #else
6147 # include <assert.h>
6148 #endif
6149                      Syntax error
6150 _ACEOF
6151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6152   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6153   ac_status=$?
6154   grep -v '^ *+' conftest.er1 >conftest.err
6155   rm -f conftest.er1
6156   cat conftest.err >&5
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); } >/dev/null; then
6159   if test -s conftest.err; then
6160     ac_cpp_err=$ac_c_preproc_warn_flag
6161     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6162   else
6163     ac_cpp_err=
6164   fi
6165 else
6166   ac_cpp_err=yes
6167 fi
6168 if test -z "$ac_cpp_err"; then
6169   :
6170 else
6171   echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6173
6174   # Broken: fails on valid input.
6175 continue
6176 fi
6177 rm -f conftest.err conftest.$ac_ext
6178
6179   # OK, works on sane cases.  Now check whether non-existent headers
6180   # can be detected and how.
6181   cat >conftest.$ac_ext <<_ACEOF
6182 /* confdefs.h.  */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h.  */
6187 #include <ac_nonexistent.h>
6188 _ACEOF
6189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6190   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6191   ac_status=$?
6192   grep -v '^ *+' conftest.er1 >conftest.err
6193   rm -f conftest.er1
6194   cat conftest.err >&5
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); } >/dev/null; then
6197   if test -s conftest.err; then
6198     ac_cpp_err=$ac_c_preproc_warn_flag
6199     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6200   else
6201     ac_cpp_err=
6202   fi
6203 else
6204   ac_cpp_err=yes
6205 fi
6206 if test -z "$ac_cpp_err"; then
6207   # Broken: success on invalid input.
6208 continue
6209 else
6210   echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6212
6213   # Passes both tests.
6214 ac_preproc_ok=:
6215 break
6216 fi
6217 rm -f conftest.err conftest.$ac_ext
6218
6219 done
6220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6221 rm -f conftest.err conftest.$ac_ext
6222 if $ac_preproc_ok; then
6223   :
6224 else
6225   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6226 See \`config.log' for more details." >&5
6227 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6228 See \`config.log' for more details." >&2;}
6229    { (exit 1); exit 1; }; }
6230 fi
6231
6232 ac_ext=c
6233 ac_cpp='$CPP $CPPFLAGS'
6234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6237
6238
6239 echo "$as_me:$LINENO: checking for egrep" >&5
6240 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6241 if test "${ac_cv_prog_egrep+set}" = set; then
6242   echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6245     then ac_cv_prog_egrep='grep -E'
6246     else ac_cv_prog_egrep='egrep'
6247     fi
6248 fi
6249 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6250 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6251  EGREP=$ac_cv_prog_egrep
6252
6253
6254 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6255 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6256 if test "${ac_cv_header_stdc+set}" = set; then
6257   echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259   cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h.  */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h.  */
6265 #include <stdlib.h>
6266 #include <stdarg.h>
6267 #include <string.h>
6268 #include <float.h>
6269
6270 int
6271 main ()
6272 {
6273
6274   ;
6275   return 0;
6276 }
6277 _ACEOF
6278 rm -f conftest.$ac_objext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280   (eval $ac_compile) 2>conftest.er1
6281   ac_status=$?
6282   grep -v '^ *+' conftest.er1 >conftest.err
6283   rm -f conftest.er1
6284   cat conftest.err >&5
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } &&
6287          { ac_try='test -z "$ac_c_werror_flag"
6288                          || test ! -s conftest.err'
6289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290   (eval $ac_try) 2>&5
6291   ac_status=$?
6292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293   (exit $ac_status); }; } &&
6294          { ac_try='test -s conftest.$ac_objext'
6295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296   (eval $ac_try) 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); }; }; then
6300   ac_cv_header_stdc=yes
6301 else
6302   echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6304
6305 ac_cv_header_stdc=no
6306 fi
6307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6308
6309 if test $ac_cv_header_stdc = yes; then
6310   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6311   cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h.  */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h.  */
6317 #include <string.h>
6318
6319 _ACEOF
6320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6321   $EGREP "memchr" >/dev/null 2>&1; then
6322   :
6323 else
6324   ac_cv_header_stdc=no
6325 fi
6326 rm -f conftest*
6327
6328 fi
6329
6330 if test $ac_cv_header_stdc = yes; then
6331   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6332   cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h.  */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h.  */
6338 #include <stdlib.h>
6339
6340 _ACEOF
6341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6342   $EGREP "free" >/dev/null 2>&1; then
6343   :
6344 else
6345   ac_cv_header_stdc=no
6346 fi
6347 rm -f conftest*
6348
6349 fi
6350
6351 if test $ac_cv_header_stdc = yes; then
6352   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6353   if test "$cross_compiling" = yes; then
6354   :
6355 else
6356   cat >conftest.$ac_ext <<_ACEOF
6357 /* confdefs.h.  */
6358 _ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h.  */
6362 #include <ctype.h>
6363 #if ((' ' & 0x0FF) == 0x020)
6364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6366 #else
6367 # define ISLOWER(c) \
6368                    (('a' <= (c) && (c) <= 'i') \
6369                      || ('j' <= (c) && (c) <= 'r') \
6370                      || ('s' <= (c) && (c) <= 'z'))
6371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6372 #endif
6373
6374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6375 int
6376 main ()
6377 {
6378   int i;
6379   for (i = 0; i < 256; i++)
6380     if (XOR (islower (i), ISLOWER (i))
6381         || toupper (i) != TOUPPER (i))
6382       exit(2);
6383   exit (0);
6384 }
6385 _ACEOF
6386 rm -f conftest$ac_exeext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6388   (eval $ac_link) 2>&5
6389   ac_status=$?
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393   (eval $ac_try) 2>&5
6394   ac_status=$?
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); }; }; then
6397   :
6398 else
6399   echo "$as_me: program exited with status $ac_status" >&5
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403 ( exit $ac_status )
6404 ac_cv_header_stdc=no
6405 fi
6406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6407 fi
6408 fi
6409 fi
6410 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6411 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6412 if test $ac_cv_header_stdc = yes; then
6413
6414 cat >>confdefs.h <<\_ACEOF
6415 #define STDC_HEADERS 1
6416 _ACEOF
6417
6418 fi
6419
6420 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6431                   inttypes.h stdint.h unistd.h
6432 do
6433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6434 echo "$as_me:$LINENO: checking for $ac_header" >&5
6435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6437   echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439   cat >conftest.$ac_ext <<_ACEOF
6440 /* confdefs.h.  */
6441 _ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h.  */
6445 $ac_includes_default
6446
6447 #include <$ac_header>
6448 _ACEOF
6449 rm -f conftest.$ac_objext
6450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6451   (eval $ac_compile) 2>conftest.er1
6452   ac_status=$?
6453   grep -v '^ *+' conftest.er1 >conftest.err
6454   rm -f conftest.er1
6455   cat conftest.err >&5
6456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457   (exit $ac_status); } &&
6458          { ac_try='test -z "$ac_c_werror_flag"
6459                          || test ! -s conftest.err'
6460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461   (eval $ac_try) 2>&5
6462   ac_status=$?
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); }; } &&
6465          { ac_try='test -s conftest.$ac_objext'
6466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467   (eval $ac_try) 2>&5
6468   ac_status=$?
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); }; }; then
6471   eval "$as_ac_Header=yes"
6472 else
6473   echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6475
6476 eval "$as_ac_Header=no"
6477 fi
6478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6479 fi
6480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6483   cat >>confdefs.h <<_ACEOF
6484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6485 _ACEOF
6486
6487 fi
6488
6489 done
6490
6491
6492 # ------ AX CREATE STDINT H -------------------------------------
6493 echo "$as_me:$LINENO: checking for stdint types" >&5
6494 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
6495 ac_stdint_h=`echo common-src/amanda-int.h`
6496 # try to shortcircuit - if the default include path of the compiler
6497 # can find a "stdint.h" header then we assume that all compilers can.
6498 if test "${ac_cv_header_stdint_t+set}" = set; then
6499   echo $ECHO_N "(cached) $ECHO_C" >&6
6500 else
6501
6502 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
6503 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
6504 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
6505 cat >conftest.$ac_ext <<_ACEOF
6506 /* confdefs.h.  */
6507 _ACEOF
6508 cat confdefs.h >>conftest.$ac_ext
6509 cat >>conftest.$ac_ext <<_ACEOF
6510 /* end confdefs.h.  */
6511 #include <stdint.h>
6512 int
6513 main ()
6514 {
6515 int_least32_t v = 0;
6516   ;
6517   return 0;
6518 }
6519 _ACEOF
6520 rm -f conftest.$ac_objext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522   (eval $ac_compile) 2>conftest.er1
6523   ac_status=$?
6524   grep -v '^ *+' conftest.er1 >conftest.err
6525   rm -f conftest.er1
6526   cat conftest.err >&5
6527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); } &&
6529          { ac_try='test -z "$ac_c_werror_flag"
6530                          || test ! -s conftest.err'
6531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532   (eval $ac_try) 2>&5
6533   ac_status=$?
6534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535   (exit $ac_status); }; } &&
6536          { ac_try='test -s conftest.$ac_objext'
6537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538   (eval $ac_try) 2>&5
6539   ac_status=$?
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); }; }; then
6542   ac_cv_stdint_result="(assuming C99 compatible system)"
6543  ac_cv_header_stdint_t="stdint.h";
6544 else
6545   echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6547
6548 ac_cv_header_stdint_t=""
6549 fi
6550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6551 CXXFLAGS="$old_CXXFLAGS"
6552 CPPFLAGS="$old_CPPFLAGS"
6553 CFLAGS="$old_CFLAGS"
6554 fi
6555
6556
6557 v="... $ac_cv_header_stdint_h"
6558 if test "$ac_stdint_h" = "stdint.h" ; then
6559  echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
6560 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
6561 elif test "$ac_stdint_h" = "inttypes.h" ; then
6562  echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
6563 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
6564 elif test "_$ac_cv_header_stdint_t" = "_" ; then
6565  echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
6566 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
6567 else
6568  ac_cv_header_stdint="$ac_cv_header_stdint_t"
6569  echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
6570 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
6571 fi
6572
6573 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
6574
6575
6576 inttype_headers=`echo  | sed -e 's/,/ /g'`
6577
6578 ac_cv_stdint_result="(no helpful system typedefs seen)"
6579
6580 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
6581 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
6582 if test "${ac_cv_header_stdint_x+set}" = set; then
6583   echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585
6586  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
6587   echo "$as_me:$LINENO: result: (..)" >&5
6588 echo "${ECHO_T}(..)" >&6
6589   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
6590    unset ac_cv_type_uintptr_t
6591    unset ac_cv_type_uint64_t
6592    echo "$as_me:$LINENO: checking for uintptr_t" >&5
6593 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
6594 if test "${ac_cv_type_uintptr_t+set}" = set; then
6595   echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597   cat >conftest.$ac_ext <<_ACEOF
6598 /* confdefs.h.  */
6599 _ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h.  */
6603 #include <$i>
6604
6605 int
6606 main ()
6607 {
6608 if ((uintptr_t *) 0)
6609   return 0;
6610 if (sizeof (uintptr_t))
6611   return 0;
6612   ;
6613   return 0;
6614 }
6615 _ACEOF
6616 rm -f conftest.$ac_objext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618   (eval $ac_compile) 2>conftest.er1
6619   ac_status=$?
6620   grep -v '^ *+' conftest.er1 >conftest.err
6621   rm -f conftest.er1
6622   cat conftest.err >&5
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); } &&
6625          { ac_try='test -z "$ac_c_werror_flag"
6626                          || test ! -s conftest.err'
6627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628   (eval $ac_try) 2>&5
6629   ac_status=$?
6630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631   (exit $ac_status); }; } &&
6632          { ac_try='test -s conftest.$ac_objext'
6633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634   (eval $ac_try) 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); }; }; then
6638   ac_cv_type_uintptr_t=yes
6639 else
6640   echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6642
6643 ac_cv_type_uintptr_t=no
6644 fi
6645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6646 fi
6647 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
6648 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
6649 if test $ac_cv_type_uintptr_t = yes; then
6650   ac_cv_header_stdint_x=$i
6651 else
6652   continue
6653 fi
6654
6655    echo "$as_me:$LINENO: checking for uint64_t" >&5
6656 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6657 if test "${ac_cv_type_uint64_t+set}" = set; then
6658   echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660   cat >conftest.$ac_ext <<_ACEOF
6661 /* confdefs.h.  */
6662 _ACEOF
6663 cat confdefs.h >>conftest.$ac_ext
6664 cat >>conftest.$ac_ext <<_ACEOF
6665 /* end confdefs.h.  */
6666 #include<$i>
6667
6668 int
6669 main ()
6670 {
6671 if ((uint64_t *) 0)
6672   return 0;
6673 if (sizeof (uint64_t))
6674   return 0;
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_type_uint64_t=yes
6702 else
6703   echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706 ac_cv_type_uint64_t=no
6707 fi
6708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6709 fi
6710 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6711 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6712 if test $ac_cv_type_uint64_t = yes; then
6713   and64="/uint64_t"
6714 else
6715   and64=""
6716 fi
6717
6718       stdint.h inttypes.h sys/inttypes.h $inttype_headers
6719  break
6720   done
6721   echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
6722 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
6723
6724 fi
6725 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
6726 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
6727
6728
6729 if test "_$ac_cv_header_stdint_x" = "_" ; then
6730
6731 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
6732 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
6733 if test "${ac_cv_header_stdint_o+set}" = set; then
6734   echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736
6737  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
6738   echo "$as_me:$LINENO: result: (..)" >&5
6739 echo "${ECHO_T}(..)" >&6
6740   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
6741    unset ac_cv_type_uint32_t
6742    unset ac_cv_type_uint64_t
6743    echo "$as_me:$LINENO: checking for uint32_t" >&5
6744 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6745 if test "${ac_cv_type_uint32_t+set}" = set; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748   cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h.  */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h.  */
6754 #include <$i>
6755
6756 int
6757 main ()
6758 {
6759 if ((uint32_t *) 0)
6760   return 0;
6761 if (sizeof (uint32_t))
6762   return 0;
6763   ;
6764   return 0;
6765 }
6766 _ACEOF
6767 rm -f conftest.$ac_objext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6769   (eval $ac_compile) 2>conftest.er1
6770   ac_status=$?
6771   grep -v '^ *+' conftest.er1 >conftest.err
6772   rm -f conftest.er1
6773   cat conftest.err >&5
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); } &&
6776          { ac_try='test -z "$ac_c_werror_flag"
6777                          || test ! -s conftest.err'
6778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779   (eval $ac_try) 2>&5
6780   ac_status=$?
6781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782   (exit $ac_status); }; } &&
6783          { ac_try='test -s conftest.$ac_objext'
6784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785   (eval $ac_try) 2>&5
6786   ac_status=$?
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); }; }; then
6789   ac_cv_type_uint32_t=yes
6790 else
6791   echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6793
6794 ac_cv_type_uint32_t=no
6795 fi
6796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6797 fi
6798 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6799 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6800 if test $ac_cv_type_uint32_t = yes; then
6801   ac_cv_header_stdint_o=$i
6802 else
6803   continue
6804 fi
6805
6806    echo "$as_me:$LINENO: checking for uint64_t" >&5
6807 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6808 if test "${ac_cv_type_uint64_t+set}" = set; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h.  */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h.  */
6817 #include<$i>
6818
6819 int
6820 main ()
6821 {
6822 if ((uint64_t *) 0)
6823   return 0;
6824 if (sizeof (uint64_t))
6825   return 0;
6826   ;
6827   return 0;
6828 }
6829 _ACEOF
6830 rm -f conftest.$ac_objext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832   (eval $ac_compile) 2>conftest.er1
6833   ac_status=$?
6834   grep -v '^ *+' conftest.er1 >conftest.err
6835   rm -f conftest.er1
6836   cat conftest.err >&5
6837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838   (exit $ac_status); } &&
6839          { ac_try='test -z "$ac_c_werror_flag"
6840                          || test ! -s conftest.err'
6841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842   (eval $ac_try) 2>&5
6843   ac_status=$?
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); }; } &&
6846          { ac_try='test -s conftest.$ac_objext'
6847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848   (eval $ac_try) 2>&5
6849   ac_status=$?
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); }; }; then
6852   ac_cv_type_uint64_t=yes
6853 else
6854   echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6856
6857 ac_cv_type_uint64_t=no
6858 fi
6859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6860 fi
6861 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6862 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6863 if test $ac_cv_type_uint64_t = yes; then
6864   and64="/uint64_t"
6865 else
6866   and64=""
6867 fi
6868
6869       inttypes.h sys/inttypes.h stdint.h $inttype_headers
6870  break
6871    break;
6872   done
6873   echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
6874 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
6875
6876 fi
6877 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
6878 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
6879
6880 fi
6881
6882 if test "_$ac_cv_header_stdint_x" = "_" ; then
6883 if test "_$ac_cv_header_stdint_o" = "_" ; then
6884
6885 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
6886 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
6887 if test "${ac_cv_header_stdint_u+set}" = set; then
6888   echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890
6891  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
6892   echo "$as_me:$LINENO: result: (..)" >&5
6893 echo "${ECHO_T}(..)" >&6
6894   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
6895    unset ac_cv_type_u_int32_t
6896    unset ac_cv_type_u_int64_t
6897    echo "$as_me:$LINENO: checking for u_int32_t" >&5
6898 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6899 if test "${ac_cv_type_u_int32_t+set}" = set; then
6900   echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902   cat >conftest.$ac_ext <<_ACEOF
6903 /* confdefs.h.  */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h.  */
6908 #include <$i>
6909
6910 int
6911 main ()
6912 {
6913 if ((u_int32_t *) 0)
6914   return 0;
6915 if (sizeof (u_int32_t))
6916   return 0;
6917   ;
6918   return 0;
6919 }
6920 _ACEOF
6921 rm -f conftest.$ac_objext
6922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6923   (eval $ac_compile) 2>conftest.er1
6924   ac_status=$?
6925   grep -v '^ *+' conftest.er1 >conftest.err
6926   rm -f conftest.er1
6927   cat conftest.err >&5
6928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929   (exit $ac_status); } &&
6930          { ac_try='test -z "$ac_c_werror_flag"
6931                          || test ! -s conftest.err'
6932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933   (eval $ac_try) 2>&5
6934   ac_status=$?
6935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936   (exit $ac_status); }; } &&
6937          { ac_try='test -s conftest.$ac_objext'
6938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939   (eval $ac_try) 2>&5
6940   ac_status=$?
6941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942   (exit $ac_status); }; }; then
6943   ac_cv_type_u_int32_t=yes
6944 else
6945   echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.$ac_ext >&5
6947
6948 ac_cv_type_u_int32_t=no
6949 fi
6950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6951 fi
6952 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6953 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6954 if test $ac_cv_type_u_int32_t = yes; then
6955   ac_cv_header_stdint_u=$i
6956 else
6957   continue
6958 fi
6959
6960    echo "$as_me:$LINENO: checking for u_int64_t" >&5
6961 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6962 if test "${ac_cv_type_u_int64_t+set}" = set; then
6963   echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965   cat >conftest.$ac_ext <<_ACEOF
6966 /* confdefs.h.  */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h.  */
6971 #include<$i>
6972
6973 int
6974 main ()
6975 {
6976 if ((u_int64_t *) 0)
6977   return 0;
6978 if (sizeof (u_int64_t))
6979   return 0;
6980   ;
6981   return 0;
6982 }
6983 _ACEOF
6984 rm -f conftest.$ac_objext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986   (eval $ac_compile) 2>conftest.er1
6987   ac_status=$?
6988   grep -v '^ *+' conftest.er1 >conftest.err
6989   rm -f conftest.er1
6990   cat conftest.err >&5
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); } &&
6993          { ac_try='test -z "$ac_c_werror_flag"
6994                          || test ! -s conftest.err'
6995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996   (eval $ac_try) 2>&5
6997   ac_status=$?
6998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999   (exit $ac_status); }; } &&
7000          { ac_try='test -s conftest.$ac_objext'
7001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002   (eval $ac_try) 2>&5
7003   ac_status=$?
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); }; }; then
7006   ac_cv_type_u_int64_t=yes
7007 else
7008   echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7010
7011 ac_cv_type_u_int64_t=no
7012 fi
7013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7014 fi
7015 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
7016 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
7017 if test $ac_cv_type_u_int64_t = yes; then
7018   and64="/u_int64_t"
7019 else
7020   and64=""
7021 fi
7022
7023       sys/types.h inttypes.h sys/inttypes.h $inttype_headers
7024  break
7025    break;
7026   done
7027   echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
7028 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
7029
7030 fi
7031 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
7032 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
7033
7034 fi fi
7035
7036 if test "_$ac_cv_header_stdint_x" = "_" ; then
7037    echo "$as_me:$LINENO: checking for stdint datatype model" >&5
7038 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
7039    echo "$as_me:$LINENO: result: (..)" >&5
7040 echo "${ECHO_T}(..)" >&6
7041
7042    echo "$as_me:$LINENO: checking for char" >&5
7043 echo $ECHO_N "checking for char... $ECHO_C" >&6
7044 if test "${ac_cv_type_char+set}" = set; then
7045   echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047   cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h.  */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h.  */
7053 $ac_includes_default
7054 int
7055 main ()
7056 {
7057 if ((char *) 0)
7058   return 0;
7059 if (sizeof (char))
7060   return 0;
7061   ;
7062   return 0;
7063 }
7064 _ACEOF
7065 rm -f conftest.$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067   (eval $ac_compile) 2>conftest.er1
7068   ac_status=$?
7069   grep -v '^ *+' conftest.er1 >conftest.err
7070   rm -f conftest.er1
7071   cat conftest.err >&5
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); } &&
7074          { ac_try='test -z "$ac_c_werror_flag"
7075                          || test ! -s conftest.err'
7076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077   (eval $ac_try) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); }; } &&
7081          { ac_try='test -s conftest.$ac_objext'
7082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083   (eval $ac_try) 2>&5
7084   ac_status=$?
7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); }; }; then
7087   ac_cv_type_char=yes
7088 else
7089   echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7091
7092 ac_cv_type_char=no
7093 fi
7094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7095 fi
7096 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7097 echo "${ECHO_T}$ac_cv_type_char" >&6
7098
7099 echo "$as_me:$LINENO: checking size of char" >&5
7100 echo $ECHO_N "checking size of char... $ECHO_C" >&6
7101 if test "${ac_cv_sizeof_char+set}" = set; then
7102   echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104   if test "$ac_cv_type_char" = yes; then
7105   # The cast to unsigned long works around a bug in the HP C Compiler
7106   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7107   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7108   # This bug is HP SR number 8606223364.
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 $ac_includes_default
7118 int
7119 main ()
7120 {
7121 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
7122 test_array [0] = 0
7123
7124   ;
7125   return 0;
7126 }
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7130   (eval $ac_compile) 2>conftest.er1
7131   ac_status=$?
7132   grep -v '^ *+' conftest.er1 >conftest.err
7133   rm -f conftest.er1
7134   cat conftest.err >&5
7135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136   (exit $ac_status); } &&
7137          { ac_try='test -z "$ac_c_werror_flag"
7138                          || test ! -s conftest.err'
7139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140   (eval $ac_try) 2>&5
7141   ac_status=$?
7142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143   (exit $ac_status); }; } &&
7144          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7150   ac_lo=0 ac_mid=0
7151   while :; do
7152     cat >conftest.$ac_ext <<_ACEOF
7153 /* confdefs.h.  */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h.  */
7158 $ac_includes_default
7159 int
7160 main ()
7161 {
7162 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7163 test_array [0] = 0
7164
7165   ;
7166   return 0;
7167 }
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7171   (eval $ac_compile) 2>conftest.er1
7172   ac_status=$?
7173   grep -v '^ *+' conftest.er1 >conftest.err
7174   rm -f conftest.er1
7175   cat conftest.err >&5
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); } &&
7178          { ac_try='test -z "$ac_c_werror_flag"
7179                          || test ! -s conftest.err'
7180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181   (eval $ac_try) 2>&5
7182   ac_status=$?
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); }; } &&
7185          { ac_try='test -s conftest.$ac_objext'
7186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187   (eval $ac_try) 2>&5
7188   ac_status=$?
7189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190   (exit $ac_status); }; }; then
7191   ac_hi=$ac_mid; break
7192 else
7193   echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7195
7196 ac_lo=`expr $ac_mid + 1`
7197                     if test $ac_lo -le $ac_mid; then
7198                       ac_lo= ac_hi=
7199                       break
7200                     fi
7201                     ac_mid=`expr 2 '*' $ac_mid + 1`
7202 fi
7203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7204   done
7205 else
7206   echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7208
7209 cat >conftest.$ac_ext <<_ACEOF
7210 /* confdefs.h.  */
7211 _ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
7214 /* end confdefs.h.  */
7215 $ac_includes_default
7216 int
7217 main ()
7218 {
7219 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
7220 test_array [0] = 0
7221
7222   ;
7223   return 0;
7224 }
7225 _ACEOF
7226 rm -f conftest.$ac_objext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7228   (eval $ac_compile) 2>conftest.er1
7229   ac_status=$?
7230   grep -v '^ *+' conftest.er1 >conftest.err
7231   rm -f conftest.er1
7232   cat conftest.err >&5
7233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); } &&
7235          { ac_try='test -z "$ac_c_werror_flag"
7236                          || test ! -s conftest.err'
7237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238   (eval $ac_try) 2>&5
7239   ac_status=$?
7240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241   (exit $ac_status); }; } &&
7242          { ac_try='test -s conftest.$ac_objext'
7243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244   (eval $ac_try) 2>&5
7245   ac_status=$?
7246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247   (exit $ac_status); }; }; then
7248   ac_hi=-1 ac_mid=-1
7249   while :; do
7250     cat >conftest.$ac_ext <<_ACEOF
7251 /* confdefs.h.  */
7252 _ACEOF
7253 cat confdefs.h >>conftest.$ac_ext
7254 cat >>conftest.$ac_ext <<_ACEOF
7255 /* end confdefs.h.  */
7256 $ac_includes_default
7257 int
7258 main ()
7259 {
7260 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
7261 test_array [0] = 0
7262
7263   ;
7264   return 0;
7265 }
7266 _ACEOF
7267 rm -f conftest.$ac_objext
7268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7269   (eval $ac_compile) 2>conftest.er1
7270   ac_status=$?
7271   grep -v '^ *+' conftest.er1 >conftest.err
7272   rm -f conftest.er1
7273   cat conftest.err >&5
7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275   (exit $ac_status); } &&
7276          { ac_try='test -z "$ac_c_werror_flag"
7277                          || test ! -s conftest.err'
7278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279   (eval $ac_try) 2>&5
7280   ac_status=$?
7281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282   (exit $ac_status); }; } &&
7283          { ac_try='test -s conftest.$ac_objext'
7284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285   (eval $ac_try) 2>&5
7286   ac_status=$?
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); }; }; then
7289   ac_lo=$ac_mid; break
7290 else
7291   echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7293
7294 ac_hi=`expr '(' $ac_mid ')' - 1`
7295                        if test $ac_mid -le $ac_hi; then
7296                          ac_lo= ac_hi=
7297                          break
7298                        fi
7299                        ac_mid=`expr 2 '*' $ac_mid`
7300 fi
7301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7302   done
7303 else
7304   echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7306
7307 ac_lo= ac_hi=
7308 fi
7309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7310 fi
7311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7312 # Binary search between lo and hi bounds.
7313 while test "x$ac_lo" != "x$ac_hi"; do
7314   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7315   cat >conftest.$ac_ext <<_ACEOF
7316 /* confdefs.h.  */
7317 _ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h.  */
7321 $ac_includes_default
7322 int
7323 main ()
7324 {
7325 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7326 test_array [0] = 0
7327
7328   ;
7329   return 0;
7330 }
7331 _ACEOF
7332 rm -f conftest.$ac_objext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7334   (eval $ac_compile) 2>conftest.er1
7335   ac_status=$?
7336   grep -v '^ *+' conftest.er1 >conftest.err
7337   rm -f conftest.er1
7338   cat conftest.err >&5
7339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340   (exit $ac_status); } &&
7341          { ac_try='test -z "$ac_c_werror_flag"
7342                          || test ! -s conftest.err'
7343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344   (eval $ac_try) 2>&5
7345   ac_status=$?
7346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347   (exit $ac_status); }; } &&
7348          { ac_try='test -s conftest.$ac_objext'
7349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350   (eval $ac_try) 2>&5
7351   ac_status=$?
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); }; }; then
7354   ac_hi=$ac_mid
7355 else
7356   echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7358
7359 ac_lo=`expr '(' $ac_mid ')' + 1`
7360 fi
7361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7362 done
7363 case $ac_lo in
7364 ?*) ac_cv_sizeof_char=$ac_lo;;
7365 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7366 See \`config.log' for more details." >&5
7367 echo "$as_me: error: cannot compute sizeof (char), 77
7368 See \`config.log' for more details." >&2;}
7369    { (exit 1); exit 1; }; } ;;
7370 esac
7371 else
7372   if test "$cross_compiling" = yes; then
7373   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7374 See \`config.log' for more details." >&5
7375 echo "$as_me: error: cannot run test program while cross compiling
7376 See \`config.log' for more details." >&2;}
7377    { (exit 1); exit 1; }; }
7378 else
7379   cat >conftest.$ac_ext <<_ACEOF
7380 /* confdefs.h.  */
7381 _ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h.  */
7385 $ac_includes_default
7386 long longval () { return (long) (sizeof (char)); }
7387 unsigned long ulongval () { return (long) (sizeof (char)); }
7388 #include <stdio.h>
7389 #include <stdlib.h>
7390 int
7391 main ()
7392 {
7393
7394   FILE *f = fopen ("conftest.val", "w");
7395   if (! f)
7396     exit (1);
7397   if (((long) (sizeof (char))) < 0)
7398     {
7399       long i = longval ();
7400       if (i != ((long) (sizeof (char))))
7401         exit (1);
7402       fprintf (f, "%ld\n", i);
7403     }
7404   else
7405     {
7406       unsigned long i = ulongval ();
7407       if (i != ((long) (sizeof (char))))
7408         exit (1);
7409       fprintf (f, "%lu\n", i);
7410     }
7411   exit (ferror (f) || fclose (f) != 0);
7412
7413   ;
7414   return 0;
7415 }
7416 _ACEOF
7417 rm -f conftest$ac_exeext
7418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7419   (eval $ac_link) 2>&5
7420   ac_status=$?
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424   (eval $ac_try) 2>&5
7425   ac_status=$?
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); }; }; then
7428   ac_cv_sizeof_char=`cat conftest.val`
7429 else
7430   echo "$as_me: program exited with status $ac_status" >&5
7431 echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7433
7434 ( exit $ac_status )
7435 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7436 See \`config.log' for more details." >&5
7437 echo "$as_me: error: cannot compute sizeof (char), 77
7438 See \`config.log' for more details." >&2;}
7439    { (exit 1); exit 1; }; }
7440 fi
7441 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7442 fi
7443 fi
7444 rm -f conftest.val
7445 else
7446   ac_cv_sizeof_char=0
7447 fi
7448 fi
7449 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
7450 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
7451 cat >>confdefs.h <<_ACEOF
7452 #define SIZEOF_CHAR $ac_cv_sizeof_char
7453 _ACEOF
7454
7455
7456    echo "$as_me:$LINENO: checking for short" >&5
7457 echo $ECHO_N "checking for short... $ECHO_C" >&6
7458 if test "${ac_cv_type_short+set}" = set; then
7459   echo $ECHO_N "(cached) $ECHO_C" >&6
7460 else
7461   cat >conftest.$ac_ext <<_ACEOF
7462 /* confdefs.h.  */
7463 _ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h.  */
7467 $ac_includes_default
7468 int
7469 main ()
7470 {
7471 if ((short *) 0)
7472   return 0;
7473 if (sizeof (short))
7474   return 0;
7475   ;
7476   return 0;
7477 }
7478 _ACEOF
7479 rm -f conftest.$ac_objext
7480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7481   (eval $ac_compile) 2>conftest.er1
7482   ac_status=$?
7483   grep -v '^ *+' conftest.er1 >conftest.err
7484   rm -f conftest.er1
7485   cat conftest.err >&5
7486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487   (exit $ac_status); } &&
7488          { ac_try='test -z "$ac_c_werror_flag"
7489                          || test ! -s conftest.err'
7490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491   (eval $ac_try) 2>&5
7492   ac_status=$?
7493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494   (exit $ac_status); }; } &&
7495          { ac_try='test -s conftest.$ac_objext'
7496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497   (eval $ac_try) 2>&5
7498   ac_status=$?
7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500   (exit $ac_status); }; }; then
7501   ac_cv_type_short=yes
7502 else
7503   echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7505
7506 ac_cv_type_short=no
7507 fi
7508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7509 fi
7510 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7511 echo "${ECHO_T}$ac_cv_type_short" >&6
7512
7513 echo "$as_me:$LINENO: checking size of short" >&5
7514 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7515 if test "${ac_cv_sizeof_short+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   if test "$ac_cv_type_short" = yes; then
7519   # The cast to unsigned long works around a bug in the HP C Compiler
7520   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7521   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7522   # This bug is HP SR number 8606223364.
7523   if test "$cross_compiling" = yes; then
7524   # Depending upon the size, compute the lo and hi bounds.
7525 cat >conftest.$ac_ext <<_ACEOF
7526 /* confdefs.h.  */
7527 _ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h.  */
7531 $ac_includes_default
7532 int
7533 main ()
7534 {
7535 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7536 test_array [0] = 0
7537
7538   ;
7539   return 0;
7540 }
7541 _ACEOF
7542 rm -f conftest.$ac_objext
7543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7544   (eval $ac_compile) 2>conftest.er1
7545   ac_status=$?
7546   grep -v '^ *+' conftest.er1 >conftest.err
7547   rm -f conftest.er1
7548   cat conftest.err >&5
7549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550   (exit $ac_status); } &&
7551          { ac_try='test -z "$ac_c_werror_flag"
7552                          || test ! -s conftest.err'
7553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554   (eval $ac_try) 2>&5
7555   ac_status=$?
7556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557   (exit $ac_status); }; } &&
7558          { ac_try='test -s conftest.$ac_objext'
7559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560   (eval $ac_try) 2>&5
7561   ac_status=$?
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); }; }; then
7564   ac_lo=0 ac_mid=0
7565   while :; do
7566     cat >conftest.$ac_ext <<_ACEOF
7567 /* confdefs.h.  */
7568 _ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h.  */
7572 $ac_includes_default
7573 int
7574 main ()
7575 {
7576 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7577 test_array [0] = 0
7578
7579   ;
7580   return 0;
7581 }
7582 _ACEOF
7583 rm -f conftest.$ac_objext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7585   (eval $ac_compile) 2>conftest.er1
7586   ac_status=$?
7587   grep -v '^ *+' conftest.er1 >conftest.err
7588   rm -f conftest.er1
7589   cat conftest.err >&5
7590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); } &&
7592          { ac_try='test -z "$ac_c_werror_flag"
7593                          || test ! -s conftest.err'
7594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595   (eval $ac_try) 2>&5
7596   ac_status=$?
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); }; } &&
7599          { ac_try='test -s conftest.$ac_objext'
7600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601   (eval $ac_try) 2>&5
7602   ac_status=$?
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); }; }; then
7605   ac_hi=$ac_mid; break
7606 else
7607   echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7609
7610 ac_lo=`expr $ac_mid + 1`
7611                     if test $ac_lo -le $ac_mid; then
7612                       ac_lo= ac_hi=
7613                       break
7614                     fi
7615                     ac_mid=`expr 2 '*' $ac_mid + 1`
7616 fi
7617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7618   done
7619 else
7620   echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7622
7623 cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h.  */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h.  */
7629 $ac_includes_default
7630 int
7631 main ()
7632 {
7633 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7634 test_array [0] = 0
7635
7636   ;
7637   return 0;
7638 }
7639 _ACEOF
7640 rm -f conftest.$ac_objext
7641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7642   (eval $ac_compile) 2>conftest.er1
7643   ac_status=$?
7644   grep -v '^ *+' conftest.er1 >conftest.err
7645   rm -f conftest.er1
7646   cat conftest.err >&5
7647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648   (exit $ac_status); } &&
7649          { ac_try='test -z "$ac_c_werror_flag"
7650                          || test ! -s conftest.err'
7651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652   (eval $ac_try) 2>&5
7653   ac_status=$?
7654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655   (exit $ac_status); }; } &&
7656          { ac_try='test -s conftest.$ac_objext'
7657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658   (eval $ac_try) 2>&5
7659   ac_status=$?
7660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661   (exit $ac_status); }; }; then
7662   ac_hi=-1 ac_mid=-1
7663   while :; do
7664     cat >conftest.$ac_ext <<_ACEOF
7665 /* confdefs.h.  */
7666 _ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h.  */
7670 $ac_includes_default
7671 int
7672 main ()
7673 {
7674 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7675 test_array [0] = 0
7676
7677   ;
7678   return 0;
7679 }
7680 _ACEOF
7681 rm -f conftest.$ac_objext
7682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7683   (eval $ac_compile) 2>conftest.er1
7684   ac_status=$?
7685   grep -v '^ *+' conftest.er1 >conftest.err
7686   rm -f conftest.er1
7687   cat conftest.err >&5
7688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689   (exit $ac_status); } &&
7690          { ac_try='test -z "$ac_c_werror_flag"
7691                          || test ! -s conftest.err'
7692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693   (eval $ac_try) 2>&5
7694   ac_status=$?
7695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); }; } &&
7697          { ac_try='test -s conftest.$ac_objext'
7698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699   (eval $ac_try) 2>&5
7700   ac_status=$?
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); }; }; then
7703   ac_lo=$ac_mid; break
7704 else
7705   echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7707
7708 ac_hi=`expr '(' $ac_mid ')' - 1`
7709                        if test $ac_mid -le $ac_hi; then
7710                          ac_lo= ac_hi=
7711                          break
7712                        fi
7713                        ac_mid=`expr 2 '*' $ac_mid`
7714 fi
7715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7716   done
7717 else
7718   echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7720
7721 ac_lo= ac_hi=
7722 fi
7723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7724 fi
7725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7726 # Binary search between lo and hi bounds.
7727 while test "x$ac_lo" != "x$ac_hi"; do
7728   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7729   cat >conftest.$ac_ext <<_ACEOF
7730 /* confdefs.h.  */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h.  */
7735 $ac_includes_default
7736 int
7737 main ()
7738 {
7739 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7740 test_array [0] = 0
7741
7742   ;
7743   return 0;
7744 }
7745 _ACEOF
7746 rm -f conftest.$ac_objext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7748   (eval $ac_compile) 2>conftest.er1
7749   ac_status=$?
7750   grep -v '^ *+' conftest.er1 >conftest.err
7751   rm -f conftest.er1
7752   cat conftest.err >&5
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); } &&
7755          { ac_try='test -z "$ac_c_werror_flag"
7756                          || test ! -s conftest.err'
7757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758   (eval $ac_try) 2>&5
7759   ac_status=$?
7760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761   (exit $ac_status); }; } &&
7762          { ac_try='test -s conftest.$ac_objext'
7763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764   (eval $ac_try) 2>&5
7765   ac_status=$?
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); }; }; then
7768   ac_hi=$ac_mid
7769 else
7770   echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7772
7773 ac_lo=`expr '(' $ac_mid ')' + 1`
7774 fi
7775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7776 done
7777 case $ac_lo in
7778 ?*) ac_cv_sizeof_short=$ac_lo;;
7779 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7780 See \`config.log' for more details." >&5
7781 echo "$as_me: error: cannot compute sizeof (short), 77
7782 See \`config.log' for more details." >&2;}
7783    { (exit 1); exit 1; }; } ;;
7784 esac
7785 else
7786   if test "$cross_compiling" = yes; then
7787   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7788 See \`config.log' for more details." >&5
7789 echo "$as_me: error: cannot run test program while cross compiling
7790 See \`config.log' for more details." >&2;}
7791    { (exit 1); exit 1; }; }
7792 else
7793   cat >conftest.$ac_ext <<_ACEOF
7794 /* confdefs.h.  */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h.  */
7799 $ac_includes_default
7800 long longval () { return (long) (sizeof (short)); }
7801 unsigned long ulongval () { return (long) (sizeof (short)); }
7802 #include <stdio.h>
7803 #include <stdlib.h>
7804 int
7805 main ()
7806 {
7807
7808   FILE *f = fopen ("conftest.val", "w");
7809   if (! f)
7810     exit (1);
7811   if (((long) (sizeof (short))) < 0)
7812     {
7813       long i = longval ();
7814       if (i != ((long) (sizeof (short))))
7815         exit (1);
7816       fprintf (f, "%ld\n", i);
7817     }
7818   else
7819     {
7820       unsigned long i = ulongval ();
7821       if (i != ((long) (sizeof (short))))
7822         exit (1);
7823       fprintf (f, "%lu\n", i);
7824     }
7825   exit (ferror (f) || fclose (f) != 0);
7826
7827   ;
7828   return 0;
7829 }
7830 _ACEOF
7831 rm -f conftest$ac_exeext
7832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7833   (eval $ac_link) 2>&5
7834   ac_status=$?
7835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838   (eval $ac_try) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); }; }; then
7842   ac_cv_sizeof_short=`cat conftest.val`
7843 else
7844   echo "$as_me: program exited with status $ac_status" >&5
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7847
7848 ( exit $ac_status )
7849 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7850 See \`config.log' for more details." >&5
7851 echo "$as_me: error: cannot compute sizeof (short), 77
7852 See \`config.log' for more details." >&2;}
7853    { (exit 1); exit 1; }; }
7854 fi
7855 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7856 fi
7857 fi
7858 rm -f conftest.val
7859 else
7860   ac_cv_sizeof_short=0
7861 fi
7862 fi
7863 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7864 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7865 cat >>confdefs.h <<_ACEOF
7866 #define SIZEOF_SHORT $ac_cv_sizeof_short
7867 _ACEOF
7868
7869
7870    echo "$as_me:$LINENO: checking for int" >&5
7871 echo $ECHO_N "checking for int... $ECHO_C" >&6
7872 if test "${ac_cv_type_int+set}" = set; then
7873   echo $ECHO_N "(cached) $ECHO_C" >&6
7874 else
7875   cat >conftest.$ac_ext <<_ACEOF
7876 /* confdefs.h.  */
7877 _ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h.  */
7881 $ac_includes_default
7882 int
7883 main ()
7884 {
7885 if ((int *) 0)
7886   return 0;
7887 if (sizeof (int))
7888   return 0;
7889   ;
7890   return 0;
7891 }
7892 _ACEOF
7893 rm -f conftest.$ac_objext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895   (eval $ac_compile) 2>conftest.er1
7896   ac_status=$?
7897   grep -v '^ *+' conftest.er1 >conftest.err
7898   rm -f conftest.er1
7899   cat conftest.err >&5
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); } &&
7902          { ac_try='test -z "$ac_c_werror_flag"
7903                          || test ! -s conftest.err'
7904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905   (eval $ac_try) 2>&5
7906   ac_status=$?
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); }; } &&
7909          { ac_try='test -s conftest.$ac_objext'
7910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911   (eval $ac_try) 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); }; }; then
7915   ac_cv_type_int=yes
7916 else
7917   echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7919
7920 ac_cv_type_int=no
7921 fi
7922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7923 fi
7924 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7925 echo "${ECHO_T}$ac_cv_type_int" >&6
7926
7927 echo "$as_me:$LINENO: checking size of int" >&5
7928 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7929 if test "${ac_cv_sizeof_int+set}" = set; then
7930   echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932   if test "$ac_cv_type_int" = yes; then
7933   # The cast to unsigned long works around a bug in the HP C Compiler
7934   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7935   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7936   # This bug is HP SR number 8606223364.
7937   if test "$cross_compiling" = yes; then
7938   # Depending upon the size, compute the lo and hi bounds.
7939 cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h.  */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h.  */
7945 $ac_includes_default
7946 int
7947 main ()
7948 {
7949 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7950 test_array [0] = 0
7951
7952   ;
7953   return 0;
7954 }
7955 _ACEOF
7956 rm -f conftest.$ac_objext
7957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7958   (eval $ac_compile) 2>conftest.er1
7959   ac_status=$?
7960   grep -v '^ *+' conftest.er1 >conftest.err
7961   rm -f conftest.er1
7962   cat conftest.err >&5
7963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964   (exit $ac_status); } &&
7965          { ac_try='test -z "$ac_c_werror_flag"
7966                          || test ! -s conftest.err'
7967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968   (eval $ac_try) 2>&5
7969   ac_status=$?
7970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971   (exit $ac_status); }; } &&
7972          { ac_try='test -s conftest.$ac_objext'
7973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974   (eval $ac_try) 2>&5
7975   ac_status=$?
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); }; }; then
7978   ac_lo=0 ac_mid=0
7979   while :; do
7980     cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h.  */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h.  */
7986 $ac_includes_default
7987 int
7988 main ()
7989 {
7990 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7991 test_array [0] = 0
7992
7993   ;
7994   return 0;
7995 }
7996 _ACEOF
7997 rm -f conftest.$ac_objext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7999   (eval $ac_compile) 2>conftest.er1
8000   ac_status=$?
8001   grep -v '^ *+' conftest.er1 >conftest.err
8002   rm -f conftest.er1
8003   cat conftest.err >&5
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); } &&
8006          { ac_try='test -z "$ac_c_werror_flag"
8007                          || test ! -s conftest.err'
8008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009   (eval $ac_try) 2>&5
8010   ac_status=$?
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); }; } &&
8013          { ac_try='test -s conftest.$ac_objext'
8014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015   (eval $ac_try) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); }; }; then
8019   ac_hi=$ac_mid; break
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024 ac_lo=`expr $ac_mid + 1`
8025                     if test $ac_lo -le $ac_mid; then
8026                       ac_lo= ac_hi=
8027                       break
8028                     fi
8029                     ac_mid=`expr 2 '*' $ac_mid + 1`
8030 fi
8031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8032   done
8033 else
8034   echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037 cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h.  */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h.  */
8043 $ac_includes_default
8044 int
8045 main ()
8046 {
8047 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8048 test_array [0] = 0
8049
8050   ;
8051   return 0;
8052 }
8053 _ACEOF
8054 rm -f conftest.$ac_objext
8055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8056   (eval $ac_compile) 2>conftest.er1
8057   ac_status=$?
8058   grep -v '^ *+' conftest.er1 >conftest.err
8059   rm -f conftest.er1
8060   cat conftest.err >&5
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); } &&
8063          { ac_try='test -z "$ac_c_werror_flag"
8064                          || test ! -s conftest.err'
8065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066   (eval $ac_try) 2>&5
8067   ac_status=$?
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); }; } &&
8070          { ac_try='test -s conftest.$ac_objext'
8071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072   (eval $ac_try) 2>&5
8073   ac_status=$?
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); }; }; then
8076   ac_hi=-1 ac_mid=-1
8077   while :; do
8078     cat >conftest.$ac_ext <<_ACEOF
8079 /* confdefs.h.  */
8080 _ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h.  */
8084 $ac_includes_default
8085 int
8086 main ()
8087 {
8088 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8089 test_array [0] = 0
8090
8091   ;
8092   return 0;
8093 }
8094 _ACEOF
8095 rm -f conftest.$ac_objext
8096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8097   (eval $ac_compile) 2>conftest.er1
8098   ac_status=$?
8099   grep -v '^ *+' conftest.er1 >conftest.err
8100   rm -f conftest.er1
8101   cat conftest.err >&5
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); } &&
8104          { ac_try='test -z "$ac_c_werror_flag"
8105                          || test ! -s conftest.err'
8106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107   (eval $ac_try) 2>&5
8108   ac_status=$?
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); }; } &&
8111          { ac_try='test -s conftest.$ac_objext'
8112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113   (eval $ac_try) 2>&5
8114   ac_status=$?
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); }; }; then
8117   ac_lo=$ac_mid; break
8118 else
8119   echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8121
8122 ac_hi=`expr '(' $ac_mid ')' - 1`
8123                        if test $ac_mid -le $ac_hi; then
8124                          ac_lo= ac_hi=
8125                          break
8126                        fi
8127                        ac_mid=`expr 2 '*' $ac_mid`
8128 fi
8129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8130   done
8131 else
8132   echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135 ac_lo= ac_hi=
8136 fi
8137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8138 fi
8139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8140 # Binary search between lo and hi bounds.
8141 while test "x$ac_lo" != "x$ac_hi"; do
8142   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8143   cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h.  */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h.  */
8149 $ac_includes_default
8150 int
8151 main ()
8152 {
8153 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8154 test_array [0] = 0
8155
8156   ;
8157   return 0;
8158 }
8159 _ACEOF
8160 rm -f conftest.$ac_objext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8162   (eval $ac_compile) 2>conftest.er1
8163   ac_status=$?
8164   grep -v '^ *+' conftest.er1 >conftest.err
8165   rm -f conftest.er1
8166   cat conftest.err >&5
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } &&
8169          { ac_try='test -z "$ac_c_werror_flag"
8170                          || test ! -s conftest.err'
8171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172   (eval $ac_try) 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); }; } &&
8176          { ac_try='test -s conftest.$ac_objext'
8177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178   (eval $ac_try) 2>&5
8179   ac_status=$?
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); }; }; then
8182   ac_hi=$ac_mid
8183 else
8184   echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8186
8187 ac_lo=`expr '(' $ac_mid ')' + 1`
8188 fi
8189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8190 done
8191 case $ac_lo in
8192 ?*) ac_cv_sizeof_int=$ac_lo;;
8193 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8194 See \`config.log' for more details." >&5
8195 echo "$as_me: error: cannot compute sizeof (int), 77
8196 See \`config.log' for more details." >&2;}
8197    { (exit 1); exit 1; }; } ;;
8198 esac
8199 else
8200   if test "$cross_compiling" = yes; then
8201   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8202 See \`config.log' for more details." >&5
8203 echo "$as_me: error: cannot run test program while cross compiling
8204 See \`config.log' for more details." >&2;}
8205    { (exit 1); exit 1; }; }
8206 else
8207   cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h.  */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h.  */
8213 $ac_includes_default
8214 long longval () { return (long) (sizeof (int)); }
8215 unsigned long ulongval () { return (long) (sizeof (int)); }
8216 #include <stdio.h>
8217 #include <stdlib.h>
8218 int
8219 main ()
8220 {
8221
8222   FILE *f = fopen ("conftest.val", "w");
8223   if (! f)
8224     exit (1);
8225   if (((long) (sizeof (int))) < 0)
8226     {
8227       long i = longval ();
8228       if (i != ((long) (sizeof (int))))
8229         exit (1);
8230       fprintf (f, "%ld\n", i);
8231     }
8232   else
8233     {
8234       unsigned long i = ulongval ();
8235       if (i != ((long) (sizeof (int))))
8236         exit (1);
8237       fprintf (f, "%lu\n", i);
8238     }
8239   exit (ferror (f) || fclose (f) != 0);
8240
8241   ;
8242   return 0;
8243 }
8244 _ACEOF
8245 rm -f conftest$ac_exeext
8246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8247   (eval $ac_link) 2>&5
8248   ac_status=$?
8249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252   (eval $ac_try) 2>&5
8253   ac_status=$?
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); }; }; then
8256   ac_cv_sizeof_int=`cat conftest.val`
8257 else
8258   echo "$as_me: program exited with status $ac_status" >&5
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8261
8262 ( exit $ac_status )
8263 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8264 See \`config.log' for more details." >&5
8265 echo "$as_me: error: cannot compute sizeof (int), 77
8266 See \`config.log' for more details." >&2;}
8267    { (exit 1); exit 1; }; }
8268 fi
8269 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8270 fi
8271 fi
8272 rm -f conftest.val
8273 else
8274   ac_cv_sizeof_int=0
8275 fi
8276 fi
8277 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8278 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8279 cat >>confdefs.h <<_ACEOF
8280 #define SIZEOF_INT $ac_cv_sizeof_int
8281 _ACEOF
8282
8283
8284    echo "$as_me:$LINENO: checking for long" >&5
8285 echo $ECHO_N "checking for long... $ECHO_C" >&6
8286 if test "${ac_cv_type_long+set}" = set; then
8287   echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289   cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h.  */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h.  */
8295 $ac_includes_default
8296 int
8297 main ()
8298 {
8299 if ((long *) 0)
8300   return 0;
8301 if (sizeof (long))
8302   return 0;
8303   ;
8304   return 0;
8305 }
8306 _ACEOF
8307 rm -f conftest.$ac_objext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8309   (eval $ac_compile) 2>conftest.er1
8310   ac_status=$?
8311   grep -v '^ *+' conftest.er1 >conftest.err
8312   rm -f conftest.er1
8313   cat conftest.err >&5
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); } &&
8316          { ac_try='test -z "$ac_c_werror_flag"
8317                          || test ! -s conftest.err'
8318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319   (eval $ac_try) 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); }; } &&
8323          { ac_try='test -s conftest.$ac_objext'
8324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325   (eval $ac_try) 2>&5
8326   ac_status=$?
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); }; }; then
8329   ac_cv_type_long=yes
8330 else
8331   echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8333
8334 ac_cv_type_long=no
8335 fi
8336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8337 fi
8338 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8339 echo "${ECHO_T}$ac_cv_type_long" >&6
8340
8341 echo "$as_me:$LINENO: checking size of long" >&5
8342 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8343 if test "${ac_cv_sizeof_long+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346   if test "$ac_cv_type_long" = yes; then
8347   # The cast to unsigned long works around a bug in the HP C Compiler
8348   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8349   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8350   # This bug is HP SR number 8606223364.
8351   if test "$cross_compiling" = yes; then
8352   # Depending upon the size, compute the lo and hi bounds.
8353 cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h.  */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h.  */
8359 $ac_includes_default
8360 int
8361 main ()
8362 {
8363 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
8364 test_array [0] = 0
8365
8366   ;
8367   return 0;
8368 }
8369 _ACEOF
8370 rm -f conftest.$ac_objext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8372   (eval $ac_compile) 2>conftest.er1
8373   ac_status=$?
8374   grep -v '^ *+' conftest.er1 >conftest.err
8375   rm -f conftest.er1
8376   cat conftest.err >&5
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); } &&
8379          { ac_try='test -z "$ac_c_werror_flag"
8380                          || test ! -s conftest.err'
8381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382   (eval $ac_try) 2>&5
8383   ac_status=$?
8384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); }; } &&
8386          { ac_try='test -s conftest.$ac_objext'
8387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388   (eval $ac_try) 2>&5
8389   ac_status=$?
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); }; }; then
8392   ac_lo=0 ac_mid=0
8393   while :; do
8394     cat >conftest.$ac_ext <<_ACEOF
8395 /* confdefs.h.  */
8396 _ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h.  */
8400 $ac_includes_default
8401 int
8402 main ()
8403 {
8404 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8405 test_array [0] = 0
8406
8407   ;
8408   return 0;
8409 }
8410 _ACEOF
8411 rm -f conftest.$ac_objext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8413   (eval $ac_compile) 2>conftest.er1
8414   ac_status=$?
8415   grep -v '^ *+' conftest.er1 >conftest.err
8416   rm -f conftest.er1
8417   cat conftest.err >&5
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); } &&
8420          { ac_try='test -z "$ac_c_werror_flag"
8421                          || test ! -s conftest.err'
8422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423   (eval $ac_try) 2>&5
8424   ac_status=$?
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); }; } &&
8427          { ac_try='test -s conftest.$ac_objext'
8428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429   (eval $ac_try) 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }; }; then
8433   ac_hi=$ac_mid; break
8434 else
8435   echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8437
8438 ac_lo=`expr $ac_mid + 1`
8439                     if test $ac_lo -le $ac_mid; then
8440                       ac_lo= ac_hi=
8441                       break
8442                     fi
8443                     ac_mid=`expr 2 '*' $ac_mid + 1`
8444 fi
8445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8446   done
8447 else
8448   echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8450
8451 cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h.  */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h.  */
8457 $ac_includes_default
8458 int
8459 main ()
8460 {
8461 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
8462 test_array [0] = 0
8463
8464   ;
8465   return 0;
8466 }
8467 _ACEOF
8468 rm -f conftest.$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470   (eval $ac_compile) 2>conftest.er1
8471   ac_status=$?
8472   grep -v '^ *+' conftest.er1 >conftest.err
8473   rm -f conftest.er1
8474   cat conftest.err >&5
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); } &&
8477          { ac_try='test -z "$ac_c_werror_flag"
8478                          || test ! -s conftest.err'
8479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480   (eval $ac_try) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; } &&
8484          { ac_try='test -s conftest.$ac_objext'
8485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486   (eval $ac_try) 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }; }; then
8490   ac_hi=-1 ac_mid=-1
8491   while :; do
8492     cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h.  */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h.  */
8498 $ac_includes_default
8499 int
8500 main ()
8501 {
8502 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
8503 test_array [0] = 0
8504
8505   ;
8506   return 0;
8507 }
8508 _ACEOF
8509 rm -f conftest.$ac_objext
8510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8511   (eval $ac_compile) 2>conftest.er1
8512   ac_status=$?
8513   grep -v '^ *+' conftest.er1 >conftest.err
8514   rm -f conftest.er1
8515   cat conftest.err >&5
8516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); } &&
8518          { ac_try='test -z "$ac_c_werror_flag"
8519                          || test ! -s conftest.err'
8520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521   (eval $ac_try) 2>&5
8522   ac_status=$?
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); }; } &&
8525          { ac_try='test -s conftest.$ac_objext'
8526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527   (eval $ac_try) 2>&5
8528   ac_status=$?
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); }; }; then
8531   ac_lo=$ac_mid; break
8532 else
8533   echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8535
8536 ac_hi=`expr '(' $ac_mid ')' - 1`
8537                        if test $ac_mid -le $ac_hi; then
8538                          ac_lo= ac_hi=
8539                          break
8540                        fi
8541                        ac_mid=`expr 2 '*' $ac_mid`
8542 fi
8543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8544   done
8545 else
8546   echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 ac_lo= ac_hi=
8550 fi
8551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8552 fi
8553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8554 # Binary search between lo and hi bounds.
8555 while test "x$ac_lo" != "x$ac_hi"; do
8556   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8557   cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h.  */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h.  */
8563 $ac_includes_default
8564 int
8565 main ()
8566 {
8567 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8568 test_array [0] = 0
8569
8570   ;
8571   return 0;
8572 }
8573 _ACEOF
8574 rm -f conftest.$ac_objext
8575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8576   (eval $ac_compile) 2>conftest.er1
8577   ac_status=$?
8578   grep -v '^ *+' conftest.er1 >conftest.err
8579   rm -f conftest.er1
8580   cat conftest.err >&5
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); } &&
8583          { ac_try='test -z "$ac_c_werror_flag"
8584                          || test ! -s conftest.err'
8585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586   (eval $ac_try) 2>&5
8587   ac_status=$?
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); }; } &&
8590          { ac_try='test -s conftest.$ac_objext'
8591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592   (eval $ac_try) 2>&5
8593   ac_status=$?
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); }; }; then
8596   ac_hi=$ac_mid
8597 else
8598   echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8600
8601 ac_lo=`expr '(' $ac_mid ')' + 1`
8602 fi
8603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8604 done
8605 case $ac_lo in
8606 ?*) ac_cv_sizeof_long=$ac_lo;;
8607 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8608 See \`config.log' for more details." >&5
8609 echo "$as_me: error: cannot compute sizeof (long), 77
8610 See \`config.log' for more details." >&2;}
8611    { (exit 1); exit 1; }; } ;;
8612 esac
8613 else
8614   if test "$cross_compiling" = yes; then
8615   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8616 See \`config.log' for more details." >&5
8617 echo "$as_me: error: cannot run test program while cross compiling
8618 See \`config.log' for more details." >&2;}
8619    { (exit 1); exit 1; }; }
8620 else
8621   cat >conftest.$ac_ext <<_ACEOF
8622 /* confdefs.h.  */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h.  */
8627 $ac_includes_default
8628 long longval () { return (long) (sizeof (long)); }
8629 unsigned long ulongval () { return (long) (sizeof (long)); }
8630 #include <stdio.h>
8631 #include <stdlib.h>
8632 int
8633 main ()
8634 {
8635
8636   FILE *f = fopen ("conftest.val", "w");
8637   if (! f)
8638     exit (1);
8639   if (((long) (sizeof (long))) < 0)
8640     {
8641       long i = longval ();
8642       if (i != ((long) (sizeof (long))))
8643         exit (1);
8644       fprintf (f, "%ld\n", i);
8645     }
8646   else
8647     {
8648       unsigned long i = ulongval ();
8649       if (i != ((long) (sizeof (long))))
8650         exit (1);
8651       fprintf (f, "%lu\n", i);
8652     }
8653   exit (ferror (f) || fclose (f) != 0);
8654
8655   ;
8656   return 0;
8657 }
8658 _ACEOF
8659 rm -f conftest$ac_exeext
8660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8661   (eval $ac_link) 2>&5
8662   ac_status=$?
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666   (eval $ac_try) 2>&5
8667   ac_status=$?
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); }; }; then
8670   ac_cv_sizeof_long=`cat conftest.val`
8671 else
8672   echo "$as_me: program exited with status $ac_status" >&5
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8675
8676 ( exit $ac_status )
8677 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8678 See \`config.log' for more details." >&5
8679 echo "$as_me: error: cannot compute sizeof (long), 77
8680 See \`config.log' for more details." >&2;}
8681    { (exit 1); exit 1; }; }
8682 fi
8683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8684 fi
8685 fi
8686 rm -f conftest.val
8687 else
8688   ac_cv_sizeof_long=0
8689 fi
8690 fi
8691 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8692 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8693 cat >>confdefs.h <<_ACEOF
8694 #define SIZEOF_LONG $ac_cv_sizeof_long
8695 _ACEOF
8696
8697
8698    echo "$as_me:$LINENO: checking for void*" >&5
8699 echo $ECHO_N "checking for void*... $ECHO_C" >&6
8700 if test "${ac_cv_type_voidp+set}" = set; then
8701   echo $ECHO_N "(cached) $ECHO_C" >&6
8702 else
8703   cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h.  */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h.  */
8709 $ac_includes_default
8710 int
8711 main ()
8712 {
8713 if ((void* *) 0)
8714   return 0;
8715 if (sizeof (void*))
8716   return 0;
8717   ;
8718   return 0;
8719 }
8720 _ACEOF
8721 rm -f conftest.$ac_objext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723   (eval $ac_compile) 2>conftest.er1
8724   ac_status=$?
8725   grep -v '^ *+' conftest.er1 >conftest.err
8726   rm -f conftest.er1
8727   cat conftest.err >&5
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); } &&
8730          { ac_try='test -z "$ac_c_werror_flag"
8731                          || test ! -s conftest.err'
8732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733   (eval $ac_try) 2>&5
8734   ac_status=$?
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); }; } &&
8737          { ac_try='test -s conftest.$ac_objext'
8738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739   (eval $ac_try) 2>&5
8740   ac_status=$?
8741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   (exit $ac_status); }; }; then
8743   ac_cv_type_voidp=yes
8744 else
8745   echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8747
8748 ac_cv_type_voidp=no
8749 fi
8750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8751 fi
8752 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
8753 echo "${ECHO_T}$ac_cv_type_voidp" >&6
8754
8755 echo "$as_me:$LINENO: checking size of void*" >&5
8756 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
8757 if test "${ac_cv_sizeof_voidp+set}" = set; then
8758   echo $ECHO_N "(cached) $ECHO_C" >&6
8759 else
8760   if test "$ac_cv_type_voidp" = yes; then
8761   # The cast to unsigned long works around a bug in the HP C Compiler
8762   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8763   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8764   # This bug is HP SR number 8606223364.
8765   if test "$cross_compiling" = yes; then
8766   # Depending upon the size, compute the lo and hi bounds.
8767 cat >conftest.$ac_ext <<_ACEOF
8768 /* confdefs.h.  */
8769 _ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h.  */
8773 $ac_includes_default
8774 int
8775 main ()
8776 {
8777 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
8778 test_array [0] = 0
8779
8780   ;
8781   return 0;
8782 }
8783 _ACEOF
8784 rm -f conftest.$ac_objext
8785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8786   (eval $ac_compile) 2>conftest.er1
8787   ac_status=$?
8788   grep -v '^ *+' conftest.er1 >conftest.err
8789   rm -f conftest.er1
8790   cat conftest.err >&5
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); } &&
8793          { ac_try='test -z "$ac_c_werror_flag"
8794                          || test ! -s conftest.err'
8795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796   (eval $ac_try) 2>&5
8797   ac_status=$?
8798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799   (exit $ac_status); }; } &&
8800          { ac_try='test -s conftest.$ac_objext'
8801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802   (eval $ac_try) 2>&5
8803   ac_status=$?
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); }; }; then
8806   ac_lo=0 ac_mid=0
8807   while :; do
8808     cat >conftest.$ac_ext <<_ACEOF
8809 /* confdefs.h.  */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h.  */
8814 $ac_includes_default
8815 int
8816 main ()
8817 {
8818 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
8819 test_array [0] = 0
8820
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 rm -f conftest.$ac_objext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8827   (eval $ac_compile) 2>conftest.er1
8828   ac_status=$?
8829   grep -v '^ *+' conftest.er1 >conftest.err
8830   rm -f conftest.er1
8831   cat conftest.err >&5
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); } &&
8834          { ac_try='test -z "$ac_c_werror_flag"
8835                          || test ! -s conftest.err'
8836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837   (eval $ac_try) 2>&5
8838   ac_status=$?
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); }; } &&
8841          { ac_try='test -s conftest.$ac_objext'
8842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843   (eval $ac_try) 2>&5
8844   ac_status=$?
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); }; }; then
8847   ac_hi=$ac_mid; break
8848 else
8849   echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8851
8852 ac_lo=`expr $ac_mid + 1`
8853                     if test $ac_lo -le $ac_mid; then
8854                       ac_lo= ac_hi=
8855                       break
8856                     fi
8857                     ac_mid=`expr 2 '*' $ac_mid + 1`
8858 fi
8859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8860   done
8861 else
8862   echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8864
8865 cat >conftest.$ac_ext <<_ACEOF
8866 /* confdefs.h.  */
8867 _ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h.  */
8871 $ac_includes_default
8872 int
8873 main ()
8874 {
8875 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
8876 test_array [0] = 0
8877
8878   ;
8879   return 0;
8880 }
8881 _ACEOF
8882 rm -f conftest.$ac_objext
8883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8884   (eval $ac_compile) 2>conftest.er1
8885   ac_status=$?
8886   grep -v '^ *+' conftest.er1 >conftest.err
8887   rm -f conftest.er1
8888   cat conftest.err >&5
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); } &&
8891          { ac_try='test -z "$ac_c_werror_flag"
8892                          || test ! -s conftest.err'
8893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894   (eval $ac_try) 2>&5
8895   ac_status=$?
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); }; } &&
8898          { ac_try='test -s conftest.$ac_objext'
8899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900   (eval $ac_try) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); }; }; then
8904   ac_hi=-1 ac_mid=-1
8905   while :; do
8906     cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h.  */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h.  */
8912 $ac_includes_default
8913 int
8914 main ()
8915 {
8916 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
8917 test_array [0] = 0
8918
8919   ;
8920   return 0;
8921 }
8922 _ACEOF
8923 rm -f conftest.$ac_objext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8925   (eval $ac_compile) 2>conftest.er1
8926   ac_status=$?
8927   grep -v '^ *+' conftest.er1 >conftest.err
8928   rm -f conftest.er1
8929   cat conftest.err >&5
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); } &&
8932          { ac_try='test -z "$ac_c_werror_flag"
8933                          || test ! -s conftest.err'
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); }; } &&
8939          { ac_try='test -s conftest.$ac_objext'
8940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941   (eval $ac_try) 2>&5
8942   ac_status=$?
8943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944   (exit $ac_status); }; }; then
8945   ac_lo=$ac_mid; break
8946 else
8947   echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8949
8950 ac_hi=`expr '(' $ac_mid ')' - 1`
8951                        if test $ac_mid -le $ac_hi; then
8952                          ac_lo= ac_hi=
8953                          break
8954                        fi
8955                        ac_mid=`expr 2 '*' $ac_mid`
8956 fi
8957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8958   done
8959 else
8960   echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8962
8963 ac_lo= ac_hi=
8964 fi
8965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8966 fi
8967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8968 # Binary search between lo and hi bounds.
8969 while test "x$ac_lo" != "x$ac_hi"; do
8970   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8971   cat >conftest.$ac_ext <<_ACEOF
8972 /* confdefs.h.  */
8973 _ACEOF
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h.  */
8977 $ac_includes_default
8978 int
8979 main ()
8980 {
8981 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
8982 test_array [0] = 0
8983
8984   ;
8985   return 0;
8986 }
8987 _ACEOF
8988 rm -f conftest.$ac_objext
8989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8990   (eval $ac_compile) 2>conftest.er1
8991   ac_status=$?
8992   grep -v '^ *+' conftest.er1 >conftest.err
8993   rm -f conftest.er1
8994   cat conftest.err >&5
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); } &&
8997          { ac_try='test -z "$ac_c_werror_flag"
8998                          || test ! -s conftest.err'
8999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000   (eval $ac_try) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); }; } &&
9004          { ac_try='test -s conftest.$ac_objext'
9005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006   (eval $ac_try) 2>&5
9007   ac_status=$?
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); }; }; then
9010   ac_hi=$ac_mid
9011 else
9012   echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9014
9015 ac_lo=`expr '(' $ac_mid ')' + 1`
9016 fi
9017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9018 done
9019 case $ac_lo in
9020 ?*) ac_cv_sizeof_voidp=$ac_lo;;
9021 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
9022 See \`config.log' for more details." >&5
9023 echo "$as_me: error: cannot compute sizeof (void*), 77
9024 See \`config.log' for more details." >&2;}
9025    { (exit 1); exit 1; }; } ;;
9026 esac
9027 else
9028   if test "$cross_compiling" = yes; then
9029   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9030 See \`config.log' for more details." >&5
9031 echo "$as_me: error: cannot run test program while cross compiling
9032 See \`config.log' for more details." >&2;}
9033    { (exit 1); exit 1; }; }
9034 else
9035   cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h.  */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h.  */
9041 $ac_includes_default
9042 long longval () { return (long) (sizeof (void*)); }
9043 unsigned long ulongval () { return (long) (sizeof (void*)); }
9044 #include <stdio.h>
9045 #include <stdlib.h>
9046 int
9047 main ()
9048 {
9049
9050   FILE *f = fopen ("conftest.val", "w");
9051   if (! f)
9052     exit (1);
9053   if (((long) (sizeof (void*))) < 0)
9054     {
9055       long i = longval ();
9056       if (i != ((long) (sizeof (void*))))
9057         exit (1);
9058       fprintf (f, "%ld\n", i);
9059     }
9060   else
9061     {
9062       unsigned long i = ulongval ();
9063       if (i != ((long) (sizeof (void*))))
9064         exit (1);
9065       fprintf (f, "%lu\n", i);
9066     }
9067   exit (ferror (f) || fclose (f) != 0);
9068
9069   ;
9070   return 0;
9071 }
9072 _ACEOF
9073 rm -f conftest$ac_exeext
9074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9075   (eval $ac_link) 2>&5
9076   ac_status=$?
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080   (eval $ac_try) 2>&5
9081   ac_status=$?
9082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083   (exit $ac_status); }; }; then
9084   ac_cv_sizeof_voidp=`cat conftest.val`
9085 else
9086   echo "$as_me: program exited with status $ac_status" >&5
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9089
9090 ( exit $ac_status )
9091 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
9092 See \`config.log' for more details." >&5
9093 echo "$as_me: error: cannot compute sizeof (void*), 77
9094 See \`config.log' for more details." >&2;}
9095    { (exit 1); exit 1; }; }
9096 fi
9097 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9098 fi
9099 fi
9100 rm -f conftest.val
9101 else
9102   ac_cv_sizeof_voidp=0
9103 fi
9104 fi
9105 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
9106 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
9107 cat >>confdefs.h <<_ACEOF
9108 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
9109 _ACEOF
9110
9111
9112    ac_cv_char_data_model=""
9113    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
9114    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
9115    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
9116    ac_cv_long_data_model=""
9117    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
9118    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
9119    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
9120    echo "$as_me:$LINENO: checking data model" >&5
9121 echo $ECHO_N "checking data model... $ECHO_C" >&6
9122    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
9123     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
9124     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
9125     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
9126     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
9127     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
9128     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
9129     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
9130     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
9131     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
9132     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
9133     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
9134     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
9135     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
9136     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
9137     222/*|333/*|444/*|666/*|888/*) :
9138                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
9139      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
9140    esac
9141    echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
9142 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
9143
9144 fi
9145
9146 if test "_$ac_cv_header_stdint_x" != "_" ; then
9147    ac_cv_header_stdint="$ac_cv_header_stdint_x"
9148 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
9149    ac_cv_header_stdint="$ac_cv_header_stdint_o"
9150 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
9151    ac_cv_header_stdint="$ac_cv_header_stdint_u"
9152 else
9153    ac_cv_header_stdint="stddef.h"
9154 fi
9155
9156 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
9157 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
9158 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
9159 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
9160 unset ac_cv_type_int_least32_t
9161 unset ac_cv_type_int_fast32_t
9162 echo "$as_me:$LINENO: checking for int_least32_t" >&5
9163 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
9164 if test "${ac_cv_type_int_least32_t+set}" = set; then
9165   echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167   cat >conftest.$ac_ext <<_ACEOF
9168 /* confdefs.h.  */
9169 _ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h.  */
9173 #include <$ac_cv_header_stdint>
9174
9175 int
9176 main ()
9177 {
9178 if ((int_least32_t *) 0)
9179   return 0;
9180 if (sizeof (int_least32_t))
9181   return 0;
9182   ;
9183   return 0;
9184 }
9185 _ACEOF
9186 rm -f conftest.$ac_objext
9187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9188   (eval $ac_compile) 2>conftest.er1
9189   ac_status=$?
9190   grep -v '^ *+' conftest.er1 >conftest.err
9191   rm -f conftest.er1
9192   cat conftest.err >&5
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); } &&
9195          { ac_try='test -z "$ac_c_werror_flag"
9196                          || test ! -s conftest.err'
9197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198   (eval $ac_try) 2>&5
9199   ac_status=$?
9200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201   (exit $ac_status); }; } &&
9202          { ac_try='test -s conftest.$ac_objext'
9203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204   (eval $ac_try) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); }; }; then
9208   ac_cv_type_int_least32_t=yes
9209 else
9210   echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9212
9213 ac_cv_type_int_least32_t=no
9214 fi
9215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9216 fi
9217 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
9218 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
9219
9220 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
9221 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
9222 if test "${ac_cv_type_int_fast32_t+set}" = set; then
9223   echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225   cat >conftest.$ac_ext <<_ACEOF
9226 /* confdefs.h.  */
9227 _ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h.  */
9231 #include<$ac_cv_header_stdint>
9232
9233 int
9234 main ()
9235 {
9236 if ((int_fast32_t *) 0)
9237   return 0;
9238 if (sizeof (int_fast32_t))
9239   return 0;
9240   ;
9241   return 0;
9242 }
9243 _ACEOF
9244 rm -f conftest.$ac_objext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246   (eval $ac_compile) 2>conftest.er1
9247   ac_status=$?
9248   grep -v '^ *+' conftest.er1 >conftest.err
9249   rm -f conftest.er1
9250   cat conftest.err >&5
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   (exit $ac_status); } &&
9253          { ac_try='test -z "$ac_c_werror_flag"
9254                          || test ! -s conftest.err'
9255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256   (eval $ac_try) 2>&5
9257   ac_status=$?
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); }; } &&
9260          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9266   ac_cv_type_int_fast32_t=yes
9267 else
9268   echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9270
9271 ac_cv_type_int_fast32_t=no
9272 fi
9273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9274 fi
9275 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
9276 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
9277
9278 echo "$as_me:$LINENO: checking for intmax_t" >&5
9279 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
9280 if test "${ac_cv_type_intmax_t+set}" = set; then
9281   echo $ECHO_N "(cached) $ECHO_C" >&6
9282 else
9283   cat >conftest.$ac_ext <<_ACEOF
9284 /* confdefs.h.  */
9285 _ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h.  */
9289 #include <$ac_cv_header_stdint>
9290
9291 int
9292 main ()
9293 {
9294 if ((intmax_t *) 0)
9295   return 0;
9296 if (sizeof (intmax_t))
9297   return 0;
9298   ;
9299   return 0;
9300 }
9301 _ACEOF
9302 rm -f conftest.$ac_objext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9304   (eval $ac_compile) 2>conftest.er1
9305   ac_status=$?
9306   grep -v '^ *+' conftest.er1 >conftest.err
9307   rm -f conftest.er1
9308   cat conftest.err >&5
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); } &&
9311          { ac_try='test -z "$ac_c_werror_flag"
9312                          || test ! -s conftest.err'
9313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314   (eval $ac_try) 2>&5
9315   ac_status=$?
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); }; } &&
9318          { ac_try='test -s conftest.$ac_objext'
9319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320   (eval $ac_try) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; }; then
9324   ac_cv_type_intmax_t=yes
9325 else
9326   echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329 ac_cv_type_intmax_t=no
9330 fi
9331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9332 fi
9333 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
9334 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
9335
9336
9337 fi # shortcircut to system "stdint.h"
9338 # ------------------ PREPARE VARIABLES ------------------------------
9339 if test "$GCC" = "yes" ; then
9340 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
9341 else
9342 ac_cv_stdint_message="using $CC"
9343 fi
9344
9345 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
9346 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
9347
9348 # ----------------- DONE inttypes.h checks START header -------------
9349           ac_config_commands="$ac_config_commands $ac_stdint_h"
9350
9351
9352
9353 for ac_prog in ar
9354 do
9355   # Extract the first word of "$ac_prog", so it can be a program name with args.
9356 set dummy $ac_prog; ac_word=$2
9357 echo "$as_me:$LINENO: checking for $ac_word" >&5
9358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9359 if test "${ac_cv_path_AR+set}" = set; then
9360   echo $ECHO_N "(cached) $ECHO_C" >&6
9361 else
9362   case $AR in
9363   [\\/]* | ?:[\\/]*)
9364   ac_cv_path_AR="$AR" # Let the user override the test with a path.
9365   ;;
9366   *)
9367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9368 for as_dir in $LOCSYSPATH
9369 do
9370   IFS=$as_save_IFS
9371   test -z "$as_dir" && as_dir=.
9372   for ac_exec_ext in '' $ac_executable_extensions; do
9373   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9374     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
9375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9376     break 2
9377   fi
9378 done
9379 done
9380
9381   ;;
9382 esac
9383 fi
9384 AR=$ac_cv_path_AR
9385
9386 if test -n "$AR"; then
9387   echo "$as_me:$LINENO: result: $AR" >&5
9388 echo "${ECHO_T}$AR" >&6
9389 else
9390   echo "$as_me:$LINENO: result: no" >&5
9391 echo "${ECHO_T}no" >&6
9392 fi
9393
9394   test -n "$AR" && break
9395 done
9396
9397
9398 for ac_prog in gawk mawk nawk awk
9399 do
9400   # Extract the first word of "$ac_prog", so it can be a program name with args.
9401 set dummy $ac_prog; ac_word=$2
9402 echo "$as_me:$LINENO: checking for $ac_word" >&5
9403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9404 if test "${ac_cv_prog_AWK+set}" = set; then
9405   echo $ECHO_N "(cached) $ECHO_C" >&6
9406 else
9407   if test -n "$AWK"; then
9408   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9409 else
9410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9411 for as_dir in $PATH
9412 do
9413   IFS=$as_save_IFS
9414   test -z "$as_dir" && as_dir=.
9415   for ac_exec_ext in '' $ac_executable_extensions; do
9416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9417     ac_cv_prog_AWK="$ac_prog"
9418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9419     break 2
9420   fi
9421 done
9422 done
9423
9424 fi
9425 fi
9426 AWK=$ac_cv_prog_AWK
9427 if test -n "$AWK"; then
9428   echo "$as_me:$LINENO: result: $AWK" >&5
9429 echo "${ECHO_T}$AWK" >&6
9430 else
9431   echo "$as_me:$LINENO: result: no" >&5
9432 echo "${ECHO_T}no" >&6
9433 fi
9434
9435   test -n "$AWK" && break
9436 done
9437
9438
9439
9440         echo "$as_me:$LINENO: checking for $AWK command line variable assignment" >&5
9441 echo $ECHO_N "checking for $AWK command line variable assignment... $ECHO_C" >&6
9442 if test "${amanda_cv_awk_var_assignment+set}" = set; then
9443   echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445
9446                 echo 'BEGIN{print i; exit}' > conftest.awk
9447                 result=`$AWK -f conftest.awk i=xx | wc -c`
9448                 if test "$result" -le 1; then
9449                     result=`$AWK -f conftest.awk -v i=xx | wc -c`
9450                     if test "$result" -le 1; then
9451                         amanda_cv_awk_var_assignment=no
9452                     else
9453                         amanda_cv_awk_var_assignment="yes with -v"
9454                     fi
9455                 else
9456                     amanda_cv_awk_var_assignment="yes"
9457                 fi
9458                 rm -fr conftest.awk
9459
9460
9461 fi
9462 echo "$as_me:$LINENO: result: $amanda_cv_awk_var_assignment" >&5
9463 echo "${ECHO_T}$amanda_cv_awk_var_assignment" >&6
9464         AWK_VAR_ASSIGNMENT_OPT=
9465         case "$amanda_cv_awk_var_assignment" in
9466             no)
9467                 HAVE_AWK_WITH_VAR=no
9468                 ;;
9469             yes)
9470                 HAVE_AWK_WITH_VAR=yes
9471                 ;;
9472             "yes with -v")
9473                 HAVE_AWK_WITH_VAR=yes
9474                 AWK_VAR_ASSIGNMENT_OPT=-v
9475                 ;;
9476         esac
9477
9478
9479
9480 if test "x$amanda_cv_awk_var_assignment" = xno; then
9481     NO_AMPLOT_MODE=true
9482     { echo "$as_me:$LINENO: WARNING: *** Your $awk cannot do command line variable assignment.  Amplot will not be installed." >&5
9483 echo "$as_me: WARNING: *** Your $awk cannot do command line variable assignment.  Amplot will not be installed." >&2;}
9484 fi
9485
9486 for ac_prog in 'bison -y' byacc
9487 do
9488   # Extract the first word of "$ac_prog", so it can be a program name with args.
9489 set dummy $ac_prog; ac_word=$2
9490 echo "$as_me:$LINENO: checking for $ac_word" >&5
9491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9492 if test "${ac_cv_prog_YACC+set}" = set; then
9493   echo $ECHO_N "(cached) $ECHO_C" >&6
9494 else
9495   if test -n "$YACC"; then
9496   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9497 else
9498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499 for as_dir in $PATH
9500 do
9501   IFS=$as_save_IFS
9502   test -z "$as_dir" && as_dir=.
9503   for ac_exec_ext in '' $ac_executable_extensions; do
9504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9505     ac_cv_prog_YACC="$ac_prog"
9506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9507     break 2
9508   fi
9509 done
9510 done
9511
9512 fi
9513 fi
9514 YACC=$ac_cv_prog_YACC
9515 if test -n "$YACC"; then
9516   echo "$as_me:$LINENO: result: $YACC" >&5
9517 echo "${ECHO_T}$YACC" >&6
9518 else
9519   echo "$as_me:$LINENO: result: no" >&5
9520 echo "${ECHO_T}no" >&6
9521 fi
9522
9523   test -n "$YACC" && break
9524 done
9525 test -n "$YACC" || YACC="yacc"
9526
9527 for ac_prog in cat
9528 do
9529   # Extract the first word of "$ac_prog", so it can be a program name with args.
9530 set dummy $ac_prog; ac_word=$2
9531 echo "$as_me:$LINENO: checking for $ac_word" >&5
9532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9533 if test "${ac_cv_path_CAT+set}" = set; then
9534   echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536   case $CAT in
9537   [\\/]* | ?:[\\/]*)
9538   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
9539   ;;
9540   *)
9541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542 for as_dir in $LOCSYSPATH
9543 do
9544   IFS=$as_save_IFS
9545   test -z "$as_dir" && as_dir=.
9546   for ac_exec_ext in '' $ac_executable_extensions; do
9547   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9548     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
9549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9550     break 2
9551   fi
9552 done
9553 done
9554
9555   ;;
9556 esac
9557 fi
9558 CAT=$ac_cv_path_CAT
9559
9560 if test -n "$CAT"; then
9561   echo "$as_me:$LINENO: result: $CAT" >&5
9562 echo "${ECHO_T}$CAT" >&6
9563 else
9564   echo "$as_me:$LINENO: result: no" >&5
9565 echo "${ECHO_T}no" >&6
9566 fi
9567
9568   test -n "$CAT" && break
9569 done
9570
9571 if test -z "$CAT"; then
9572     CAT=cat
9573 fi
9574 for ac_prog in compress
9575 do
9576   # Extract the first word of "$ac_prog", so it can be a program name with args.
9577 set dummy $ac_prog; ac_word=$2
9578 echo "$as_me:$LINENO: checking for $ac_word" >&5
9579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9580 if test "${ac_cv_path_COMPRESS+set}" = set; then
9581   echo $ECHO_N "(cached) $ECHO_C" >&6
9582 else
9583   case $COMPRESS in
9584   [\\/]* | ?:[\\/]*)
9585   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
9586   ;;
9587   *)
9588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589 for as_dir in $LOCSYSPATH
9590 do
9591   IFS=$as_save_IFS
9592   test -z "$as_dir" && as_dir=.
9593   for ac_exec_ext in '' $ac_executable_extensions; do
9594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9595     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
9596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9597     break 2
9598   fi
9599 done
9600 done
9601
9602   ;;
9603 esac
9604 fi
9605 COMPRESS=$ac_cv_path_COMPRESS
9606
9607 if test -n "$COMPRESS"; then
9608   echo "$as_me:$LINENO: result: $COMPRESS" >&5
9609 echo "${ECHO_T}$COMPRESS" >&6
9610 else
9611   echo "$as_me:$LINENO: result: no" >&5
9612 echo "${ECHO_T}no" >&6
9613 fi
9614
9615   test -n "$COMPRESS" && break
9616 done
9617
9618 for ac_prog in dd
9619 do
9620   # Extract the first word of "$ac_prog", so it can be a program name with args.
9621 set dummy $ac_prog; ac_word=$2
9622 echo "$as_me:$LINENO: checking for $ac_word" >&5
9623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9624 if test "${ac_cv_path_DD+set}" = set; then
9625   echo $ECHO_N "(cached) $ECHO_C" >&6
9626 else
9627   case $DD in
9628   [\\/]* | ?:[\\/]*)
9629   ac_cv_path_DD="$DD" # Let the user override the test with a path.
9630   ;;
9631   *)
9632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $LOCSYSPATH
9634 do
9635   IFS=$as_save_IFS
9636   test -z "$as_dir" && as_dir=.
9637   for ac_exec_ext in '' $ac_executable_extensions; do
9638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9639     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
9640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9641     break 2
9642   fi
9643 done
9644 done
9645
9646   ;;
9647 esac
9648 fi
9649 DD=$ac_cv_path_DD
9650
9651 if test -n "$DD"; then
9652   echo "$as_me:$LINENO: result: $DD" >&5
9653 echo "${ECHO_T}$DD" >&6
9654 else
9655   echo "$as_me:$LINENO: result: no" >&5
9656 echo "${ECHO_T}no" >&6
9657 fi
9658
9659   test -n "$DD" && break
9660 done
9661
9662 for ac_prog in getconf
9663 do
9664   # Extract the first word of "$ac_prog", so it can be a program name with args.
9665 set dummy $ac_prog; ac_word=$2
9666 echo "$as_me:$LINENO: checking for $ac_word" >&5
9667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9668 if test "${ac_cv_path_GETCONF+set}" = set; then
9669   echo $ECHO_N "(cached) $ECHO_C" >&6
9670 else
9671   case $GETCONF in
9672   [\\/]* | ?:[\\/]*)
9673   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
9674   ;;
9675   *)
9676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9677 for as_dir in $SYSPATH
9678 do
9679   IFS=$as_save_IFS
9680   test -z "$as_dir" && as_dir=.
9681   for ac_exec_ext in '' $ac_executable_extensions; do
9682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9683     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
9684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9685     break 2
9686   fi
9687 done
9688 done
9689
9690   ;;
9691 esac
9692 fi
9693 GETCONF=$ac_cv_path_GETCONF
9694
9695 if test -n "$GETCONF"; then
9696   echo "$as_me:$LINENO: result: $GETCONF" >&5
9697 echo "${ECHO_T}$GETCONF" >&6
9698 else
9699   echo "$as_me:$LINENO: result: no" >&5
9700 echo "${ECHO_T}no" >&6
9701 fi
9702
9703   test -n "$GETCONF" && break
9704 done
9705
9706
9707 for ac_prog in gnuplot
9708 do
9709   # Extract the first word of "$ac_prog", so it can be a program name with args.
9710 set dummy $ac_prog; ac_word=$2
9711 echo "$as_me:$LINENO: checking for $ac_word" >&5
9712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9713 if test "${ac_cv_path_GNUPLOT+set}" = set; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716   case $GNUPLOT in
9717   [\\/]* | ?:[\\/]*)
9718   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
9719   ;;
9720   *)
9721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722 for as_dir in $LOCSYSPATH
9723 do
9724   IFS=$as_save_IFS
9725   test -z "$as_dir" && as_dir=.
9726   for ac_exec_ext in '' $ac_executable_extensions; do
9727   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9728     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
9729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9730     break 2
9731   fi
9732 done
9733 done
9734
9735   ;;
9736 esac
9737 fi
9738 GNUPLOT=$ac_cv_path_GNUPLOT
9739
9740 if test -n "$GNUPLOT"; then
9741   echo "$as_me:$LINENO: result: $GNUPLOT" >&5
9742 echo "${ECHO_T}$GNUPLOT" >&6
9743 else
9744   echo "$as_me:$LINENO: result: no" >&5
9745 echo "${ECHO_T}no" >&6
9746 fi
9747
9748   test -n "$GNUPLOT" && break
9749 done
9750
9751 if test -z "$GNUPLOT"; then
9752     NO_AMPLOT_MODE=true
9753     { echo "$as_me:$LINENO: WARNING: *** You do not have gnuplot.  Amplot will not be installed." >&5
9754 echo "$as_me: WARNING: *** You do not have gnuplot.  Amplot will not be installed." >&2;}
9755 fi
9756
9757 for ac_prog in gtar gnutar tar
9758 do
9759   # Extract the first word of "$ac_prog", so it can be a program name with args.
9760 set dummy $ac_prog; ac_word=$2
9761 echo "$as_me:$LINENO: checking for $ac_word" >&5
9762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9763 if test "${ac_cv_path_GNUTAR+set}" = set; then
9764   echo $ECHO_N "(cached) $ECHO_C" >&6
9765 else
9766   case $GNUTAR in
9767   [\\/]* | ?:[\\/]*)
9768   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
9769   ;;
9770   *)
9771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 for as_dir in $LOCSYSPATH
9773 do
9774   IFS=$as_save_IFS
9775   test -z "$as_dir" && as_dir=.
9776   for ac_exec_ext in '' $ac_executable_extensions; do
9777   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9778     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
9779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9780     break 2
9781   fi
9782 done
9783 done
9784
9785   ;;
9786 esac
9787 fi
9788 GNUTAR=$ac_cv_path_GNUTAR
9789
9790 if test -n "$GNUTAR"; then
9791   echo "$as_me:$LINENO: result: $GNUTAR" >&5
9792 echo "${ECHO_T}$GNUTAR" >&6
9793 else
9794   echo "$as_me:$LINENO: result: no" >&5
9795 echo "${ECHO_T}no" >&6
9796 fi
9797
9798   test -n "$GNUTAR" && break
9799 done
9800
9801 if test ! -z "$GNUTAR"; then
9802   case "`\"$GNUTAR\" --version 2>&1`" in
9803    *GNU*tar* | *Free*paxutils* )
9804
9805 cat >>confdefs.h <<_ACEOF
9806 #define GNUTAR "$GNUTAR"
9807 _ACEOF
9808
9809                 ;;
9810    *)
9811                 { echo "$as_me:$LINENO: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&5
9812 echo "$as_me: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&2;}
9813                 GNUTAR=
9814                 ;;
9815   esac
9816 fi
9817
9818 for ac_prog in smbclient
9819 do
9820   # Extract the first word of "$ac_prog", so it can be a program name with args.
9821 set dummy $ac_prog; ac_word=$2
9822 echo "$as_me:$LINENO: checking for $ac_word" >&5
9823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9824 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
9825   echo $ECHO_N "(cached) $ECHO_C" >&6
9826 else
9827   case $SAMBA_CLIENT in
9828   [\\/]* | ?:[\\/]*)
9829   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
9830   ;;
9831   *)
9832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833 for as_dir in $LOCSYSPATH
9834 do
9835   IFS=$as_save_IFS
9836   test -z "$as_dir" && as_dir=.
9837   for ac_exec_ext in '' $ac_executable_extensions; do
9838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9839     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
9840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9841     break 2
9842   fi
9843 done
9844 done
9845
9846   ;;
9847 esac
9848 fi
9849 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
9850
9851 if test -n "$SAMBA_CLIENT"; then
9852   echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
9853 echo "${ECHO_T}$SAMBA_CLIENT" >&6
9854 else
9855   echo "$as_me:$LINENO: result: no" >&5
9856 echo "${ECHO_T}no" >&6
9857 fi
9858
9859   test -n "$SAMBA_CLIENT" && break
9860 done
9861
9862 if test ! -z "$SAMBA_CLIENT"; then
9863   case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
9864   *"Unknown host"*)
9865                 smbversion=1
9866                 ;;
9867   *"Connection to not.a.host.name failed"*)
9868                 smbversion=2
9869                 ;;
9870   *)
9871                 { echo "$as_me:$LINENO: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
9872 echo "$as_me: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
9873                 SAMBA_CLIENT=
9874                 ;;
9875   esac
9876   if test -n "$SAMBA_CLIENT"; then
9877
9878 cat >>confdefs.h <<_ACEOF
9879 #define SAMBA_CLIENT "$SAMBA_CLIENT"
9880 _ACEOF
9881
9882
9883 cat >>confdefs.h <<_ACEOF
9884 #define SAMBA_VERSION $smbversion
9885 _ACEOF
9886
9887   fi
9888 fi
9889
9890 for ac_prog in gzip
9891 do
9892   # Extract the first word of "$ac_prog", so it can be a program name with args.
9893 set dummy $ac_prog; ac_word=$2
9894 echo "$as_me:$LINENO: checking for $ac_word" >&5
9895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9896 if test "${ac_cv_path_GZIP+set}" = set; then
9897   echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899   case $GZIP in
9900   [\\/]* | ?:[\\/]*)
9901   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
9902   ;;
9903   *)
9904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905 for as_dir in $LOCSYSPATH
9906 do
9907   IFS=$as_save_IFS
9908   test -z "$as_dir" && as_dir=.
9909   for ac_exec_ext in '' $ac_executable_extensions; do
9910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9911     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
9912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9913     break 2
9914   fi
9915 done
9916 done
9917
9918   ;;
9919 esac
9920 fi
9921 GZIP=$ac_cv_path_GZIP
9922
9923 if test -n "$GZIP"; then
9924   echo "$as_me:$LINENO: result: $GZIP" >&5
9925 echo "${ECHO_T}$GZIP" >&6
9926 else
9927   echo "$as_me:$LINENO: result: no" >&5
9928 echo "${ECHO_T}no" >&6
9929 fi
9930
9931   test -n "$GZIP" && break
9932 done
9933
9934 if test "$GZIP"; then
9935
9936 cat >>confdefs.h <<\_ACEOF
9937 #define HAVE_GZIP 1
9938 _ACEOF
9939
9940     COMPRESS_PATH="$GZIP"
9941     COMPRESS_SUFFIX=".gz"
9942     COMPRESS_FAST_OPT="--fast"
9943     COMPRESS_BEST_OPT="--best"
9944     UNCOMPRESS_PATH="$GZIP"
9945     UNCOMPRESS_OPT="-dc"
9946 else
9947     if test "$COMPRESS"; then
9948         COMPRESS_PATH="$COMPRESS"
9949         COMPRESS_SUFFIX=".Z"
9950         COMPRESS_FAST_OPT="-f"
9951         COMPRESS_BEST_OPT="-f"
9952         UNCOMPRESS_PATH="$COMPRESS"
9953         UNCOMPRESS_OPT="-dc"
9954     else
9955                                 { echo "$as_me:$LINENO: WARNING: *** Cannot find either gzip or compress.  Using cat. ***" >&5
9956 echo "$as_me: WARNING: *** Cannot find either gzip or compress.  Using cat. ***" >&2;}
9957         COMPRESS_PATH="$CAT"
9958         COMPRESS_SUFFIX=""
9959         COMPRESS_FAST_OPT=""
9960         COMPRESS_BEST_OPT=""
9961         UNCOMPRESS_PATH="$CAT"
9962         UNCOMPRESS_OPT=""
9963     fi
9964 fi
9965
9966 cat >>confdefs.h <<_ACEOF
9967 #define COMPRESS_PATH "$COMPRESS_PATH"
9968 _ACEOF
9969
9970
9971 cat >>confdefs.h <<_ACEOF
9972 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
9973 _ACEOF
9974
9975
9976 cat >>confdefs.h <<_ACEOF
9977 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
9978 _ACEOF
9979
9980
9981 cat >>confdefs.h <<_ACEOF
9982 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
9983 _ACEOF
9984
9985
9986 cat >>confdefs.h <<_ACEOF
9987 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
9988 _ACEOF
9989
9990
9991 cat >>confdefs.h <<_ACEOF
9992 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
9993 _ACEOF
9994
9995
9996 for ac_prog in Mail mailx mail
9997 do
9998   # Extract the first word of "$ac_prog", so it can be a program name with args.
9999 set dummy $ac_prog; ac_word=$2
10000 echo "$as_me:$LINENO: checking for $ac_word" >&5
10001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10002 if test "${ac_cv_path_MAILER+set}" = set; then
10003   echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005   case $MAILER in
10006   [\\/]* | ?:[\\/]*)
10007   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
10008   ;;
10009   *)
10010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011 for as_dir in $PATH
10012 do
10013   IFS=$as_save_IFS
10014   test -z "$as_dir" && as_dir=.
10015   for ac_exec_ext in '' $ac_executable_extensions; do
10016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10017     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
10018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10019     break 2
10020   fi
10021 done
10022 done
10023
10024   ;;
10025 esac
10026 fi
10027 MAILER=$ac_cv_path_MAILER
10028
10029 if test -n "$MAILER"; then
10030   echo "$as_me:$LINENO: result: $MAILER" >&5
10031 echo "${ECHO_T}$MAILER" >&6
10032 else
10033   echo "$as_me:$LINENO: result: no" >&5
10034 echo "${ECHO_T}no" >&6
10035 fi
10036
10037   test -n "$MAILER" && break
10038 done
10039
10040 if test -z "$MAILER"; then
10041     if $NO_SERVER_MODE; then
10042         MAILER="NONE"
10043         { echo "$as_me:$LINENO: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&5
10044 echo "$as_me: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&2;}
10045     else
10046         { { echo "$as_me:$LINENO: error: Set MAILER to some program that accepts -s subject user < message_file." >&5
10047 echo "$as_me: error: Set MAILER to some program that accepts -s subject user < message_file." >&2;}
10048    { (exit 1); exit 1; }; }
10049     fi
10050 fi
10051
10052 cat >>confdefs.h <<_ACEOF
10053 #define MAILER "$MAILER"
10054 _ACEOF
10055
10056
10057 for ac_prog in mt
10058 do
10059   # Extract the first word of "$ac_prog", so it can be a program name with args.
10060 set dummy $ac_prog; ac_word=$2
10061 echo "$as_me:$LINENO: checking for $ac_word" >&5
10062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10063 if test "${ac_cv_path_MT+set}" = set; then
10064   echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066   case $MT in
10067   [\\/]* | ?:[\\/]*)
10068   ac_cv_path_MT="$MT" # Let the user override the test with a path.
10069   ;;
10070   *)
10071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072 for as_dir in $LOCSYSPATH
10073 do
10074   IFS=$as_save_IFS
10075   test -z "$as_dir" && as_dir=.
10076   for ac_exec_ext in '' $ac_executable_extensions; do
10077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10078     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
10079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10080     break 2
10081   fi
10082 done
10083 done
10084
10085   ;;
10086 esac
10087 fi
10088 MT=$ac_cv_path_MT
10089
10090 if test -n "$MT"; then
10091   echo "$as_me:$LINENO: result: $MT" >&5
10092 echo "${ECHO_T}$MT" >&6
10093 else
10094   echo "$as_me:$LINENO: result: no" >&5
10095 echo "${ECHO_T}no" >&6
10096 fi
10097
10098   test -n "$MT" && break
10099 done
10100 test -n "$MT" || MT="mt"
10101
10102
10103 for ac_prog in chio
10104 do
10105   # Extract the first word of "$ac_prog", so it can be a program name with args.
10106 set dummy $ac_prog; ac_word=$2
10107 echo "$as_me:$LINENO: checking for $ac_word" >&5
10108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10109 if test "${ac_cv_path_CHIO+set}" = set; then
10110   echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112   case $CHIO in
10113   [\\/]* | ?:[\\/]*)
10114   ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
10115   ;;
10116   *)
10117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118 for as_dir in $LOCSYSPATH
10119 do
10120   IFS=$as_save_IFS
10121   test -z "$as_dir" && as_dir=.
10122   for ac_exec_ext in '' $ac_executable_extensions; do
10123   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10124     ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
10125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10126     break 2
10127   fi
10128 done
10129 done
10130
10131   ;;
10132 esac
10133 fi
10134 CHIO=$ac_cv_path_CHIO
10135
10136 if test -n "$CHIO"; then
10137   echo "$as_me:$LINENO: result: $CHIO" >&5
10138 echo "${ECHO_T}$CHIO" >&6
10139 else
10140   echo "$as_me:$LINENO: result: no" >&5
10141 echo "${ECHO_T}no" >&6
10142 fi
10143
10144   test -n "$CHIO" && break
10145 done
10146 test -n "$CHIO" || CHIO="chio"
10147
10148
10149 for ac_prog in chs
10150 do
10151   # Extract the first word of "$ac_prog", so it can be a program name with args.
10152 set dummy $ac_prog; ac_word=$2
10153 echo "$as_me:$LINENO: checking for $ac_word" >&5
10154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10155 if test "${ac_cv_path_CHS+set}" = set; then
10156   echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158   case $CHS in
10159   [\\/]* | ?:[\\/]*)
10160   ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
10161   ;;
10162   *)
10163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $LOCSYSPATH
10165 do
10166   IFS=$as_save_IFS
10167   test -z "$as_dir" && as_dir=.
10168   for ac_exec_ext in '' $ac_executable_extensions; do
10169   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10170     ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
10171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10172     break 2
10173   fi
10174 done
10175 done
10176
10177   ;;
10178 esac
10179 fi
10180 CHS=$ac_cv_path_CHS
10181
10182 if test -n "$CHS"; then
10183   echo "$as_me:$LINENO: result: $CHS" >&5
10184 echo "${ECHO_T}$CHS" >&6
10185 else
10186   echo "$as_me:$LINENO: result: no" >&5
10187 echo "${ECHO_T}no" >&6
10188 fi
10189
10190   test -n "$CHS" && break
10191 done
10192 test -n "$CHS" || CHS="chs"
10193
10194
10195 for ac_prog in mtx
10196 do
10197   # Extract the first word of "$ac_prog", so it can be a program name with args.
10198 set dummy $ac_prog; ac_word=$2
10199 echo "$as_me:$LINENO: checking for $ac_word" >&5
10200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10201 if test "${ac_cv_path_MTX+set}" = set; then
10202   echo $ECHO_N "(cached) $ECHO_C" >&6
10203 else
10204   case $MTX in
10205   [\\/]* | ?:[\\/]*)
10206   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
10207   ;;
10208   *)
10209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10210 for as_dir in $LOCSYSPATH
10211 do
10212   IFS=$as_save_IFS
10213   test -z "$as_dir" && as_dir=.
10214   for ac_exec_ext in '' $ac_executable_extensions; do
10215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10216     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
10217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10218     break 2
10219   fi
10220 done
10221 done
10222
10223   ;;
10224 esac
10225 fi
10226 MTX=$ac_cv_path_MTX
10227
10228 if test -n "$MTX"; then
10229   echo "$as_me:$LINENO: result: $MTX" >&5
10230 echo "${ECHO_T}$MTX" >&6
10231 else
10232   echo "$as_me:$LINENO: result: no" >&5
10233 echo "${ECHO_T}no" >&6
10234 fi
10235
10236   test -n "$MTX" && break
10237 done
10238 test -n "$MTX" || MTX="mtx"
10239
10240
10241 for ac_prog in mcutil
10242 do
10243   # Extract the first word of "$ac_prog", so it can be a program name with args.
10244 set dummy $ac_prog; ac_word=$2
10245 echo "$as_me:$LINENO: checking for $ac_word" >&5
10246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10247 if test "${ac_cv_path_MCUTIL+set}" = set; then
10248   echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250   case $MCUTIL in
10251   [\\/]* | ?:[\\/]*)
10252   ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
10253   ;;
10254   *)
10255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256 for as_dir in $LOCSYSPATH
10257 do
10258   IFS=$as_save_IFS
10259   test -z "$as_dir" && as_dir=.
10260   for ac_exec_ext in '' $ac_executable_extensions; do
10261   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10262     ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
10263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10264     break 2
10265   fi
10266 done
10267 done
10268
10269   ;;
10270 esac
10271 fi
10272 MCUTIL=$ac_cv_path_MCUTIL
10273
10274 if test -n "$MCUTIL"; then
10275   echo "$as_me:$LINENO: result: $MCUTIL" >&5
10276 echo "${ECHO_T}$MCUTIL" >&6
10277 else
10278   echo "$as_me:$LINENO: result: no" >&5
10279 echo "${ECHO_T}no" >&6
10280 fi
10281
10282   test -n "$MCUTIL" && break
10283 done
10284 test -n "$MCUTIL" || MCUTIL="mcutil"
10285
10286
10287 for ac_prog in lpr lp
10288 do
10289   # Extract the first word of "$ac_prog", so it can be a program name with args.
10290 set dummy $ac_prog; ac_word=$2
10291 echo "$as_me:$LINENO: checking for $ac_word" >&5
10292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10293 if test "${ac_cv_path_PRINT+set}" = set; then
10294   echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296   case $PRINT in
10297   [\\/]* | ?:[\\/]*)
10298   ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
10299   ;;
10300   *)
10301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302 for as_dir in $PATH
10303 do
10304   IFS=$as_save_IFS
10305   test -z "$as_dir" && as_dir=.
10306   for ac_exec_ext in '' $ac_executable_extensions; do
10307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10308     ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
10309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10310     break 2
10311   fi
10312 done
10313 done
10314
10315   ;;
10316 esac
10317 fi
10318 PRINT=$ac_cv_path_PRINT
10319
10320 if test -n "$PRINT"; then
10321   echo "$as_me:$LINENO: result: $PRINT" >&5
10322 echo "${ECHO_T}$PRINT" >&6
10323 else
10324   echo "$as_me:$LINENO: result: no" >&5
10325 echo "${ECHO_T}no" >&6
10326 fi
10327
10328   test -n "$PRINT" && break
10329 done
10330
10331 if test ! -z "$PRINT"; then
10332
10333 cat >>confdefs.h <<_ACEOF
10334 #define LPRCMD "$PRINT"
10335 _ACEOF
10336
10337     echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
10338 echo $ECHO_N "checking which flag to use to select a printer... $ECHO_C" >&6
10339 if test "${amanda_cv_printer_flag+set}" = set; then
10340   echo $ECHO_N "(cached) $ECHO_C" >&6
10341 else
10342
10343         amanda_cv_printer_flag=$PRINTER_FLAG
10344         case "$PRINT" in
10345         lpr|*/lpr) amanda_cv_printer_flag="-P";;
10346         lp|*/lp) amanda_cv_printer_flag="-d";;
10347         esac
10348
10349 fi
10350 echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
10351 echo "${ECHO_T}$amanda_cv_printer_flag" >&6
10352     if test ! -z "$amanda_cv_printer_flag"; then
10353
10354 cat >>confdefs.h <<_ACEOF
10355 #define LPRFLAG "$amanda_cv_printer_flag"
10356 _ACEOF
10357
10358     else
10359         { echo "$as_me:$LINENO: WARNING: *** WARNING: amanda will always print to the default printer" >&5
10360 echo "$as_me: WARNING: *** WARNING: amanda will always print to the default printer" >&2;}
10361     fi
10362 fi
10363
10364 for ac_prog in pcat
10365 do
10366   # Extract the first word of "$ac_prog", so it can be a program name with args.
10367 set dummy $ac_prog; ac_word=$2
10368 echo "$as_me:$LINENO: checking for $ac_word" >&5
10369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10370 if test "${ac_cv_path_PCAT+set}" = set; then
10371   echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373   case $PCAT in
10374   [\\/]* | ?:[\\/]*)
10375   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
10376   ;;
10377   *)
10378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379 for as_dir in $LOCSYSPATH
10380 do
10381   IFS=$as_save_IFS
10382   test -z "$as_dir" && as_dir=.
10383   for ac_exec_ext in '' $ac_executable_extensions; do
10384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10385     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
10386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10387     break 2
10388   fi
10389 done
10390 done
10391
10392   ;;
10393 esac
10394 fi
10395 PCAT=$ac_cv_path_PCAT
10396
10397 if test -n "$PCAT"; then
10398   echo "$as_me:$LINENO: result: $PCAT" >&5
10399 echo "${ECHO_T}$PCAT" >&6
10400 else
10401   echo "$as_me:$LINENO: result: no" >&5
10402 echo "${ECHO_T}no" >&6
10403 fi
10404
10405   test -n "$PCAT" && break
10406 done
10407
10408 for ac_prog in perl5 perl
10409 do
10410   # Extract the first word of "$ac_prog", so it can be a program name with args.
10411 set dummy $ac_prog; ac_word=$2
10412 echo "$as_me:$LINENO: checking for $ac_word" >&5
10413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10414 if test "${ac_cv_path_PERL+set}" = set; then
10415   echo $ECHO_N "(cached) $ECHO_C" >&6
10416 else
10417   case $PERL in
10418   [\\/]* | ?:[\\/]*)
10419   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10420   ;;
10421   *)
10422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423 for as_dir in $LOCSYSPATH
10424 do
10425   IFS=$as_save_IFS
10426   test -z "$as_dir" && as_dir=.
10427   for ac_exec_ext in '' $ac_executable_extensions; do
10428   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10429     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10431     break 2
10432   fi
10433 done
10434 done
10435
10436   ;;
10437 esac
10438 fi
10439 PERL=$ac_cv_path_PERL
10440
10441 if test -n "$PERL"; then
10442   echo "$as_me:$LINENO: result: $PERL" >&5
10443 echo "${ECHO_T}$PERL" >&6
10444 else
10445   echo "$as_me:$LINENO: result: no" >&5
10446 echo "${ECHO_T}no" >&6
10447 fi
10448
10449   test -n "$PERL" && break
10450 done
10451
10452
10453
10454 for ac_prog in $DUMP_PROGRAMS
10455 do
10456   # Extract the first word of "$ac_prog", so it can be a program name with args.
10457 set dummy $ac_prog; ac_word=$2
10458 echo "$as_me:$LINENO: checking for $ac_word" >&5
10459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10460 if test "${ac_cv_path_DUMP+set}" = set; then
10461   echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463   case $DUMP in
10464   [\\/]* | ?:[\\/]*)
10465   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
10466   ;;
10467   *)
10468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469 for as_dir in $SYSLOCPATH
10470 do
10471   IFS=$as_save_IFS
10472   test -z "$as_dir" && as_dir=.
10473   for ac_exec_ext in '' $ac_executable_extensions; do
10474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10475     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
10476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10477     break 2
10478   fi
10479 done
10480 done
10481
10482   ;;
10483 esac
10484 fi
10485 DUMP=$ac_cv_path_DUMP
10486
10487 if test -n "$DUMP"; then
10488   echo "$as_me:$LINENO: result: $DUMP" >&5
10489 echo "${ECHO_T}$DUMP" >&6
10490 else
10491   echo "$as_me:$LINENO: result: no" >&5
10492 echo "${ECHO_T}no" >&6
10493 fi
10494
10495   test -n "$DUMP" && break
10496 done
10497
10498 for ac_prog in ufsrestore restore
10499 do
10500   # Extract the first word of "$ac_prog", so it can be a program name with args.
10501 set dummy $ac_prog; ac_word=$2
10502 echo "$as_me:$LINENO: checking for $ac_word" >&5
10503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10504 if test "${ac_cv_path_RESTORE+set}" = set; then
10505   echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507   case $RESTORE in
10508   [\\/]* | ?:[\\/]*)
10509   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
10510   ;;
10511   *)
10512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513 for as_dir in $SYSLOCPATH
10514 do
10515   IFS=$as_save_IFS
10516   test -z "$as_dir" && as_dir=.
10517   for ac_exec_ext in '' $ac_executable_extensions; do
10518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10519     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
10520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10521     break 2
10522   fi
10523 done
10524 done
10525
10526   ;;
10527 esac
10528 fi
10529 RESTORE=$ac_cv_path_RESTORE
10530
10531 if test -n "$RESTORE"; then
10532   echo "$as_me:$LINENO: result: $RESTORE" >&5
10533 echo "${ECHO_T}$RESTORE" >&6
10534 else
10535   echo "$as_me:$LINENO: result: no" >&5
10536 echo "${ECHO_T}no" >&6
10537 fi
10538
10539   test -n "$RESTORE" && break
10540 done
10541
10542 if test "$DUMP" -a "$RESTORE"; then
10543
10544 cat >>confdefs.h <<_ACEOF
10545 #define DUMP "$DUMP"
10546 _ACEOF
10547
10548
10549 cat >>confdefs.h <<_ACEOF
10550 #define RESTORE "$RESTORE"
10551 _ACEOF
10552
10553     if test -x $DUMP; then
10554         echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
10555 echo $ECHO_N "checking whether $DUMP supports -E or -S for estimates... $ECHO_C" >&6
10556 if test "${amanda_cv_dump_estimate+set}" = set; then
10557   echo $ECHO_N "(cached) $ECHO_C" >&6
10558 else
10559
10560                 case "$DUMP" in
10561                 *dump)
10562                     { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
10563                         | $GREP -v Dumping
10564                         | $GREP -v Date
10565                         | $GREP -v Label >conftest.d-E 2>&1'
10566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567   (eval $ac_try) 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); }; }
10571                     cat conftest.d-E >&5
10572                     { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
10573                         | $GREP -v Dumping
10574                         | $GREP -v Date
10575                         | $GREP -v Label >conftest.d-S 2>&1'
10576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577   (eval $ac_try) 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); }; }
10581                     cat conftest.d-S >&5
10582                     { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
10583                         | $GREP -v Dumping
10584                         | $GREP -v Date
10585                         | $GREP -v Label >conftest.d 2>&1'
10586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587   (eval $ac_try) 2>&5
10588   ac_status=$?
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); }; }
10591                     cat conftest.d >&5
10592                     if { ac_try='cmp conftest.d-E conftest.d 1>&2'
10593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594   (eval $ac_try) 2>&5
10595   ac_status=$?
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); }; }; then
10598                         amanda_cv_dump_estimate=E
10599                     elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
10600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601   (eval $ac_try) 2>&5
10602   ac_status=$?
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); }; }; then
10605                         amanda_cv_dump_estimate=S
10606                     else
10607                         amanda_cv_dump_estimate=no
10608                     fi
10609                     rm -f conftest.d conftest.d-E conftest.d-S
10610                   ;;
10611                 *) amanda_cv_dump_estimate=no
10612                   ;;
10613                 esac
10614
10615 fi
10616 echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
10617 echo "${ECHO_T}$amanda_cv_dump_estimate" >&6
10618     else
10619         { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&5
10620 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&2;}
10621         amanda_cv_dump_estimate=no
10622     fi
10623     if test "x$amanda_cv_dump_estimate" != xno; then
10624
10625 cat >>confdefs.h <<_ACEOF
10626 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
10627 _ACEOF
10628
10629     fi
10630
10631
10632 # Check whether --with-dump-honor-nodump or --without-dump-honor-nodump was given.
10633 if test "${with_dump_honor_nodump+set}" = set; then
10634   withval="$with_dump_honor_nodump"
10635    if test -x $DUMP; then
10636         echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
10637 echo $ECHO_N "checking whether $DUMP supports -h (honor nodump flag)... $ECHO_C" >&6
10638 if test "${amanda_cv_honor_nodump+set}" = set; then
10639   echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641
10642             case "$DUMP" in
10643             *dump)
10644                 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
10645                     | $GREP -v Dumping
10646                     | $GREP -v Date
10647                     | $GREP -v Label >conftest.d-h 2>&1'
10648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649   (eval $ac_try) 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); }; }
10653                 cat conftest.d-h >&5
10654                 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
10655                     | $GREP -v Dumping
10656                     | $GREP -v Date
10657                     | $GREP -v Label >conftest.d 2>&1'
10658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659   (eval $ac_try) 2>&5
10660   ac_status=$?
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); }; }
10663                 cat conftest.d >&5
10664                 if { ac_try='diff conftest.d-h conftest.d 1>&2'
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); }; }; then
10670                     amanda_cv_honor_nodump=yes
10671                 else
10672                     amanda_cv_honor_nodump=no
10673                 fi
10674                 rm -f conftest.d conftest.d-h
10675               ;;
10676             *) amanda_cv_honor_nodump=no
10677               ;;
10678             esac
10679
10680 fi
10681 echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
10682 echo "${ECHO_T}$amanda_cv_honor_nodump" >&6
10683       else
10684         { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -h test" >&5
10685 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -h test" >&2;}
10686         amanda_cv_honor_nodump=no
10687       fi
10688       if test "x$amanda_cv_honor_nodump" = xyes; then
10689
10690 cat >>confdefs.h <<\_ACEOF
10691 #define HAVE_HONOR_NODUMP 1
10692 _ACEOF
10693
10694       fi
10695
10696 fi;
10697 fi
10698
10699 for ac_prog in xfsdump
10700 do
10701   # Extract the first word of "$ac_prog", so it can be a program name with args.
10702 set dummy $ac_prog; ac_word=$2
10703 echo "$as_me:$LINENO: checking for $ac_word" >&5
10704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10705 if test "${ac_cv_path_XFSDUMP+set}" = set; then
10706   echo $ECHO_N "(cached) $ECHO_C" >&6
10707 else
10708   case $XFSDUMP in
10709   [\\/]* | ?:[\\/]*)
10710   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
10711   ;;
10712   *)
10713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714 for as_dir in $SYSLOCPATH
10715 do
10716   IFS=$as_save_IFS
10717   test -z "$as_dir" && as_dir=.
10718   for ac_exec_ext in '' $ac_executable_extensions; do
10719   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10720     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
10721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10722     break 2
10723   fi
10724 done
10725 done
10726
10727   ;;
10728 esac
10729 fi
10730 XFSDUMP=$ac_cv_path_XFSDUMP
10731
10732 if test -n "$XFSDUMP"; then
10733   echo "$as_me:$LINENO: result: $XFSDUMP" >&5
10734 echo "${ECHO_T}$XFSDUMP" >&6
10735 else
10736   echo "$as_me:$LINENO: result: no" >&5
10737 echo "${ECHO_T}no" >&6
10738 fi
10739
10740   test -n "$XFSDUMP" && break
10741 done
10742
10743 for ac_prog in xfsrestore
10744 do
10745   # Extract the first word of "$ac_prog", so it can be a program name with args.
10746 set dummy $ac_prog; ac_word=$2
10747 echo "$as_me:$LINENO: checking for $ac_word" >&5
10748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10749 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
10750   echo $ECHO_N "(cached) $ECHO_C" >&6
10751 else
10752   case $XFSRESTORE in
10753   [\\/]* | ?:[\\/]*)
10754   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
10755   ;;
10756   *)
10757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10758 for as_dir in $SYSLOCPATH
10759 do
10760   IFS=$as_save_IFS
10761   test -z "$as_dir" && as_dir=.
10762   for ac_exec_ext in '' $ac_executable_extensions; do
10763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10764     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
10765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10766     break 2
10767   fi
10768 done
10769 done
10770
10771   ;;
10772 esac
10773 fi
10774 XFSRESTORE=$ac_cv_path_XFSRESTORE
10775
10776 if test -n "$XFSRESTORE"; then
10777   echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
10778 echo "${ECHO_T}$XFSRESTORE" >&6
10779 else
10780   echo "$as_me:$LINENO: result: no" >&5
10781 echo "${ECHO_T}no" >&6
10782 fi
10783
10784   test -n "$XFSRESTORE" && break
10785 done
10786
10787 if test "$XFSDUMP" -a "$XFSRESTORE"; then
10788
10789 cat >>confdefs.h <<_ACEOF
10790 #define XFSDUMP "$XFSDUMP"
10791 _ACEOF
10792
10793
10794 cat >>confdefs.h <<_ACEOF
10795 #define XFSRESTORE "$XFSRESTORE"
10796 _ACEOF
10797
10798     { echo "$as_me:$LINENO: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&5
10799 echo "$as_me: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&2;}
10800     { echo "$as_me:$LINENO: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&5
10801 echo "$as_me: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&2;}
10802 fi
10803
10804 VXSYSLOCPATH="$SYSLOCPATH:/usr/lib/fs/vxfs"
10805 for ac_prog in vxdump
10806 do
10807   # Extract the first word of "$ac_prog", so it can be a program name with args.
10808 set dummy $ac_prog; ac_word=$2
10809 echo "$as_me:$LINENO: checking for $ac_word" >&5
10810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10811 if test "${ac_cv_path_VXDUMP+set}" = set; then
10812   echo $ECHO_N "(cached) $ECHO_C" >&6
10813 else
10814   case $VXDUMP in
10815   [\\/]* | ?:[\\/]*)
10816   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
10817   ;;
10818   *)
10819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820 for as_dir in $VXSYSLOCPATH
10821 do
10822   IFS=$as_save_IFS
10823   test -z "$as_dir" && as_dir=.
10824   for ac_exec_ext in '' $ac_executable_extensions; do
10825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10826     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
10827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10828     break 2
10829   fi
10830 done
10831 done
10832
10833   ;;
10834 esac
10835 fi
10836 VXDUMP=$ac_cv_path_VXDUMP
10837
10838 if test -n "$VXDUMP"; then
10839   echo "$as_me:$LINENO: result: $VXDUMP" >&5
10840 echo "${ECHO_T}$VXDUMP" >&6
10841 else
10842   echo "$as_me:$LINENO: result: no" >&5
10843 echo "${ECHO_T}no" >&6
10844 fi
10845
10846   test -n "$VXDUMP" && break
10847 done
10848
10849 for ac_prog in vxrestore
10850 do
10851   # Extract the first word of "$ac_prog", so it can be a program name with args.
10852 set dummy $ac_prog; ac_word=$2
10853 echo "$as_me:$LINENO: checking for $ac_word" >&5
10854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10855 if test "${ac_cv_path_VXRESTORE+set}" = set; then
10856   echo $ECHO_N "(cached) $ECHO_C" >&6
10857 else
10858   case $VXRESTORE in
10859   [\\/]* | ?:[\\/]*)
10860   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
10861   ;;
10862   *)
10863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $VXSYSLOCPATH
10865 do
10866   IFS=$as_save_IFS
10867   test -z "$as_dir" && as_dir=.
10868   for ac_exec_ext in '' $ac_executable_extensions; do
10869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10870     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
10871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10872     break 2
10873   fi
10874 done
10875 done
10876
10877   ;;
10878 esac
10879 fi
10880 VXRESTORE=$ac_cv_path_VXRESTORE
10881
10882 if test -n "$VXRESTORE"; then
10883   echo "$as_me:$LINENO: result: $VXRESTORE" >&5
10884 echo "${ECHO_T}$VXRESTORE" >&6
10885 else
10886   echo "$as_me:$LINENO: result: no" >&5
10887 echo "${ECHO_T}no" >&6
10888 fi
10889
10890   test -n "$VXRESTORE" && break
10891 done
10892
10893 if test "$VXDUMP" -a "$VXRESTORE"; then
10894
10895 cat >>confdefs.h <<_ACEOF
10896 #define VXDUMP "$VXDUMP"
10897 _ACEOF
10898
10899
10900 cat >>confdefs.h <<_ACEOF
10901 #define VXRESTORE "$VXRESTORE"
10902 _ACEOF
10903
10904 fi
10905
10906 for ac_prog in vdump
10907 do
10908   # Extract the first word of "$ac_prog", so it can be a program name with args.
10909 set dummy $ac_prog; ac_word=$2
10910 echo "$as_me:$LINENO: checking for $ac_word" >&5
10911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10912 if test "${ac_cv_path_VDUMP+set}" = set; then
10913   echo $ECHO_N "(cached) $ECHO_C" >&6
10914 else
10915   case $VDUMP in
10916   [\\/]* | ?:[\\/]*)
10917   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
10918   ;;
10919   *)
10920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921 for as_dir in $SYSLOCPATH
10922 do
10923   IFS=$as_save_IFS
10924   test -z "$as_dir" && as_dir=.
10925   for ac_exec_ext in '' $ac_executable_extensions; do
10926   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10927     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
10928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10929     break 2
10930   fi
10931 done
10932 done
10933
10934   ;;
10935 esac
10936 fi
10937 VDUMP=$ac_cv_path_VDUMP
10938
10939 if test -n "$VDUMP"; then
10940   echo "$as_me:$LINENO: result: $VDUMP" >&5
10941 echo "${ECHO_T}$VDUMP" >&6
10942 else
10943   echo "$as_me:$LINENO: result: no" >&5
10944 echo "${ECHO_T}no" >&6
10945 fi
10946
10947   test -n "$VDUMP" && break
10948 done
10949
10950 for ac_prog in vrestore
10951 do
10952   # Extract the first word of "$ac_prog", so it can be a program name with args.
10953 set dummy $ac_prog; ac_word=$2
10954 echo "$as_me:$LINENO: checking for $ac_word" >&5
10955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10956 if test "${ac_cv_path_VRESTORE+set}" = set; then
10957   echo $ECHO_N "(cached) $ECHO_C" >&6
10958 else
10959   case $VRESTORE in
10960   [\\/]* | ?:[\\/]*)
10961   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
10962   ;;
10963   *)
10964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10965 for as_dir in $SYSLOCPATH
10966 do
10967   IFS=$as_save_IFS
10968   test -z "$as_dir" && as_dir=.
10969   for ac_exec_ext in '' $ac_executable_extensions; do
10970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10971     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
10972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10973     break 2
10974   fi
10975 done
10976 done
10977
10978   ;;
10979 esac
10980 fi
10981 VRESTORE=$ac_cv_path_VRESTORE
10982
10983 if test -n "$VRESTORE"; then
10984   echo "$as_me:$LINENO: result: $VRESTORE" >&5
10985 echo "${ECHO_T}$VRESTORE" >&6
10986 else
10987   echo "$as_me:$LINENO: result: no" >&5
10988 echo "${ECHO_T}no" >&6
10989 fi
10990
10991   test -n "$VRESTORE" && break
10992 done
10993
10994 if test "$VDUMP" -a "$VRESTORE"; then
10995
10996 cat >>confdefs.h <<_ACEOF
10997 #define VDUMP "$VDUMP"
10998 _ACEOF
10999
11000
11001 cat >>confdefs.h <<_ACEOF
11002 #define VRESTORE "$VRESTORE"
11003 _ACEOF
11004
11005 fi
11006
11007 if test "$PCAT"; then
11008     AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
11009 else
11010     AMPLOT_CAT_PACK=
11011 fi
11012 if test "$COMPRESS"; then
11013     AMPLOT_COMPRESS=$COMPRESS
11014     AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
11015 else
11016     AMPLOT_CAT_COMPRESS=
11017 fi
11018 if test "$GZIP"; then
11019     AMPLOT_COMPRESS=$GZIP
11020     AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
11021 else
11022     AMPLOT_CAT_GZIP=
11023 fi
11024
11025
11026
11027
11028
11029 # Determine the printf format characters to use when printing
11030 # values of type long long. This will normally be "ll", but where
11031 # the compiler treats "long long" as a alias for "long" and printf
11032 # doesn't know about "long long" use "l".  Hopefully the sprintf
11033 # will produce a inconsistant result in the later case.  If the compiler
11034 # fails due to seeing "%lld" we fall back to "l".
11035 #
11036 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
11037 # configure on Win32.
11038 #
11039 echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
11040 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6
11041 if test "$cross_compiling" = yes; then
11042   echo "$as_me:$LINENO: result: assuming target platform uses ll" >&5
11043 echo "${ECHO_T}assuming target platform uses ll" >&6
11044         LL_FMT="%lld"
11045 else
11046   cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h.  */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h.  */
11052
11053 #include <stdio.h>
11054 main() {
11055         long long int j = 0;
11056         char buf[100];
11057         buf[0] = 0;
11058         sprintf(buf, "%lld", j);
11059         exit((sizeof(long long int) != sizeof(long int))? 0 :
11060              (strcmp(buf, "0") != 0));
11061 }
11062
11063 _ACEOF
11064 rm -f conftest$ac_exeext
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066   (eval $ac_link) 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071   (eval $ac_try) 2>&5
11072   ac_status=$?
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); }; }; then
11075   echo "$as_me:$LINENO: result: ll" >&5
11076 echo "${ECHO_T}ll" >&6
11077         LL_FMT="%lld"
11078 else
11079   echo "$as_me: program exited with status $ac_status" >&5
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11082
11083 ( exit $ac_status )
11084 echo "$as_me:$LINENO: result: l" >&5
11085 echo "${ECHO_T}l" >&6
11086         LL_FMT="%ld"
11087 fi
11088 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11089 fi
11090
11091 cat >>confdefs.h <<_ACEOF
11092 #define LL_FMT "$LL_FMT"
11093 _ACEOF
11094
11095
11096
11097 GZIP=
11098
11099 need_resetofs=yes
11100 echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
11101 echo $ECHO_N "checking for large file compilation CFLAGS... $ECHO_C" >&6
11102 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
11103   echo $ECHO_N "(cached) $ECHO_C" >&6
11104 else
11105
11106         amanda_cv_LFS_CFLAGS=
11107         if test "$GETCONF"; then
11108             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
11109                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
11110                 need_resetofs=no
11111             fi
11112         fi
11113
11114
11115 fi
11116 echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
11117 echo "${ECHO_T}$amanda_cv_LFS_CFLAGS" >&6
11118 echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
11119 echo $ECHO_N "checking for large file compilation LDFLAGS... $ECHO_C" >&6
11120 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
11121   echo $ECHO_N "(cached) $ECHO_C" >&6
11122 else
11123
11124         amanda_cv_LFS_LDFLAGS=
11125         if test "$GETCONF"; then
11126             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
11127                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
11128                 need_resetofs=no
11129             fi
11130         fi
11131
11132
11133 fi
11134 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
11135 echo "${ECHO_T}$amanda_cv_LFS_LDFLAGS" >&6
11136 echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
11137 echo $ECHO_N "checking for large file compilation LIBS... $ECHO_C" >&6
11138 if test "${amanda_cv_LFS_LIBS+set}" = set; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141
11142         amanda_cv_LFS_LIBS=
11143         if test "$GETCONF"; then
11144             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
11145                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
11146                 need_resetofs=no
11147             fi
11148         fi
11149
11150
11151 fi
11152 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
11153 echo "${ECHO_T}$amanda_cv_LFS_LIBS" >&6
11154 if test "x$need_resetofs" = xyes; then
11155
11156 cat >>confdefs.h <<\_ACEOF
11157 #define NEED_RESETOFS 1
11158 _ACEOF
11159
11160 fi
11161
11162
11163 CFLAGS="$amanda_cv_LFS_CFLAGS $CFLAGS"
11164 CPPFLAGS="$amanda_cv_LFS_CPPFLAGS $CPPFLAGS"
11165 LDFLAGS="$amanda_cv_LFS_LDFLAGS $LDFLAGS"
11166 LIBS="$amanda_cv_LFS_LIBS $LIBS"
11167
11168 echo "$as_me:$LINENO: checking for int" >&5
11169 echo $ECHO_N "checking for int... $ECHO_C" >&6
11170 if test "${ac_cv_type_int+set}" = set; then
11171   echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173   cat >conftest.$ac_ext <<_ACEOF
11174 /* confdefs.h.  */
11175 _ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h.  */
11179 $ac_includes_default
11180 int
11181 main ()
11182 {
11183 if ((int *) 0)
11184   return 0;
11185 if (sizeof (int))
11186   return 0;
11187   ;
11188   return 0;
11189 }
11190 _ACEOF
11191 rm -f conftest.$ac_objext
11192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11193   (eval $ac_compile) 2>conftest.er1
11194   ac_status=$?
11195   grep -v '^ *+' conftest.er1 >conftest.err
11196   rm -f conftest.er1
11197   cat conftest.err >&5
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); } &&
11200          { ac_try='test -z "$ac_c_werror_flag"
11201                          || test ! -s conftest.err'
11202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203   (eval $ac_try) 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); }; } &&
11207          { ac_try='test -s conftest.$ac_objext'
11208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209   (eval $ac_try) 2>&5
11210   ac_status=$?
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); }; }; then
11213   ac_cv_type_int=yes
11214 else
11215   echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11217
11218 ac_cv_type_int=no
11219 fi
11220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11221 fi
11222 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11223 echo "${ECHO_T}$ac_cv_type_int" >&6
11224
11225 echo "$as_me:$LINENO: checking size of int" >&5
11226 echo $ECHO_N "checking size of int... $ECHO_C" >&6
11227 if test "${ac_cv_sizeof_int+set}" = set; then
11228   echo $ECHO_N "(cached) $ECHO_C" >&6
11229 else
11230   if test "$ac_cv_type_int" = yes; then
11231   # The cast to unsigned long works around a bug in the HP C Compiler
11232   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11233   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11234   # This bug is HP SR number 8606223364.
11235   if test "$cross_compiling" = yes; then
11236   # Depending upon the size, compute the lo and hi bounds.
11237 cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h.  */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h.  */
11243 $ac_includes_default
11244 int
11245 main ()
11246 {
11247 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11248 test_array [0] = 0
11249
11250   ;
11251   return 0;
11252 }
11253 _ACEOF
11254 rm -f conftest.$ac_objext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11256   (eval $ac_compile) 2>conftest.er1
11257   ac_status=$?
11258   grep -v '^ *+' conftest.er1 >conftest.err
11259   rm -f conftest.er1
11260   cat conftest.err >&5
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); } &&
11263          { ac_try='test -z "$ac_c_werror_flag"
11264                          || test ! -s conftest.err'
11265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266   (eval $ac_try) 2>&5
11267   ac_status=$?
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); }; } &&
11270          { ac_try='test -s conftest.$ac_objext'
11271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272   (eval $ac_try) 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; }; then
11276   ac_lo=0 ac_mid=0
11277   while :; do
11278     cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h.  */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h.  */
11284 $ac_includes_default
11285 int
11286 main ()
11287 {
11288 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11289 test_array [0] = 0
11290
11291   ;
11292   return 0;
11293 }
11294 _ACEOF
11295 rm -f conftest.$ac_objext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297   (eval $ac_compile) 2>conftest.er1
11298   ac_status=$?
11299   grep -v '^ *+' conftest.er1 >conftest.err
11300   rm -f conftest.er1
11301   cat conftest.err >&5
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); } &&
11304          { ac_try='test -z "$ac_c_werror_flag"
11305                          || test ! -s conftest.err'
11306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307   (eval $ac_try) 2>&5
11308   ac_status=$?
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); }; } &&
11311          { ac_try='test -s conftest.$ac_objext'
11312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313   (eval $ac_try) 2>&5
11314   ac_status=$?
11315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316   (exit $ac_status); }; }; then
11317   ac_hi=$ac_mid; break
11318 else
11319   echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11321
11322 ac_lo=`expr $ac_mid + 1`
11323                     if test $ac_lo -le $ac_mid; then
11324                       ac_lo= ac_hi=
11325                       break
11326                     fi
11327                     ac_mid=`expr 2 '*' $ac_mid + 1`
11328 fi
11329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11330   done
11331 else
11332   echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11334
11335 cat >conftest.$ac_ext <<_ACEOF
11336 /* confdefs.h.  */
11337 _ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h.  */
11341 $ac_includes_default
11342 int
11343 main ()
11344 {
11345 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
11346 test_array [0] = 0
11347
11348   ;
11349   return 0;
11350 }
11351 _ACEOF
11352 rm -f conftest.$ac_objext
11353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11354   (eval $ac_compile) 2>conftest.er1
11355   ac_status=$?
11356   grep -v '^ *+' conftest.er1 >conftest.err
11357   rm -f conftest.er1
11358   cat conftest.err >&5
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } &&
11361          { ac_try='test -z "$ac_c_werror_flag"
11362                          || test ! -s conftest.err'
11363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364   (eval $ac_try) 2>&5
11365   ac_status=$?
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); }; } &&
11368          { ac_try='test -s conftest.$ac_objext'
11369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370   (eval $ac_try) 2>&5
11371   ac_status=$?
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); }; }; then
11374   ac_hi=-1 ac_mid=-1
11375   while :; do
11376     cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h.  */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h.  */
11382 $ac_includes_default
11383 int
11384 main ()
11385 {
11386 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
11387 test_array [0] = 0
11388
11389   ;
11390   return 0;
11391 }
11392 _ACEOF
11393 rm -f conftest.$ac_objext
11394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11395   (eval $ac_compile) 2>conftest.er1
11396   ac_status=$?
11397   grep -v '^ *+' conftest.er1 >conftest.err
11398   rm -f conftest.er1
11399   cat conftest.err >&5
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); } &&
11402          { ac_try='test -z "$ac_c_werror_flag"
11403                          || test ! -s conftest.err'
11404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405   (eval $ac_try) 2>&5
11406   ac_status=$?
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); }; } &&
11409          { ac_try='test -s conftest.$ac_objext'
11410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411   (eval $ac_try) 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); }; }; then
11415   ac_lo=$ac_mid; break
11416 else
11417   echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11419
11420 ac_hi=`expr '(' $ac_mid ')' - 1`
11421                        if test $ac_mid -le $ac_hi; then
11422                          ac_lo= ac_hi=
11423                          break
11424                        fi
11425                        ac_mid=`expr 2 '*' $ac_mid`
11426 fi
11427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11428   done
11429 else
11430   echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433 ac_lo= ac_hi=
11434 fi
11435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11436 fi
11437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11438 # Binary search between lo and hi bounds.
11439 while test "x$ac_lo" != "x$ac_hi"; do
11440   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11441   cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h.  */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h.  */
11447 $ac_includes_default
11448 int
11449 main ()
11450 {
11451 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11452 test_array [0] = 0
11453
11454   ;
11455   return 0;
11456 }
11457 _ACEOF
11458 rm -f conftest.$ac_objext
11459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11460   (eval $ac_compile) 2>conftest.er1
11461   ac_status=$?
11462   grep -v '^ *+' conftest.er1 >conftest.err
11463   rm -f conftest.er1
11464   cat conftest.err >&5
11465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466   (exit $ac_status); } &&
11467          { ac_try='test -z "$ac_c_werror_flag"
11468                          || test ! -s conftest.err'
11469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470   (eval $ac_try) 2>&5
11471   ac_status=$?
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); }; } &&
11474          { ac_try='test -s conftest.$ac_objext'
11475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476   (eval $ac_try) 2>&5
11477   ac_status=$?
11478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479   (exit $ac_status); }; }; then
11480   ac_hi=$ac_mid
11481 else
11482   echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11484
11485 ac_lo=`expr '(' $ac_mid ')' + 1`
11486 fi
11487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11488 done
11489 case $ac_lo in
11490 ?*) ac_cv_sizeof_int=$ac_lo;;
11491 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11492 See \`config.log' for more details." >&5
11493 echo "$as_me: error: cannot compute sizeof (int), 77
11494 See \`config.log' for more details." >&2;}
11495    { (exit 1); exit 1; }; } ;;
11496 esac
11497 else
11498   if test "$cross_compiling" = yes; then
11499   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11500 See \`config.log' for more details." >&5
11501 echo "$as_me: error: cannot run test program while cross compiling
11502 See \`config.log' for more details." >&2;}
11503    { (exit 1); exit 1; }; }
11504 else
11505   cat >conftest.$ac_ext <<_ACEOF
11506 /* confdefs.h.  */
11507 _ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h.  */
11511 $ac_includes_default
11512 long longval () { return (long) (sizeof (int)); }
11513 unsigned long ulongval () { return (long) (sizeof (int)); }
11514 #include <stdio.h>
11515 #include <stdlib.h>
11516 int
11517 main ()
11518 {
11519
11520   FILE *f = fopen ("conftest.val", "w");
11521   if (! f)
11522     exit (1);
11523   if (((long) (sizeof (int))) < 0)
11524     {
11525       long i = longval ();
11526       if (i != ((long) (sizeof (int))))
11527         exit (1);
11528       fprintf (f, "%ld\n", i);
11529     }
11530   else
11531     {
11532       unsigned long i = ulongval ();
11533       if (i != ((long) (sizeof (int))))
11534         exit (1);
11535       fprintf (f, "%lu\n", i);
11536     }
11537   exit (ferror (f) || fclose (f) != 0);
11538
11539   ;
11540   return 0;
11541 }
11542 _ACEOF
11543 rm -f conftest$ac_exeext
11544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11545   (eval $ac_link) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550   (eval $ac_try) 2>&5
11551   ac_status=$?
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); }; }; then
11554   ac_cv_sizeof_int=`cat conftest.val`
11555 else
11556   echo "$as_me: program exited with status $ac_status" >&5
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560 ( exit $ac_status )
11561 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11562 See \`config.log' for more details." >&5
11563 echo "$as_me: error: cannot compute sizeof (int), 77
11564 See \`config.log' for more details." >&2;}
11565    { (exit 1); exit 1; }; }
11566 fi
11567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11568 fi
11569 fi
11570 rm -f conftest.val
11571 else
11572   ac_cv_sizeof_int=0
11573 fi
11574 fi
11575 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11576 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11577 cat >>confdefs.h <<_ACEOF
11578 #define SIZEOF_INT $ac_cv_sizeof_int
11579 _ACEOF
11580
11581
11582 echo "$as_me:$LINENO: checking for long" >&5
11583 echo $ECHO_N "checking for long... $ECHO_C" >&6
11584 if test "${ac_cv_type_long+set}" = set; then
11585   echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587   cat >conftest.$ac_ext <<_ACEOF
11588 /* confdefs.h.  */
11589 _ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h.  */
11593 $ac_includes_default
11594 int
11595 main ()
11596 {
11597 if ((long *) 0)
11598   return 0;
11599 if (sizeof (long))
11600   return 0;
11601   ;
11602   return 0;
11603 }
11604 _ACEOF
11605 rm -f conftest.$ac_objext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11607   (eval $ac_compile) 2>conftest.er1
11608   ac_status=$?
11609   grep -v '^ *+' conftest.er1 >conftest.err
11610   rm -f conftest.er1
11611   cat conftest.err >&5
11612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613   (exit $ac_status); } &&
11614          { ac_try='test -z "$ac_c_werror_flag"
11615                          || test ! -s conftest.err'
11616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617   (eval $ac_try) 2>&5
11618   ac_status=$?
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); }; } &&
11621          { ac_try='test -s conftest.$ac_objext'
11622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623   (eval $ac_try) 2>&5
11624   ac_status=$?
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); }; }; then
11627   ac_cv_type_long=yes
11628 else
11629   echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11631
11632 ac_cv_type_long=no
11633 fi
11634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11635 fi
11636 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11637 echo "${ECHO_T}$ac_cv_type_long" >&6
11638
11639 echo "$as_me:$LINENO: checking size of long" >&5
11640 echo $ECHO_N "checking size of long... $ECHO_C" >&6
11641 if test "${ac_cv_sizeof_long+set}" = set; then
11642   echo $ECHO_N "(cached) $ECHO_C" >&6
11643 else
11644   if test "$ac_cv_type_long" = yes; then
11645   # The cast to unsigned long works around a bug in the HP C Compiler
11646   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11647   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11648   # This bug is HP SR number 8606223364.
11649   if test "$cross_compiling" = yes; then
11650   # Depending upon the size, compute the lo and hi bounds.
11651 cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h.  */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h.  */
11657 $ac_includes_default
11658 int
11659 main ()
11660 {
11661 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11662 test_array [0] = 0
11663
11664   ;
11665   return 0;
11666 }
11667 _ACEOF
11668 rm -f conftest.$ac_objext
11669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11670   (eval $ac_compile) 2>conftest.er1
11671   ac_status=$?
11672   grep -v '^ *+' conftest.er1 >conftest.err
11673   rm -f conftest.er1
11674   cat conftest.err >&5
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); } &&
11677          { ac_try='test -z "$ac_c_werror_flag"
11678                          || test ! -s conftest.err'
11679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680   (eval $ac_try) 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; } &&
11684          { ac_try='test -s conftest.$ac_objext'
11685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686   (eval $ac_try) 2>&5
11687   ac_status=$?
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); }; }; then
11690   ac_lo=0 ac_mid=0
11691   while :; do
11692     cat >conftest.$ac_ext <<_ACEOF
11693 /* confdefs.h.  */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h.  */
11698 $ac_includes_default
11699 int
11700 main ()
11701 {
11702 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11703 test_array [0] = 0
11704
11705   ;
11706   return 0;
11707 }
11708 _ACEOF
11709 rm -f conftest.$ac_objext
11710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11711   (eval $ac_compile) 2>conftest.er1
11712   ac_status=$?
11713   grep -v '^ *+' conftest.er1 >conftest.err
11714   rm -f conftest.er1
11715   cat conftest.err >&5
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); } &&
11718          { ac_try='test -z "$ac_c_werror_flag"
11719                          || test ! -s conftest.err'
11720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721   (eval $ac_try) 2>&5
11722   ac_status=$?
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); }; } &&
11725          { ac_try='test -s conftest.$ac_objext'
11726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727   (eval $ac_try) 2>&5
11728   ac_status=$?
11729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730   (exit $ac_status); }; }; then
11731   ac_hi=$ac_mid; break
11732 else
11733   echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11735
11736 ac_lo=`expr $ac_mid + 1`
11737                     if test $ac_lo -le $ac_mid; then
11738                       ac_lo= ac_hi=
11739                       break
11740                     fi
11741                     ac_mid=`expr 2 '*' $ac_mid + 1`
11742 fi
11743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11744   done
11745 else
11746   echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11748
11749 cat >conftest.$ac_ext <<_ACEOF
11750 /* confdefs.h.  */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h.  */
11755 $ac_includes_default
11756 int
11757 main ()
11758 {
11759 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
11760 test_array [0] = 0
11761
11762   ;
11763   return 0;
11764 }
11765 _ACEOF
11766 rm -f conftest.$ac_objext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768   (eval $ac_compile) 2>conftest.er1
11769   ac_status=$?
11770   grep -v '^ *+' conftest.er1 >conftest.err
11771   rm -f conftest.er1
11772   cat conftest.err >&5
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); } &&
11775          { ac_try='test -z "$ac_c_werror_flag"
11776                          || test ! -s conftest.err'
11777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778   (eval $ac_try) 2>&5
11779   ac_status=$?
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); }; } &&
11782          { ac_try='test -s conftest.$ac_objext'
11783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784   (eval $ac_try) 2>&5
11785   ac_status=$?
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); }; }; then
11788   ac_hi=-1 ac_mid=-1
11789   while :; do
11790     cat >conftest.$ac_ext <<_ACEOF
11791 /* confdefs.h.  */
11792 _ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h.  */
11796 $ac_includes_default
11797 int
11798 main ()
11799 {
11800 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
11801 test_array [0] = 0
11802
11803   ;
11804   return 0;
11805 }
11806 _ACEOF
11807 rm -f conftest.$ac_objext
11808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809   (eval $ac_compile) 2>conftest.er1
11810   ac_status=$?
11811   grep -v '^ *+' conftest.er1 >conftest.err
11812   rm -f conftest.er1
11813   cat conftest.err >&5
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); } &&
11816          { ac_try='test -z "$ac_c_werror_flag"
11817                          || test ! -s conftest.err'
11818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819   (eval $ac_try) 2>&5
11820   ac_status=$?
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); }; } &&
11823          { ac_try='test -s conftest.$ac_objext'
11824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825   (eval $ac_try) 2>&5
11826   ac_status=$?
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); }; }; then
11829   ac_lo=$ac_mid; break
11830 else
11831   echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11833
11834 ac_hi=`expr '(' $ac_mid ')' - 1`
11835                        if test $ac_mid -le $ac_hi; then
11836                          ac_lo= ac_hi=
11837                          break
11838                        fi
11839                        ac_mid=`expr 2 '*' $ac_mid`
11840 fi
11841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11842   done
11843 else
11844   echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11846
11847 ac_lo= ac_hi=
11848 fi
11849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11850 fi
11851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11852 # Binary search between lo and hi bounds.
11853 while test "x$ac_lo" != "x$ac_hi"; do
11854   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11855   cat >conftest.$ac_ext <<_ACEOF
11856 /* confdefs.h.  */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h.  */
11861 $ac_includes_default
11862 int
11863 main ()
11864 {
11865 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11866 test_array [0] = 0
11867
11868   ;
11869   return 0;
11870 }
11871 _ACEOF
11872 rm -f conftest.$ac_objext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11874   (eval $ac_compile) 2>conftest.er1
11875   ac_status=$?
11876   grep -v '^ *+' conftest.er1 >conftest.err
11877   rm -f conftest.er1
11878   cat conftest.err >&5
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); } &&
11881          { ac_try='test -z "$ac_c_werror_flag"
11882                          || test ! -s conftest.err'
11883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884   (eval $ac_try) 2>&5
11885   ac_status=$?
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); }; } &&
11888          { ac_try='test -s conftest.$ac_objext'
11889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890   (eval $ac_try) 2>&5
11891   ac_status=$?
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); }; }; then
11894   ac_hi=$ac_mid
11895 else
11896   echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11898
11899 ac_lo=`expr '(' $ac_mid ')' + 1`
11900 fi
11901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11902 done
11903 case $ac_lo in
11904 ?*) ac_cv_sizeof_long=$ac_lo;;
11905 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11906 See \`config.log' for more details." >&5
11907 echo "$as_me: error: cannot compute sizeof (long), 77
11908 See \`config.log' for more details." >&2;}
11909    { (exit 1); exit 1; }; } ;;
11910 esac
11911 else
11912   if test "$cross_compiling" = yes; then
11913   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11914 See \`config.log' for more details." >&5
11915 echo "$as_me: error: cannot run test program while cross compiling
11916 See \`config.log' for more details." >&2;}
11917    { (exit 1); exit 1; }; }
11918 else
11919   cat >conftest.$ac_ext <<_ACEOF
11920 /* confdefs.h.  */
11921 _ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h.  */
11925 $ac_includes_default
11926 long longval () { return (long) (sizeof (long)); }
11927 unsigned long ulongval () { return (long) (sizeof (long)); }
11928 #include <stdio.h>
11929 #include <stdlib.h>
11930 int
11931 main ()
11932 {
11933
11934   FILE *f = fopen ("conftest.val", "w");
11935   if (! f)
11936     exit (1);
11937   if (((long) (sizeof (long))) < 0)
11938     {
11939       long i = longval ();
11940       if (i != ((long) (sizeof (long))))
11941         exit (1);
11942       fprintf (f, "%ld\n", i);
11943     }
11944   else
11945     {
11946       unsigned long i = ulongval ();
11947       if (i != ((long) (sizeof (long))))
11948         exit (1);
11949       fprintf (f, "%lu\n", i);
11950     }
11951   exit (ferror (f) || fclose (f) != 0);
11952
11953   ;
11954   return 0;
11955 }
11956 _ACEOF
11957 rm -f conftest$ac_exeext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959   (eval $ac_link) 2>&5
11960   ac_status=$?
11961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964   (eval $ac_try) 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); }; }; then
11968   ac_cv_sizeof_long=`cat conftest.val`
11969 else
11970   echo "$as_me: program exited with status $ac_status" >&5
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11973
11974 ( exit $ac_status )
11975 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11976 See \`config.log' for more details." >&5
11977 echo "$as_me: error: cannot compute sizeof (long), 77
11978 See \`config.log' for more details." >&2;}
11979    { (exit 1); exit 1; }; }
11980 fi
11981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11982 fi
11983 fi
11984 rm -f conftest.val
11985 else
11986   ac_cv_sizeof_long=0
11987 fi
11988 fi
11989 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
11990 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
11991 cat >>confdefs.h <<_ACEOF
11992 #define SIZEOF_LONG $ac_cv_sizeof_long
11993 _ACEOF
11994
11995
11996 echo "$as_me:$LINENO: checking for long long" >&5
11997 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11998 if test "${ac_cv_type_long_long+set}" = set; then
11999   echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001   cat >conftest.$ac_ext <<_ACEOF
12002 /* confdefs.h.  */
12003 _ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h.  */
12007 $ac_includes_default
12008 int
12009 main ()
12010 {
12011 if ((long long *) 0)
12012   return 0;
12013 if (sizeof (long long))
12014   return 0;
12015   ;
12016   return 0;
12017 }
12018 _ACEOF
12019 rm -f conftest.$ac_objext
12020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12021   (eval $ac_compile) 2>conftest.er1
12022   ac_status=$?
12023   grep -v '^ *+' conftest.er1 >conftest.err
12024   rm -f conftest.er1
12025   cat conftest.err >&5
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); } &&
12028          { ac_try='test -z "$ac_c_werror_flag"
12029                          || test ! -s conftest.err'
12030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031   (eval $ac_try) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; } &&
12035          { ac_try='test -s conftest.$ac_objext'
12036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037   (eval $ac_try) 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); }; }; then
12041   ac_cv_type_long_long=yes
12042 else
12043   echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12045
12046 ac_cv_type_long_long=no
12047 fi
12048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12049 fi
12050 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12051 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12052
12053 echo "$as_me:$LINENO: checking size of long long" >&5
12054 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12055 if test "${ac_cv_sizeof_long_long+set}" = set; then
12056   echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058   if test "$ac_cv_type_long_long" = yes; then
12059   # The cast to unsigned long works around a bug in the HP C Compiler
12060   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12061   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12062   # This bug is HP SR number 8606223364.
12063   if test "$cross_compiling" = yes; then
12064   # Depending upon the size, compute the lo and hi bounds.
12065 cat >conftest.$ac_ext <<_ACEOF
12066 /* confdefs.h.  */
12067 _ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h.  */
12071 $ac_includes_default
12072 int
12073 main ()
12074 {
12075 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12076 test_array [0] = 0
12077
12078   ;
12079   return 0;
12080 }
12081 _ACEOF
12082 rm -f conftest.$ac_objext
12083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084   (eval $ac_compile) 2>conftest.er1
12085   ac_status=$?
12086   grep -v '^ *+' conftest.er1 >conftest.err
12087   rm -f conftest.er1
12088   cat conftest.err >&5
12089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090   (exit $ac_status); } &&
12091          { ac_try='test -z "$ac_c_werror_flag"
12092                          || test ! -s conftest.err'
12093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094   (eval $ac_try) 2>&5
12095   ac_status=$?
12096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097   (exit $ac_status); }; } &&
12098          { ac_try='test -s conftest.$ac_objext'
12099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100   (eval $ac_try) 2>&5
12101   ac_status=$?
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); }; }; then
12104   ac_lo=0 ac_mid=0
12105   while :; do
12106     cat >conftest.$ac_ext <<_ACEOF
12107 /* confdefs.h.  */
12108 _ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h.  */
12112 $ac_includes_default
12113 int
12114 main ()
12115 {
12116 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12117 test_array [0] = 0
12118
12119   ;
12120   return 0;
12121 }
12122 _ACEOF
12123 rm -f conftest.$ac_objext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125   (eval $ac_compile) 2>conftest.er1
12126   ac_status=$?
12127   grep -v '^ *+' conftest.er1 >conftest.err
12128   rm -f conftest.er1
12129   cat conftest.err >&5
12130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131   (exit $ac_status); } &&
12132          { ac_try='test -z "$ac_c_werror_flag"
12133                          || test ! -s conftest.err'
12134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135   (eval $ac_try) 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); }; } &&
12139          { ac_try='test -s conftest.$ac_objext'
12140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141   (eval $ac_try) 2>&5
12142   ac_status=$?
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); }; }; then
12145   ac_hi=$ac_mid; break
12146 else
12147   echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12149
12150 ac_lo=`expr $ac_mid + 1`
12151                     if test $ac_lo -le $ac_mid; then
12152                       ac_lo= ac_hi=
12153                       break
12154                     fi
12155                     ac_mid=`expr 2 '*' $ac_mid + 1`
12156 fi
12157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12158   done
12159 else
12160   echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12162
12163 cat >conftest.$ac_ext <<_ACEOF
12164 /* confdefs.h.  */
12165 _ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h.  */
12169 $ac_includes_default
12170 int
12171 main ()
12172 {
12173 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12174 test_array [0] = 0
12175
12176   ;
12177   return 0;
12178 }
12179 _ACEOF
12180 rm -f conftest.$ac_objext
12181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182   (eval $ac_compile) 2>conftest.er1
12183   ac_status=$?
12184   grep -v '^ *+' conftest.er1 >conftest.err
12185   rm -f conftest.er1
12186   cat conftest.err >&5
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); } &&
12189          { ac_try='test -z "$ac_c_werror_flag"
12190                          || test ! -s conftest.err'
12191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192   (eval $ac_try) 2>&5
12193   ac_status=$?
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); }; } &&
12196          { ac_try='test -s conftest.$ac_objext'
12197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198   (eval $ac_try) 2>&5
12199   ac_status=$?
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); }; }; then
12202   ac_hi=-1 ac_mid=-1
12203   while :; do
12204     cat >conftest.$ac_ext <<_ACEOF
12205 /* confdefs.h.  */
12206 _ACEOF
12207 cat confdefs.h >>conftest.$ac_ext
12208 cat >>conftest.$ac_ext <<_ACEOF
12209 /* end confdefs.h.  */
12210 $ac_includes_default
12211 int
12212 main ()
12213 {
12214 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12215 test_array [0] = 0
12216
12217   ;
12218   return 0;
12219 }
12220 _ACEOF
12221 rm -f conftest.$ac_objext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12223   (eval $ac_compile) 2>conftest.er1
12224   ac_status=$?
12225   grep -v '^ *+' conftest.er1 >conftest.err
12226   rm -f conftest.er1
12227   cat conftest.err >&5
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); } &&
12230          { ac_try='test -z "$ac_c_werror_flag"
12231                          || test ! -s conftest.err'
12232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233   (eval $ac_try) 2>&5
12234   ac_status=$?
12235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236   (exit $ac_status); }; } &&
12237          { ac_try='test -s conftest.$ac_objext'
12238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239   (eval $ac_try) 2>&5
12240   ac_status=$?
12241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242   (exit $ac_status); }; }; then
12243   ac_lo=$ac_mid; break
12244 else
12245   echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12247
12248 ac_hi=`expr '(' $ac_mid ')' - 1`
12249                        if test $ac_mid -le $ac_hi; then
12250                          ac_lo= ac_hi=
12251                          break
12252                        fi
12253                        ac_mid=`expr 2 '*' $ac_mid`
12254 fi
12255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12256   done
12257 else
12258   echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12260
12261 ac_lo= ac_hi=
12262 fi
12263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12264 fi
12265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12266 # Binary search between lo and hi bounds.
12267 while test "x$ac_lo" != "x$ac_hi"; do
12268   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12269   cat >conftest.$ac_ext <<_ACEOF
12270 /* confdefs.h.  */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h.  */
12275 $ac_includes_default
12276 int
12277 main ()
12278 {
12279 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12280 test_array [0] = 0
12281
12282   ;
12283   return 0;
12284 }
12285 _ACEOF
12286 rm -f conftest.$ac_objext
12287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12288   (eval $ac_compile) 2>conftest.er1
12289   ac_status=$?
12290   grep -v '^ *+' conftest.er1 >conftest.err
12291   rm -f conftest.er1
12292   cat conftest.err >&5
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); } &&
12295          { ac_try='test -z "$ac_c_werror_flag"
12296                          || test ! -s conftest.err'
12297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298   (eval $ac_try) 2>&5
12299   ac_status=$?
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); }; } &&
12302          { ac_try='test -s conftest.$ac_objext'
12303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304   (eval $ac_try) 2>&5
12305   ac_status=$?
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); }; }; then
12308   ac_hi=$ac_mid
12309 else
12310   echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12312
12313 ac_lo=`expr '(' $ac_mid ')' + 1`
12314 fi
12315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12316 done
12317 case $ac_lo in
12318 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12319 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12320 See \`config.log' for more details." >&5
12321 echo "$as_me: error: cannot compute sizeof (long long), 77
12322 See \`config.log' for more details." >&2;}
12323    { (exit 1); exit 1; }; } ;;
12324 esac
12325 else
12326   if test "$cross_compiling" = yes; then
12327   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12328 See \`config.log' for more details." >&5
12329 echo "$as_me: error: cannot run test program while cross compiling
12330 See \`config.log' for more details." >&2;}
12331    { (exit 1); exit 1; }; }
12332 else
12333   cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h.  */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h.  */
12339 $ac_includes_default
12340 long longval () { return (long) (sizeof (long long)); }
12341 unsigned long ulongval () { return (long) (sizeof (long long)); }
12342 #include <stdio.h>
12343 #include <stdlib.h>
12344 int
12345 main ()
12346 {
12347
12348   FILE *f = fopen ("conftest.val", "w");
12349   if (! f)
12350     exit (1);
12351   if (((long) (sizeof (long long))) < 0)
12352     {
12353       long i = longval ();
12354       if (i != ((long) (sizeof (long long))))
12355         exit (1);
12356       fprintf (f, "%ld\n", i);
12357     }
12358   else
12359     {
12360       unsigned long i = ulongval ();
12361       if (i != ((long) (sizeof (long long))))
12362         exit (1);
12363       fprintf (f, "%lu\n", i);
12364     }
12365   exit (ferror (f) || fclose (f) != 0);
12366
12367   ;
12368   return 0;
12369 }
12370 _ACEOF
12371 rm -f conftest$ac_exeext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12373   (eval $ac_link) 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378   (eval $ac_try) 2>&5
12379   ac_status=$?
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); }; }; then
12382   ac_cv_sizeof_long_long=`cat conftest.val`
12383 else
12384   echo "$as_me: program exited with status $ac_status" >&5
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12387
12388 ( exit $ac_status )
12389 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12390 See \`config.log' for more details." >&5
12391 echo "$as_me: error: cannot compute sizeof (long long), 77
12392 See \`config.log' for more details." >&2;}
12393    { (exit 1); exit 1; }; }
12394 fi
12395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12396 fi
12397 fi
12398 rm -f conftest.val
12399 else
12400   ac_cv_sizeof_long_long=0
12401 fi
12402 fi
12403 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12404 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12405 cat >>confdefs.h <<_ACEOF
12406 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12407 _ACEOF
12408
12409
12410 echo "$as_me:$LINENO: checking for intmax_t" >&5
12411 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
12412 if test "${ac_cv_type_intmax_t+set}" = set; then
12413   echo $ECHO_N "(cached) $ECHO_C" >&6
12414 else
12415   cat >conftest.$ac_ext <<_ACEOF
12416 /* confdefs.h.  */
12417 _ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h.  */
12421 $ac_includes_default
12422 int
12423 main ()
12424 {
12425 if ((intmax_t *) 0)
12426   return 0;
12427 if (sizeof (intmax_t))
12428   return 0;
12429   ;
12430   return 0;
12431 }
12432 _ACEOF
12433 rm -f conftest.$ac_objext
12434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12435   (eval $ac_compile) 2>conftest.er1
12436   ac_status=$?
12437   grep -v '^ *+' conftest.er1 >conftest.err
12438   rm -f conftest.er1
12439   cat conftest.err >&5
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); } &&
12442          { ac_try='test -z "$ac_c_werror_flag"
12443                          || test ! -s conftest.err'
12444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445   (eval $ac_try) 2>&5
12446   ac_status=$?
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); }; } &&
12449          { ac_try='test -s conftest.$ac_objext'
12450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451   (eval $ac_try) 2>&5
12452   ac_status=$?
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); }; }; then
12455   ac_cv_type_intmax_t=yes
12456 else
12457   echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460 ac_cv_type_intmax_t=no
12461 fi
12462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12463 fi
12464 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
12465 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
12466
12467 echo "$as_me:$LINENO: checking size of intmax_t" >&5
12468 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
12469 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
12470   echo $ECHO_N "(cached) $ECHO_C" >&6
12471 else
12472   if test "$ac_cv_type_intmax_t" = yes; then
12473   # The cast to unsigned long works around a bug in the HP C Compiler
12474   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12475   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12476   # This bug is HP SR number 8606223364.
12477   if test "$cross_compiling" = yes; then
12478   # Depending upon the size, compute the lo and hi bounds.
12479 cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h.  */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h.  */
12485 $ac_includes_default
12486 int
12487 main ()
12488 {
12489 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= 0)];
12490 test_array [0] = 0
12491
12492   ;
12493   return 0;
12494 }
12495 _ACEOF
12496 rm -f conftest.$ac_objext
12497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12498   (eval $ac_compile) 2>conftest.er1
12499   ac_status=$?
12500   grep -v '^ *+' conftest.er1 >conftest.err
12501   rm -f conftest.er1
12502   cat conftest.err >&5
12503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504   (exit $ac_status); } &&
12505          { ac_try='test -z "$ac_c_werror_flag"
12506                          || test ! -s conftest.err'
12507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508   (eval $ac_try) 2>&5
12509   ac_status=$?
12510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511   (exit $ac_status); }; } &&
12512          { ac_try='test -s conftest.$ac_objext'
12513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514   (eval $ac_try) 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); }; }; then
12518   ac_lo=0 ac_mid=0
12519   while :; do
12520     cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h.  */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h.  */
12526 $ac_includes_default
12527 int
12528 main ()
12529 {
12530 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
12531 test_array [0] = 0
12532
12533   ;
12534   return 0;
12535 }
12536 _ACEOF
12537 rm -f conftest.$ac_objext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539   (eval $ac_compile) 2>conftest.er1
12540   ac_status=$?
12541   grep -v '^ *+' conftest.er1 >conftest.err
12542   rm -f conftest.er1
12543   cat conftest.err >&5
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); } &&
12546          { ac_try='test -z "$ac_c_werror_flag"
12547                          || test ! -s conftest.err'
12548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549   (eval $ac_try) 2>&5
12550   ac_status=$?
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); }; } &&
12553          { ac_try='test -s conftest.$ac_objext'
12554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555   (eval $ac_try) 2>&5
12556   ac_status=$?
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); }; }; then
12559   ac_hi=$ac_mid; break
12560 else
12561   echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12563
12564 ac_lo=`expr $ac_mid + 1`
12565                     if test $ac_lo -le $ac_mid; then
12566                       ac_lo= ac_hi=
12567                       break
12568                     fi
12569                     ac_mid=`expr 2 '*' $ac_mid + 1`
12570 fi
12571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12572   done
12573 else
12574   echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12576
12577 cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h.  */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h.  */
12583 $ac_includes_default
12584 int
12585 main ()
12586 {
12587 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) < 0)];
12588 test_array [0] = 0
12589
12590   ;
12591   return 0;
12592 }
12593 _ACEOF
12594 rm -f conftest.$ac_objext
12595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12596   (eval $ac_compile) 2>conftest.er1
12597   ac_status=$?
12598   grep -v '^ *+' conftest.er1 >conftest.err
12599   rm -f conftest.er1
12600   cat conftest.err >&5
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); } &&
12603          { ac_try='test -z "$ac_c_werror_flag"
12604                          || test ! -s conftest.err'
12605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606   (eval $ac_try) 2>&5
12607   ac_status=$?
12608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609   (exit $ac_status); }; } &&
12610          { ac_try='test -s conftest.$ac_objext'
12611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612   (eval $ac_try) 2>&5
12613   ac_status=$?
12614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); }; }; then
12616   ac_hi=-1 ac_mid=-1
12617   while :; do
12618     cat >conftest.$ac_ext <<_ACEOF
12619 /* confdefs.h.  */
12620 _ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h.  */
12624 $ac_includes_default
12625 int
12626 main ()
12627 {
12628 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= $ac_mid)];
12629 test_array [0] = 0
12630
12631   ;
12632   return 0;
12633 }
12634 _ACEOF
12635 rm -f conftest.$ac_objext
12636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637   (eval $ac_compile) 2>conftest.er1
12638   ac_status=$?
12639   grep -v '^ *+' conftest.er1 >conftest.err
12640   rm -f conftest.er1
12641   cat conftest.err >&5
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); } &&
12644          { ac_try='test -z "$ac_c_werror_flag"
12645                          || test ! -s conftest.err'
12646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647   (eval $ac_try) 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; } &&
12651          { ac_try='test -s conftest.$ac_objext'
12652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653   (eval $ac_try) 2>&5
12654   ac_status=$?
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); }; }; then
12657   ac_lo=$ac_mid; break
12658 else
12659   echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12661
12662 ac_hi=`expr '(' $ac_mid ')' - 1`
12663                        if test $ac_mid -le $ac_hi; then
12664                          ac_lo= ac_hi=
12665                          break
12666                        fi
12667                        ac_mid=`expr 2 '*' $ac_mid`
12668 fi
12669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12670   done
12671 else
12672   echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.$ac_ext >&5
12674
12675 ac_lo= ac_hi=
12676 fi
12677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12678 fi
12679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12680 # Binary search between lo and hi bounds.
12681 while test "x$ac_lo" != "x$ac_hi"; do
12682   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12683   cat >conftest.$ac_ext <<_ACEOF
12684 /* confdefs.h.  */
12685 _ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h.  */
12689 $ac_includes_default
12690 int
12691 main ()
12692 {
12693 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
12694 test_array [0] = 0
12695
12696   ;
12697   return 0;
12698 }
12699 _ACEOF
12700 rm -f conftest.$ac_objext
12701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12702   (eval $ac_compile) 2>conftest.er1
12703   ac_status=$?
12704   grep -v '^ *+' conftest.er1 >conftest.err
12705   rm -f conftest.er1
12706   cat conftest.err >&5
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); } &&
12709          { ac_try='test -z "$ac_c_werror_flag"
12710                          || test ! -s conftest.err'
12711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712   (eval $ac_try) 2>&5
12713   ac_status=$?
12714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715   (exit $ac_status); }; } &&
12716          { ac_try='test -s conftest.$ac_objext'
12717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718   (eval $ac_try) 2>&5
12719   ac_status=$?
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); }; }; then
12722   ac_hi=$ac_mid
12723 else
12724   echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12726
12727 ac_lo=`expr '(' $ac_mid ')' + 1`
12728 fi
12729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12730 done
12731 case $ac_lo in
12732 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
12733 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
12734 See \`config.log' for more details." >&5
12735 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
12736 See \`config.log' for more details." >&2;}
12737    { (exit 1); exit 1; }; } ;;
12738 esac
12739 else
12740   if test "$cross_compiling" = yes; then
12741   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12742 See \`config.log' for more details." >&5
12743 echo "$as_me: error: cannot run test program while cross compiling
12744 See \`config.log' for more details." >&2;}
12745    { (exit 1); exit 1; }; }
12746 else
12747   cat >conftest.$ac_ext <<_ACEOF
12748 /* confdefs.h.  */
12749 _ACEOF
12750 cat confdefs.h >>conftest.$ac_ext
12751 cat >>conftest.$ac_ext <<_ACEOF
12752 /* end confdefs.h.  */
12753 $ac_includes_default
12754 long longval () { return (long) (sizeof (intmax_t)); }
12755 unsigned long ulongval () { return (long) (sizeof (intmax_t)); }
12756 #include <stdio.h>
12757 #include <stdlib.h>
12758 int
12759 main ()
12760 {
12761
12762   FILE *f = fopen ("conftest.val", "w");
12763   if (! f)
12764     exit (1);
12765   if (((long) (sizeof (intmax_t))) < 0)
12766     {
12767       long i = longval ();
12768       if (i != ((long) (sizeof (intmax_t))))
12769         exit (1);
12770       fprintf (f, "%ld\n", i);
12771     }
12772   else
12773     {
12774       unsigned long i = ulongval ();
12775       if (i != ((long) (sizeof (intmax_t))))
12776         exit (1);
12777       fprintf (f, "%lu\n", i);
12778     }
12779   exit (ferror (f) || fclose (f) != 0);
12780
12781   ;
12782   return 0;
12783 }
12784 _ACEOF
12785 rm -f conftest$ac_exeext
12786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12787   (eval $ac_link) 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792   (eval $ac_try) 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); }; }; then
12796   ac_cv_sizeof_intmax_t=`cat conftest.val`
12797 else
12798   echo "$as_me: program exited with status $ac_status" >&5
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12801
12802 ( exit $ac_status )
12803 { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
12804 See \`config.log' for more details." >&5
12805 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
12806 See \`config.log' for more details." >&2;}
12807    { (exit 1); exit 1; }; }
12808 fi
12809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12810 fi
12811 fi
12812 rm -f conftest.val
12813 else
12814   ac_cv_sizeof_intmax_t=0
12815 fi
12816 fi
12817 echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
12818 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6
12819 cat >>confdefs.h <<_ACEOF
12820 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
12821 _ACEOF
12822
12823
12824 echo "$as_me:$LINENO: checking for off_t" >&5
12825 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12826 if test "${ac_cv_type_off_t+set}" = set; then
12827   echo $ECHO_N "(cached) $ECHO_C" >&6
12828 else
12829   cat >conftest.$ac_ext <<_ACEOF
12830 /* confdefs.h.  */
12831 _ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h.  */
12835 $ac_includes_default
12836 int
12837 main ()
12838 {
12839 if ((off_t *) 0)
12840   return 0;
12841 if (sizeof (off_t))
12842   return 0;
12843   ;
12844   return 0;
12845 }
12846 _ACEOF
12847 rm -f conftest.$ac_objext
12848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12849   (eval $ac_compile) 2>conftest.er1
12850   ac_status=$?
12851   grep -v '^ *+' conftest.er1 >conftest.err
12852   rm -f conftest.er1
12853   cat conftest.err >&5
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); } &&
12856          { ac_try='test -z "$ac_c_werror_flag"
12857                          || test ! -s conftest.err'
12858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859   (eval $ac_try) 2>&5
12860   ac_status=$?
12861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862   (exit $ac_status); }; } &&
12863          { ac_try='test -s conftest.$ac_objext'
12864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865   (eval $ac_try) 2>&5
12866   ac_status=$?
12867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868   (exit $ac_status); }; }; then
12869   ac_cv_type_off_t=yes
12870 else
12871   echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12873
12874 ac_cv_type_off_t=no
12875 fi
12876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12877 fi
12878 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12879 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12880
12881 echo "$as_me:$LINENO: checking size of off_t" >&5
12882 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
12883 if test "${ac_cv_sizeof_off_t+set}" = set; then
12884   echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886   if test "$ac_cv_type_off_t" = yes; then
12887   # The cast to unsigned long works around a bug in the HP C Compiler
12888   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12889   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12890   # This bug is HP SR number 8606223364.
12891   if test "$cross_compiling" = yes; then
12892   # Depending upon the size, compute the lo and hi bounds.
12893 cat >conftest.$ac_ext <<_ACEOF
12894 /* confdefs.h.  */
12895 _ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h.  */
12899 $ac_includes_default
12900 int
12901 main ()
12902 {
12903 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
12904 test_array [0] = 0
12905
12906   ;
12907   return 0;
12908 }
12909 _ACEOF
12910 rm -f conftest.$ac_objext
12911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12912   (eval $ac_compile) 2>conftest.er1
12913   ac_status=$?
12914   grep -v '^ *+' conftest.er1 >conftest.err
12915   rm -f conftest.er1
12916   cat conftest.err >&5
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); } &&
12919          { ac_try='test -z "$ac_c_werror_flag"
12920                          || test ! -s conftest.err'
12921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922   (eval $ac_try) 2>&5
12923   ac_status=$?
12924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925   (exit $ac_status); }; } &&
12926          { ac_try='test -s conftest.$ac_objext'
12927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928   (eval $ac_try) 2>&5
12929   ac_status=$?
12930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931   (exit $ac_status); }; }; then
12932   ac_lo=0 ac_mid=0
12933   while :; do
12934     cat >conftest.$ac_ext <<_ACEOF
12935 /* confdefs.h.  */
12936 _ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h.  */
12940 $ac_includes_default
12941 int
12942 main ()
12943 {
12944 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
12945 test_array [0] = 0
12946
12947   ;
12948   return 0;
12949 }
12950 _ACEOF
12951 rm -f conftest.$ac_objext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953   (eval $ac_compile) 2>conftest.er1
12954   ac_status=$?
12955   grep -v '^ *+' conftest.er1 >conftest.err
12956   rm -f conftest.er1
12957   cat conftest.err >&5
12958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959   (exit $ac_status); } &&
12960          { ac_try='test -z "$ac_c_werror_flag"
12961                          || test ! -s conftest.err'
12962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963   (eval $ac_try) 2>&5
12964   ac_status=$?
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); }; } &&
12967          { ac_try='test -s conftest.$ac_objext'
12968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969   (eval $ac_try) 2>&5
12970   ac_status=$?
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); }; }; then
12973   ac_hi=$ac_mid; break
12974 else
12975   echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12977
12978 ac_lo=`expr $ac_mid + 1`
12979                     if test $ac_lo -le $ac_mid; then
12980                       ac_lo= ac_hi=
12981                       break
12982                     fi
12983                     ac_mid=`expr 2 '*' $ac_mid + 1`
12984 fi
12985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12986   done
12987 else
12988   echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12990
12991 cat >conftest.$ac_ext <<_ACEOF
12992 /* confdefs.h.  */
12993 _ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h.  */
12997 $ac_includes_default
12998 int
12999 main ()
13000 {
13001 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13002 test_array [0] = 0
13003
13004   ;
13005   return 0;
13006 }
13007 _ACEOF
13008 rm -f conftest.$ac_objext
13009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13010   (eval $ac_compile) 2>conftest.er1
13011   ac_status=$?
13012   grep -v '^ *+' conftest.er1 >conftest.err
13013   rm -f conftest.er1
13014   cat conftest.err >&5
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); } &&
13017          { ac_try='test -z "$ac_c_werror_flag"
13018                          || test ! -s conftest.err'
13019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020   (eval $ac_try) 2>&5
13021   ac_status=$?
13022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023   (exit $ac_status); }; } &&
13024          { ac_try='test -s conftest.$ac_objext'
13025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026   (eval $ac_try) 2>&5
13027   ac_status=$?
13028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); }; }; then
13030   ac_hi=-1 ac_mid=-1
13031   while :; do
13032     cat >conftest.$ac_ext <<_ACEOF
13033 /* confdefs.h.  */
13034 _ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h.  */
13038 $ac_includes_default
13039 int
13040 main ()
13041 {
13042 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13043 test_array [0] = 0
13044
13045   ;
13046   return 0;
13047 }
13048 _ACEOF
13049 rm -f conftest.$ac_objext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051   (eval $ac_compile) 2>conftest.er1
13052   ac_status=$?
13053   grep -v '^ *+' conftest.er1 >conftest.err
13054   rm -f conftest.er1
13055   cat conftest.err >&5
13056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); } &&
13058          { ac_try='test -z "$ac_c_werror_flag"
13059                          || test ! -s conftest.err'
13060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061   (eval $ac_try) 2>&5
13062   ac_status=$?
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); }; } &&
13065          { ac_try='test -s conftest.$ac_objext'
13066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067   (eval $ac_try) 2>&5
13068   ac_status=$?
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); }; }; then
13071   ac_lo=$ac_mid; break
13072 else
13073   echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13075
13076 ac_hi=`expr '(' $ac_mid ')' - 1`
13077                        if test $ac_mid -le $ac_hi; then
13078                          ac_lo= ac_hi=
13079                          break
13080                        fi
13081                        ac_mid=`expr 2 '*' $ac_mid`
13082 fi
13083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13084   done
13085 else
13086   echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13088
13089 ac_lo= ac_hi=
13090 fi
13091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13092 fi
13093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13094 # Binary search between lo and hi bounds.
13095 while test "x$ac_lo" != "x$ac_hi"; do
13096   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13097   cat >conftest.$ac_ext <<_ACEOF
13098 /* confdefs.h.  */
13099 _ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h.  */
13103 $ac_includes_default
13104 int
13105 main ()
13106 {
13107 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13108 test_array [0] = 0
13109
13110   ;
13111   return 0;
13112 }
13113 _ACEOF
13114 rm -f conftest.$ac_objext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13116   (eval $ac_compile) 2>conftest.er1
13117   ac_status=$?
13118   grep -v '^ *+' conftest.er1 >conftest.err
13119   rm -f conftest.er1
13120   cat conftest.err >&5
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); } &&
13123          { ac_try='test -z "$ac_c_werror_flag"
13124                          || test ! -s conftest.err'
13125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126   (eval $ac_try) 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); }; } &&
13130          { ac_try='test -s conftest.$ac_objext'
13131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132   (eval $ac_try) 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); }; }; then
13136   ac_hi=$ac_mid
13137 else
13138   echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13140
13141 ac_lo=`expr '(' $ac_mid ')' + 1`
13142 fi
13143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13144 done
13145 case $ac_lo in
13146 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13148 See \`config.log' for more details." >&5
13149 echo "$as_me: error: cannot compute sizeof (off_t), 77
13150 See \`config.log' for more details." >&2;}
13151    { (exit 1); exit 1; }; } ;;
13152 esac
13153 else
13154   if test "$cross_compiling" = yes; then
13155   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13156 See \`config.log' for more details." >&5
13157 echo "$as_me: error: cannot run test program while cross compiling
13158 See \`config.log' for more details." >&2;}
13159    { (exit 1); exit 1; }; }
13160 else
13161   cat >conftest.$ac_ext <<_ACEOF
13162 /* confdefs.h.  */
13163 _ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h.  */
13167 $ac_includes_default
13168 long longval () { return (long) (sizeof (off_t)); }
13169 unsigned long ulongval () { return (long) (sizeof (off_t)); }
13170 #include <stdio.h>
13171 #include <stdlib.h>
13172 int
13173 main ()
13174 {
13175
13176   FILE *f = fopen ("conftest.val", "w");
13177   if (! f)
13178     exit (1);
13179   if (((long) (sizeof (off_t))) < 0)
13180     {
13181       long i = longval ();
13182       if (i != ((long) (sizeof (off_t))))
13183         exit (1);
13184       fprintf (f, "%ld\n", i);
13185     }
13186   else
13187     {
13188       unsigned long i = ulongval ();
13189       if (i != ((long) (sizeof (off_t))))
13190         exit (1);
13191       fprintf (f, "%lu\n", i);
13192     }
13193   exit (ferror (f) || fclose (f) != 0);
13194
13195   ;
13196   return 0;
13197 }
13198 _ACEOF
13199 rm -f conftest$ac_exeext
13200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13201   (eval $ac_link) 2>&5
13202   ac_status=$?
13203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206   (eval $ac_try) 2>&5
13207   ac_status=$?
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); }; }; then
13210   ac_cv_sizeof_off_t=`cat conftest.val`
13211 else
13212   echo "$as_me: program exited with status $ac_status" >&5
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13215
13216 ( exit $ac_status )
13217 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13218 See \`config.log' for more details." >&5
13219 echo "$as_me: error: cannot compute sizeof (off_t), 77
13220 See \`config.log' for more details." >&2;}
13221    { (exit 1); exit 1; }; }
13222 fi
13223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13224 fi
13225 fi
13226 rm -f conftest.val
13227 else
13228   ac_cv_sizeof_off_t=0
13229 fi
13230 fi
13231 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13232 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
13233 cat >>confdefs.h <<_ACEOF
13234 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13235 _ACEOF
13236
13237
13238 echo "$as_me:$LINENO: checking for size_t" >&5
13239 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13240 if test "${ac_cv_type_size_t+set}" = set; then
13241   echo $ECHO_N "(cached) $ECHO_C" >&6
13242 else
13243   cat >conftest.$ac_ext <<_ACEOF
13244 /* confdefs.h.  */
13245 _ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h.  */
13249 $ac_includes_default
13250 int
13251 main ()
13252 {
13253 if ((size_t *) 0)
13254   return 0;
13255 if (sizeof (size_t))
13256   return 0;
13257   ;
13258   return 0;
13259 }
13260 _ACEOF
13261 rm -f conftest.$ac_objext
13262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13263   (eval $ac_compile) 2>conftest.er1
13264   ac_status=$?
13265   grep -v '^ *+' conftest.er1 >conftest.err
13266   rm -f conftest.er1
13267   cat conftest.err >&5
13268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269   (exit $ac_status); } &&
13270          { ac_try='test -z "$ac_c_werror_flag"
13271                          || test ! -s conftest.err'
13272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273   (eval $ac_try) 2>&5
13274   ac_status=$?
13275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276   (exit $ac_status); }; } &&
13277          { ac_try='test -s conftest.$ac_objext'
13278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279   (eval $ac_try) 2>&5
13280   ac_status=$?
13281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282   (exit $ac_status); }; }; then
13283   ac_cv_type_size_t=yes
13284 else
13285   echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13287
13288 ac_cv_type_size_t=no
13289 fi
13290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13291 fi
13292 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13293 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13294
13295 echo "$as_me:$LINENO: checking size of size_t" >&5
13296 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
13297 if test "${ac_cv_sizeof_size_t+set}" = set; then
13298   echo $ECHO_N "(cached) $ECHO_C" >&6
13299 else
13300   if test "$ac_cv_type_size_t" = yes; then
13301   # The cast to unsigned long works around a bug in the HP C Compiler
13302   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13303   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13304   # This bug is HP SR number 8606223364.
13305   if test "$cross_compiling" = yes; then
13306   # Depending upon the size, compute the lo and hi bounds.
13307 cat >conftest.$ac_ext <<_ACEOF
13308 /* confdefs.h.  */
13309 _ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h.  */
13313 $ac_includes_default
13314 int
13315 main ()
13316 {
13317 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
13318 test_array [0] = 0
13319
13320   ;
13321   return 0;
13322 }
13323 _ACEOF
13324 rm -f conftest.$ac_objext
13325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13326   (eval $ac_compile) 2>conftest.er1
13327   ac_status=$?
13328   grep -v '^ *+' conftest.er1 >conftest.err
13329   rm -f conftest.er1
13330   cat conftest.err >&5
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); } &&
13333          { ac_try='test -z "$ac_c_werror_flag"
13334                          || test ! -s conftest.err'
13335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336   (eval $ac_try) 2>&5
13337   ac_status=$?
13338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); }; } &&
13340          { ac_try='test -s conftest.$ac_objext'
13341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342   (eval $ac_try) 2>&5
13343   ac_status=$?
13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); }; }; then
13346   ac_lo=0 ac_mid=0
13347   while :; do
13348     cat >conftest.$ac_ext <<_ACEOF
13349 /* confdefs.h.  */
13350 _ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h.  */
13354 $ac_includes_default
13355 int
13356 main ()
13357 {
13358 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
13359 test_array [0] = 0
13360
13361   ;
13362   return 0;
13363 }
13364 _ACEOF
13365 rm -f conftest.$ac_objext
13366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13367   (eval $ac_compile) 2>conftest.er1
13368   ac_status=$?
13369   grep -v '^ *+' conftest.er1 >conftest.err
13370   rm -f conftest.er1
13371   cat conftest.err >&5
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); } &&
13374          { ac_try='test -z "$ac_c_werror_flag"
13375                          || test ! -s conftest.err'
13376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377   (eval $ac_try) 2>&5
13378   ac_status=$?
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); }; } &&
13381          { ac_try='test -s conftest.$ac_objext'
13382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383   (eval $ac_try) 2>&5
13384   ac_status=$?
13385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386   (exit $ac_status); }; }; then
13387   ac_hi=$ac_mid; break
13388 else
13389   echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13391
13392 ac_lo=`expr $ac_mid + 1`
13393                     if test $ac_lo -le $ac_mid; then
13394                       ac_lo= ac_hi=
13395                       break
13396                     fi
13397                     ac_mid=`expr 2 '*' $ac_mid + 1`
13398 fi
13399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13400   done
13401 else
13402   echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405 cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h.  */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h.  */
13411 $ac_includes_default
13412 int
13413 main ()
13414 {
13415 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
13416 test_array [0] = 0
13417
13418   ;
13419   return 0;
13420 }
13421 _ACEOF
13422 rm -f conftest.$ac_objext
13423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13424   (eval $ac_compile) 2>conftest.er1
13425   ac_status=$?
13426   grep -v '^ *+' conftest.er1 >conftest.err
13427   rm -f conftest.er1
13428   cat conftest.err >&5
13429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430   (exit $ac_status); } &&
13431          { ac_try='test -z "$ac_c_werror_flag"
13432                          || test ! -s conftest.err'
13433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434   (eval $ac_try) 2>&5
13435   ac_status=$?
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); }; } &&
13438          { ac_try='test -s conftest.$ac_objext'
13439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440   (eval $ac_try) 2>&5
13441   ac_status=$?
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); }; }; then
13444   ac_hi=-1 ac_mid=-1
13445   while :; do
13446     cat >conftest.$ac_ext <<_ACEOF
13447 /* confdefs.h.  */
13448 _ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h.  */
13452 $ac_includes_default
13453 int
13454 main ()
13455 {
13456 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
13457 test_array [0] = 0
13458
13459   ;
13460   return 0;
13461 }
13462 _ACEOF
13463 rm -f conftest.$ac_objext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13465   (eval $ac_compile) 2>conftest.er1
13466   ac_status=$?
13467   grep -v '^ *+' conftest.er1 >conftest.err
13468   rm -f conftest.er1
13469   cat conftest.err >&5
13470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471   (exit $ac_status); } &&
13472          { ac_try='test -z "$ac_c_werror_flag"
13473                          || test ! -s conftest.err'
13474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475   (eval $ac_try) 2>&5
13476   ac_status=$?
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); }; } &&
13479          { ac_try='test -s conftest.$ac_objext'
13480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481   (eval $ac_try) 2>&5
13482   ac_status=$?
13483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484   (exit $ac_status); }; }; then
13485   ac_lo=$ac_mid; break
13486 else
13487   echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13489
13490 ac_hi=`expr '(' $ac_mid ')' - 1`
13491                        if test $ac_mid -le $ac_hi; then
13492                          ac_lo= ac_hi=
13493                          break
13494                        fi
13495                        ac_mid=`expr 2 '*' $ac_mid`
13496 fi
13497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13498   done
13499 else
13500   echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13502
13503 ac_lo= ac_hi=
13504 fi
13505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13506 fi
13507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13508 # Binary search between lo and hi bounds.
13509 while test "x$ac_lo" != "x$ac_hi"; do
13510   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13511   cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h.  */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h.  */
13517 $ac_includes_default
13518 int
13519 main ()
13520 {
13521 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
13522 test_array [0] = 0
13523
13524   ;
13525   return 0;
13526 }
13527 _ACEOF
13528 rm -f conftest.$ac_objext
13529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13530   (eval $ac_compile) 2>conftest.er1
13531   ac_status=$?
13532   grep -v '^ *+' conftest.er1 >conftest.err
13533   rm -f conftest.er1
13534   cat conftest.err >&5
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); } &&
13537          { ac_try='test -z "$ac_c_werror_flag"
13538                          || test ! -s conftest.err'
13539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540   (eval $ac_try) 2>&5
13541   ac_status=$?
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); }; } &&
13544          { ac_try='test -s conftest.$ac_objext'
13545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546   (eval $ac_try) 2>&5
13547   ac_status=$?
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); }; }; then
13550   ac_hi=$ac_mid
13551 else
13552   echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13554
13555 ac_lo=`expr '(' $ac_mid ')' + 1`
13556 fi
13557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13558 done
13559 case $ac_lo in
13560 ?*) ac_cv_sizeof_size_t=$ac_lo;;
13561 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
13562 See \`config.log' for more details." >&5
13563 echo "$as_me: error: cannot compute sizeof (size_t), 77
13564 See \`config.log' for more details." >&2;}
13565    { (exit 1); exit 1; }; } ;;
13566 esac
13567 else
13568   if test "$cross_compiling" = yes; then
13569   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13570 See \`config.log' for more details." >&5
13571 echo "$as_me: error: cannot run test program while cross compiling
13572 See \`config.log' for more details." >&2;}
13573    { (exit 1); exit 1; }; }
13574 else
13575   cat >conftest.$ac_ext <<_ACEOF
13576 /* confdefs.h.  */
13577 _ACEOF
13578 cat confdefs.h >>conftest.$ac_ext
13579 cat >>conftest.$ac_ext <<_ACEOF
13580 /* end confdefs.h.  */
13581 $ac_includes_default
13582 long longval () { return (long) (sizeof (size_t)); }
13583 unsigned long ulongval () { return (long) (sizeof (size_t)); }
13584 #include <stdio.h>
13585 #include <stdlib.h>
13586 int
13587 main ()
13588 {
13589
13590   FILE *f = fopen ("conftest.val", "w");
13591   if (! f)
13592     exit (1);
13593   if (((long) (sizeof (size_t))) < 0)
13594     {
13595       long i = longval ();
13596       if (i != ((long) (sizeof (size_t))))
13597         exit (1);
13598       fprintf (f, "%ld\n", i);
13599     }
13600   else
13601     {
13602       unsigned long i = ulongval ();
13603       if (i != ((long) (sizeof (size_t))))
13604         exit (1);
13605       fprintf (f, "%lu\n", i);
13606     }
13607   exit (ferror (f) || fclose (f) != 0);
13608
13609   ;
13610   return 0;
13611 }
13612 _ACEOF
13613 rm -f conftest$ac_exeext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13615   (eval $ac_link) 2>&5
13616   ac_status=$?
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620   (eval $ac_try) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }; }; then
13624   ac_cv_sizeof_size_t=`cat conftest.val`
13625 else
13626   echo "$as_me: program exited with status $ac_status" >&5
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 ( exit $ac_status )
13631 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
13632 See \`config.log' for more details." >&5
13633 echo "$as_me: error: cannot compute sizeof (size_t), 77
13634 See \`config.log' for more details." >&2;}
13635    { (exit 1); exit 1; }; }
13636 fi
13637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13638 fi
13639 fi
13640 rm -f conftest.val
13641 else
13642   ac_cv_sizeof_size_t=0
13643 fi
13644 fi
13645 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
13646 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
13647 cat >>confdefs.h <<_ACEOF
13648 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13649 _ACEOF
13650
13651
13652 echo "$as_me:$LINENO: checking for ssize_t" >&5
13653 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13654 if test "${ac_cv_type_ssize_t+set}" = set; then
13655   echo $ECHO_N "(cached) $ECHO_C" >&6
13656 else
13657   cat >conftest.$ac_ext <<_ACEOF
13658 /* confdefs.h.  */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h.  */
13663 $ac_includes_default
13664 int
13665 main ()
13666 {
13667 if ((ssize_t *) 0)
13668   return 0;
13669 if (sizeof (ssize_t))
13670   return 0;
13671   ;
13672   return 0;
13673 }
13674 _ACEOF
13675 rm -f conftest.$ac_objext
13676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13677   (eval $ac_compile) 2>conftest.er1
13678   ac_status=$?
13679   grep -v '^ *+' conftest.er1 >conftest.err
13680   rm -f conftest.er1
13681   cat conftest.err >&5
13682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683   (exit $ac_status); } &&
13684          { ac_try='test -z "$ac_c_werror_flag"
13685                          || test ! -s conftest.err'
13686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687   (eval $ac_try) 2>&5
13688   ac_status=$?
13689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690   (exit $ac_status); }; } &&
13691          { ac_try='test -s conftest.$ac_objext'
13692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693   (eval $ac_try) 2>&5
13694   ac_status=$?
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); }; }; then
13697   ac_cv_type_ssize_t=yes
13698 else
13699   echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13701
13702 ac_cv_type_ssize_t=no
13703 fi
13704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13705 fi
13706 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13707 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13708
13709 echo "$as_me:$LINENO: checking size of ssize_t" >&5
13710 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6
13711 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
13712   echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714   if test "$ac_cv_type_ssize_t" = yes; then
13715   # The cast to unsigned long works around a bug in the HP C Compiler
13716   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13717   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13718   # This bug is HP SR number 8606223364.
13719   if test "$cross_compiling" = yes; then
13720   # Depending upon the size, compute the lo and hi bounds.
13721 cat >conftest.$ac_ext <<_ACEOF
13722 /* confdefs.h.  */
13723 _ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h.  */
13727 $ac_includes_default
13728 int
13729 main ()
13730 {
13731 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= 0)];
13732 test_array [0] = 0
13733
13734   ;
13735   return 0;
13736 }
13737 _ACEOF
13738 rm -f conftest.$ac_objext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13740   (eval $ac_compile) 2>conftest.er1
13741   ac_status=$?
13742   grep -v '^ *+' conftest.er1 >conftest.err
13743   rm -f conftest.er1
13744   cat conftest.err >&5
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); } &&
13747          { ac_try='test -z "$ac_c_werror_flag"
13748                          || test ! -s conftest.err'
13749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750   (eval $ac_try) 2>&5
13751   ac_status=$?
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); }; } &&
13754          { ac_try='test -s conftest.$ac_objext'
13755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756   (eval $ac_try) 2>&5
13757   ac_status=$?
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); }; }; then
13760   ac_lo=0 ac_mid=0
13761   while :; do
13762     cat >conftest.$ac_ext <<_ACEOF
13763 /* confdefs.h.  */
13764 _ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h.  */
13768 $ac_includes_default
13769 int
13770 main ()
13771 {
13772 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
13773 test_array [0] = 0
13774
13775   ;
13776   return 0;
13777 }
13778 _ACEOF
13779 rm -f conftest.$ac_objext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13781   (eval $ac_compile) 2>conftest.er1
13782   ac_status=$?
13783   grep -v '^ *+' conftest.er1 >conftest.err
13784   rm -f conftest.er1
13785   cat conftest.err >&5
13786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787   (exit $ac_status); } &&
13788          { ac_try='test -z "$ac_c_werror_flag"
13789                          || test ! -s conftest.err'
13790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791   (eval $ac_try) 2>&5
13792   ac_status=$?
13793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794   (exit $ac_status); }; } &&
13795          { ac_try='test -s conftest.$ac_objext'
13796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797   (eval $ac_try) 2>&5
13798   ac_status=$?
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); }; }; then
13801   ac_hi=$ac_mid; break
13802 else
13803   echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13805
13806 ac_lo=`expr $ac_mid + 1`
13807                     if test $ac_lo -le $ac_mid; then
13808                       ac_lo= ac_hi=
13809                       break
13810                     fi
13811                     ac_mid=`expr 2 '*' $ac_mid + 1`
13812 fi
13813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13814   done
13815 else
13816   echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13818
13819 cat >conftest.$ac_ext <<_ACEOF
13820 /* confdefs.h.  */
13821 _ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h.  */
13825 $ac_includes_default
13826 int
13827 main ()
13828 {
13829 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) < 0)];
13830 test_array [0] = 0
13831
13832   ;
13833   return 0;
13834 }
13835 _ACEOF
13836 rm -f conftest.$ac_objext
13837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13838   (eval $ac_compile) 2>conftest.er1
13839   ac_status=$?
13840   grep -v '^ *+' conftest.er1 >conftest.err
13841   rm -f conftest.er1
13842   cat conftest.err >&5
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); } &&
13845          { ac_try='test -z "$ac_c_werror_flag"
13846                          || test ! -s conftest.err'
13847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848   (eval $ac_try) 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); }; } &&
13852          { ac_try='test -s conftest.$ac_objext'
13853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854   (eval $ac_try) 2>&5
13855   ac_status=$?
13856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857   (exit $ac_status); }; }; then
13858   ac_hi=-1 ac_mid=-1
13859   while :; do
13860     cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h.  */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h.  */
13866 $ac_includes_default
13867 int
13868 main ()
13869 {
13870 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= $ac_mid)];
13871 test_array [0] = 0
13872
13873   ;
13874   return 0;
13875 }
13876 _ACEOF
13877 rm -f conftest.$ac_objext
13878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13879   (eval $ac_compile) 2>conftest.er1
13880   ac_status=$?
13881   grep -v '^ *+' conftest.er1 >conftest.err
13882   rm -f conftest.er1
13883   cat conftest.err >&5
13884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885   (exit $ac_status); } &&
13886          { ac_try='test -z "$ac_c_werror_flag"
13887                          || test ! -s conftest.err'
13888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889   (eval $ac_try) 2>&5
13890   ac_status=$?
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); }; } &&
13893          { ac_try='test -s conftest.$ac_objext'
13894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895   (eval $ac_try) 2>&5
13896   ac_status=$?
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); }; }; then
13899   ac_lo=$ac_mid; break
13900 else
13901   echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13903
13904 ac_hi=`expr '(' $ac_mid ')' - 1`
13905                        if test $ac_mid -le $ac_hi; then
13906                          ac_lo= ac_hi=
13907                          break
13908                        fi
13909                        ac_mid=`expr 2 '*' $ac_mid`
13910 fi
13911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13912   done
13913 else
13914   echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13916
13917 ac_lo= ac_hi=
13918 fi
13919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13920 fi
13921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13922 # Binary search between lo and hi bounds.
13923 while test "x$ac_lo" != "x$ac_hi"; do
13924   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13925   cat >conftest.$ac_ext <<_ACEOF
13926 /* confdefs.h.  */
13927 _ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h.  */
13931 $ac_includes_default
13932 int
13933 main ()
13934 {
13935 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
13936 test_array [0] = 0
13937
13938   ;
13939   return 0;
13940 }
13941 _ACEOF
13942 rm -f conftest.$ac_objext
13943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13944   (eval $ac_compile) 2>conftest.er1
13945   ac_status=$?
13946   grep -v '^ *+' conftest.er1 >conftest.err
13947   rm -f conftest.er1
13948   cat conftest.err >&5
13949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); } &&
13951          { ac_try='test -z "$ac_c_werror_flag"
13952                          || test ! -s conftest.err'
13953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954   (eval $ac_try) 2>&5
13955   ac_status=$?
13956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957   (exit $ac_status); }; } &&
13958          { ac_try='test -s conftest.$ac_objext'
13959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960   (eval $ac_try) 2>&5
13961   ac_status=$?
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); }; }; then
13964   ac_hi=$ac_mid
13965 else
13966   echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13968
13969 ac_lo=`expr '(' $ac_mid ')' + 1`
13970 fi
13971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13972 done
13973 case $ac_lo in
13974 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
13975 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
13976 See \`config.log' for more details." >&5
13977 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
13978 See \`config.log' for more details." >&2;}
13979    { (exit 1); exit 1; }; } ;;
13980 esac
13981 else
13982   if test "$cross_compiling" = yes; then
13983   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13984 See \`config.log' for more details." >&5
13985 echo "$as_me: error: cannot run test program while cross compiling
13986 See \`config.log' for more details." >&2;}
13987    { (exit 1); exit 1; }; }
13988 else
13989   cat >conftest.$ac_ext <<_ACEOF
13990 /* confdefs.h.  */
13991 _ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h.  */
13995 $ac_includes_default
13996 long longval () { return (long) (sizeof (ssize_t)); }
13997 unsigned long ulongval () { return (long) (sizeof (ssize_t)); }
13998 #include <stdio.h>
13999 #include <stdlib.h>
14000 int
14001 main ()
14002 {
14003
14004   FILE *f = fopen ("conftest.val", "w");
14005   if (! f)
14006     exit (1);
14007   if (((long) (sizeof (ssize_t))) < 0)
14008     {
14009       long i = longval ();
14010       if (i != ((long) (sizeof (ssize_t))))
14011         exit (1);
14012       fprintf (f, "%ld\n", i);
14013     }
14014   else
14015     {
14016       unsigned long i = ulongval ();
14017       if (i != ((long) (sizeof (ssize_t))))
14018         exit (1);
14019       fprintf (f, "%lu\n", i);
14020     }
14021   exit (ferror (f) || fclose (f) != 0);
14022
14023   ;
14024   return 0;
14025 }
14026 _ACEOF
14027 rm -f conftest$ac_exeext
14028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14029   (eval $ac_link) 2>&5
14030   ac_status=$?
14031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; }; then
14038   ac_cv_sizeof_ssize_t=`cat conftest.val`
14039 else
14040   echo "$as_me: program exited with status $ac_status" >&5
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14043
14044 ( exit $ac_status )
14045 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
14046 See \`config.log' for more details." >&5
14047 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
14048 See \`config.log' for more details." >&2;}
14049    { (exit 1); exit 1; }; }
14050 fi
14051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14052 fi
14053 fi
14054 rm -f conftest.val
14055 else
14056   ac_cv_sizeof_ssize_t=0
14057 fi
14058 fi
14059 echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
14060 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6
14061 cat >>confdefs.h <<_ACEOF
14062 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
14063 _ACEOF
14064
14065
14066 echo "$as_me:$LINENO: checking for time_t" >&5
14067 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
14068 if test "${ac_cv_type_time_t+set}" = set; then
14069   echo $ECHO_N "(cached) $ECHO_C" >&6
14070 else
14071   cat >conftest.$ac_ext <<_ACEOF
14072 /* confdefs.h.  */
14073 _ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h.  */
14077 $ac_includes_default
14078 int
14079 main ()
14080 {
14081 if ((time_t *) 0)
14082   return 0;
14083 if (sizeof (time_t))
14084   return 0;
14085   ;
14086   return 0;
14087 }
14088 _ACEOF
14089 rm -f conftest.$ac_objext
14090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14091   (eval $ac_compile) 2>conftest.er1
14092   ac_status=$?
14093   grep -v '^ *+' conftest.er1 >conftest.err
14094   rm -f conftest.er1
14095   cat conftest.err >&5
14096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097   (exit $ac_status); } &&
14098          { ac_try='test -z "$ac_c_werror_flag"
14099                          || test ! -s conftest.err'
14100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101   (eval $ac_try) 2>&5
14102   ac_status=$?
14103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104   (exit $ac_status); }; } &&
14105          { ac_try='test -s conftest.$ac_objext'
14106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107   (eval $ac_try) 2>&5
14108   ac_status=$?
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); }; }; then
14111   ac_cv_type_time_t=yes
14112 else
14113   echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14115
14116 ac_cv_type_time_t=no
14117 fi
14118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14119 fi
14120 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
14121 echo "${ECHO_T}$ac_cv_type_time_t" >&6
14122
14123 echo "$as_me:$LINENO: checking size of time_t" >&5
14124 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
14125 if test "${ac_cv_sizeof_time_t+set}" = set; then
14126   echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128   if test "$ac_cv_type_time_t" = yes; then
14129   # The cast to unsigned long works around a bug in the HP C Compiler
14130   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14131   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14132   # This bug is HP SR number 8606223364.
14133   if test "$cross_compiling" = yes; then
14134   # Depending upon the size, compute the lo and hi bounds.
14135 cat >conftest.$ac_ext <<_ACEOF
14136 /* confdefs.h.  */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h.  */
14141 $ac_includes_default
14142 int
14143 main ()
14144 {
14145 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= 0)];
14146 test_array [0] = 0
14147
14148   ;
14149   return 0;
14150 }
14151 _ACEOF
14152 rm -f conftest.$ac_objext
14153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14154   (eval $ac_compile) 2>conftest.er1
14155   ac_status=$?
14156   grep -v '^ *+' conftest.er1 >conftest.err
14157   rm -f conftest.er1
14158   cat conftest.err >&5
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); } &&
14161          { ac_try='test -z "$ac_c_werror_flag"
14162                          || test ! -s conftest.err'
14163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164   (eval $ac_try) 2>&5
14165   ac_status=$?
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); }; } &&
14168          { ac_try='test -s conftest.$ac_objext'
14169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170   (eval $ac_try) 2>&5
14171   ac_status=$?
14172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173   (exit $ac_status); }; }; then
14174   ac_lo=0 ac_mid=0
14175   while :; do
14176     cat >conftest.$ac_ext <<_ACEOF
14177 /* confdefs.h.  */
14178 _ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h.  */
14182 $ac_includes_default
14183 int
14184 main ()
14185 {
14186 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
14187 test_array [0] = 0
14188
14189   ;
14190   return 0;
14191 }
14192 _ACEOF
14193 rm -f conftest.$ac_objext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195   (eval $ac_compile) 2>conftest.er1
14196   ac_status=$?
14197   grep -v '^ *+' conftest.er1 >conftest.err
14198   rm -f conftest.er1
14199   cat conftest.err >&5
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); } &&
14202          { ac_try='test -z "$ac_c_werror_flag"
14203                          || test ! -s conftest.err'
14204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205   (eval $ac_try) 2>&5
14206   ac_status=$?
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); }; } &&
14209          { ac_try='test -s conftest.$ac_objext'
14210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211   (eval $ac_try) 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); }; }; then
14215   ac_hi=$ac_mid; break
14216 else
14217   echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14219
14220 ac_lo=`expr $ac_mid + 1`
14221                     if test $ac_lo -le $ac_mid; then
14222                       ac_lo= ac_hi=
14223                       break
14224                     fi
14225                     ac_mid=`expr 2 '*' $ac_mid + 1`
14226 fi
14227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14228   done
14229 else
14230   echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14232
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h.  */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h.  */
14239 $ac_includes_default
14240 int
14241 main ()
14242 {
14243 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) < 0)];
14244 test_array [0] = 0
14245
14246   ;
14247   return 0;
14248 }
14249 _ACEOF
14250 rm -f conftest.$ac_objext
14251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252   (eval $ac_compile) 2>conftest.er1
14253   ac_status=$?
14254   grep -v '^ *+' conftest.er1 >conftest.err
14255   rm -f conftest.er1
14256   cat conftest.err >&5
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); } &&
14259          { ac_try='test -z "$ac_c_werror_flag"
14260                          || test ! -s conftest.err'
14261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262   (eval $ac_try) 2>&5
14263   ac_status=$?
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); }; } &&
14266          { ac_try='test -s conftest.$ac_objext'
14267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268   (eval $ac_try) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); }; }; then
14272   ac_hi=-1 ac_mid=-1
14273   while :; do
14274     cat >conftest.$ac_ext <<_ACEOF
14275 /* confdefs.h.  */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h.  */
14280 $ac_includes_default
14281 int
14282 main ()
14283 {
14284 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= $ac_mid)];
14285 test_array [0] = 0
14286
14287   ;
14288   return 0;
14289 }
14290 _ACEOF
14291 rm -f conftest.$ac_objext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14293   (eval $ac_compile) 2>conftest.er1
14294   ac_status=$?
14295   grep -v '^ *+' conftest.er1 >conftest.err
14296   rm -f conftest.er1
14297   cat conftest.err >&5
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); } &&
14300          { ac_try='test -z "$ac_c_werror_flag"
14301                          || test ! -s conftest.err'
14302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303   (eval $ac_try) 2>&5
14304   ac_status=$?
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); }; } &&
14307          { ac_try='test -s conftest.$ac_objext'
14308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309   (eval $ac_try) 2>&5
14310   ac_status=$?
14311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); }; }; then
14313   ac_lo=$ac_mid; break
14314 else
14315   echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14317
14318 ac_hi=`expr '(' $ac_mid ')' - 1`
14319                        if test $ac_mid -le $ac_hi; then
14320                          ac_lo= ac_hi=
14321                          break
14322                        fi
14323                        ac_mid=`expr 2 '*' $ac_mid`
14324 fi
14325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14326   done
14327 else
14328   echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14330
14331 ac_lo= ac_hi=
14332 fi
14333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14334 fi
14335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14336 # Binary search between lo and hi bounds.
14337 while test "x$ac_lo" != "x$ac_hi"; do
14338   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14339   cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h.  */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h.  */
14345 $ac_includes_default
14346 int
14347 main ()
14348 {
14349 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
14350 test_array [0] = 0
14351
14352   ;
14353   return 0;
14354 }
14355 _ACEOF
14356 rm -f conftest.$ac_objext
14357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14358   (eval $ac_compile) 2>conftest.er1
14359   ac_status=$?
14360   grep -v '^ *+' conftest.er1 >conftest.err
14361   rm -f conftest.er1
14362   cat conftest.err >&5
14363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364   (exit $ac_status); } &&
14365          { ac_try='test -z "$ac_c_werror_flag"
14366                          || test ! -s conftest.err'
14367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14368   (eval $ac_try) 2>&5
14369   ac_status=$?
14370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371   (exit $ac_status); }; } &&
14372          { ac_try='test -s conftest.$ac_objext'
14373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374   (eval $ac_try) 2>&5
14375   ac_status=$?
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); }; }; then
14378   ac_hi=$ac_mid
14379 else
14380   echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.$ac_ext >&5
14382
14383 ac_lo=`expr '(' $ac_mid ')' + 1`
14384 fi
14385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14386 done
14387 case $ac_lo in
14388 ?*) ac_cv_sizeof_time_t=$ac_lo;;
14389 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
14390 See \`config.log' for more details." >&5
14391 echo "$as_me: error: cannot compute sizeof (time_t), 77
14392 See \`config.log' for more details." >&2;}
14393    { (exit 1); exit 1; }; } ;;
14394 esac
14395 else
14396   if test "$cross_compiling" = yes; then
14397   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14398 See \`config.log' for more details." >&5
14399 echo "$as_me: error: cannot run test program while cross compiling
14400 See \`config.log' for more details." >&2;}
14401    { (exit 1); exit 1; }; }
14402 else
14403   cat >conftest.$ac_ext <<_ACEOF
14404 /* confdefs.h.  */
14405 _ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h.  */
14409 $ac_includes_default
14410 long longval () { return (long) (sizeof (time_t)); }
14411 unsigned long ulongval () { return (long) (sizeof (time_t)); }
14412 #include <stdio.h>
14413 #include <stdlib.h>
14414 int
14415 main ()
14416 {
14417
14418   FILE *f = fopen ("conftest.val", "w");
14419   if (! f)
14420     exit (1);
14421   if (((long) (sizeof (time_t))) < 0)
14422     {
14423       long i = longval ();
14424       if (i != ((long) (sizeof (time_t))))
14425         exit (1);
14426       fprintf (f, "%ld\n", i);
14427     }
14428   else
14429     {
14430       unsigned long i = ulongval ();
14431       if (i != ((long) (sizeof (time_t))))
14432         exit (1);
14433       fprintf (f, "%lu\n", i);
14434     }
14435   exit (ferror (f) || fclose (f) != 0);
14436
14437   ;
14438   return 0;
14439 }
14440 _ACEOF
14441 rm -f conftest$ac_exeext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14443   (eval $ac_link) 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448   (eval $ac_try) 2>&5
14449   ac_status=$?
14450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451   (exit $ac_status); }; }; then
14452   ac_cv_sizeof_time_t=`cat conftest.val`
14453 else
14454   echo "$as_me: program exited with status $ac_status" >&5
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14457
14458 ( exit $ac_status )
14459 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
14460 See \`config.log' for more details." >&5
14461 echo "$as_me: error: cannot compute sizeof (time_t), 77
14462 See \`config.log' for more details." >&2;}
14463    { (exit 1); exit 1; }; }
14464 fi
14465 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14466 fi
14467 fi
14468 rm -f conftest.val
14469 else
14470   ac_cv_sizeof_time_t=0
14471 fi
14472 fi
14473 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
14474 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
14475 cat >>confdefs.h <<_ACEOF
14476 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14477 _ACEOF
14478
14479
14480
14481 # Check whether --enable-shared or --disable-shared was given.
14482 if test "${enable_shared+set}" = set; then
14483   enableval="$enable_shared"
14484   p=${PACKAGE-default}
14485     case $enableval in
14486     yes) enable_shared=yes ;;
14487     no) enable_shared=no ;;
14488     *)
14489       enable_shared=no
14490       # Look at the argument we got.  We use all the common list separators.
14491       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14492       for pkg in $enableval; do
14493         IFS="$lt_save_ifs"
14494         if test "X$pkg" = "X$p"; then
14495           enable_shared=yes
14496         fi
14497       done
14498       IFS="$lt_save_ifs"
14499       ;;
14500     esac
14501 else
14502   enable_shared=yes
14503 fi;
14504
14505 # Check whether --enable-static or --disable-static was given.
14506 if test "${enable_static+set}" = set; then
14507   enableval="$enable_static"
14508   p=${PACKAGE-default}
14509     case $enableval in
14510     yes) enable_static=yes ;;
14511     no) enable_static=no ;;
14512     *)
14513      enable_static=no
14514       # Look at the argument we got.  We use all the common list separators.
14515       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14516       for pkg in $enableval; do
14517         IFS="$lt_save_ifs"
14518         if test "X$pkg" = "X$p"; then
14519           enable_static=yes
14520         fi
14521       done
14522       IFS="$lt_save_ifs"
14523       ;;
14524     esac
14525 else
14526   enable_static=yes
14527 fi;
14528
14529 # Check whether --enable-fast-install or --disable-fast-install was given.
14530 if test "${enable_fast_install+set}" = set; then
14531   enableval="$enable_fast_install"
14532   p=${PACKAGE-default}
14533     case $enableval in
14534     yes) enable_fast_install=yes ;;
14535     no) enable_fast_install=no ;;
14536     *)
14537       enable_fast_install=no
14538       # Look at the argument we got.  We use all the common list separators.
14539       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14540       for pkg in $enableval; do
14541         IFS="$lt_save_ifs"
14542         if test "X$pkg" = "X$p"; then
14543           enable_fast_install=yes
14544         fi
14545       done
14546       IFS="$lt_save_ifs"
14547       ;;
14548     esac
14549 else
14550   enable_fast_install=yes
14551 fi;
14552
14553 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14554 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14555 if test "${lt_cv_path_SED+set}" = set; then
14556   echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558   # Loop through the user's path and test for sed and gsed.
14559 # Then use that list of sed's as ones to test for truncation.
14560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14561 for as_dir in $PATH
14562 do
14563   IFS=$as_save_IFS
14564   test -z "$as_dir" && as_dir=.
14565   for lt_ac_prog in sed gsed; do
14566     for ac_exec_ext in '' $ac_executable_extensions; do
14567       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14568         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14569       fi
14570     done
14571   done
14572 done
14573 lt_ac_max=0
14574 lt_ac_count=0
14575 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14576 # along with /bin/sed that truncates output.
14577 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14578   test ! -f $lt_ac_sed && continue
14579   cat /dev/null > conftest.in
14580   lt_ac_count=0
14581   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14582   # Check for GNU sed and select it if it is found.
14583   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14584     lt_cv_path_SED=$lt_ac_sed
14585     break
14586   fi
14587   while true; do
14588     cat conftest.in conftest.in >conftest.tmp
14589     mv conftest.tmp conftest.in
14590     cp conftest.in conftest.nl
14591     echo >>conftest.nl
14592     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14593     cmp -s conftest.out conftest.nl || break
14594     # 10000 chars as input seems more than enough
14595     test $lt_ac_count -gt 10 && break
14596     lt_ac_count=`expr $lt_ac_count + 1`
14597     if test $lt_ac_count -gt $lt_ac_max; then
14598       lt_ac_max=$lt_ac_count
14599       lt_cv_path_SED=$lt_ac_sed
14600     fi
14601   done
14602 done
14603
14604 fi
14605
14606 SED=$lt_cv_path_SED
14607 echo "$as_me:$LINENO: result: $SED" >&5
14608 echo "${ECHO_T}$SED" >&6
14609
14610
14611 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14612 if test "${with_gnu_ld+set}" = set; then
14613   withval="$with_gnu_ld"
14614   test "$withval" = no || with_gnu_ld=yes
14615 else
14616   with_gnu_ld=no
14617 fi;
14618 ac_prog=ld
14619 if test "$GCC" = yes; then
14620   # Check if gcc -print-prog-name=ld gives a path.
14621   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14622 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14623   case $host in
14624   *-*-mingw*)
14625     # gcc leaves a trailing carriage return which upsets mingw
14626     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14627   *)
14628     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14629   esac
14630   case $ac_prog in
14631     # Accept absolute paths.
14632     [\\/]* | ?:[\\/]*)
14633       re_direlt='/[^/][^/]*/\.\./'
14634       # Canonicalize the pathname of ld
14635       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
14636       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14637         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14638       done
14639       test -z "$LD" && LD="$ac_prog"
14640       ;;
14641   "")
14642     # If it fails, then pretend we aren't using GCC.
14643     ac_prog=ld
14644     ;;
14645   *)
14646     # If it is relative, then search for the first ld in PATH.
14647     with_gnu_ld=unknown
14648     ;;
14649   esac
14650 elif test "$with_gnu_ld" = yes; then
14651   echo "$as_me:$LINENO: checking for GNU ld" >&5
14652 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14653 else
14654   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14655 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14656 fi
14657 if test "${lt_cv_path_LD+set}" = set; then
14658   echo $ECHO_N "(cached) $ECHO_C" >&6
14659 else
14660   if test -z "$LD"; then
14661   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14662   for ac_dir in $PATH; do
14663     IFS="$lt_save_ifs"
14664     test -z "$ac_dir" && ac_dir=.
14665     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14666       lt_cv_path_LD="$ac_dir/$ac_prog"
14667       # Check to see if the program is GNU ld.  I'd rather use --version,
14668       # but apparently some variants of GNU ld only accept -v.
14669       # Break only if it was the GNU/non-GNU ld that we prefer.
14670       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14671       *GNU* | *'with BFD'*)
14672         test "$with_gnu_ld" != no && break
14673         ;;
14674       *)
14675         test "$with_gnu_ld" != yes && break
14676         ;;
14677       esac
14678     fi
14679   done
14680   IFS="$lt_save_ifs"
14681 else
14682   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14683 fi
14684 fi
14685
14686 LD="$lt_cv_path_LD"
14687 if test -n "$LD"; then
14688   echo "$as_me:$LINENO: result: $LD" >&5
14689 echo "${ECHO_T}$LD" >&6
14690 else
14691   echo "$as_me:$LINENO: result: no" >&5
14692 echo "${ECHO_T}no" >&6
14693 fi
14694 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14695 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14696    { (exit 1); exit 1; }; }
14697 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14698 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14699 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14700   echo $ECHO_N "(cached) $ECHO_C" >&6
14701 else
14702   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14703 case `$LD -v 2>&1 </dev/null` in
14704 *GNU* | *'with BFD'*)
14705   lt_cv_prog_gnu_ld=yes
14706   ;;
14707 *)
14708   lt_cv_prog_gnu_ld=no
14709   ;;
14710 esac
14711 fi
14712 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14713 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14714 with_gnu_ld=$lt_cv_prog_gnu_ld
14715
14716
14717 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14718 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14719 if test "${lt_cv_ld_reload_flag+set}" = set; then
14720   echo $ECHO_N "(cached) $ECHO_C" >&6
14721 else
14722   lt_cv_ld_reload_flag='-r'
14723 fi
14724 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14725 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14726 reload_flag=$lt_cv_ld_reload_flag
14727 case $reload_flag in
14728 "" | " "*) ;;
14729 *) reload_flag=" $reload_flag" ;;
14730 esac
14731 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14732 case $host_os in
14733   darwin*)
14734     if test "$GCC" = yes; then
14735       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
14736     else
14737       reload_cmds='$LD$reload_flag -o $output$reload_objs'
14738     fi
14739     ;;
14740 esac
14741
14742 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
14743 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
14744 if test "${lt_cv_path_NM+set}" = set; then
14745   echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747   if test -n "$NM"; then
14748   # Let the user override the test.
14749   lt_cv_path_NM="$NM"
14750 else
14751   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14752   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
14753     IFS="$lt_save_ifs"
14754     test -z "$ac_dir" && ac_dir=.
14755     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
14756     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14757       # Check to see if the nm accepts a BSD-compat flag.
14758       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14759       #   nm: unknown option "B" ignored
14760       # Tru64's nm complains that /dev/null is an invalid object file
14761       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14762       */dev/null* | *'Invalid file or object type'*)
14763         lt_cv_path_NM="$tmp_nm -B"
14764         break
14765         ;;
14766       *)
14767         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14768         */dev/null*)
14769           lt_cv_path_NM="$tmp_nm -p"
14770           break
14771           ;;
14772         *)
14773           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14774           continue # so that we can try to find one that supports BSD flags
14775           ;;
14776         esac
14777       esac
14778     fi
14779   done
14780   IFS="$lt_save_ifs"
14781   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
14782 fi
14783 fi
14784 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14785 echo "${ECHO_T}$lt_cv_path_NM" >&6
14786 NM="$lt_cv_path_NM"
14787
14788 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14790 LN_S=$as_ln_s
14791 if test "$LN_S" = "ln -s"; then
14792   echo "$as_me:$LINENO: result: yes" >&5
14793 echo "${ECHO_T}yes" >&6
14794 else
14795   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14796 echo "${ECHO_T}no, using $LN_S" >&6
14797 fi
14798
14799 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
14800 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
14801 if test "${lt_cv_deplibs_check_method+set}" = set; then
14802   echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14804   lt_cv_file_magic_cmd='$MAGIC_CMD'
14805 lt_cv_file_magic_test_file=
14806 lt_cv_deplibs_check_method='unknown'
14807 # Need to set the preceding variable on all platforms that support
14808 # interlibrary dependencies.
14809 # 'none' -- dependencies not supported.
14810 # `unknown' -- same as none, but documents that we really don't know.
14811 # 'pass_all' -- all dependencies passed with no checks.
14812 # 'test_compile' -- check by making test program.
14813 # 'file_magic [[regex]]' -- check by looking for files in library path
14814 # which responds to the $file_magic_cmd with a given extended regex.
14815 # If you have `file' or equivalent on your system and you're not sure
14816 # whether `pass_all' will *always* work, you probably want this one.
14817
14818 case $host_os in
14819 aix4* | aix5*)
14820   lt_cv_deplibs_check_method=pass_all
14821   ;;
14822
14823 beos*)
14824   lt_cv_deplibs_check_method=pass_all
14825   ;;
14826
14827 bsdi[45]*)
14828   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14829   lt_cv_file_magic_cmd='/usr/bin/file -L'
14830   lt_cv_file_magic_test_file=/shlib/libc.so
14831   ;;
14832
14833 cygwin*)
14834   # func_win32_libid is a shell function defined in ltmain.sh
14835   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14836   lt_cv_file_magic_cmd='func_win32_libid'
14837   ;;
14838
14839 mingw* | pw32*)
14840   # Base MSYS/MinGW do not provide the 'file' command needed by
14841   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
14842   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14843   lt_cv_file_magic_cmd='$OBJDUMP -f'
14844   ;;
14845
14846 darwin* | rhapsody*)
14847   lt_cv_deplibs_check_method=pass_all
14848   ;;
14849
14850 freebsd* | kfreebsd*-gnu | dragonfly*)
14851   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14852     case $host_cpu in
14853     i*86 )
14854       # Not sure whether the presence of OpenBSD here was a mistake.
14855       # Let's accept both of them until this is cleared up.
14856       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14857       lt_cv_file_magic_cmd=/usr/bin/file
14858       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14859       ;;
14860     esac
14861   else
14862     lt_cv_deplibs_check_method=pass_all
14863   fi
14864   ;;
14865
14866 gnu*)
14867   lt_cv_deplibs_check_method=pass_all
14868   ;;
14869
14870 hpux10.20* | hpux11*)
14871   lt_cv_file_magic_cmd=/usr/bin/file
14872   case $host_cpu in
14873   ia64*)
14874     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14875     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14876     ;;
14877   hppa*64*)
14878     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]'
14879     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14880     ;;
14881   *)
14882     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14883     lt_cv_file_magic_test_file=/usr/lib/libc.sl
14884     ;;
14885   esac
14886   ;;
14887
14888 irix5* | irix6* | nonstopux*)
14889   case $LD in
14890   *-32|*"-32 ") libmagic=32-bit;;
14891   *-n32|*"-n32 ") libmagic=N32;;
14892   *-64|*"-64 ") libmagic=64-bit;;
14893   *) libmagic=never-match;;
14894   esac
14895   lt_cv_deplibs_check_method=pass_all
14896   ;;
14897
14898 # This must be Linux ELF.
14899 linux*)
14900   lt_cv_deplibs_check_method=pass_all
14901   ;;
14902
14903 netbsd*)
14904   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14905     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14906   else
14907     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14908   fi
14909   ;;
14910
14911 newos6*)
14912   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14913   lt_cv_file_magic_cmd=/usr/bin/file
14914   lt_cv_file_magic_test_file=/usr/lib/libnls.so
14915   ;;
14916
14917 nto-qnx*)
14918   lt_cv_deplibs_check_method=unknown
14919   ;;
14920
14921 openbsd*)
14922   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14923     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14924   else
14925     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14926   fi
14927   ;;
14928
14929 osf3* | osf4* | osf5*)
14930   lt_cv_deplibs_check_method=pass_all
14931   ;;
14932
14933 sco3.2v5*)
14934   lt_cv_deplibs_check_method=pass_all
14935   ;;
14936
14937 solaris*)
14938   lt_cv_deplibs_check_method=pass_all
14939   ;;
14940
14941 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14942   case $host_vendor in
14943   motorola)
14944     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]'
14945     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14946     ;;
14947   ncr)
14948     lt_cv_deplibs_check_method=pass_all
14949     ;;
14950   sequent)
14951     lt_cv_file_magic_cmd='/bin/file'
14952     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14953     ;;
14954   sni)
14955     lt_cv_file_magic_cmd='/bin/file'
14956     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14957     lt_cv_file_magic_test_file=/lib/libc.so
14958     ;;
14959   siemens)
14960     lt_cv_deplibs_check_method=pass_all
14961     ;;
14962   esac
14963   ;;
14964
14965 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
14966   lt_cv_deplibs_check_method=pass_all
14967   ;;
14968 esac
14969
14970 fi
14971 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14972 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14973 file_magic_cmd=$lt_cv_file_magic_cmd
14974 deplibs_check_method=$lt_cv_deplibs_check_method
14975 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14976
14977
14978 # If no C compiler was specified, use CC.
14979 LTCC=${LTCC-"$CC"}
14980
14981 # Allow CC to be a program name with arguments.
14982 compiler=$CC
14983
14984 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
14985 if test "${enable_libtool_lock+set}" = set; then
14986   enableval="$enable_libtool_lock"
14987
14988 fi;
14989 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14990
14991 # Some flags need to be propagated to the compiler or linker for good
14992 # libtool support.
14993 case $host in
14994 ia64-*-hpux*)
14995   # Find out which ABI we are using.
14996   echo 'int i;' > conftest.$ac_ext
14997   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14998   (eval $ac_compile) 2>&5
14999   ac_status=$?
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); }; then
15002     case `/usr/bin/file conftest.$ac_objext` in
15003     *ELF-32*)
15004       HPUX_IA64_MODE="32"
15005       ;;
15006     *ELF-64*)
15007       HPUX_IA64_MODE="64"
15008       ;;
15009     esac
15010   fi
15011   rm -rf conftest*
15012   ;;
15013 *-*-irix6*)
15014   # Find out which ABI we are using.
15015   echo '#line 15015 "configure"' > conftest.$ac_ext
15016   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15017   (eval $ac_compile) 2>&5
15018   ac_status=$?
15019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020   (exit $ac_status); }; then
15021    if test "$lt_cv_prog_gnu_ld" = yes; then
15022     case `/usr/bin/file conftest.$ac_objext` in
15023     *32-bit*)
15024       LD="${LD-ld} -melf32bsmip"
15025       ;;
15026     *N32*)
15027       LD="${LD-ld} -melf32bmipn32"
15028       ;;
15029     *64-bit*)
15030       LD="${LD-ld} -melf64bmip"
15031       ;;
15032     esac
15033    else
15034     case `/usr/bin/file conftest.$ac_objext` in
15035     *32-bit*)
15036       LD="${LD-ld} -32"
15037       ;;
15038     *N32*)
15039       LD="${LD-ld} -n32"
15040       ;;
15041     *64-bit*)
15042       LD="${LD-ld} -64"
15043       ;;
15044     esac
15045    fi
15046   fi
15047   rm -rf conftest*
15048   ;;
15049
15050 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
15051   # Find out which ABI we are using.
15052   echo 'int i;' > conftest.$ac_ext
15053   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15054   (eval $ac_compile) 2>&5
15055   ac_status=$?
15056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057   (exit $ac_status); }; then
15058     case `/usr/bin/file conftest.o` in
15059     *32-bit*)
15060       case $host in
15061         x86_64-*linux*)
15062           LD="${LD-ld} -m elf_i386"
15063           ;;
15064         ppc64-*linux*|powerpc64-*linux*)
15065           LD="${LD-ld} -m elf32ppclinux"
15066           ;;
15067         s390x-*linux*)
15068           LD="${LD-ld} -m elf_s390"
15069           ;;
15070         sparc64-*linux*)
15071           LD="${LD-ld} -m elf32_sparc"
15072           ;;
15073       esac
15074       ;;
15075     *64-bit*)
15076       case $host in
15077         x86_64-*linux*)
15078           LD="${LD-ld} -m elf_x86_64"
15079           ;;
15080         ppc*-*linux*|powerpc*-*linux*)
15081           LD="${LD-ld} -m elf64ppc"
15082           ;;
15083         s390*-*linux*)
15084           LD="${LD-ld} -m elf64_s390"
15085           ;;
15086         sparc*-*linux*)
15087           LD="${LD-ld} -m elf64_sparc"
15088           ;;
15089       esac
15090       ;;
15091     esac
15092   fi
15093   rm -rf conftest*
15094   ;;
15095
15096 *-*-sco3.2v5*)
15097   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15098   SAVE_CFLAGS="$CFLAGS"
15099   CFLAGS="$CFLAGS -belf"
15100   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15101 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15102 if test "${lt_cv_cc_needs_belf+set}" = set; then
15103   echo $ECHO_N "(cached) $ECHO_C" >&6
15104 else
15105   ac_ext=c
15106 ac_cpp='$CPP $CPPFLAGS'
15107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15110
15111      cat >conftest.$ac_ext <<_ACEOF
15112 /* confdefs.h.  */
15113 _ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h.  */
15117
15118 int
15119 main ()
15120 {
15121
15122   ;
15123   return 0;
15124 }
15125 _ACEOF
15126 rm -f conftest.$ac_objext conftest$ac_exeext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15128   (eval $ac_link) 2>conftest.er1
15129   ac_status=$?
15130   grep -v '^ *+' conftest.er1 >conftest.err
15131   rm -f conftest.er1
15132   cat conftest.err >&5
15133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134   (exit $ac_status); } &&
15135          { ac_try='test -z "$ac_c_werror_flag"
15136                          || test ! -s conftest.err'
15137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138   (eval $ac_try) 2>&5
15139   ac_status=$?
15140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141   (exit $ac_status); }; } &&
15142          { ac_try='test -s conftest$ac_exeext'
15143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144   (eval $ac_try) 2>&5
15145   ac_status=$?
15146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147   (exit $ac_status); }; }; then
15148   lt_cv_cc_needs_belf=yes
15149 else
15150   echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15152
15153 lt_cv_cc_needs_belf=no
15154 fi
15155 rm -f conftest.err conftest.$ac_objext \
15156       conftest$ac_exeext conftest.$ac_ext
15157      ac_ext=c
15158 ac_cpp='$CPP $CPPFLAGS'
15159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15162
15163 fi
15164 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15165 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15166   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15167     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15168     CFLAGS="$SAVE_CFLAGS"
15169   fi
15170   ;;
15171
15172 esac
15173
15174 need_locks="$enable_libtool_lock"
15175
15176
15177
15178 for ac_header in dlfcn.h
15179 do
15180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15182   echo "$as_me:$LINENO: checking for $ac_header" >&5
15183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15185   echo $ECHO_N "(cached) $ECHO_C" >&6
15186 fi
15187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15189 else
15190   # Is the header compilable?
15191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15193 cat >conftest.$ac_ext <<_ACEOF
15194 /* confdefs.h.  */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h.  */
15199 $ac_includes_default
15200 #include <$ac_header>
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_header_compiler=yes
15225 else
15226   echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15228
15229 ac_header_compiler=no
15230 fi
15231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15233 echo "${ECHO_T}$ac_header_compiler" >&6
15234
15235 # Is the header present?
15236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15238 cat >conftest.$ac_ext <<_ACEOF
15239 /* confdefs.h.  */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h.  */
15244 #include <$ac_header>
15245 _ACEOF
15246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15247   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15248   ac_status=$?
15249   grep -v '^ *+' conftest.er1 >conftest.err
15250   rm -f conftest.er1
15251   cat conftest.err >&5
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); } >/dev/null; then
15254   if test -s conftest.err; then
15255     ac_cpp_err=$ac_c_preproc_warn_flag
15256     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15257   else
15258     ac_cpp_err=
15259   fi
15260 else
15261   ac_cpp_err=yes
15262 fi
15263 if test -z "$ac_cpp_err"; then
15264   ac_header_preproc=yes
15265 else
15266   echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15268
15269   ac_header_preproc=no
15270 fi
15271 rm -f conftest.err conftest.$ac_ext
15272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15273 echo "${ECHO_T}$ac_header_preproc" >&6
15274
15275 # So?  What about this header?
15276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15277   yes:no: )
15278     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15282     ac_header_preproc=yes
15283     ;;
15284   no:yes:* )
15285     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15287     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15288 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15289     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15291     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15292 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15295     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15297     (
15298       cat <<\_ASBOX
15299 ## ------------------------------------------ ##
15300 ## Report this to the AC_PACKAGE_NAME lists.  ##
15301 ## ------------------------------------------ ##
15302 _ASBOX
15303     ) |
15304       sed "s/^/$as_me: WARNING:     /" >&2
15305     ;;
15306 esac
15307 echo "$as_me:$LINENO: checking for $ac_header" >&5
15308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15310   echo $ECHO_N "(cached) $ECHO_C" >&6
15311 else
15312   eval "$as_ac_Header=\$ac_header_preproc"
15313 fi
15314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15316
15317 fi
15318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15319   cat >>confdefs.h <<_ACEOF
15320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15321 _ACEOF
15322
15323 fi
15324
15325 done
15326
15327 ac_ext=cc
15328 ac_cpp='$CXXCPP $CPPFLAGS'
15329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15332 if test -n "$ac_tool_prefix"; then
15333   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15334   do
15335     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15337 echo "$as_me:$LINENO: checking for $ac_word" >&5
15338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15339 if test "${ac_cv_prog_CXX+set}" = set; then
15340   echo $ECHO_N "(cached) $ECHO_C" >&6
15341 else
15342   if test -n "$CXX"; then
15343   ac_cv_prog_CXX="$CXX" # Let the user override the test.
15344 else
15345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15346 for as_dir in $PATH
15347 do
15348   IFS=$as_save_IFS
15349   test -z "$as_dir" && as_dir=.
15350   for ac_exec_ext in '' $ac_executable_extensions; do
15351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15352     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15354     break 2
15355   fi
15356 done
15357 done
15358
15359 fi
15360 fi
15361 CXX=$ac_cv_prog_CXX
15362 if test -n "$CXX"; then
15363   echo "$as_me:$LINENO: result: $CXX" >&5
15364 echo "${ECHO_T}$CXX" >&6
15365 else
15366   echo "$as_me:$LINENO: result: no" >&5
15367 echo "${ECHO_T}no" >&6
15368 fi
15369
15370     test -n "$CXX" && break
15371   done
15372 fi
15373 if test -z "$CXX"; then
15374   ac_ct_CXX=$CXX
15375   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15376 do
15377   # Extract the first word of "$ac_prog", so it can be a program name with args.
15378 set dummy $ac_prog; ac_word=$2
15379 echo "$as_me:$LINENO: checking for $ac_word" >&5
15380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15381 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
15382   echo $ECHO_N "(cached) $ECHO_C" >&6
15383 else
15384   if test -n "$ac_ct_CXX"; then
15385   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15386 else
15387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15388 for as_dir in $PATH
15389 do
15390   IFS=$as_save_IFS
15391   test -z "$as_dir" && as_dir=.
15392   for ac_exec_ext in '' $ac_executable_extensions; do
15393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15394     ac_cv_prog_ac_ct_CXX="$ac_prog"
15395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15396     break 2
15397   fi
15398 done
15399 done
15400
15401 fi
15402 fi
15403 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15404 if test -n "$ac_ct_CXX"; then
15405   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15406 echo "${ECHO_T}$ac_ct_CXX" >&6
15407 else
15408   echo "$as_me:$LINENO: result: no" >&5
15409 echo "${ECHO_T}no" >&6
15410 fi
15411
15412   test -n "$ac_ct_CXX" && break
15413 done
15414 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
15415
15416   CXX=$ac_ct_CXX
15417 fi
15418
15419
15420 # Provide some information about the compiler.
15421 echo "$as_me:$LINENO:" \
15422      "checking for C++ compiler version" >&5
15423 ac_compiler=`set X $ac_compile; echo $2`
15424 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15425   (eval $ac_compiler --version </dev/null >&5) 2>&5
15426   ac_status=$?
15427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428   (exit $ac_status); }
15429 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15430   (eval $ac_compiler -v </dev/null >&5) 2>&5
15431   ac_status=$?
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); }
15434 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15435   (eval $ac_compiler -V </dev/null >&5) 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); }
15439
15440 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15441 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
15442 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
15443   echo $ECHO_N "(cached) $ECHO_C" >&6
15444 else
15445   cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h.  */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h.  */
15451
15452 int
15453 main ()
15454 {
15455 #ifndef __GNUC__
15456        choke me
15457 #endif
15458
15459   ;
15460   return 0;
15461 }
15462 _ACEOF
15463 rm -f conftest.$ac_objext
15464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15465   (eval $ac_compile) 2>conftest.er1
15466   ac_status=$?
15467   grep -v '^ *+' conftest.er1 >conftest.err
15468   rm -f conftest.er1
15469   cat conftest.err >&5
15470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471   (exit $ac_status); } &&
15472          { ac_try='test -z "$ac_cxx_werror_flag"
15473                          || test ! -s conftest.err'
15474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475   (eval $ac_try) 2>&5
15476   ac_status=$?
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); }; } &&
15479          { ac_try='test -s conftest.$ac_objext'
15480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481   (eval $ac_try) 2>&5
15482   ac_status=$?
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); }; }; then
15485   ac_compiler_gnu=yes
15486 else
15487   echo "$as_me: failed program was:" >&5
15488 sed 's/^/| /' conftest.$ac_ext >&5
15489
15490 ac_compiler_gnu=no
15491 fi
15492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15494
15495 fi
15496 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15497 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
15498 GXX=`test $ac_compiler_gnu = yes && echo yes`
15499 ac_test_CXXFLAGS=${CXXFLAGS+set}
15500 ac_save_CXXFLAGS=$CXXFLAGS
15501 CXXFLAGS="-g"
15502 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15503 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
15504 if test "${ac_cv_prog_cxx_g+set}" = set; then
15505   echo $ECHO_N "(cached) $ECHO_C" >&6
15506 else
15507   cat >conftest.$ac_ext <<_ACEOF
15508 /* confdefs.h.  */
15509 _ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h.  */
15513
15514 int
15515 main ()
15516 {
15517
15518   ;
15519   return 0;
15520 }
15521 _ACEOF
15522 rm -f conftest.$ac_objext
15523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15524   (eval $ac_compile) 2>conftest.er1
15525   ac_status=$?
15526   grep -v '^ *+' conftest.er1 >conftest.err
15527   rm -f conftest.er1
15528   cat conftest.err >&5
15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); } &&
15531          { ac_try='test -z "$ac_cxx_werror_flag"
15532                          || test ! -s conftest.err'
15533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534   (eval $ac_try) 2>&5
15535   ac_status=$?
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); }; } &&
15538          { ac_try='test -s conftest.$ac_objext'
15539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540   (eval $ac_try) 2>&5
15541   ac_status=$?
15542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543   (exit $ac_status); }; }; then
15544   ac_cv_prog_cxx_g=yes
15545 else
15546   echo "$as_me: failed program was:" >&5
15547 sed 's/^/| /' conftest.$ac_ext >&5
15548
15549 ac_cv_prog_cxx_g=no
15550 fi
15551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15552 fi
15553 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15554 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
15555 if test "$ac_test_CXXFLAGS" = set; then
15556   CXXFLAGS=$ac_save_CXXFLAGS
15557 elif test $ac_cv_prog_cxx_g = yes; then
15558   if test "$GXX" = yes; then
15559     CXXFLAGS="-g -O2"
15560   else
15561     CXXFLAGS="-g"
15562   fi
15563 else
15564   if test "$GXX" = yes; then
15565     CXXFLAGS="-O2"
15566   else
15567     CXXFLAGS=
15568   fi
15569 fi
15570 for ac_declaration in \
15571    '' \
15572    'extern "C" void std::exit (int) throw (); using std::exit;' \
15573    'extern "C" void std::exit (int); using std::exit;' \
15574    'extern "C" void exit (int) throw ();' \
15575    'extern "C" void exit (int);' \
15576    'void exit (int);'
15577 do
15578   cat >conftest.$ac_ext <<_ACEOF
15579 /* confdefs.h.  */
15580 _ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h.  */
15584 $ac_declaration
15585 #include <stdlib.h>
15586 int
15587 main ()
15588 {
15589 exit (42);
15590   ;
15591   return 0;
15592 }
15593 _ACEOF
15594 rm -f conftest.$ac_objext
15595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15596   (eval $ac_compile) 2>conftest.er1
15597   ac_status=$?
15598   grep -v '^ *+' conftest.er1 >conftest.err
15599   rm -f conftest.er1
15600   cat conftest.err >&5
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); } &&
15603          { ac_try='test -z "$ac_cxx_werror_flag"
15604                          || test ! -s conftest.err'
15605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606   (eval $ac_try) 2>&5
15607   ac_status=$?
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); }; } &&
15610          { ac_try='test -s conftest.$ac_objext'
15611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612   (eval $ac_try) 2>&5
15613   ac_status=$?
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); }; }; then
15616   :
15617 else
15618   echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15620
15621 continue
15622 fi
15623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15624   cat >conftest.$ac_ext <<_ACEOF
15625 /* confdefs.h.  */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h.  */
15630 $ac_declaration
15631 int
15632 main ()
15633 {
15634 exit (42);
15635   ;
15636   return 0;
15637 }
15638 _ACEOF
15639 rm -f conftest.$ac_objext
15640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15641   (eval $ac_compile) 2>conftest.er1
15642   ac_status=$?
15643   grep -v '^ *+' conftest.er1 >conftest.err
15644   rm -f conftest.er1
15645   cat conftest.err >&5
15646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647   (exit $ac_status); } &&
15648          { ac_try='test -z "$ac_cxx_werror_flag"
15649                          || test ! -s conftest.err'
15650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651   (eval $ac_try) 2>&5
15652   ac_status=$?
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); }; } &&
15655          { ac_try='test -s conftest.$ac_objext'
15656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657   (eval $ac_try) 2>&5
15658   ac_status=$?
15659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660   (exit $ac_status); }; }; then
15661   break
15662 else
15663   echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15665
15666 fi
15667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15668 done
15669 rm -f conftest*
15670 if test -n "$ac_declaration"; then
15671   echo '#ifdef __cplusplus' >>confdefs.h
15672   echo $ac_declaration      >>confdefs.h
15673   echo '#endif'             >>confdefs.h
15674 fi
15675
15676 ac_ext=cc
15677 ac_cpp='$CXXCPP $CPPFLAGS'
15678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15681
15682 depcc="$CXX"  am_compiler_list=
15683
15684 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15685 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15686 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
15687   echo $ECHO_N "(cached) $ECHO_C" >&6
15688 else
15689   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15690   # We make a subdir and do the tests there.  Otherwise we can end up
15691   # making bogus files that we don't know about and never remove.  For
15692   # instance it was reported that on HP-UX the gcc test will end up
15693   # making a dummy file named `D' -- because `-MD' means `put the output
15694   # in D'.
15695   mkdir conftest.dir
15696   # Copy depcomp to subdir because otherwise we won't find it if we're
15697   # using a relative directory.
15698   cp "$am_depcomp" conftest.dir
15699   cd conftest.dir
15700   # We will build objects and dependencies in a subdirectory because
15701   # it helps to detect inapplicable dependency modes.  For instance
15702   # both Tru64's cc and ICC support -MD to output dependencies as a
15703   # side effect of compilation, but ICC will put the dependencies in
15704   # the current directory while Tru64 will put them in the object
15705   # directory.
15706   mkdir sub
15707
15708   am_cv_CXX_dependencies_compiler_type=none
15709   if test "$am_compiler_list" = ""; then
15710      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15711   fi
15712   for depmode in $am_compiler_list; do
15713     # Setup a source with many dependencies, because some compilers
15714     # like to wrap large dependency lists on column 80 (with \), and
15715     # we should not choose a depcomp mode which is confused by this.
15716     #
15717     # We need to recreate these files for each test, as the compiler may
15718     # overwrite some of them when testing with obscure command lines.
15719     # This happens at least with the AIX C compiler.
15720     : > sub/conftest.c
15721     for i in 1 2 3 4 5 6; do
15722       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15723       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15724       # Solaris 8's {/usr,}/bin/sh.
15725       touch sub/conftst$i.h
15726     done
15727     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15728
15729     case $depmode in
15730     nosideeffect)
15731       # after this tag, mechanisms are not by side-effect, so they'll
15732       # only be used when explicitly requested
15733       if test "x$enable_dependency_tracking" = xyes; then
15734         continue
15735       else
15736         break
15737       fi
15738       ;;
15739     none) break ;;
15740     esac
15741     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15742     # mode.  It turns out that the SunPro C++ compiler does not properly
15743     # handle `-M -o', and we need to detect this.
15744     if depmode=$depmode \
15745        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15746        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15747        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15748          >/dev/null 2>conftest.err &&
15749        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15750        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15751        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15752       # icc doesn't choke on unknown options, it will just issue warnings
15753       # or remarks (even with -Werror).  So we grep stderr for any message
15754       # that says an option was ignored or not supported.
15755       # When given -MP, icc 7.0 and 7.1 complain thusly:
15756       #   icc: Command line warning: ignoring option '-M'; no argument required
15757       # The diagnosis changed in icc 8.0:
15758       #   icc: Command line remark: option '-MP' not supported
15759       if (grep 'ignoring option' conftest.err ||
15760           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15761         am_cv_CXX_dependencies_compiler_type=$depmode
15762         break
15763       fi
15764     fi
15765   done
15766
15767   cd ..
15768   rm -rf conftest.dir
15769 else
15770   am_cv_CXX_dependencies_compiler_type=none
15771 fi
15772
15773 fi
15774 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
15775 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
15776 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15777
15778
15779
15780 if
15781   test "x$enable_dependency_tracking" != xno \
15782   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15783   am__fastdepCXX_TRUE=
15784   am__fastdepCXX_FALSE='#'
15785 else
15786   am__fastdepCXX_TRUE='#'
15787   am__fastdepCXX_FALSE=
15788 fi
15789
15790
15791
15792
15793 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15794     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15795     (test "X$CXX" != "Xg++"))) ; then
15796   ac_ext=cc
15797 ac_cpp='$CXXCPP $CPPFLAGS'
15798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15801 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15802 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15803 if test -z "$CXXCPP"; then
15804   if test "${ac_cv_prog_CXXCPP+set}" = set; then
15805   echo $ECHO_N "(cached) $ECHO_C" >&6
15806 else
15807       # Double quotes because CXXCPP needs to be expanded
15808     for CXXCPP in "$CXX -E" "/lib/cpp"
15809     do
15810       ac_preproc_ok=false
15811 for ac_cxx_preproc_warn_flag in '' yes
15812 do
15813   # Use a header file that comes with gcc, so configuring glibc
15814   # with a fresh cross-compiler works.
15815   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15816   # <limits.h> exists even on freestanding compilers.
15817   # On the NeXT, cc -E runs the code through the compiler's parser,
15818   # not just through cpp. "Syntax error" is here to catch this case.
15819   cat >conftest.$ac_ext <<_ACEOF
15820 /* confdefs.h.  */
15821 _ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h.  */
15825 #ifdef __STDC__
15826 # include <limits.h>
15827 #else
15828 # include <assert.h>
15829 #endif
15830                      Syntax error
15831 _ACEOF
15832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15833   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15834   ac_status=$?
15835   grep -v '^ *+' conftest.er1 >conftest.err
15836   rm -f conftest.er1
15837   cat conftest.err >&5
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); } >/dev/null; then
15840   if test -s conftest.err; then
15841     ac_cpp_err=$ac_cxx_preproc_warn_flag
15842     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15843   else
15844     ac_cpp_err=
15845   fi
15846 else
15847   ac_cpp_err=yes
15848 fi
15849 if test -z "$ac_cpp_err"; then
15850   :
15851 else
15852   echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15854
15855   # Broken: fails on valid input.
15856 continue
15857 fi
15858 rm -f conftest.err conftest.$ac_ext
15859
15860   # OK, works on sane cases.  Now check whether non-existent headers
15861   # can be detected and how.
15862   cat >conftest.$ac_ext <<_ACEOF
15863 /* confdefs.h.  */
15864 _ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h.  */
15868 #include <ac_nonexistent.h>
15869 _ACEOF
15870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15872   ac_status=$?
15873   grep -v '^ *+' conftest.er1 >conftest.err
15874   rm -f conftest.er1
15875   cat conftest.err >&5
15876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877   (exit $ac_status); } >/dev/null; then
15878   if test -s conftest.err; then
15879     ac_cpp_err=$ac_cxx_preproc_warn_flag
15880     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15881   else
15882     ac_cpp_err=
15883   fi
15884 else
15885   ac_cpp_err=yes
15886 fi
15887 if test -z "$ac_cpp_err"; then
15888   # Broken: success on invalid input.
15889 continue
15890 else
15891   echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15893
15894   # Passes both tests.
15895 ac_preproc_ok=:
15896 break
15897 fi
15898 rm -f conftest.err conftest.$ac_ext
15899
15900 done
15901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15902 rm -f conftest.err conftest.$ac_ext
15903 if $ac_preproc_ok; then
15904   break
15905 fi
15906
15907     done
15908     ac_cv_prog_CXXCPP=$CXXCPP
15909
15910 fi
15911   CXXCPP=$ac_cv_prog_CXXCPP
15912 else
15913   ac_cv_prog_CXXCPP=$CXXCPP
15914 fi
15915 echo "$as_me:$LINENO: result: $CXXCPP" >&5
15916 echo "${ECHO_T}$CXXCPP" >&6
15917 ac_preproc_ok=false
15918 for ac_cxx_preproc_warn_flag in '' yes
15919 do
15920   # Use a header file that comes with gcc, so configuring glibc
15921   # with a fresh cross-compiler works.
15922   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15923   # <limits.h> exists even on freestanding compilers.
15924   # On the NeXT, cc -E runs the code through the compiler's parser,
15925   # not just through cpp. "Syntax error" is here to catch this case.
15926   cat >conftest.$ac_ext <<_ACEOF
15927 /* confdefs.h.  */
15928 _ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h.  */
15932 #ifdef __STDC__
15933 # include <limits.h>
15934 #else
15935 # include <assert.h>
15936 #endif
15937                      Syntax error
15938 _ACEOF
15939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15940   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15941   ac_status=$?
15942   grep -v '^ *+' conftest.er1 >conftest.err
15943   rm -f conftest.er1
15944   cat conftest.err >&5
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); } >/dev/null; then
15947   if test -s conftest.err; then
15948     ac_cpp_err=$ac_cxx_preproc_warn_flag
15949     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15950   else
15951     ac_cpp_err=
15952   fi
15953 else
15954   ac_cpp_err=yes
15955 fi
15956 if test -z "$ac_cpp_err"; then
15957   :
15958 else
15959   echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15961
15962   # Broken: fails on valid input.
15963 continue
15964 fi
15965 rm -f conftest.err conftest.$ac_ext
15966
15967   # OK, works on sane cases.  Now check whether non-existent headers
15968   # can be detected and how.
15969   cat >conftest.$ac_ext <<_ACEOF
15970 /* confdefs.h.  */
15971 _ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h.  */
15975 #include <ac_nonexistent.h>
15976 _ACEOF
15977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15979   ac_status=$?
15980   grep -v '^ *+' conftest.er1 >conftest.err
15981   rm -f conftest.er1
15982   cat conftest.err >&5
15983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984   (exit $ac_status); } >/dev/null; then
15985   if test -s conftest.err; then
15986     ac_cpp_err=$ac_cxx_preproc_warn_flag
15987     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15988   else
15989     ac_cpp_err=
15990   fi
15991 else
15992   ac_cpp_err=yes
15993 fi
15994 if test -z "$ac_cpp_err"; then
15995   # Broken: success on invalid input.
15996 continue
15997 else
15998   echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16000
16001   # Passes both tests.
16002 ac_preproc_ok=:
16003 break
16004 fi
16005 rm -f conftest.err conftest.$ac_ext
16006
16007 done
16008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16009 rm -f conftest.err conftest.$ac_ext
16010 if $ac_preproc_ok; then
16011   :
16012 else
16013   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16014 See \`config.log' for more details." >&5
16015 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16016 See \`config.log' for more details." >&2;}
16017    { (exit 1); exit 1; }; }
16018 fi
16019
16020 ac_ext=cc
16021 ac_cpp='$CXXCPP $CPPFLAGS'
16022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16025
16026 fi
16027
16028
16029 ac_ext=f
16030 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16031 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16032 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16033 if test -n "$ac_tool_prefix"; then
16034   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
16035   do
16036     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16037 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16038 echo "$as_me:$LINENO: checking for $ac_word" >&5
16039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16040 if test "${ac_cv_prog_F77+set}" = set; then
16041   echo $ECHO_N "(cached) $ECHO_C" >&6
16042 else
16043   if test -n "$F77"; then
16044   ac_cv_prog_F77="$F77" # Let the user override the test.
16045 else
16046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16047 for as_dir in $PATH
16048 do
16049   IFS=$as_save_IFS
16050   test -z "$as_dir" && as_dir=.
16051   for ac_exec_ext in '' $ac_executable_extensions; do
16052   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16053     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
16054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16055     break 2
16056   fi
16057 done
16058 done
16059
16060 fi
16061 fi
16062 F77=$ac_cv_prog_F77
16063 if test -n "$F77"; then
16064   echo "$as_me:$LINENO: result: $F77" >&5
16065 echo "${ECHO_T}$F77" >&6
16066 else
16067   echo "$as_me:$LINENO: result: no" >&5
16068 echo "${ECHO_T}no" >&6
16069 fi
16070
16071     test -n "$F77" && break
16072   done
16073 fi
16074 if test -z "$F77"; then
16075   ac_ct_F77=$F77
16076   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
16077 do
16078   # Extract the first word of "$ac_prog", so it can be a program name with args.
16079 set dummy $ac_prog; ac_word=$2
16080 echo "$as_me:$LINENO: checking for $ac_word" >&5
16081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16082 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
16083   echo $ECHO_N "(cached) $ECHO_C" >&6
16084 else
16085   if test -n "$ac_ct_F77"; then
16086   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
16087 else
16088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16089 for as_dir in $PATH
16090 do
16091   IFS=$as_save_IFS
16092   test -z "$as_dir" && as_dir=.
16093   for ac_exec_ext in '' $ac_executable_extensions; do
16094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16095     ac_cv_prog_ac_ct_F77="$ac_prog"
16096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16097     break 2
16098   fi
16099 done
16100 done
16101
16102 fi
16103 fi
16104 ac_ct_F77=$ac_cv_prog_ac_ct_F77
16105 if test -n "$ac_ct_F77"; then
16106   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
16107 echo "${ECHO_T}$ac_ct_F77" >&6
16108 else
16109   echo "$as_me:$LINENO: result: no" >&5
16110 echo "${ECHO_T}no" >&6
16111 fi
16112
16113   test -n "$ac_ct_F77" && break
16114 done
16115
16116   F77=$ac_ct_F77
16117 fi
16118
16119
16120 # Provide some information about the compiler.
16121 echo "$as_me:16121:" \
16122      "checking for Fortran 77 compiler version" >&5
16123 ac_compiler=`set X $ac_compile; echo $2`
16124 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
16125   (eval $ac_compiler --version </dev/null >&5) 2>&5
16126   ac_status=$?
16127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128   (exit $ac_status); }
16129 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
16130   (eval $ac_compiler -v </dev/null >&5) 2>&5
16131   ac_status=$?
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); }
16134 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
16135   (eval $ac_compiler -V </dev/null >&5) 2>&5
16136   ac_status=$?
16137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138   (exit $ac_status); }
16139 rm -f a.out
16140
16141 # If we don't use `.F' as extension, the preprocessor is not run on the
16142 # input file.  (Note that this only needs to work for GNU compilers.)
16143 ac_save_ext=$ac_ext
16144 ac_ext=F
16145 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
16146 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
16147 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
16148   echo $ECHO_N "(cached) $ECHO_C" >&6
16149 else
16150   cat >conftest.$ac_ext <<_ACEOF
16151       program main
16152 #ifndef __GNUC__
16153        choke me
16154 #endif
16155
16156       end
16157 _ACEOF
16158 rm -f conftest.$ac_objext
16159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16160   (eval $ac_compile) 2>conftest.er1
16161   ac_status=$?
16162   grep -v '^ *+' conftest.er1 >conftest.err
16163   rm -f conftest.er1
16164   cat conftest.err >&5
16165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); } &&
16167          { ac_try='test -z "$ac_f77_werror_flag"
16168                          || test ! -s conftest.err'
16169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16170   (eval $ac_try) 2>&5
16171   ac_status=$?
16172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173   (exit $ac_status); }; } &&
16174          { ac_try='test -s conftest.$ac_objext'
16175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176   (eval $ac_try) 2>&5
16177   ac_status=$?
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); }; }; then
16180   ac_compiler_gnu=yes
16181 else
16182   echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16184
16185 ac_compiler_gnu=no
16186 fi
16187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16188 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
16189
16190 fi
16191 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
16192 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
16193 ac_ext=$ac_save_ext
16194 ac_test_FFLAGS=${FFLAGS+set}
16195 ac_save_FFLAGS=$FFLAGS
16196 FFLAGS=
16197 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
16198 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
16199 if test "${ac_cv_prog_f77_g+set}" = set; then
16200   echo $ECHO_N "(cached) $ECHO_C" >&6
16201 else
16202   FFLAGS=-g
16203 cat >conftest.$ac_ext <<_ACEOF
16204       program main
16205
16206       end
16207 _ACEOF
16208 rm -f conftest.$ac_objext
16209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16210   (eval $ac_compile) 2>conftest.er1
16211   ac_status=$?
16212   grep -v '^ *+' conftest.er1 >conftest.err
16213   rm -f conftest.er1
16214   cat conftest.err >&5
16215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216   (exit $ac_status); } &&
16217          { ac_try='test -z "$ac_f77_werror_flag"
16218                          || test ! -s conftest.err'
16219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220   (eval $ac_try) 2>&5
16221   ac_status=$?
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); }; } &&
16224          { ac_try='test -s conftest.$ac_objext'
16225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226   (eval $ac_try) 2>&5
16227   ac_status=$?
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); }; }; then
16230   ac_cv_prog_f77_g=yes
16231 else
16232   echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16234
16235 ac_cv_prog_f77_g=no
16236 fi
16237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16238
16239 fi
16240 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
16241 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
16242 if test "$ac_test_FFLAGS" = set; then
16243   FFLAGS=$ac_save_FFLAGS
16244 elif test $ac_cv_prog_f77_g = yes; then
16245   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16246     FFLAGS="-g -O2"
16247   else
16248     FFLAGS="-g"
16249   fi
16250 else
16251   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16252     FFLAGS="-O2"
16253   else
16254     FFLAGS=
16255   fi
16256 fi
16257
16258 G77=`test $ac_compiler_gnu = yes && echo yes`
16259 ac_ext=c
16260 ac_cpp='$CPP $CPPFLAGS'
16261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16264
16265
16266
16267 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
16268
16269 # find the maximum length of command line arguments
16270 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
16271 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
16272 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
16273   echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275     i=0
16276   teststring="ABCD"
16277
16278   case $build_os in
16279   msdosdjgpp*)
16280     # On DJGPP, this test can blow up pretty badly due to problems in libc
16281     # (any single argument exceeding 2000 bytes causes a buffer overrun
16282     # during glob expansion).  Even if it were fixed, the result of this
16283     # check would be larger than it should be.
16284     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
16285     ;;
16286
16287   gnu*)
16288     # Under GNU Hurd, this test is not required because there is
16289     # no limit to the length of command line arguments.
16290     # Libtool will interpret -1 as no limit whatsoever
16291     lt_cv_sys_max_cmd_len=-1;
16292     ;;
16293
16294   cygwin* | mingw*)
16295     # On Win9x/ME, this test blows up -- it succeeds, but takes
16296     # about 5 minutes as the teststring grows exponentially.
16297     # Worse, since 9x/ME are not pre-emptively multitasking,
16298     # you end up with a "frozen" computer, even though with patience
16299     # the test eventually succeeds (with a max line length of 256k).
16300     # Instead, let's just punt: use the minimum linelength reported by
16301     # all of the supported platforms: 8192 (on NT/2K/XP).
16302     lt_cv_sys_max_cmd_len=8192;
16303     ;;
16304
16305   amigaos*)
16306     # On AmigaOS with pdksh, this test takes hours, literally.
16307     # So we just punt and use a minimum line length of 8192.
16308     lt_cv_sys_max_cmd_len=8192;
16309     ;;
16310
16311   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16312     # This has been around since 386BSD, at least.  Likely further.
16313     if test -x /sbin/sysctl; then
16314       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16315     elif test -x /usr/sbin/sysctl; then
16316       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16317     else
16318       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
16319     fi
16320     # And add a safety zone
16321     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16322     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16323     ;;
16324   osf*)
16325     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16326     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16327     # nice to cause kernel panics so lets avoid the loop below.
16328     # First set a reasonable default.
16329     lt_cv_sys_max_cmd_len=16384
16330     #
16331     if test -x /sbin/sysconfig; then
16332       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16333         *1*) lt_cv_sys_max_cmd_len=-1 ;;
16334       esac
16335     fi
16336     ;;
16337   *)
16338     # If test is not a shell built-in, we'll probably end up computing a
16339     # maximum length that is only half of the actual maximum length, but
16340     # we can't tell.
16341     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16342     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
16343                = "XX$teststring") >/dev/null 2>&1 &&
16344             new_result=`expr "X$teststring" : ".*" 2>&1` &&
16345             lt_cv_sys_max_cmd_len=$new_result &&
16346             test $i != 17 # 1/2 MB should be enough
16347     do
16348       i=`expr $i + 1`
16349       teststring=$teststring$teststring
16350     done
16351     teststring=
16352     # Add a significant safety factor because C++ compilers can tack on massive
16353     # amounts of additional arguments before passing them to the linker.
16354     # It appears as though 1/2 is a usable value.
16355     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16356     ;;
16357   esac
16358
16359 fi
16360
16361 if test -n $lt_cv_sys_max_cmd_len ; then
16362   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
16363 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
16364 else
16365   echo "$as_me:$LINENO: result: none" >&5
16366 echo "${ECHO_T}none" >&6
16367 fi
16368
16369
16370
16371
16372 # Check for command to grab the raw symbol name followed by C symbol from nm.
16373 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
16374 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
16375 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
16376   echo $ECHO_N "(cached) $ECHO_C" >&6
16377 else
16378
16379 # These are sane defaults that work on at least a few old systems.
16380 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
16381
16382 # Character class describing NM global symbol codes.
16383 symcode='[BCDEGRST]'
16384
16385 # Regexp to match symbols that can be accessed directly from C.
16386 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16387
16388 # Transform an extracted symbol line into a proper C declaration
16389 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
16390
16391 # Transform an extracted symbol line into symbol name and symbol address
16392 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'"
16393
16394 # Define system-specific variables.
16395 case $host_os in
16396 aix*)
16397   symcode='[BCDT]'
16398   ;;
16399 cygwin* | mingw* | pw32*)
16400   symcode='[ABCDGISTW]'
16401   ;;
16402 hpux*) # Its linker distinguishes data from code symbols
16403   if test "$host_cpu" = ia64; then
16404     symcode='[ABCDEGRST]'
16405   fi
16406   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16407   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'"
16408   ;;
16409 linux*)
16410   if test "$host_cpu" = ia64; then
16411     symcode='[ABCDGIRSTW]'
16412     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16413     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'"
16414   fi
16415   ;;
16416 irix* | nonstopux*)
16417   symcode='[BCDEGRST]'
16418   ;;
16419 osf*)
16420   symcode='[BCDEGQRST]'
16421   ;;
16422 solaris* | sysv5*)
16423   symcode='[BDRT]'
16424   ;;
16425 sysv4)
16426   symcode='[DFNSTU]'
16427   ;;
16428 esac
16429
16430 # Handle CRLF in mingw tool chain
16431 opt_cr=
16432 case $build_os in
16433 mingw*)
16434   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16435   ;;
16436 esac
16437
16438 # If we're using GNU nm, then use its standard symbol codes.
16439 case `$NM -V 2>&1` in
16440 *GNU* | *'with BFD'*)
16441   symcode='[ABCDGIRSTW]' ;;
16442 esac
16443
16444 # Try without a prefix undercore, then with it.
16445 for ac_symprfx in "" "_"; do
16446
16447   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16448   symxfrm="\\1 $ac_symprfx\\2 \\2"
16449
16450   # Write the raw and C identifiers.
16451   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16452
16453   # Check to see that the pipe works correctly.
16454   pipe_works=no
16455
16456   rm -f conftest*
16457   cat > conftest.$ac_ext <<EOF
16458 #ifdef __cplusplus
16459 extern "C" {
16460 #endif
16461 char nm_test_var;
16462 void nm_test_func(){}
16463 #ifdef __cplusplus
16464 }
16465 #endif
16466 int main(){nm_test_var='a';nm_test_func();return(0);}
16467 EOF
16468
16469   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16470   (eval $ac_compile) 2>&5
16471   ac_status=$?
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); }; then
16474     # Now try to grab the symbols.
16475     nlist=conftest.nm
16476     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
16477   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
16478   ac_status=$?
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); } && test -s "$nlist"; then
16481       # Try sorting and uniquifying the output.
16482       if sort "$nlist" | uniq > "$nlist"T; then
16483         mv -f "$nlist"T "$nlist"
16484       else
16485         rm -f "$nlist"T
16486       fi
16487
16488       # Make sure that we snagged all the symbols we need.
16489       if grep ' nm_test_var$' "$nlist" >/dev/null; then
16490         if grep ' nm_test_func$' "$nlist" >/dev/null; then
16491           cat <<EOF > conftest.$ac_ext
16492 #ifdef __cplusplus
16493 extern "C" {
16494 #endif
16495
16496 EOF
16497           # Now generate the symbol file.
16498           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
16499
16500           cat <<EOF >> conftest.$ac_ext
16501 #if defined (__STDC__) && __STDC__
16502 # define lt_ptr_t void *
16503 #else
16504 # define lt_ptr_t char *
16505 # define const
16506 #endif
16507
16508 /* The mapping between symbol names and symbols. */
16509 const struct {
16510   const char *name;
16511   lt_ptr_t address;
16512 }
16513 lt_preloaded_symbols[] =
16514 {
16515 EOF
16516           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
16517           cat <<\EOF >> conftest.$ac_ext
16518   {0, (lt_ptr_t) 0}
16519 };
16520
16521 #ifdef __cplusplus
16522 }
16523 #endif
16524 EOF
16525           # Now try linking the two files.
16526           mv conftest.$ac_objext conftstm.$ac_objext
16527           lt_save_LIBS="$LIBS"
16528           lt_save_CFLAGS="$CFLAGS"
16529           LIBS="conftstm.$ac_objext"
16530           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16531           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16532   (eval $ac_link) 2>&5
16533   ac_status=$?
16534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); } && test -s conftest${ac_exeext}; then
16536             pipe_works=yes
16537           fi
16538           LIBS="$lt_save_LIBS"
16539           CFLAGS="$lt_save_CFLAGS"
16540         else
16541           echo "cannot find nm_test_func in $nlist" >&5
16542         fi
16543       else
16544         echo "cannot find nm_test_var in $nlist" >&5
16545       fi
16546     else
16547       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16548     fi
16549   else
16550     echo "$progname: failed program was:" >&5
16551     cat conftest.$ac_ext >&5
16552   fi
16553   rm -f conftest* conftst*
16554
16555   # Do not use the global_symbol_pipe unless it works.
16556   if test "$pipe_works" = yes; then
16557     break
16558   else
16559     lt_cv_sys_global_symbol_pipe=
16560   fi
16561 done
16562
16563 fi
16564
16565 if test -z "$lt_cv_sys_global_symbol_pipe"; then
16566   lt_cv_sys_global_symbol_to_cdecl=
16567 fi
16568 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16569   echo "$as_me:$LINENO: result: failed" >&5
16570 echo "${ECHO_T}failed" >&6
16571 else
16572   echo "$as_me:$LINENO: result: ok" >&5
16573 echo "${ECHO_T}ok" >&6
16574 fi
16575
16576 echo "$as_me:$LINENO: checking for objdir" >&5
16577 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16578 if test "${lt_cv_objdir+set}" = set; then
16579   echo $ECHO_N "(cached) $ECHO_C" >&6
16580 else
16581   rm -f .libs 2>/dev/null
16582 mkdir .libs 2>/dev/null
16583 if test -d .libs; then
16584   lt_cv_objdir=.libs
16585 else
16586   # MS-DOS does not allow filenames that begin with a dot.
16587   lt_cv_objdir=_libs
16588 fi
16589 rmdir .libs 2>/dev/null
16590 fi
16591 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16592 echo "${ECHO_T}$lt_cv_objdir" >&6
16593 objdir=$lt_cv_objdir
16594
16595
16596
16597
16598
16599 case $host_os in
16600 aix3*)
16601   # AIX sometimes has problems with the GCC collect2 program.  For some
16602   # reason, if we set the COLLECT_NAMES environment variable, the problems
16603   # vanish in a puff of smoke.
16604   if test "X${COLLECT_NAMES+set}" != Xset; then
16605     COLLECT_NAMES=
16606     export COLLECT_NAMES
16607   fi
16608   ;;
16609 esac
16610
16611 # Sed substitution that helps us do robust quoting.  It backslashifies
16612 # metacharacters that are still active within double-quoted strings.
16613 Xsed='sed -e 1s/^X//'
16614 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
16615
16616 # Same as above, but do not quote variable references.
16617 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
16618
16619 # Sed substitution to delay expansion of an escaped shell variable in a
16620 # double_quote_subst'ed string.
16621 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16622
16623 # Sed substitution to avoid accidental globbing in evaled expressions
16624 no_glob_subst='s/\*/\\\*/g'
16625
16626 # Constants:
16627 rm="rm -f"
16628
16629 # Global variables:
16630 default_ofile=libtool
16631 can_build_shared=yes
16632
16633 # All known linkers require a `.a' archive for static linking (except MSVC,
16634 # which needs '.lib').
16635 libext=a
16636 ltmain="$ac_aux_dir/ltmain.sh"
16637 ofile="$default_ofile"
16638 with_gnu_ld="$lt_cv_prog_gnu_ld"
16639
16640 if test -n "$ac_tool_prefix"; then
16641   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16642 set dummy ${ac_tool_prefix}ar; ac_word=$2
16643 echo "$as_me:$LINENO: checking for $ac_word" >&5
16644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16645 if test "${ac_cv_prog_AR+set}" = set; then
16646   echo $ECHO_N "(cached) $ECHO_C" >&6
16647 else
16648   if test -n "$AR"; then
16649   ac_cv_prog_AR="$AR" # Let the user override the test.
16650 else
16651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16652 for as_dir in $PATH
16653 do
16654   IFS=$as_save_IFS
16655   test -z "$as_dir" && as_dir=.
16656   for ac_exec_ext in '' $ac_executable_extensions; do
16657   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16658     ac_cv_prog_AR="${ac_tool_prefix}ar"
16659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16660     break 2
16661   fi
16662 done
16663 done
16664
16665 fi
16666 fi
16667 AR=$ac_cv_prog_AR
16668 if test -n "$AR"; then
16669   echo "$as_me:$LINENO: result: $AR" >&5
16670 echo "${ECHO_T}$AR" >&6
16671 else
16672   echo "$as_me:$LINENO: result: no" >&5
16673 echo "${ECHO_T}no" >&6
16674 fi
16675
16676 fi
16677 if test -z "$ac_cv_prog_AR"; then
16678   ac_ct_AR=$AR
16679   # Extract the first word of "ar", so it can be a program name with args.
16680 set dummy ar; ac_word=$2
16681 echo "$as_me:$LINENO: checking for $ac_word" >&5
16682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16683 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
16684   echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686   if test -n "$ac_ct_AR"; then
16687   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16688 else
16689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16690 for as_dir in $PATH
16691 do
16692   IFS=$as_save_IFS
16693   test -z "$as_dir" && as_dir=.
16694   for ac_exec_ext in '' $ac_executable_extensions; do
16695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16696     ac_cv_prog_ac_ct_AR="ar"
16697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16698     break 2
16699   fi
16700 done
16701 done
16702
16703   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
16704 fi
16705 fi
16706 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16707 if test -n "$ac_ct_AR"; then
16708   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16709 echo "${ECHO_T}$ac_ct_AR" >&6
16710 else
16711   echo "$as_me:$LINENO: result: no" >&5
16712 echo "${ECHO_T}no" >&6
16713 fi
16714
16715   AR=$ac_ct_AR
16716 else
16717   AR="$ac_cv_prog_AR"
16718 fi
16719
16720 if test -n "$ac_tool_prefix"; then
16721   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16722 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16723 echo "$as_me:$LINENO: checking for $ac_word" >&5
16724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16725 if test "${ac_cv_prog_RANLIB+set}" = set; then
16726   echo $ECHO_N "(cached) $ECHO_C" >&6
16727 else
16728   if test -n "$RANLIB"; then
16729   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16730 else
16731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16732 for as_dir in $PATH
16733 do
16734   IFS=$as_save_IFS
16735   test -z "$as_dir" && as_dir=.
16736   for ac_exec_ext in '' $ac_executable_extensions; do
16737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16738     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16740     break 2
16741   fi
16742 done
16743 done
16744
16745 fi
16746 fi
16747 RANLIB=$ac_cv_prog_RANLIB
16748 if test -n "$RANLIB"; then
16749   echo "$as_me:$LINENO: result: $RANLIB" >&5
16750 echo "${ECHO_T}$RANLIB" >&6
16751 else
16752   echo "$as_me:$LINENO: result: no" >&5
16753 echo "${ECHO_T}no" >&6
16754 fi
16755
16756 fi
16757 if test -z "$ac_cv_prog_RANLIB"; then
16758   ac_ct_RANLIB=$RANLIB
16759   # Extract the first word of "ranlib", so it can be a program name with args.
16760 set dummy ranlib; ac_word=$2
16761 echo "$as_me:$LINENO: checking for $ac_word" >&5
16762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16764   echo $ECHO_N "(cached) $ECHO_C" >&6
16765 else
16766   if test -n "$ac_ct_RANLIB"; then
16767   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16768 else
16769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16770 for as_dir in $PATH
16771 do
16772   IFS=$as_save_IFS
16773   test -z "$as_dir" && as_dir=.
16774   for ac_exec_ext in '' $ac_executable_extensions; do
16775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16776     ac_cv_prog_ac_ct_RANLIB="ranlib"
16777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16778     break 2
16779   fi
16780 done
16781 done
16782
16783   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
16784 fi
16785 fi
16786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16787 if test -n "$ac_ct_RANLIB"; then
16788   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16789 echo "${ECHO_T}$ac_ct_RANLIB" >&6
16790 else
16791   echo "$as_me:$LINENO: result: no" >&5
16792 echo "${ECHO_T}no" >&6
16793 fi
16794
16795   RANLIB=$ac_ct_RANLIB
16796 else
16797   RANLIB="$ac_cv_prog_RANLIB"
16798 fi
16799
16800 if test -n "$ac_tool_prefix"; then
16801   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16802 set dummy ${ac_tool_prefix}strip; ac_word=$2
16803 echo "$as_me:$LINENO: checking for $ac_word" >&5
16804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16805 if test "${ac_cv_prog_STRIP+set}" = set; then
16806   echo $ECHO_N "(cached) $ECHO_C" >&6
16807 else
16808   if test -n "$STRIP"; then
16809   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16810 else
16811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16812 for as_dir in $PATH
16813 do
16814   IFS=$as_save_IFS
16815   test -z "$as_dir" && as_dir=.
16816   for ac_exec_ext in '' $ac_executable_extensions; do
16817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16818     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16820     break 2
16821   fi
16822 done
16823 done
16824
16825 fi
16826 fi
16827 STRIP=$ac_cv_prog_STRIP
16828 if test -n "$STRIP"; then
16829   echo "$as_me:$LINENO: result: $STRIP" >&5
16830 echo "${ECHO_T}$STRIP" >&6
16831 else
16832   echo "$as_me:$LINENO: result: no" >&5
16833 echo "${ECHO_T}no" >&6
16834 fi
16835
16836 fi
16837 if test -z "$ac_cv_prog_STRIP"; then
16838   ac_ct_STRIP=$STRIP
16839   # Extract the first word of "strip", so it can be a program name with args.
16840 set dummy strip; ac_word=$2
16841 echo "$as_me:$LINENO: checking for $ac_word" >&5
16842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16843 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
16844   echo $ECHO_N "(cached) $ECHO_C" >&6
16845 else
16846   if test -n "$ac_ct_STRIP"; then
16847   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16848 else
16849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16850 for as_dir in $PATH
16851 do
16852   IFS=$as_save_IFS
16853   test -z "$as_dir" && as_dir=.
16854   for ac_exec_ext in '' $ac_executable_extensions; do
16855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16856     ac_cv_prog_ac_ct_STRIP="strip"
16857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16858     break 2
16859   fi
16860 done
16861 done
16862
16863   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
16864 fi
16865 fi
16866 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16867 if test -n "$ac_ct_STRIP"; then
16868   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
16869 echo "${ECHO_T}$ac_ct_STRIP" >&6
16870 else
16871   echo "$as_me:$LINENO: result: no" >&5
16872 echo "${ECHO_T}no" >&6
16873 fi
16874
16875   STRIP=$ac_ct_STRIP
16876 else
16877   STRIP="$ac_cv_prog_STRIP"
16878 fi
16879
16880
16881 old_CC="$CC"
16882 old_CFLAGS="$CFLAGS"
16883
16884 # Set sane defaults for various variables
16885 test -z "$AR" && AR=ar
16886 test -z "$AR_FLAGS" && AR_FLAGS=cru
16887 test -z "$AS" && AS=as
16888 test -z "$CC" && CC=cc
16889 test -z "$LTCC" && LTCC=$CC
16890 test -z "$DLLTOOL" && DLLTOOL=dlltool
16891 test -z "$LD" && LD=ld
16892 test -z "$LN_S" && LN_S="ln -s"
16893 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16894 test -z "$NM" && NM=nm
16895 test -z "$SED" && SED=sed
16896 test -z "$OBJDUMP" && OBJDUMP=objdump
16897 test -z "$RANLIB" && RANLIB=:
16898 test -z "$STRIP" && STRIP=:
16899 test -z "$ac_objext" && ac_objext=o
16900
16901 # Determine commands to create old-style static archives.
16902 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
16903 old_postinstall_cmds='chmod 644 $oldlib'
16904 old_postuninstall_cmds=
16905
16906 if test -n "$RANLIB"; then
16907   case $host_os in
16908   openbsd*)
16909     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
16910     ;;
16911   *)
16912     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
16913     ;;
16914   esac
16915   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16916 fi
16917
16918 for cc_temp in $compiler""; do
16919   case $cc_temp in
16920     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16921     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16922     \-*) ;;
16923     *) break;;
16924   esac
16925 done
16926 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16927
16928
16929 # Only perform the check for file, if the check method requires it
16930 case $deplibs_check_method in
16931 file_magic*)
16932   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16933     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16934 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16935 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16936   echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938   case $MAGIC_CMD in
16939 [\\/*] |  ?:[\\/]*)
16940   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16941   ;;
16942 *)
16943   lt_save_MAGIC_CMD="$MAGIC_CMD"
16944   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16945   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16946   for ac_dir in $ac_dummy; do
16947     IFS="$lt_save_ifs"
16948     test -z "$ac_dir" && ac_dir=.
16949     if test -f $ac_dir/${ac_tool_prefix}file; then
16950       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16951       if test -n "$file_magic_test_file"; then
16952         case $deplibs_check_method in
16953         "file_magic "*)
16954           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16955           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16956           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16957             $EGREP "$file_magic_regex" > /dev/null; then
16958             :
16959           else
16960             cat <<EOF 1>&2
16961
16962 *** Warning: the command libtool uses to detect shared libraries,
16963 *** $file_magic_cmd, produces output that libtool cannot recognize.
16964 *** The result is that libtool may fail to recognize shared libraries
16965 *** as such.  This will affect the creation of libtool libraries that
16966 *** depend on shared libraries, but programs linked with such libtool
16967 *** libraries will work regardless of this problem.  Nevertheless, you
16968 *** may want to report the problem to your system manager and/or to
16969 *** bug-libtool@gnu.org
16970
16971 EOF
16972           fi ;;
16973         esac
16974       fi
16975       break
16976     fi
16977   done
16978   IFS="$lt_save_ifs"
16979   MAGIC_CMD="$lt_save_MAGIC_CMD"
16980   ;;
16981 esac
16982 fi
16983
16984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16985 if test -n "$MAGIC_CMD"; then
16986   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16987 echo "${ECHO_T}$MAGIC_CMD" >&6
16988 else
16989   echo "$as_me:$LINENO: result: no" >&5
16990 echo "${ECHO_T}no" >&6
16991 fi
16992
16993 if test -z "$lt_cv_path_MAGIC_CMD"; then
16994   if test -n "$ac_tool_prefix"; then
16995     echo "$as_me:$LINENO: checking for file" >&5
16996 echo $ECHO_N "checking for file... $ECHO_C" >&6
16997 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16998   echo $ECHO_N "(cached) $ECHO_C" >&6
16999 else
17000   case $MAGIC_CMD in
17001 [\\/*] |  ?:[\\/]*)
17002   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
17003   ;;
17004 *)
17005   lt_save_MAGIC_CMD="$MAGIC_CMD"
17006   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17007   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17008   for ac_dir in $ac_dummy; do
17009     IFS="$lt_save_ifs"
17010     test -z "$ac_dir" && ac_dir=.
17011     if test -f $ac_dir/file; then
17012       lt_cv_path_MAGIC_CMD="$ac_dir/file"
17013       if test -n "$file_magic_test_file"; then
17014         case $deplibs_check_method in
17015         "file_magic "*)
17016           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17017           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17018           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17019             $EGREP "$file_magic_regex" > /dev/null; then
17020             :
17021           else
17022             cat <<EOF 1>&2
17023
17024 *** Warning: the command libtool uses to detect shared libraries,
17025 *** $file_magic_cmd, produces output that libtool cannot recognize.
17026 *** The result is that libtool may fail to recognize shared libraries
17027 *** as such.  This will affect the creation of libtool libraries that
17028 *** depend on shared libraries, but programs linked with such libtool
17029 *** libraries will work regardless of this problem.  Nevertheless, you
17030 *** may want to report the problem to your system manager and/or to
17031 *** bug-libtool@gnu.org
17032
17033 EOF
17034           fi ;;
17035         esac
17036       fi
17037       break
17038     fi
17039   done
17040   IFS="$lt_save_ifs"
17041   MAGIC_CMD="$lt_save_MAGIC_CMD"
17042   ;;
17043 esac
17044 fi
17045
17046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17047 if test -n "$MAGIC_CMD"; then
17048   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
17049 echo "${ECHO_T}$MAGIC_CMD" >&6
17050 else
17051   echo "$as_me:$LINENO: result: no" >&5
17052 echo "${ECHO_T}no" >&6
17053 fi
17054
17055   else
17056     MAGIC_CMD=:
17057   fi
17058 fi
17059
17060   fi
17061   ;;
17062 esac
17063
17064 enable_dlopen=no
17065 enable_win32_dll=no
17066
17067 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
17068 if test "${enable_libtool_lock+set}" = set; then
17069   enableval="$enable_libtool_lock"
17070
17071 fi;
17072 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17073
17074
17075 # Check whether --with-pic or --without-pic was given.
17076 if test "${with_pic+set}" = set; then
17077   withval="$with_pic"
17078   pic_mode="$withval"
17079 else
17080   pic_mode=default
17081 fi;
17082 test -z "$pic_mode" && pic_mode=default
17083
17084 # Use C for the default configuration in the libtool script
17085 tagname=
17086 lt_save_CC="$CC"
17087 ac_ext=c
17088 ac_cpp='$CPP $CPPFLAGS'
17089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17092
17093
17094 # Source file extension for C test sources.
17095 ac_ext=c
17096
17097 # Object file extension for compiled C test sources.
17098 objext=o
17099 objext=$objext
17100
17101 # Code to be used in simple compile tests
17102 lt_simple_compile_test_code="int some_variable = 0;\n"
17103
17104 # Code to be used in simple link tests
17105 lt_simple_link_test_code='int main(){return(0);}\n'
17106
17107
17108 # If no C compiler was specified, use CC.
17109 LTCC=${LTCC-"$CC"}
17110
17111 # Allow CC to be a program name with arguments.
17112 compiler=$CC
17113
17114
17115 # save warnings/boilerplate of simple test code
17116 ac_outfile=conftest.$ac_objext
17117 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17118 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17119 _lt_compiler_boilerplate=`cat conftest.err`
17120 $rm conftest*
17121
17122 ac_outfile=conftest.$ac_objext
17123 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17124 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17125 _lt_linker_boilerplate=`cat conftest.err`
17126 $rm conftest*
17127
17128
17129 #
17130 # Check for any special shared library compilation flags.
17131 #
17132 lt_prog_cc_shlib=
17133 if test "$GCC" = no; then
17134   case $host_os in
17135   sco3.2v5*)
17136     lt_prog_cc_shlib='-belf'
17137     ;;
17138   esac
17139 fi
17140 if test -n "$lt_prog_cc_shlib"; then
17141   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
17142 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
17143   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
17144   else
17145     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
17146 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
17147     lt_cv_prog_cc_can_build_shared=no
17148   fi
17149 fi
17150
17151
17152 #
17153 # Check to make sure the static flag actually works.
17154 #
17155 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
17156 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
17157 if test "${lt_prog_compiler_static_works+set}" = set; then
17158   echo $ECHO_N "(cached) $ECHO_C" >&6
17159 else
17160   lt_prog_compiler_static_works=no
17161    save_LDFLAGS="$LDFLAGS"
17162    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
17163    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17164    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17165      # The linker can only warn and ignore the option if not recognized
17166      # So say no if there are warnings
17167      if test -s conftest.err; then
17168        # Append any errors to the config.log.
17169        cat conftest.err 1>&5
17170        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
17171        $SED '/^$/d' conftest.err >conftest.er2
17172        if diff conftest.exp conftest.er2 >/dev/null; then
17173          lt_prog_compiler_static_works=yes
17174        fi
17175      else
17176        lt_prog_compiler_static_works=yes
17177      fi
17178    fi
17179    $rm conftest*
17180    LDFLAGS="$save_LDFLAGS"
17181
17182 fi
17183 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
17184 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
17185
17186 if test x"$lt_prog_compiler_static_works" = xyes; then
17187     :
17188 else
17189     lt_prog_compiler_static=
17190 fi
17191
17192
17193
17194 ## CAVEAT EMPTOR:
17195 ## There is no encapsulation within the following macros, do not change
17196 ## the running order or otherwise move them around unless you know exactly
17197 ## what you are doing...
17198
17199 lt_prog_compiler_no_builtin_flag=
17200
17201 if test "$GCC" = yes; then
17202   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
17203
17204
17205 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17206 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17207 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17208   echo $ECHO_N "(cached) $ECHO_C" >&6
17209 else
17210   lt_cv_prog_compiler_rtti_exceptions=no
17211   ac_outfile=conftest.$ac_objext
17212    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17213    lt_compiler_flag="-fno-rtti -fno-exceptions"
17214    # Insert the option either (1) after the last *FLAGS variable, or
17215    # (2) before a word containing "conftest.", or (3) at the end.
17216    # Note that $ac_compile itself does not contain backslashes and begins
17217    # with a dollar sign (not a hyphen), so the echo should work correctly.
17218    # The option is referenced via a variable to avoid confusing sed.
17219    lt_compile=`echo "$ac_compile" | $SED \
17220    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17221    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17222    -e 's:$: $lt_compiler_flag:'`
17223    (eval echo "\"\$as_me:17223: $lt_compile\"" >&5)
17224    (eval "$lt_compile" 2>conftest.err)
17225    ac_status=$?
17226    cat conftest.err >&5
17227    echo "$as_me:17227: \$? = $ac_status" >&5
17228    if (exit $ac_status) && test -s "$ac_outfile"; then
17229      # The compiler can only warn and ignore the option if not recognized
17230      # So say no if there are warnings other than the usual output.
17231      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17232      $SED '/^$/d' conftest.err >conftest.er2
17233      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17234        lt_cv_prog_compiler_rtti_exceptions=yes
17235      fi
17236    fi
17237    $rm conftest*
17238
17239 fi
17240 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17241 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17242
17243 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17244     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17245 else
17246     :
17247 fi
17248
17249 fi
17250
17251 lt_prog_compiler_wl=
17252 lt_prog_compiler_pic=
17253 lt_prog_compiler_static=
17254
17255 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17256 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17257
17258   if test "$GCC" = yes; then
17259     lt_prog_compiler_wl='-Wl,'
17260     lt_prog_compiler_static='-static'
17261
17262     case $host_os in
17263       aix*)
17264       # All AIX code is PIC.
17265       if test "$host_cpu" = ia64; then
17266         # AIX 5 now supports IA64 processor
17267         lt_prog_compiler_static='-Bstatic'
17268       fi
17269       ;;
17270
17271     amigaos*)
17272       # FIXME: we need at least 68020 code to build shared libraries, but
17273       # adding the `-m68020' flag to GCC prevents building anything better,
17274       # like `-m68040'.
17275       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17276       ;;
17277
17278     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17279       # PIC is the default for these OSes.
17280       ;;
17281
17282     mingw* | pw32* | os2*)
17283       # This hack is so that the source file can tell whether it is being
17284       # built for inclusion in a dll (and should export symbols for example).
17285       lt_prog_compiler_pic='-DDLL_EXPORT'
17286       ;;
17287
17288     darwin* | rhapsody*)
17289       # PIC is the default on this platform
17290       # Common symbols not allowed in MH_DYLIB files
17291       lt_prog_compiler_pic='-fno-common'
17292       ;;
17293
17294     msdosdjgpp*)
17295       # Just because we use GCC doesn't mean we suddenly get shared libraries
17296       # on systems that don't support them.
17297       lt_prog_compiler_can_build_shared=no
17298       enable_shared=no
17299       ;;
17300
17301     sysv4*MP*)
17302       if test -d /usr/nec; then
17303         lt_prog_compiler_pic=-Kconform_pic
17304       fi
17305       ;;
17306
17307     hpux*)
17308       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17309       # not for PA HP-UX.
17310       case $host_cpu in
17311       hppa*64*|ia64*)
17312         # +Z the default
17313         ;;
17314       *)
17315         lt_prog_compiler_pic='-fPIC'
17316         ;;
17317       esac
17318       ;;
17319
17320     *)
17321       lt_prog_compiler_pic='-fPIC'
17322       ;;
17323     esac
17324   else
17325     # PORTME Check for flag to pass linker flags through the system compiler.
17326     case $host_os in
17327     aix*)
17328       lt_prog_compiler_wl='-Wl,'
17329       if test "$host_cpu" = ia64; then
17330         # AIX 5 now supports IA64 processor
17331         lt_prog_compiler_static='-Bstatic'
17332       else
17333         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17334       fi
17335       ;;
17336       darwin*)
17337         # PIC is the default on this platform
17338         # Common symbols not allowed in MH_DYLIB files
17339        case $cc_basename in
17340          xlc*)
17341          lt_prog_compiler_pic='-qnocommon'
17342          lt_prog_compiler_wl='-Wl,'
17343          ;;
17344        esac
17345        ;;
17346
17347     mingw* | pw32* | os2*)
17348       # This hack is so that the source file can tell whether it is being
17349       # built for inclusion in a dll (and should export symbols for example).
17350       lt_prog_compiler_pic='-DDLL_EXPORT'
17351       ;;
17352
17353     hpux9* | hpux10* | hpux11*)
17354       lt_prog_compiler_wl='-Wl,'
17355       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17356       # not for PA HP-UX.
17357       case $host_cpu in
17358       hppa*64*|ia64*)
17359         # +Z the default
17360         ;;
17361       *)
17362         lt_prog_compiler_pic='+Z'
17363         ;;
17364       esac
17365       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17366       lt_prog_compiler_static='${wl}-a ${wl}archive'
17367       ;;
17368
17369     irix5* | irix6* | nonstopux*)
17370       lt_prog_compiler_wl='-Wl,'
17371       # PIC (with -KPIC) is the default.
17372       lt_prog_compiler_static='-non_shared'
17373       ;;
17374
17375     newsos6)
17376       lt_prog_compiler_pic='-KPIC'
17377       lt_prog_compiler_static='-Bstatic'
17378       ;;
17379
17380     linux*)
17381       case $cc_basename in
17382       icc* | ecc*)
17383         lt_prog_compiler_wl='-Wl,'
17384         lt_prog_compiler_pic='-KPIC'
17385         lt_prog_compiler_static='-static'
17386         ;;
17387       pgcc* | pgf77* | pgf90* | pgf95*)
17388         # Portland Group compilers (*not* the Pentium gcc compiler,
17389         # which looks to be a dead project)
17390         lt_prog_compiler_wl='-Wl,'
17391         lt_prog_compiler_pic='-fpic'
17392         lt_prog_compiler_static='-Bstatic'
17393         ;;
17394       ccc*)
17395         lt_prog_compiler_wl='-Wl,'
17396         # All Alpha code is PIC.
17397         lt_prog_compiler_static='-non_shared'
17398         ;;
17399       esac
17400       ;;
17401
17402     osf3* | osf4* | osf5*)
17403       lt_prog_compiler_wl='-Wl,'
17404       # All OSF/1 code is PIC.
17405       lt_prog_compiler_static='-non_shared'
17406       ;;
17407
17408     sco3.2v5*)
17409       lt_prog_compiler_pic='-Kpic'
17410       lt_prog_compiler_static='-dn'
17411       ;;
17412
17413     solaris*)
17414       lt_prog_compiler_pic='-KPIC'
17415       lt_prog_compiler_static='-Bstatic'
17416       case $cc_basename in
17417       f77* | f90* | f95*)
17418         lt_prog_compiler_wl='-Qoption ld ';;
17419       *)
17420         lt_prog_compiler_wl='-Wl,';;
17421       esac
17422       ;;
17423
17424     sunos4*)
17425       lt_prog_compiler_wl='-Qoption ld '
17426       lt_prog_compiler_pic='-PIC'
17427       lt_prog_compiler_static='-Bstatic'
17428       ;;
17429
17430     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17431       lt_prog_compiler_wl='-Wl,'
17432       lt_prog_compiler_pic='-KPIC'
17433       lt_prog_compiler_static='-Bstatic'
17434       ;;
17435
17436     sysv4*MP*)
17437       if test -d /usr/nec ;then
17438         lt_prog_compiler_pic='-Kconform_pic'
17439         lt_prog_compiler_static='-Bstatic'
17440       fi
17441       ;;
17442
17443     unicos*)
17444       lt_prog_compiler_wl='-Wl,'
17445       lt_prog_compiler_can_build_shared=no
17446       ;;
17447
17448     uts4*)
17449       lt_prog_compiler_pic='-pic'
17450       lt_prog_compiler_static='-Bstatic'
17451       ;;
17452
17453     *)
17454       lt_prog_compiler_can_build_shared=no
17455       ;;
17456     esac
17457   fi
17458
17459 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17460 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17461
17462 #
17463 # Check to make sure the PIC flag actually works.
17464 #
17465 if test -n "$lt_prog_compiler_pic"; then
17466
17467 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17468 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17469 if test "${lt_prog_compiler_pic_works+set}" = set; then
17470   echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472   lt_prog_compiler_pic_works=no
17473   ac_outfile=conftest.$ac_objext
17474    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17475    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17476    # Insert the option either (1) after the last *FLAGS variable, or
17477    # (2) before a word containing "conftest.", or (3) at the end.
17478    # Note that $ac_compile itself does not contain backslashes and begins
17479    # with a dollar sign (not a hyphen), so the echo should work correctly.
17480    # The option is referenced via a variable to avoid confusing sed.
17481    lt_compile=`echo "$ac_compile" | $SED \
17482    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17483    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17484    -e 's:$: $lt_compiler_flag:'`
17485    (eval echo "\"\$as_me:17485: $lt_compile\"" >&5)
17486    (eval "$lt_compile" 2>conftest.err)
17487    ac_status=$?
17488    cat conftest.err >&5
17489    echo "$as_me:17489: \$? = $ac_status" >&5
17490    if (exit $ac_status) && test -s "$ac_outfile"; then
17491      # The compiler can only warn and ignore the option if not recognized
17492      # So say no if there are warnings other than the usual output.
17493      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17494      $SED '/^$/d' conftest.err >conftest.er2
17495      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17496        lt_prog_compiler_pic_works=yes
17497      fi
17498    fi
17499    $rm conftest*
17500
17501 fi
17502 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
17503 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
17504
17505 if test x"$lt_prog_compiler_pic_works" = xyes; then
17506     case $lt_prog_compiler_pic in
17507      "" | " "*) ;;
17508      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17509      esac
17510 else
17511     lt_prog_compiler_pic=
17512      lt_prog_compiler_can_build_shared=no
17513 fi
17514
17515 fi
17516 case $host_os in
17517   # For platforms which do not support PIC, -DPIC is meaningless:
17518   *djgpp*)
17519     lt_prog_compiler_pic=
17520     ;;
17521   *)
17522     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17523     ;;
17524 esac
17525
17526 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17527 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17528 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17529   echo $ECHO_N "(cached) $ECHO_C" >&6
17530 else
17531   lt_cv_prog_compiler_c_o=no
17532    $rm -r conftest 2>/dev/null
17533    mkdir conftest
17534    cd conftest
17535    mkdir out
17536    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17537
17538    lt_compiler_flag="-o out/conftest2.$ac_objext"
17539    # Insert the option either (1) after the last *FLAGS variable, or
17540    # (2) before a word containing "conftest.", or (3) at the end.
17541    # Note that $ac_compile itself does not contain backslashes and begins
17542    # with a dollar sign (not a hyphen), so the echo should work correctly.
17543    lt_compile=`echo "$ac_compile" | $SED \
17544    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17545    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17546    -e 's:$: $lt_compiler_flag:'`
17547    (eval echo "\"\$as_me:17547: $lt_compile\"" >&5)
17548    (eval "$lt_compile" 2>out/conftest.err)
17549    ac_status=$?
17550    cat out/conftest.err >&5
17551    echo "$as_me:17551: \$? = $ac_status" >&5
17552    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17553    then
17554      # The compiler can only warn and ignore the option if not recognized
17555      # So say no if there are warnings
17556      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17557      $SED '/^$/d' out/conftest.err >out/conftest.er2
17558      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17559        lt_cv_prog_compiler_c_o=yes
17560      fi
17561    fi
17562    chmod u+w . 2>&5
17563    $rm conftest*
17564    # SGI C++ compiler will create directory out/ii_files/ for
17565    # template instantiation
17566    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17567    $rm out/* && rmdir out
17568    cd ..
17569    rmdir conftest
17570    $rm conftest*
17571
17572 fi
17573 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17574 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17575
17576
17577 hard_links="nottested"
17578 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17579   # do not overwrite the value of need_locks provided by the user
17580   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17581 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17582   hard_links=yes
17583   $rm conftest*
17584   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17585   touch conftest.a
17586   ln conftest.a conftest.b 2>&5 || hard_links=no
17587   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17588   echo "$as_me:$LINENO: result: $hard_links" >&5
17589 echo "${ECHO_T}$hard_links" >&6
17590   if test "$hard_links" = no; then
17591     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17592 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17593     need_locks=warn
17594   fi
17595 else
17596   need_locks=no
17597 fi
17598
17599 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17600 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17601
17602   runpath_var=
17603   allow_undefined_flag=
17604   enable_shared_with_static_runtimes=no
17605   archive_cmds=
17606   archive_expsym_cmds=
17607   old_archive_From_new_cmds=
17608   old_archive_from_expsyms_cmds=
17609   export_dynamic_flag_spec=
17610   whole_archive_flag_spec=
17611   thread_safe_flag_spec=
17612   hardcode_libdir_flag_spec=
17613   hardcode_libdir_flag_spec_ld=
17614   hardcode_libdir_separator=
17615   hardcode_direct=no
17616   hardcode_minus_L=no
17617   hardcode_shlibpath_var=unsupported
17618   link_all_deplibs=unknown
17619   hardcode_automatic=no
17620   module_cmds=
17621   module_expsym_cmds=
17622   always_export_symbols=no
17623   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17624   # include_expsyms should be a list of space-separated symbols to be *always*
17625   # included in the symbol list
17626   include_expsyms=
17627   # exclude_expsyms can be an extended regexp of symbols to exclude
17628   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17629   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17630   # as well as any symbol that contains `d'.
17631   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
17632   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17633   # platforms (ab)use it in PIC code, but their linkers get confused if
17634   # the symbol is explicitly referenced.  Since portable code cannot
17635   # rely on this symbol name, it's probably fine to never include it in
17636   # preloaded symbol tables.
17637   extract_expsyms_cmds=
17638   # Just being paranoid about ensuring that cc_basename is set.
17639   for cc_temp in $compiler""; do
17640   case $cc_temp in
17641     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17642     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17643     \-*) ;;
17644     *) break;;
17645   esac
17646 done
17647 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17648
17649   case $host_os in
17650   cygwin* | mingw* | pw32*)
17651     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17652     # When not using gcc, we currently assume that we are using
17653     # Microsoft Visual C++.
17654     if test "$GCC" != yes; then
17655       with_gnu_ld=no
17656     fi
17657     ;;
17658   openbsd*)
17659     with_gnu_ld=no
17660     ;;
17661   esac
17662
17663   ld_shlibs=yes
17664   if test "$with_gnu_ld" = yes; then
17665     # If archive_cmds runs LD, not CC, wlarc should be empty
17666     wlarc='${wl}'
17667
17668     # Set some defaults for GNU ld with shared library support. These
17669     # are reset later if shared libraries are not supported. Putting them
17670     # here allows them to be overridden if necessary.
17671     runpath_var=LD_RUN_PATH
17672     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
17673     export_dynamic_flag_spec='${wl}--export-dynamic'
17674     # ancient GNU ld didn't support --whole-archive et. al.
17675     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17676         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17677       else
17678         whole_archive_flag_spec=
17679     fi
17680     supports_anon_versioning=no
17681     case `$LD -v 2>/dev/null` in
17682       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17683       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17684       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17685       *\ 2.11.*) ;; # other 2.11 versions
17686       *) supports_anon_versioning=yes ;;
17687     esac
17688
17689     # See if GNU ld supports shared libraries.
17690     case $host_os in
17691     aix3* | aix4* | aix5*)
17692       # On AIX/PPC, the GNU linker is very broken
17693       if test "$host_cpu" != ia64; then
17694         ld_shlibs=no
17695         cat <<EOF 1>&2
17696
17697 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17698 *** to be unable to reliably create shared libraries on AIX.
17699 *** Therefore, libtool is disabling shared libraries support.  If you
17700 *** really care for shared libraries, you may want to modify your PATH
17701 *** so that a non-GNU linker is found, and then restart.
17702
17703 EOF
17704       fi
17705       ;;
17706
17707     amigaos*)
17708       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)'
17709       hardcode_libdir_flag_spec='-L$libdir'
17710       hardcode_minus_L=yes
17711
17712       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17713       # that the semantics of dynamic libraries on AmigaOS, at least up
17714       # to version 4, is to share data among multiple programs linked
17715       # with the same dynamic library.  Since this doesn't match the
17716       # behavior of shared libraries on other platforms, we can't use
17717       # them.
17718       ld_shlibs=no
17719       ;;
17720
17721     beos*)
17722       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17723         allow_undefined_flag=unsupported
17724         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17725         # support --undefined.  This deserves some investigation.  FIXME
17726         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17727       else
17728         ld_shlibs=no
17729       fi
17730       ;;
17731
17732     cygwin* | mingw* | pw32*)
17733       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17734       # as there is no search path for DLLs.
17735       hardcode_libdir_flag_spec='-L$libdir'
17736       allow_undefined_flag=unsupported
17737       always_export_symbols=no
17738       enable_shared_with_static_runtimes=yes
17739       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17740
17741       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17742         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17743         # If the export-symbols file already is a .def file (1st line
17744         # is EXPORTS), use it as is; otherwise, prepend...
17745         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17746           cp $export_symbols $output_objdir/$soname.def;
17747         else
17748           echo EXPORTS > $output_objdir/$soname.def;
17749           cat $export_symbols >> $output_objdir/$soname.def;
17750         fi~
17751         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17752       else
17753         ld_shlibs=no
17754       fi
17755       ;;
17756
17757     linux*)
17758       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17759         tmp_addflag=
17760         case $cc_basename,$host_cpu in
17761         pgcc*)                          # Portland Group C compiler
17762           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'
17763           tmp_addflag=' $pic_flag'
17764           ;;
17765         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17766           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'
17767           tmp_addflag=' $pic_flag -Mnomain' ;;
17768         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17769           tmp_addflag=' -i_dynamic' ;;
17770         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17771           tmp_addflag=' -i_dynamic -nofor_main' ;;
17772         ifc* | ifort*)                  # Intel Fortran compiler
17773           tmp_addflag=' -nofor_main' ;;
17774         esac
17775         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17776
17777         if test $supports_anon_versioning = yes; then
17778           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17779   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17780   $echo "local: *; };" >> $output_objdir/$libname.ver~
17781           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17782         fi
17783       else
17784         ld_shlibs=no
17785       fi
17786       ;;
17787
17788     netbsd*)
17789       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17790         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17791         wlarc=
17792       else
17793         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17794         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17795       fi
17796       ;;
17797
17798     solaris* | sysv5*)
17799       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17800         ld_shlibs=no
17801         cat <<EOF 1>&2
17802
17803 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17804 *** create shared libraries on Solaris systems.  Therefore, libtool
17805 *** is disabling shared libraries support.  We urge you to upgrade GNU
17806 *** binutils to release 2.9.1 or newer.  Another option is to modify
17807 *** your PATH or compiler configuration so that the native linker is
17808 *** used, and then restart.
17809
17810 EOF
17811       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17812         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17813         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17814       else
17815         ld_shlibs=no
17816       fi
17817       ;;
17818
17819     sunos4*)
17820       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17821       wlarc=
17822       hardcode_direct=yes
17823       hardcode_shlibpath_var=no
17824       ;;
17825
17826     *)
17827       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17828         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17829         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17830       else
17831         ld_shlibs=no
17832       fi
17833       ;;
17834     esac
17835
17836     if test "$ld_shlibs" = no; then
17837       runpath_var=
17838       hardcode_libdir_flag_spec=
17839       export_dynamic_flag_spec=
17840       whole_archive_flag_spec=
17841     fi
17842   else
17843     # PORTME fill in a description of your system's linker (not GNU ld)
17844     case $host_os in
17845     aix3*)
17846       allow_undefined_flag=unsupported
17847       always_export_symbols=yes
17848       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'
17849       # Note: this linker hardcodes the directories in LIBPATH if there
17850       # are no directories specified by -L.
17851       hardcode_minus_L=yes
17852       if test "$GCC" = yes && test -z "$link_static_flag"; then
17853         # Neither direct hardcoding nor static linking is supported with a
17854         # broken collect2.
17855         hardcode_direct=unsupported
17856       fi
17857       ;;
17858
17859     aix4* | aix5*)
17860       if test "$host_cpu" = ia64; then
17861         # On IA64, the linker does run time linking by default, so we don't
17862         # have to do anything special.
17863         aix_use_runtimelinking=no
17864         exp_sym_flag='-Bexport'
17865         no_entry_flag=""
17866       else
17867         # If we're using GNU nm, then we don't want the "-C" option.
17868         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17869         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17870           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'
17871         else
17872           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'
17873         fi
17874         aix_use_runtimelinking=no
17875
17876         # Test if we are trying to use run time linking or normal
17877         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17878         # need to do runtime linking.
17879         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17880           for ld_flag in $LDFLAGS; do
17881           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17882             aix_use_runtimelinking=yes
17883             break
17884           fi
17885           done
17886         esac
17887
17888         exp_sym_flag='-bexport'
17889         no_entry_flag='-bnoentry'
17890       fi
17891
17892       # When large executables or shared objects are built, AIX ld can
17893       # have problems creating the table of contents.  If linking a library
17894       # or program results in "error TOC overflow" add -mminimal-toc to
17895       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17896       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17897
17898       archive_cmds=''
17899       hardcode_direct=yes
17900       hardcode_libdir_separator=':'
17901       link_all_deplibs=yes
17902
17903       if test "$GCC" = yes; then
17904         case $host_os in aix4.[012]|aix4.[012].*)
17905         # We only want to do this on AIX 4.2 and lower, the check
17906         # below for broken collect2 doesn't work under 4.3+
17907           collect2name=`${CC} -print-prog-name=collect2`
17908           if test -f "$collect2name" && \
17909            strings "$collect2name" | grep resolve_lib_name >/dev/null
17910           then
17911           # We have reworked collect2
17912           hardcode_direct=yes
17913           else
17914           # We have old collect2
17915           hardcode_direct=unsupported
17916           # It fails to find uninstalled libraries when the uninstalled
17917           # path is not listed in the libpath.  Setting hardcode_minus_L
17918           # to unsupported forces relinking
17919           hardcode_minus_L=yes
17920           hardcode_libdir_flag_spec='-L$libdir'
17921           hardcode_libdir_separator=
17922           fi
17923         esac
17924         shared_flag='-shared'
17925         if test "$aix_use_runtimelinking" = yes; then
17926           shared_flag="$shared_flag "'${wl}-G'
17927         fi
17928       else
17929         # not using gcc
17930         if test "$host_cpu" = ia64; then
17931         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17932         # chokes on -Wl,-G. The following line is correct:
17933           shared_flag='-G'
17934         else
17935         if test "$aix_use_runtimelinking" = yes; then
17936             shared_flag='${wl}-G'
17937           else
17938             shared_flag='${wl}-bM:SRE'
17939         fi
17940         fi
17941       fi
17942
17943       # It seems that -bexpall does not export symbols beginning with
17944       # underscore (_), so it is better to generate a list of symbols to export.
17945       always_export_symbols=yes
17946       if test "$aix_use_runtimelinking" = yes; then
17947         # Warning - without using the other runtime loading flags (-brtl),
17948         # -berok will link without error, but may produce a broken library.
17949         allow_undefined_flag='-berok'
17950        # Determine the default libpath from the value encoded in an empty executable.
17951        cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h.  */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h.  */
17957
17958 int
17959 main ()
17960 {
17961
17962   ;
17963   return 0;
17964 }
17965 _ACEOF
17966 rm -f conftest.$ac_objext conftest$ac_exeext
17967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17968   (eval $ac_link) 2>conftest.er1
17969   ac_status=$?
17970   grep -v '^ *+' conftest.er1 >conftest.err
17971   rm -f conftest.er1
17972   cat conftest.err >&5
17973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974   (exit $ac_status); } &&
17975          { ac_try='test -z "$ac_c_werror_flag"
17976                          || test ! -s conftest.err'
17977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978   (eval $ac_try) 2>&5
17979   ac_status=$?
17980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981   (exit $ac_status); }; } &&
17982          { ac_try='test -s conftest$ac_exeext'
17983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984   (eval $ac_try) 2>&5
17985   ac_status=$?
17986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987   (exit $ac_status); }; }; then
17988
17989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17990 }'`
17991 # Check for a 64-bit object if we didn't find anything.
17992 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; }
17993 }'`; fi
17994 else
17995   echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17997
17998 fi
17999 rm -f conftest.err conftest.$ac_objext \
18000       conftest$ac_exeext conftest.$ac_ext
18001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18002
18003        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18004         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"
18005        else
18006         if test "$host_cpu" = ia64; then
18007           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
18008           allow_undefined_flag="-z nodefs"
18009           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"
18010         else
18011          # Determine the default libpath from the value encoded in an empty executable.
18012          cat >conftest.$ac_ext <<_ACEOF
18013 /* confdefs.h.  */
18014 _ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h.  */
18018
18019 int
18020 main ()
18021 {
18022
18023   ;
18024   return 0;
18025 }
18026 _ACEOF
18027 rm -f conftest.$ac_objext conftest$ac_exeext
18028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18029   (eval $ac_link) 2>conftest.er1
18030   ac_status=$?
18031   grep -v '^ *+' conftest.er1 >conftest.err
18032   rm -f conftest.er1
18033   cat conftest.err >&5
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); } &&
18036          { ac_try='test -z "$ac_c_werror_flag"
18037                          || test ! -s conftest.err'
18038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039   (eval $ac_try) 2>&5
18040   ac_status=$?
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); }; } &&
18043          { ac_try='test -s conftest$ac_exeext'
18044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045   (eval $ac_try) 2>&5
18046   ac_status=$?
18047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048   (exit $ac_status); }; }; then
18049
18050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18051 }'`
18052 # Check for a 64-bit object if we didn't find anything.
18053 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; }
18054 }'`; fi
18055 else
18056   echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18058
18059 fi
18060 rm -f conftest.err conftest.$ac_objext \
18061       conftest$ac_exeext conftest.$ac_ext
18062 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18063
18064          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18065           # Warning - without using the other run time loading flags,
18066           # -berok will link without error, but may produce a broken library.
18067           no_undefined_flag=' ${wl}-bernotok'
18068           allow_undefined_flag=' ${wl}-berok'
18069           # -bexpall does not export symbols beginning with underscore (_)
18070           always_export_symbols=yes
18071           # Exported symbols can be pulled into shared objects from archives
18072           whole_archive_flag_spec=' '
18073           archive_cmds_need_lc=yes
18074           # This is similar to how AIX traditionally builds its shared libraries.
18075           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'
18076         fi
18077       fi
18078       ;;
18079
18080     amigaos*)
18081       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)'
18082       hardcode_libdir_flag_spec='-L$libdir'
18083       hardcode_minus_L=yes
18084       # see comment about different semantics on the GNU ld section
18085       ld_shlibs=no
18086       ;;
18087
18088     bsdi[45]*)
18089       export_dynamic_flag_spec=-rdynamic
18090       ;;
18091
18092     cygwin* | mingw* | pw32*)
18093       # When not using gcc, we currently assume that we are using
18094       # Microsoft Visual C++.
18095       # hardcode_libdir_flag_spec is actually meaningless, as there is
18096       # no search path for DLLs.
18097       hardcode_libdir_flag_spec=' '
18098       allow_undefined_flag=unsupported
18099       # Tell ltmain to make .lib files, not .a files.
18100       libext=lib
18101       # Tell ltmain to make .dll files, not .so files.
18102       shrext_cmds=".dll"
18103       # FIXME: Setting linknames here is a bad hack.
18104       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18105       # The linker will automatically build a .lib file if we build a DLL.
18106       old_archive_From_new_cmds='true'
18107       # FIXME: Should let the user specify the lib program.
18108       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
18109       fix_srcfile_path='`cygpath -w "$srcfile"`'
18110       enable_shared_with_static_runtimes=yes
18111       ;;
18112
18113     darwin* | rhapsody*)
18114       case $host_os in
18115         rhapsody* | darwin1.[012])
18116          allow_undefined_flag='${wl}-undefined ${wl}suppress'
18117          ;;
18118        *) # Darwin 1.3 on
18119          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18120            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18121          else
18122            case ${MACOSX_DEPLOYMENT_TARGET} in
18123              10.[012])
18124                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18125                ;;
18126              10.*)
18127                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
18128                ;;
18129            esac
18130          fi
18131          ;;
18132       esac
18133       archive_cmds_need_lc=no
18134       hardcode_direct=no
18135       hardcode_automatic=yes
18136       hardcode_shlibpath_var=unsupported
18137       whole_archive_flag_spec=''
18138       link_all_deplibs=yes
18139     if test "$GCC" = yes ; then
18140         output_verbose_link_cmd='echo'
18141         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18142       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18143       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18144       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}'
18145       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}'
18146     else
18147       case $cc_basename in
18148         xlc*)
18149          output_verbose_link_cmd='echo'
18150          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18151          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18152           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18153          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}'
18154           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}'
18155           ;;
18156        *)
18157          ld_shlibs=no
18158           ;;
18159       esac
18160     fi
18161       ;;
18162
18163     dgux*)
18164       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18165       hardcode_libdir_flag_spec='-L$libdir'
18166       hardcode_shlibpath_var=no
18167       ;;
18168
18169     freebsd1*)
18170       ld_shlibs=no
18171       ;;
18172
18173     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18174     # support.  Future versions do this automatically, but an explicit c++rt0.o
18175     # does not break anything, and helps significantly (at the cost of a little
18176     # extra space).
18177     freebsd2.2*)
18178       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18179       hardcode_libdir_flag_spec='-R$libdir'
18180       hardcode_direct=yes
18181       hardcode_shlibpath_var=no
18182       ;;
18183
18184     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18185     freebsd2*)
18186       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18187       hardcode_direct=yes
18188       hardcode_minus_L=yes
18189       hardcode_shlibpath_var=no
18190       ;;
18191
18192     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18193     freebsd* | kfreebsd*-gnu | dragonfly*)
18194       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18195       hardcode_libdir_flag_spec='-R$libdir'
18196       hardcode_direct=yes
18197       hardcode_shlibpath_var=no
18198       ;;
18199
18200     hpux9*)
18201       if test "$GCC" = yes; then
18202         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'
18203       else
18204         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'
18205       fi
18206       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18207       hardcode_libdir_separator=:
18208       hardcode_direct=yes
18209
18210       # hardcode_minus_L: Not really in the search PATH,
18211       # but as the default location of the library.
18212       hardcode_minus_L=yes
18213       export_dynamic_flag_spec='${wl}-E'
18214       ;;
18215
18216     hpux10* | hpux11*)
18217       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18218         case $host_cpu in
18219         hppa*64*|ia64*)
18220           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18221           ;;
18222         *)
18223           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18224           ;;
18225         esac
18226       else
18227         case $host_cpu in
18228         hppa*64*|ia64*)
18229           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18230           ;;
18231         *)
18232           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18233           ;;
18234         esac
18235       fi
18236       if test "$with_gnu_ld" = no; then
18237         case $host_cpu in
18238         hppa*64*)
18239           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18240           hardcode_libdir_flag_spec_ld='+b $libdir'
18241           hardcode_libdir_separator=:
18242           hardcode_direct=no
18243           hardcode_shlibpath_var=no
18244           ;;
18245         ia64*)
18246           hardcode_libdir_flag_spec='-L$libdir'
18247           hardcode_direct=no
18248           hardcode_shlibpath_var=no
18249
18250           # hardcode_minus_L: Not really in the search PATH,
18251           # but as the default location of the library.
18252           hardcode_minus_L=yes
18253           ;;
18254         *)
18255           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18256           hardcode_libdir_separator=:
18257           hardcode_direct=yes
18258           export_dynamic_flag_spec='${wl}-E'
18259
18260           # hardcode_minus_L: Not really in the search PATH,
18261           # but as the default location of the library.
18262           hardcode_minus_L=yes
18263           ;;
18264         esac
18265       fi
18266       ;;
18267
18268     irix5* | irix6* | nonstopux*)
18269       if test "$GCC" = yes; then
18270         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'
18271       else
18272         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'
18273         hardcode_libdir_flag_spec_ld='-rpath $libdir'
18274       fi
18275       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18276       hardcode_libdir_separator=:
18277       link_all_deplibs=yes
18278       ;;
18279
18280     netbsd*)
18281       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18282         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18283       else
18284         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18285       fi
18286       hardcode_libdir_flag_spec='-R$libdir'
18287       hardcode_direct=yes
18288       hardcode_shlibpath_var=no
18289       ;;
18290
18291     newsos6)
18292       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18293       hardcode_direct=yes
18294       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18295       hardcode_libdir_separator=:
18296       hardcode_shlibpath_var=no
18297       ;;
18298
18299     openbsd*)
18300       hardcode_direct=yes
18301       hardcode_shlibpath_var=no
18302       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18303         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18304         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18305         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18306         export_dynamic_flag_spec='${wl}-E'
18307       else
18308        case $host_os in
18309          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18310            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18311            hardcode_libdir_flag_spec='-R$libdir'
18312            ;;
18313          *)
18314            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18315            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18316            ;;
18317        esac
18318       fi
18319       ;;
18320
18321     os2*)
18322       hardcode_libdir_flag_spec='-L$libdir'
18323       hardcode_minus_L=yes
18324       allow_undefined_flag=unsupported
18325       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'
18326       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18327       ;;
18328
18329     osf3*)
18330       if test "$GCC" = yes; then
18331         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18332         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'
18333       else
18334         allow_undefined_flag=' -expect_unresolved \*'
18335         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'
18336       fi
18337       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18338       hardcode_libdir_separator=:
18339       ;;
18340
18341     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18342       if test "$GCC" = yes; then
18343         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18344         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'
18345         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18346       else
18347         allow_undefined_flag=' -expect_unresolved \*'
18348         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'
18349         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18350         $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'
18351
18352         # Both c and cxx compiler support -rpath directly
18353         hardcode_libdir_flag_spec='-rpath $libdir'
18354       fi
18355       hardcode_libdir_separator=:
18356       ;;
18357
18358     sco3.2v5*)
18359       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18360       hardcode_shlibpath_var=no
18361       export_dynamic_flag_spec='${wl}-Bexport'
18362       runpath_var=LD_RUN_PATH
18363       hardcode_runpath_var=yes
18364       ;;
18365
18366     solaris*)
18367       no_undefined_flag=' -z text'
18368       if test "$GCC" = yes; then
18369         wlarc='${wl}'
18370         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18371         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18372           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18373       else
18374         wlarc=''
18375         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18376         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18377         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18378       fi
18379       hardcode_libdir_flag_spec='-R$libdir'
18380       hardcode_shlibpath_var=no
18381       case $host_os in
18382       solaris2.[0-5] | solaris2.[0-5].*) ;;
18383       *)
18384         # The compiler driver will combine linker options so we
18385         # cannot just pass the convience library names through
18386         # without $wl, iff we do not link with $LD.
18387         # Luckily, gcc supports the same syntax we need for Sun Studio.
18388         # Supported since Solaris 2.6 (maybe 2.5.1?)
18389         case $wlarc in
18390         '')
18391           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
18392         *)
18393           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' ;;
18394         esac ;;
18395       esac
18396       link_all_deplibs=yes
18397       ;;
18398
18399     sunos4*)
18400       if test "x$host_vendor" = xsequent; then
18401         # Use $CC to link under sequent, because it throws in some extra .o
18402         # files that make .init and .fini sections work.
18403         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18404       else
18405         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18406       fi
18407       hardcode_libdir_flag_spec='-L$libdir'
18408       hardcode_direct=yes
18409       hardcode_minus_L=yes
18410       hardcode_shlibpath_var=no
18411       ;;
18412
18413     sysv4)
18414       case $host_vendor in
18415         sni)
18416           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18417           hardcode_direct=yes # is this really true???
18418         ;;
18419         siemens)
18420           ## LD is ld it makes a PLAMLIB
18421           ## CC just makes a GrossModule.
18422           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18423           reload_cmds='$CC -r -o $output$reload_objs'
18424           hardcode_direct=no
18425         ;;
18426         motorola)
18427           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18428           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18429         ;;
18430       esac
18431       runpath_var='LD_RUN_PATH'
18432       hardcode_shlibpath_var=no
18433       ;;
18434
18435     sysv4.3*)
18436       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18437       hardcode_shlibpath_var=no
18438       export_dynamic_flag_spec='-Bexport'
18439       ;;
18440
18441     sysv4*MP*)
18442       if test -d /usr/nec; then
18443         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18444         hardcode_shlibpath_var=no
18445         runpath_var=LD_RUN_PATH
18446         hardcode_runpath_var=yes
18447         ld_shlibs=yes
18448       fi
18449       ;;
18450
18451     sysv4.2uw2*)
18452       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18453       hardcode_direct=yes
18454       hardcode_minus_L=no
18455       hardcode_shlibpath_var=no
18456       hardcode_runpath_var=yes
18457       runpath_var=LD_RUN_PATH
18458       ;;
18459
18460    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18461       no_undefined_flag='${wl}-z ${wl}text'
18462       if test "$GCC" = yes; then
18463         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18464       else
18465         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18466       fi
18467       runpath_var='LD_RUN_PATH'
18468       hardcode_shlibpath_var=no
18469       ;;
18470
18471     sysv5*)
18472       no_undefined_flag=' -z text'
18473       # $CC -shared without GNU ld will not create a library from C++
18474       # object files and a static libstdc++, better avoid it by now
18475       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18476       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18477                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18478       hardcode_libdir_flag_spec=
18479       hardcode_shlibpath_var=no
18480       runpath_var='LD_RUN_PATH'
18481       ;;
18482
18483     uts4*)
18484       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18485       hardcode_libdir_flag_spec='-L$libdir'
18486       hardcode_shlibpath_var=no
18487       ;;
18488
18489     *)
18490       ld_shlibs=no
18491       ;;
18492     esac
18493   fi
18494
18495 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18496 echo "${ECHO_T}$ld_shlibs" >&6
18497 test "$ld_shlibs" = no && can_build_shared=no
18498
18499 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18500 if test "$GCC" = yes; then
18501   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18502 fi
18503
18504 #
18505 # Do we need to explicitly link libc?
18506 #
18507 case "x$archive_cmds_need_lc" in
18508 x|xyes)
18509   # Assume -lc should be added
18510   archive_cmds_need_lc=yes
18511
18512   if test "$enable_shared" = yes && test "$GCC" = yes; then
18513     case $archive_cmds in
18514     *'~'*)
18515       # FIXME: we may have to deal with multi-command sequences.
18516       ;;
18517     '$CC '*)
18518       # Test whether the compiler implicitly links with -lc since on some
18519       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18520       # to ld, don't add -lc before -lgcc.
18521       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18522 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18523       $rm conftest*
18524       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18525
18526       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18527   (eval $ac_compile) 2>&5
18528   ac_status=$?
18529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530   (exit $ac_status); } 2>conftest.err; then
18531         soname=conftest
18532         lib=conftest
18533         libobjs=conftest.$ac_objext
18534         deplibs=
18535         wl=$lt_prog_compiler_wl
18536         compiler_flags=-v
18537         linker_flags=-v
18538         verstring=
18539         output_objdir=.
18540         libname=conftest
18541         lt_save_allow_undefined_flag=$allow_undefined_flag
18542         allow_undefined_flag=
18543         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18544   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18545   ac_status=$?
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); }
18548         then
18549           archive_cmds_need_lc=no
18550         else
18551           archive_cmds_need_lc=yes
18552         fi
18553         allow_undefined_flag=$lt_save_allow_undefined_flag
18554       else
18555         cat conftest.err 1>&5
18556       fi
18557       $rm conftest*
18558       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18559 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18560       ;;
18561     esac
18562   fi
18563   ;;
18564 esac
18565
18566 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18567 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18568 library_names_spec=
18569 libname_spec='lib$name'
18570 soname_spec=
18571 shrext_cmds=".so"
18572 postinstall_cmds=
18573 postuninstall_cmds=
18574 finish_cmds=
18575 finish_eval=
18576 shlibpath_var=
18577 shlibpath_overrides_runpath=unknown
18578 version_type=none
18579 dynamic_linker="$host_os ld.so"
18580 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18581 if test "$GCC" = yes; then
18582   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18583   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18584     # if the path contains ";" then we assume it to be the separator
18585     # otherwise default to the standard path separator (i.e. ":") - it is
18586     # assumed that no part of a normal pathname contains ";" but that should
18587     # okay in the real world where ";" in dirpaths is itself problematic.
18588     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18589   else
18590     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18591   fi
18592 else
18593   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18594 fi
18595 need_lib_prefix=unknown
18596 hardcode_into_libs=no
18597
18598 # when you set need_version to no, make sure it does not cause -set_version
18599 # flags to be left without arguments
18600 need_version=unknown
18601
18602 case $host_os in
18603 aix3*)
18604   version_type=linux
18605   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18606   shlibpath_var=LIBPATH
18607
18608   # AIX 3 has no versioning support, so we append a major version to the name.
18609   soname_spec='${libname}${release}${shared_ext}$major'
18610   ;;
18611
18612 aix4* | aix5*)
18613   version_type=linux
18614   need_lib_prefix=no
18615   need_version=no
18616   hardcode_into_libs=yes
18617   if test "$host_cpu" = ia64; then
18618     # AIX 5 supports IA64
18619     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18620     shlibpath_var=LD_LIBRARY_PATH
18621   else
18622     # With GCC up to 2.95.x, collect2 would create an import file
18623     # for dependence libraries.  The import file would start with
18624     # the line `#! .'.  This would cause the generated library to
18625     # depend on `.', always an invalid library.  This was fixed in
18626     # development snapshots of GCC prior to 3.0.
18627     case $host_os in
18628       aix4 | aix4.[01] | aix4.[01].*)
18629       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18630            echo ' yes '
18631            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18632         :
18633       else
18634         can_build_shared=no
18635       fi
18636       ;;
18637     esac
18638     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18639     # soname into executable. Probably we can add versioning support to
18640     # collect2, so additional links can be useful in future.
18641     if test "$aix_use_runtimelinking" = yes; then
18642       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18643       # instead of lib<name>.a to let people know that these are not
18644       # typical AIX shared libraries.
18645       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18646     else
18647       # We preserve .a as extension for shared libraries through AIX4.2
18648       # and later when we are not doing run time linking.
18649       library_names_spec='${libname}${release}.a $libname.a'
18650       soname_spec='${libname}${release}${shared_ext}$major'
18651     fi
18652     shlibpath_var=LIBPATH
18653   fi
18654   ;;
18655
18656 amigaos*)
18657   library_names_spec='$libname.ixlibrary $libname.a'
18658   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18659   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'
18660   ;;
18661
18662 beos*)
18663   library_names_spec='${libname}${shared_ext}'
18664   dynamic_linker="$host_os ld.so"
18665   shlibpath_var=LIBRARY_PATH
18666   ;;
18667
18668 bsdi[45]*)
18669   version_type=linux
18670   need_version=no
18671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18672   soname_spec='${libname}${release}${shared_ext}$major'
18673   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18674   shlibpath_var=LD_LIBRARY_PATH
18675   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18676   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18677   # the default ld.so.conf also contains /usr/contrib/lib and
18678   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18679   # libtool to hard-code these into programs
18680   ;;
18681
18682 cygwin* | mingw* | pw32*)
18683   version_type=windows
18684   shrext_cmds=".dll"
18685   need_version=no
18686   need_lib_prefix=no
18687
18688   case $GCC,$host_os in
18689   yes,cygwin* | yes,mingw* | yes,pw32*)
18690     library_names_spec='$libname.dll.a'
18691     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18692     postinstall_cmds='base_file=`basename \${file}`~
18693       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18694       dldir=$destdir/`dirname \$dlpath`~
18695       test -d \$dldir || mkdir -p \$dldir~
18696       $install_prog $dir/$dlname \$dldir/$dlname~
18697       chmod a+x \$dldir/$dlname'
18698     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18699       dlpath=$dir/\$dldll~
18700        $rm \$dlpath'
18701     shlibpath_overrides_runpath=yes
18702
18703     case $host_os in
18704     cygwin*)
18705       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18706       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18707       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18708       ;;
18709     mingw*)
18710       # MinGW DLLs use traditional 'lib' prefix
18711       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18712       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18713       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18714         # It is most probably a Windows format PATH printed by
18715         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18716         # path with ; separators, and with drive letters. We can handle the
18717         # drive letters (cygwin fileutils understands them), so leave them,
18718         # especially as we might pass files found there to a mingw objdump,
18719         # which wouldn't understand a cygwinified path. Ahh.
18720         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18721       else
18722         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18723       fi
18724       ;;
18725     pw32*)
18726       # pw32 DLLs use 'pw' prefix rather than 'lib'
18727       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18728       ;;
18729     esac
18730     ;;
18731
18732   *)
18733     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18734     ;;
18735   esac
18736   dynamic_linker='Win32 ld.exe'
18737   # FIXME: first we should search . and the directory the executable is in
18738   shlibpath_var=PATH
18739   ;;
18740
18741 darwin* | rhapsody*)
18742   dynamic_linker="$host_os dyld"
18743   version_type=darwin
18744   need_lib_prefix=no
18745   need_version=no
18746   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18747   soname_spec='${libname}${release}${major}$shared_ext'
18748   shlibpath_overrides_runpath=yes
18749   shlibpath_var=DYLD_LIBRARY_PATH
18750   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18751   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18752   if test "$GCC" = yes; then
18753     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"`
18754   else
18755     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18756   fi
18757   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18758   ;;
18759
18760 dgux*)
18761   version_type=linux
18762   need_lib_prefix=no
18763   need_version=no
18764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18765   soname_spec='${libname}${release}${shared_ext}$major'
18766   shlibpath_var=LD_LIBRARY_PATH
18767   ;;
18768
18769 freebsd1*)
18770   dynamic_linker=no
18771   ;;
18772
18773 kfreebsd*-gnu)
18774   version_type=linux
18775   need_lib_prefix=no
18776   need_version=no
18777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18778   soname_spec='${libname}${release}${shared_ext}$major'
18779   shlibpath_var=LD_LIBRARY_PATH
18780   shlibpath_overrides_runpath=no
18781   hardcode_into_libs=yes
18782   dynamic_linker='GNU ld.so'
18783   ;;
18784
18785 freebsd* | dragonfly*)
18786   # DragonFly does not have aout.  When/if they implement a new
18787   # versioning mechanism, adjust this.
18788   if test -x /usr/bin/objformat; then
18789     objformat=`/usr/bin/objformat`
18790   else
18791     case $host_os in
18792     freebsd[123]*) objformat=aout ;;
18793     *) objformat=elf ;;
18794     esac
18795   fi
18796   version_type=freebsd-$objformat
18797   case $version_type in
18798     freebsd-elf*)
18799       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18800       need_version=no
18801       need_lib_prefix=no
18802       ;;
18803     freebsd-*)
18804       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18805       need_version=yes
18806       ;;
18807   esac
18808   shlibpath_var=LD_LIBRARY_PATH
18809   case $host_os in
18810   freebsd2*)
18811     shlibpath_overrides_runpath=yes
18812     ;;
18813   freebsd3.[01]* | freebsdelf3.[01]*)
18814     shlibpath_overrides_runpath=yes
18815     hardcode_into_libs=yes
18816     ;;
18817   *) # from 3.2 on
18818     shlibpath_overrides_runpath=no
18819     hardcode_into_libs=yes
18820     ;;
18821   esac
18822   ;;
18823
18824 gnu*)
18825   version_type=linux
18826   need_lib_prefix=no
18827   need_version=no
18828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18829   soname_spec='${libname}${release}${shared_ext}$major'
18830   shlibpath_var=LD_LIBRARY_PATH
18831   hardcode_into_libs=yes
18832   ;;
18833
18834 hpux9* | hpux10* | hpux11*)
18835   # Give a soname corresponding to the major version so that dld.sl refuses to
18836   # link against other versions.
18837   version_type=sunos
18838   need_lib_prefix=no
18839   need_version=no
18840   case $host_cpu in
18841   ia64*)
18842     shrext_cmds='.so'
18843     hardcode_into_libs=yes
18844     dynamic_linker="$host_os dld.so"
18845     shlibpath_var=LD_LIBRARY_PATH
18846     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18847     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18848     soname_spec='${libname}${release}${shared_ext}$major'
18849     if test "X$HPUX_IA64_MODE" = X32; then
18850       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18851     else
18852       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18853     fi
18854     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18855     ;;
18856    hppa*64*)
18857      shrext_cmds='.sl'
18858      hardcode_into_libs=yes
18859      dynamic_linker="$host_os dld.sl"
18860      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18861      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18862      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18863      soname_spec='${libname}${release}${shared_ext}$major'
18864      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18865      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18866      ;;
18867    *)
18868     shrext_cmds='.sl'
18869     dynamic_linker="$host_os dld.sl"
18870     shlibpath_var=SHLIB_PATH
18871     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18872     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18873     soname_spec='${libname}${release}${shared_ext}$major'
18874     ;;
18875   esac
18876   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18877   postinstall_cmds='chmod 555 $lib'
18878   ;;
18879
18880 irix5* | irix6* | nonstopux*)
18881   case $host_os in
18882     nonstopux*) version_type=nonstopux ;;
18883     *)
18884         if test "$lt_cv_prog_gnu_ld" = yes; then
18885                 version_type=linux
18886         else
18887                 version_type=irix
18888         fi ;;
18889   esac
18890   need_lib_prefix=no
18891   need_version=no
18892   soname_spec='${libname}${release}${shared_ext}$major'
18893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18894   case $host_os in
18895   irix5* | nonstopux*)
18896     libsuff= shlibsuff=
18897     ;;
18898   *)
18899     case $LD in # libtool.m4 will add one of these switches to LD
18900     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18901       libsuff= shlibsuff= libmagic=32-bit;;
18902     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18903       libsuff=32 shlibsuff=N32 libmagic=N32;;
18904     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18905       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18906     *) libsuff= shlibsuff= libmagic=never-match;;
18907     esac
18908     ;;
18909   esac
18910   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18911   shlibpath_overrides_runpath=no
18912   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18913   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18914   hardcode_into_libs=yes
18915   ;;
18916
18917 # No shared lib support for Linux oldld, aout, or coff.
18918 linux*oldld* | linux*aout* | linux*coff*)
18919   dynamic_linker=no
18920   ;;
18921
18922 # This must be Linux ELF.
18923 linux*)
18924   version_type=linux
18925   need_lib_prefix=no
18926   need_version=no
18927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18928   soname_spec='${libname}${release}${shared_ext}$major'
18929   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18930   shlibpath_var=LD_LIBRARY_PATH
18931   shlibpath_overrides_runpath=no
18932   # This implies no fast_install, which is unacceptable.
18933   # Some rework will be needed to allow for fast_install
18934   # before this can be enabled.
18935   hardcode_into_libs=yes
18936
18937   # Append ld.so.conf contents to the search path
18938   if test -f /etc/ld.so.conf; then
18939     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' ' '`
18940     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18941   fi
18942
18943   # We used to test for /lib/ld.so.1 and disable shared libraries on
18944   # powerpc, because MkLinux only supported shared libraries with the
18945   # GNU dynamic linker.  Since this was broken with cross compilers,
18946   # most powerpc-linux boxes support dynamic linking these days and
18947   # people can always --disable-shared, the test was removed, and we
18948   # assume the GNU/Linux dynamic linker is in use.
18949   dynamic_linker='GNU/Linux ld.so'
18950   ;;
18951
18952 knetbsd*-gnu)
18953   version_type=linux
18954   need_lib_prefix=no
18955   need_version=no
18956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18957   soname_spec='${libname}${release}${shared_ext}$major'
18958   shlibpath_var=LD_LIBRARY_PATH
18959   shlibpath_overrides_runpath=no
18960   hardcode_into_libs=yes
18961   dynamic_linker='GNU ld.so'
18962   ;;
18963
18964 netbsd*)
18965   version_type=sunos
18966   need_lib_prefix=no
18967   need_version=no
18968   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18970     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18971     dynamic_linker='NetBSD (a.out) ld.so'
18972   else
18973     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18974     soname_spec='${libname}${release}${shared_ext}$major'
18975     dynamic_linker='NetBSD ld.elf_so'
18976   fi
18977   shlibpath_var=LD_LIBRARY_PATH
18978   shlibpath_overrides_runpath=yes
18979   hardcode_into_libs=yes
18980   ;;
18981
18982 newsos6)
18983   version_type=linux
18984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18985   shlibpath_var=LD_LIBRARY_PATH
18986   shlibpath_overrides_runpath=yes
18987   ;;
18988
18989 nto-qnx*)
18990   version_type=linux
18991   need_lib_prefix=no
18992   need_version=no
18993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18994   soname_spec='${libname}${release}${shared_ext}$major'
18995   shlibpath_var=LD_LIBRARY_PATH
18996   shlibpath_overrides_runpath=yes
18997   ;;
18998
18999 openbsd*)
19000   version_type=sunos
19001   need_lib_prefix=no
19002   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19003   case $host_os in
19004     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19005     *)                         need_version=no  ;;
19006   esac
19007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19008   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19009   shlibpath_var=LD_LIBRARY_PATH
19010   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19011     case $host_os in
19012       openbsd2.[89] | openbsd2.[89].*)
19013         shlibpath_overrides_runpath=no
19014         ;;
19015       *)
19016         shlibpath_overrides_runpath=yes
19017         ;;
19018       esac
19019   else
19020     shlibpath_overrides_runpath=yes
19021   fi
19022   ;;
19023
19024 os2*)
19025   libname_spec='$name'
19026   shrext_cmds=".dll"
19027   need_lib_prefix=no
19028   library_names_spec='$libname${shared_ext} $libname.a'
19029   dynamic_linker='OS/2 ld.exe'
19030   shlibpath_var=LIBPATH
19031   ;;
19032
19033 osf3* | osf4* | osf5*)
19034   version_type=osf
19035   need_lib_prefix=no
19036   need_version=no
19037   soname_spec='${libname}${release}${shared_ext}$major'
19038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19039   shlibpath_var=LD_LIBRARY_PATH
19040   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19041   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19042   ;;
19043
19044 sco3.2v5*)
19045   version_type=osf
19046   soname_spec='${libname}${release}${shared_ext}$major'
19047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19048   shlibpath_var=LD_LIBRARY_PATH
19049   ;;
19050
19051 solaris*)
19052   version_type=linux
19053   need_lib_prefix=no
19054   need_version=no
19055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19056   soname_spec='${libname}${release}${shared_ext}$major'
19057   shlibpath_var=LD_LIBRARY_PATH
19058   shlibpath_overrides_runpath=yes
19059   hardcode_into_libs=yes
19060   # ldd complains unless libraries are executable
19061   postinstall_cmds='chmod +x $lib'
19062   ;;
19063
19064 sunos4*)
19065   version_type=sunos
19066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19067   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19068   shlibpath_var=LD_LIBRARY_PATH
19069   shlibpath_overrides_runpath=yes
19070   if test "$with_gnu_ld" = yes; then
19071     need_lib_prefix=no
19072   fi
19073   need_version=yes
19074   ;;
19075
19076 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19077   version_type=linux
19078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19079   soname_spec='${libname}${release}${shared_ext}$major'
19080   shlibpath_var=LD_LIBRARY_PATH
19081   case $host_vendor in
19082     sni)
19083       shlibpath_overrides_runpath=no
19084       need_lib_prefix=no
19085       export_dynamic_flag_spec='${wl}-Blargedynsym'
19086       runpath_var=LD_RUN_PATH
19087       ;;
19088     siemens)
19089       need_lib_prefix=no
19090       ;;
19091     motorola)
19092       need_lib_prefix=no
19093       need_version=no
19094       shlibpath_overrides_runpath=no
19095       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19096       ;;
19097   esac
19098   ;;
19099
19100 sysv4*MP*)
19101   if test -d /usr/nec ;then
19102     version_type=linux
19103     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19104     soname_spec='$libname${shared_ext}.$major'
19105     shlibpath_var=LD_LIBRARY_PATH
19106   fi
19107   ;;
19108
19109 uts4*)
19110   version_type=linux
19111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19112   soname_spec='${libname}${release}${shared_ext}$major'
19113   shlibpath_var=LD_LIBRARY_PATH
19114   ;;
19115
19116 *)
19117   dynamic_linker=no
19118   ;;
19119 esac
19120 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19121 echo "${ECHO_T}$dynamic_linker" >&6
19122 test "$dynamic_linker" = no && can_build_shared=no
19123
19124 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19125 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19126 hardcode_action=
19127 if test -n "$hardcode_libdir_flag_spec" || \
19128    test -n "$runpath_var" || \
19129    test "X$hardcode_automatic" = "Xyes" ; then
19130
19131   # We can hardcode non-existant directories.
19132   if test "$hardcode_direct" != no &&
19133      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19134      # have to relink, otherwise we might link with an installed library
19135      # when we should be linking with a yet-to-be-installed one
19136      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
19137      test "$hardcode_minus_L" != no; then
19138     # Linking always hardcodes the temporary library directory.
19139     hardcode_action=relink
19140   else
19141     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19142     hardcode_action=immediate
19143   fi
19144 else
19145   # We cannot hardcode anything, or else we can only hardcode existing
19146   # directories.
19147   hardcode_action=unsupported
19148 fi
19149 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19150 echo "${ECHO_T}$hardcode_action" >&6
19151
19152 if test "$hardcode_action" = relink; then
19153   # Fast installation is not supported
19154   enable_fast_install=no
19155 elif test "$shlibpath_overrides_runpath" = yes ||
19156      test "$enable_shared" = no; then
19157   # Fast installation is not necessary
19158   enable_fast_install=needless
19159 fi
19160
19161 striplib=
19162 old_striplib=
19163 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19164 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19165 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19166   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19167   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19168   echo "$as_me:$LINENO: result: yes" >&5
19169 echo "${ECHO_T}yes" >&6
19170 else
19171 # FIXME - insert some real tests, host_os isn't really good enough
19172   case $host_os in
19173    darwin*)
19174        if test -n "$STRIP" ; then
19175          striplib="$STRIP -x"
19176          echo "$as_me:$LINENO: result: yes" >&5
19177 echo "${ECHO_T}yes" >&6
19178        else
19179   echo "$as_me:$LINENO: result: no" >&5
19180 echo "${ECHO_T}no" >&6
19181 fi
19182        ;;
19183    *)
19184   echo "$as_me:$LINENO: result: no" >&5
19185 echo "${ECHO_T}no" >&6
19186     ;;
19187   esac
19188 fi
19189
19190 if test "x$enable_dlopen" != xyes; then
19191   enable_dlopen=unknown
19192   enable_dlopen_self=unknown
19193   enable_dlopen_self_static=unknown
19194 else
19195   lt_cv_dlopen=no
19196   lt_cv_dlopen_libs=
19197
19198   case $host_os in
19199   beos*)
19200     lt_cv_dlopen="load_add_on"
19201     lt_cv_dlopen_libs=
19202     lt_cv_dlopen_self=yes
19203     ;;
19204
19205   mingw* | pw32*)
19206     lt_cv_dlopen="LoadLibrary"
19207     lt_cv_dlopen_libs=
19208    ;;
19209
19210   cygwin*)
19211     lt_cv_dlopen="dlopen"
19212     lt_cv_dlopen_libs=
19213    ;;
19214
19215   darwin*)
19216   # if libdl is installed we need to link against it
19217     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19218 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19219 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19220   echo $ECHO_N "(cached) $ECHO_C" >&6
19221 else
19222   ac_check_lib_save_LIBS=$LIBS
19223 LIBS="-ldl  $LIBS"
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 /* Override any gcc2 internal prototype to avoid an error.  */
19232 #ifdef __cplusplus
19233 extern "C"
19234 #endif
19235 /* We use char because int might match the return type of a gcc2
19236    builtin and then its argument prototype would still apply.  */
19237 char dlopen ();
19238 int
19239 main ()
19240 {
19241 dlopen ();
19242   ;
19243   return 0;
19244 }
19245 _ACEOF
19246 rm -f conftest.$ac_objext conftest$ac_exeext
19247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19248   (eval $ac_link) 2>conftest.er1
19249   ac_status=$?
19250   grep -v '^ *+' conftest.er1 >conftest.err
19251   rm -f conftest.er1
19252   cat conftest.err >&5
19253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254   (exit $ac_status); } &&
19255          { ac_try='test -z "$ac_c_werror_flag"
19256                          || test ! -s conftest.err'
19257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258   (eval $ac_try) 2>&5
19259   ac_status=$?
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); }; } &&
19262          { ac_try='test -s conftest$ac_exeext'
19263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264   (eval $ac_try) 2>&5
19265   ac_status=$?
19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267   (exit $ac_status); }; }; then
19268   ac_cv_lib_dl_dlopen=yes
19269 else
19270   echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19272
19273 ac_cv_lib_dl_dlopen=no
19274 fi
19275 rm -f conftest.err conftest.$ac_objext \
19276       conftest$ac_exeext conftest.$ac_ext
19277 LIBS=$ac_check_lib_save_LIBS
19278 fi
19279 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19280 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19281 if test $ac_cv_lib_dl_dlopen = yes; then
19282   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19283 else
19284
19285     lt_cv_dlopen="dyld"
19286     lt_cv_dlopen_libs=
19287     lt_cv_dlopen_self=yes
19288
19289 fi
19290
19291    ;;
19292
19293   *)
19294     echo "$as_me:$LINENO: checking for shl_load" >&5
19295 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19296 if test "${ac_cv_func_shl_load+set}" = set; then
19297   echo $ECHO_N "(cached) $ECHO_C" >&6
19298 else
19299   cat >conftest.$ac_ext <<_ACEOF
19300 /* confdefs.h.  */
19301 _ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h.  */
19305 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19307 #define shl_load innocuous_shl_load
19308
19309 /* System header to define __stub macros and hopefully few prototypes,
19310     which can conflict with char shl_load (); below.
19311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19312     <limits.h> exists even on freestanding compilers.  */
19313
19314 #ifdef __STDC__
19315 # include <limits.h>
19316 #else
19317 # include <assert.h>
19318 #endif
19319
19320 #undef shl_load
19321
19322 /* Override any gcc2 internal prototype to avoid an error.  */
19323 #ifdef __cplusplus
19324 extern "C"
19325 {
19326 #endif
19327 /* We use char because int might match the return type of a gcc2
19328    builtin and then its argument prototype would still apply.  */
19329 char shl_load ();
19330 /* The GNU C library defines this for functions which it implements
19331     to always fail with ENOSYS.  Some functions are actually named
19332     something starting with __ and the normal name is an alias.  */
19333 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19334 choke me
19335 #else
19336 char (*f) () = shl_load;
19337 #endif
19338 #ifdef __cplusplus
19339 }
19340 #endif
19341
19342 int
19343 main ()
19344 {
19345 return f != shl_load;
19346   ;
19347   return 0;
19348 }
19349 _ACEOF
19350 rm -f conftest.$ac_objext conftest$ac_exeext
19351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19352   (eval $ac_link) 2>conftest.er1
19353   ac_status=$?
19354   grep -v '^ *+' conftest.er1 >conftest.err
19355   rm -f conftest.er1
19356   cat conftest.err >&5
19357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358   (exit $ac_status); } &&
19359          { ac_try='test -z "$ac_c_werror_flag"
19360                          || test ! -s conftest.err'
19361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362   (eval $ac_try) 2>&5
19363   ac_status=$?
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); }; } &&
19366          { ac_try='test -s conftest$ac_exeext'
19367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368   (eval $ac_try) 2>&5
19369   ac_status=$?
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); }; }; then
19372   ac_cv_func_shl_load=yes
19373 else
19374   echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19376
19377 ac_cv_func_shl_load=no
19378 fi
19379 rm -f conftest.err conftest.$ac_objext \
19380       conftest$ac_exeext conftest.$ac_ext
19381 fi
19382 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19383 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19384 if test $ac_cv_func_shl_load = yes; then
19385   lt_cv_dlopen="shl_load"
19386 else
19387   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19388 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19389 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19390   echo $ECHO_N "(cached) $ECHO_C" >&6
19391 else
19392   ac_check_lib_save_LIBS=$LIBS
19393 LIBS="-ldld  $LIBS"
19394 cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h.  */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h.  */
19400
19401 /* Override any gcc2 internal prototype to avoid an error.  */
19402 #ifdef __cplusplus
19403 extern "C"
19404 #endif
19405 /* We use char because int might match the return type of a gcc2
19406    builtin and then its argument prototype would still apply.  */
19407 char shl_load ();
19408 int
19409 main ()
19410 {
19411 shl_load ();
19412   ;
19413   return 0;
19414 }
19415 _ACEOF
19416 rm -f conftest.$ac_objext conftest$ac_exeext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19418   (eval $ac_link) 2>conftest.er1
19419   ac_status=$?
19420   grep -v '^ *+' conftest.er1 >conftest.err
19421   rm -f conftest.er1
19422   cat conftest.err >&5
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); } &&
19425          { ac_try='test -z "$ac_c_werror_flag"
19426                          || test ! -s conftest.err'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; } &&
19432          { ac_try='test -s conftest$ac_exeext'
19433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434   (eval $ac_try) 2>&5
19435   ac_status=$?
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); }; }; then
19438   ac_cv_lib_dld_shl_load=yes
19439 else
19440   echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19442
19443 ac_cv_lib_dld_shl_load=no
19444 fi
19445 rm -f conftest.err conftest.$ac_objext \
19446       conftest$ac_exeext conftest.$ac_ext
19447 LIBS=$ac_check_lib_save_LIBS
19448 fi
19449 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19450 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19451 if test $ac_cv_lib_dld_shl_load = yes; then
19452   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19453 else
19454   echo "$as_me:$LINENO: checking for dlopen" >&5
19455 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19456 if test "${ac_cv_func_dlopen+set}" = set; then
19457   echo $ECHO_N "(cached) $ECHO_C" >&6
19458 else
19459   cat >conftest.$ac_ext <<_ACEOF
19460 /* confdefs.h.  */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h.  */
19465 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19467 #define dlopen innocuous_dlopen
19468
19469 /* System header to define __stub macros and hopefully few prototypes,
19470     which can conflict with char dlopen (); below.
19471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19472     <limits.h> exists even on freestanding compilers.  */
19473
19474 #ifdef __STDC__
19475 # include <limits.h>
19476 #else
19477 # include <assert.h>
19478 #endif
19479
19480 #undef dlopen
19481
19482 /* Override any gcc2 internal prototype to avoid an error.  */
19483 #ifdef __cplusplus
19484 extern "C"
19485 {
19486 #endif
19487 /* We use char because int might match the return type of a gcc2
19488    builtin and then its argument prototype would still apply.  */
19489 char dlopen ();
19490 /* The GNU C library defines this for functions which it implements
19491     to always fail with ENOSYS.  Some functions are actually named
19492     something starting with __ and the normal name is an alias.  */
19493 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19494 choke me
19495 #else
19496 char (*f) () = dlopen;
19497 #endif
19498 #ifdef __cplusplus
19499 }
19500 #endif
19501
19502 int
19503 main ()
19504 {
19505 return f != dlopen;
19506   ;
19507   return 0;
19508 }
19509 _ACEOF
19510 rm -f conftest.$ac_objext conftest$ac_exeext
19511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19512   (eval $ac_link) 2>conftest.er1
19513   ac_status=$?
19514   grep -v '^ *+' conftest.er1 >conftest.err
19515   rm -f conftest.er1
19516   cat conftest.err >&5
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); } &&
19519          { ac_try='test -z "$ac_c_werror_flag"
19520                          || test ! -s conftest.err'
19521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522   (eval $ac_try) 2>&5
19523   ac_status=$?
19524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525   (exit $ac_status); }; } &&
19526          { ac_try='test -s conftest$ac_exeext'
19527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528   (eval $ac_try) 2>&5
19529   ac_status=$?
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); }; }; then
19532   ac_cv_func_dlopen=yes
19533 else
19534   echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19536
19537 ac_cv_func_dlopen=no
19538 fi
19539 rm -f conftest.err conftest.$ac_objext \
19540       conftest$ac_exeext conftest.$ac_ext
19541 fi
19542 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19543 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19544 if test $ac_cv_func_dlopen = yes; then
19545   lt_cv_dlopen="dlopen"
19546 else
19547   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19548 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19549 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19550   echo $ECHO_N "(cached) $ECHO_C" >&6
19551 else
19552   ac_check_lib_save_LIBS=$LIBS
19553 LIBS="-ldl  $LIBS"
19554 cat >conftest.$ac_ext <<_ACEOF
19555 /* confdefs.h.  */
19556 _ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h.  */
19560
19561 /* Override any gcc2 internal prototype to avoid an error.  */
19562 #ifdef __cplusplus
19563 extern "C"
19564 #endif
19565 /* We use char because int might match the return type of a gcc2
19566    builtin and then its argument prototype would still apply.  */
19567 char dlopen ();
19568 int
19569 main ()
19570 {
19571 dlopen ();
19572   ;
19573   return 0;
19574 }
19575 _ACEOF
19576 rm -f conftest.$ac_objext conftest$ac_exeext
19577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19578   (eval $ac_link) 2>conftest.er1
19579   ac_status=$?
19580   grep -v '^ *+' conftest.er1 >conftest.err
19581   rm -f conftest.er1
19582   cat conftest.err >&5
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); } &&
19585          { ac_try='test -z "$ac_c_werror_flag"
19586                          || test ! -s conftest.err'
19587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588   (eval $ac_try) 2>&5
19589   ac_status=$?
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); }; } &&
19592          { ac_try='test -s conftest$ac_exeext'
19593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594   (eval $ac_try) 2>&5
19595   ac_status=$?
19596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597   (exit $ac_status); }; }; then
19598   ac_cv_lib_dl_dlopen=yes
19599 else
19600   echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19602
19603 ac_cv_lib_dl_dlopen=no
19604 fi
19605 rm -f conftest.err conftest.$ac_objext \
19606       conftest$ac_exeext conftest.$ac_ext
19607 LIBS=$ac_check_lib_save_LIBS
19608 fi
19609 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19610 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19611 if test $ac_cv_lib_dl_dlopen = yes; then
19612   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19613 else
19614   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19615 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19616 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19617   echo $ECHO_N "(cached) $ECHO_C" >&6
19618 else
19619   ac_check_lib_save_LIBS=$LIBS
19620 LIBS="-lsvld  $LIBS"
19621 cat >conftest.$ac_ext <<_ACEOF
19622 /* confdefs.h.  */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h.  */
19627
19628 /* Override any gcc2 internal prototype to avoid an error.  */
19629 #ifdef __cplusplus
19630 extern "C"
19631 #endif
19632 /* We use char because int might match the return type of a gcc2
19633    builtin and then its argument prototype would still apply.  */
19634 char dlopen ();
19635 int
19636 main ()
19637 {
19638 dlopen ();
19639   ;
19640   return 0;
19641 }
19642 _ACEOF
19643 rm -f conftest.$ac_objext conftest$ac_exeext
19644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19645   (eval $ac_link) 2>conftest.er1
19646   ac_status=$?
19647   grep -v '^ *+' conftest.er1 >conftest.err
19648   rm -f conftest.er1
19649   cat conftest.err >&5
19650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); } &&
19652          { ac_try='test -z "$ac_c_werror_flag"
19653                          || test ! -s conftest.err'
19654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655   (eval $ac_try) 2>&5
19656   ac_status=$?
19657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658   (exit $ac_status); }; } &&
19659          { ac_try='test -s conftest$ac_exeext'
19660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661   (eval $ac_try) 2>&5
19662   ac_status=$?
19663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664   (exit $ac_status); }; }; then
19665   ac_cv_lib_svld_dlopen=yes
19666 else
19667   echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19669
19670 ac_cv_lib_svld_dlopen=no
19671 fi
19672 rm -f conftest.err conftest.$ac_objext \
19673       conftest$ac_exeext conftest.$ac_ext
19674 LIBS=$ac_check_lib_save_LIBS
19675 fi
19676 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19677 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19678 if test $ac_cv_lib_svld_dlopen = yes; then
19679   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19680 else
19681   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19682 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19683 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19684   echo $ECHO_N "(cached) $ECHO_C" >&6
19685 else
19686   ac_check_lib_save_LIBS=$LIBS
19687 LIBS="-ldld  $LIBS"
19688 cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h.  */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h.  */
19694
19695 /* Override any gcc2 internal prototype to avoid an error.  */
19696 #ifdef __cplusplus
19697 extern "C"
19698 #endif
19699 /* We use char because int might match the return type of a gcc2
19700    builtin and then its argument prototype would still apply.  */
19701 char dld_link ();
19702 int
19703 main ()
19704 {
19705 dld_link ();
19706   ;
19707   return 0;
19708 }
19709 _ACEOF
19710 rm -f conftest.$ac_objext conftest$ac_exeext
19711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19712   (eval $ac_link) 2>conftest.er1
19713   ac_status=$?
19714   grep -v '^ *+' conftest.er1 >conftest.err
19715   rm -f conftest.er1
19716   cat conftest.err >&5
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); } &&
19719          { ac_try='test -z "$ac_c_werror_flag"
19720                          || test ! -s conftest.err'
19721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722   (eval $ac_try) 2>&5
19723   ac_status=$?
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); }; } &&
19726          { ac_try='test -s conftest$ac_exeext'
19727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728   (eval $ac_try) 2>&5
19729   ac_status=$?
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); }; }; then
19732   ac_cv_lib_dld_dld_link=yes
19733 else
19734   echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19736
19737 ac_cv_lib_dld_dld_link=no
19738 fi
19739 rm -f conftest.err conftest.$ac_objext \
19740       conftest$ac_exeext conftest.$ac_ext
19741 LIBS=$ac_check_lib_save_LIBS
19742 fi
19743 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19744 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19745 if test $ac_cv_lib_dld_dld_link = yes; then
19746   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19747 fi
19748
19749
19750 fi
19751
19752
19753 fi
19754
19755
19756 fi
19757
19758
19759 fi
19760
19761
19762 fi
19763
19764     ;;
19765   esac
19766
19767   if test "x$lt_cv_dlopen" != xno; then
19768     enable_dlopen=yes
19769   else
19770     enable_dlopen=no
19771   fi
19772
19773   case $lt_cv_dlopen in
19774   dlopen)
19775     save_CPPFLAGS="$CPPFLAGS"
19776     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19777
19778     save_LDFLAGS="$LDFLAGS"
19779     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19780
19781     save_LIBS="$LIBS"
19782     LIBS="$lt_cv_dlopen_libs $LIBS"
19783
19784     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19785 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19786 if test "${lt_cv_dlopen_self+set}" = set; then
19787   echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789           if test "$cross_compiling" = yes; then :
19790   lt_cv_dlopen_self=cross
19791 else
19792   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19793   lt_status=$lt_dlunknown
19794   cat > conftest.$ac_ext <<EOF
19795 #line 19795 "configure"
19796 #include "confdefs.h"
19797
19798 #if HAVE_DLFCN_H
19799 #include <dlfcn.h>
19800 #endif
19801
19802 #include <stdio.h>
19803
19804 #ifdef RTLD_GLOBAL
19805 #  define LT_DLGLOBAL           RTLD_GLOBAL
19806 #else
19807 #  ifdef DL_GLOBAL
19808 #    define LT_DLGLOBAL         DL_GLOBAL
19809 #  else
19810 #    define LT_DLGLOBAL         0
19811 #  endif
19812 #endif
19813
19814 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19815    find out it does not work in some platform. */
19816 #ifndef LT_DLLAZY_OR_NOW
19817 #  ifdef RTLD_LAZY
19818 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19819 #  else
19820 #    ifdef DL_LAZY
19821 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19822 #    else
19823 #      ifdef RTLD_NOW
19824 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19825 #      else
19826 #        ifdef DL_NOW
19827 #          define LT_DLLAZY_OR_NOW      DL_NOW
19828 #        else
19829 #          define LT_DLLAZY_OR_NOW      0
19830 #        endif
19831 #      endif
19832 #    endif
19833 #  endif
19834 #endif
19835
19836 #ifdef __cplusplus
19837 extern "C" void exit (int);
19838 #endif
19839
19840 void fnord() { int i=42;}
19841 int main ()
19842 {
19843   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19844   int status = $lt_dlunknown;
19845
19846   if (self)
19847     {
19848       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19849       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19850       /* dlclose (self); */
19851     }
19852
19853     exit (status);
19854 }
19855 EOF
19856   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19857   (eval $ac_link) 2>&5
19858   ac_status=$?
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19861     (./conftest; exit; ) >&5 2>/dev/null
19862     lt_status=$?
19863     case x$lt_status in
19864       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19865       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19866       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19867     esac
19868   else :
19869     # compilation failed
19870     lt_cv_dlopen_self=no
19871   fi
19872 fi
19873 rm -fr conftest*
19874
19875
19876 fi
19877 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19878 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19879
19880     if test "x$lt_cv_dlopen_self" = xyes; then
19881       LDFLAGS="$LDFLAGS $link_static_flag"
19882       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19883 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19884 if test "${lt_cv_dlopen_self_static+set}" = set; then
19885   echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887           if test "$cross_compiling" = yes; then :
19888   lt_cv_dlopen_self_static=cross
19889 else
19890   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19891   lt_status=$lt_dlunknown
19892   cat > conftest.$ac_ext <<EOF
19893 #line 19893 "configure"
19894 #include "confdefs.h"
19895
19896 #if HAVE_DLFCN_H
19897 #include <dlfcn.h>
19898 #endif
19899
19900 #include <stdio.h>
19901
19902 #ifdef RTLD_GLOBAL
19903 #  define LT_DLGLOBAL           RTLD_GLOBAL
19904 #else
19905 #  ifdef DL_GLOBAL
19906 #    define LT_DLGLOBAL         DL_GLOBAL
19907 #  else
19908 #    define LT_DLGLOBAL         0
19909 #  endif
19910 #endif
19911
19912 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19913    find out it does not work in some platform. */
19914 #ifndef LT_DLLAZY_OR_NOW
19915 #  ifdef RTLD_LAZY
19916 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19917 #  else
19918 #    ifdef DL_LAZY
19919 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19920 #    else
19921 #      ifdef RTLD_NOW
19922 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19923 #      else
19924 #        ifdef DL_NOW
19925 #          define LT_DLLAZY_OR_NOW      DL_NOW
19926 #        else
19927 #          define LT_DLLAZY_OR_NOW      0
19928 #        endif
19929 #      endif
19930 #    endif
19931 #  endif
19932 #endif
19933
19934 #ifdef __cplusplus
19935 extern "C" void exit (int);
19936 #endif
19937
19938 void fnord() { int i=42;}
19939 int main ()
19940 {
19941   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19942   int status = $lt_dlunknown;
19943
19944   if (self)
19945     {
19946       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19947       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19948       /* dlclose (self); */
19949     }
19950
19951     exit (status);
19952 }
19953 EOF
19954   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19955   (eval $ac_link) 2>&5
19956   ac_status=$?
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19959     (./conftest; exit; ) >&5 2>/dev/null
19960     lt_status=$?
19961     case x$lt_status in
19962       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19963       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19964       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19965     esac
19966   else :
19967     # compilation failed
19968     lt_cv_dlopen_self_static=no
19969   fi
19970 fi
19971 rm -fr conftest*
19972
19973
19974 fi
19975 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19976 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19977     fi
19978
19979     CPPFLAGS="$save_CPPFLAGS"
19980     LDFLAGS="$save_LDFLAGS"
19981     LIBS="$save_LIBS"
19982     ;;
19983   esac
19984
19985   case $lt_cv_dlopen_self in
19986   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19987   *) enable_dlopen_self=unknown ;;
19988   esac
19989
19990   case $lt_cv_dlopen_self_static in
19991   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19992   *) enable_dlopen_self_static=unknown ;;
19993   esac
19994 fi
19995
19996
19997 # Report which librarie types wil actually be built
19998 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19999 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20000 echo "$as_me:$LINENO: result: $can_build_shared" >&5
20001 echo "${ECHO_T}$can_build_shared" >&6
20002
20003 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20004 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20005 test "$can_build_shared" = "no" && enable_shared=no
20006
20007 # On AIX, shared libraries and static libraries use the same namespace, and
20008 # are all built from PIC.
20009 case $host_os in
20010 aix3*)
20011   test "$enable_shared" = yes && enable_static=no
20012   if test -n "$RANLIB"; then
20013     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20014     postinstall_cmds='$RANLIB $lib'
20015   fi
20016   ;;
20017
20018 aix4* | aix5*)
20019   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20020     test "$enable_shared" = yes && enable_static=no
20021   fi
20022     ;;
20023 esac
20024 echo "$as_me:$LINENO: result: $enable_shared" >&5
20025 echo "${ECHO_T}$enable_shared" >&6
20026
20027 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20028 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20029 # Make sure either enable_shared or enable_static is yes.
20030 test "$enable_shared" = yes || enable_static=yes
20031 echo "$as_me:$LINENO: result: $enable_static" >&5
20032 echo "${ECHO_T}$enable_static" >&6
20033
20034 # The else clause should only fire when bootstrapping the
20035 # libtool distribution, otherwise you forgot to ship ltmain.sh
20036 # with your package, and you will get complaints that there are
20037 # no rules to generate ltmain.sh.
20038 if test -f "$ltmain"; then
20039   # See if we are running on zsh, and set the options which allow our commands through
20040   # without removal of \ escapes.
20041   if test -n "${ZSH_VERSION+set}" ; then
20042     setopt NO_GLOB_SUBST
20043   fi
20044   # Now quote all the things that may contain metacharacters while being
20045   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20046   # variables and quote the copies for generation of the libtool script.
20047   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20048     SED SHELL STRIP \
20049     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20050     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20051     deplibs_check_method reload_flag reload_cmds need_locks \
20052     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20053     lt_cv_sys_global_symbol_to_c_name_address \
20054     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20055     old_postinstall_cmds old_postuninstall_cmds \
20056     compiler \
20057     CC \
20058     LD \
20059     lt_prog_compiler_wl \
20060     lt_prog_compiler_pic \
20061     lt_prog_compiler_static \
20062     lt_prog_compiler_no_builtin_flag \
20063     export_dynamic_flag_spec \
20064     thread_safe_flag_spec \
20065     whole_archive_flag_spec \
20066     enable_shared_with_static_runtimes \
20067     old_archive_cmds \
20068     old_archive_from_new_cmds \
20069     predep_objects \
20070     postdep_objects \
20071     predeps \
20072     postdeps \
20073     compiler_lib_search_path \
20074     archive_cmds \
20075     archive_expsym_cmds \
20076     postinstall_cmds \
20077     postuninstall_cmds \
20078     old_archive_from_expsyms_cmds \
20079     allow_undefined_flag \
20080     no_undefined_flag \
20081     export_symbols_cmds \
20082     hardcode_libdir_flag_spec \
20083     hardcode_libdir_flag_spec_ld \
20084     hardcode_libdir_separator \
20085     hardcode_automatic \
20086     module_cmds \
20087     module_expsym_cmds \
20088     lt_cv_prog_compiler_c_o \
20089     exclude_expsyms \
20090     include_expsyms; do
20091
20092     case $var in
20093     old_archive_cmds | \
20094     old_archive_from_new_cmds | \
20095     archive_cmds | \
20096     archive_expsym_cmds | \
20097     module_cmds | \
20098     module_expsym_cmds | \
20099     old_archive_from_expsyms_cmds | \
20100     export_symbols_cmds | \
20101     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20102     postinstall_cmds | postuninstall_cmds | \
20103     old_postinstall_cmds | old_postuninstall_cmds | \
20104     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20105       # Double-quote double-evaled strings.
20106       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20107       ;;
20108     *)
20109       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20110       ;;
20111     esac
20112   done
20113
20114   case $lt_echo in
20115   *'\$0 --fallback-echo"')
20116     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20117     ;;
20118   esac
20119
20120 cfgfile="${ofile}T"
20121   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
20122   $rm -f "$cfgfile"
20123   { echo "$as_me:$LINENO: creating $ofile" >&5
20124 echo "$as_me: creating $ofile" >&6;}
20125
20126   cat <<__EOF__ >> "$cfgfile"
20127 #! $SHELL
20128
20129 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20130 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
20131 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20132 #
20133 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
20134 # Free Software Foundation, Inc.
20135 #
20136 # This file is part of GNU Libtool:
20137 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
20138 #
20139 # This program is free software; you can redistribute it and/or modify
20140 # it under the terms of the GNU General Public License as published by
20141 # the Free Software Foundation; either version 2 of the License, or
20142 # (at your option) any later version.
20143 #
20144 # This program is distributed in the hope that it will be useful, but
20145 # WITHOUT ANY WARRANTY; without even the implied warranty of
20146 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20147 # General Public License for more details.
20148 #
20149 # You should have received a copy of the GNU General Public License
20150 # along with this program; if not, write to the Free Software
20151 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20152 #
20153 # As a special exception to the GNU General Public License, if you
20154 # distribute this file as part of a program that contains a
20155 # configuration script generated by Autoconf, you may include it under
20156 # the same distribution terms that you use for the rest of that program.
20157
20158 # A sed program that does not truncate output.
20159 SED=$lt_SED
20160
20161 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20162 Xsed="$SED -e 1s/^X//"
20163
20164 # The HP-UX ksh and POSIX shell print the target directory to stdout
20165 # if CDPATH is set.
20166 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20167
20168 # The names of the tagged configurations supported by this script.
20169 available_tags=
20170
20171 # ### BEGIN LIBTOOL CONFIG
20172
20173 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20174
20175 # Shell to use when invoking shell scripts.
20176 SHELL=$lt_SHELL
20177
20178 # Whether or not to build shared libraries.
20179 build_libtool_libs=$enable_shared
20180
20181 # Whether or not to build static libraries.
20182 build_old_libs=$enable_static
20183
20184 # Whether or not to add -lc for building shared libraries.
20185 build_libtool_need_lc=$archive_cmds_need_lc
20186
20187 # Whether or not to disallow shared libs when runtime libs are static
20188 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20189
20190 # Whether or not to optimize for fast installation.
20191 fast_install=$enable_fast_install
20192
20193 # The host system.
20194 host_alias=$host_alias
20195 host=$host
20196 host_os=$host_os
20197
20198 # The build system.
20199 build_alias=$build_alias
20200 build=$build
20201 build_os=$build_os
20202
20203 # An echo program that does not interpret backslashes.
20204 echo=$lt_echo
20205
20206 # The archiver.
20207 AR=$lt_AR
20208 AR_FLAGS=$lt_AR_FLAGS
20209
20210 # A C compiler.
20211 LTCC=$lt_LTCC
20212
20213 # A language-specific compiler.
20214 CC=$lt_compiler
20215
20216 # Is the compiler the GNU C compiler?
20217 with_gcc=$GCC
20218
20219 # An ERE matcher.
20220 EGREP=$lt_EGREP
20221
20222 # The linker used to build libraries.
20223 LD=$lt_LD
20224
20225 # Whether we need hard or soft links.
20226 LN_S=$lt_LN_S
20227
20228 # A BSD-compatible nm program.
20229 NM=$lt_NM
20230
20231 # A symbol stripping program
20232 STRIP=$lt_STRIP
20233
20234 # Used to examine libraries when file_magic_cmd begins "file"
20235 MAGIC_CMD=$MAGIC_CMD
20236
20237 # Used on cygwin: DLL creation program.
20238 DLLTOOL="$DLLTOOL"
20239
20240 # Used on cygwin: object dumper.
20241 OBJDUMP="$OBJDUMP"
20242
20243 # Used on cygwin: assembler.
20244 AS="$AS"
20245
20246 # The name of the directory that contains temporary libtool files.
20247 objdir=$objdir
20248
20249 # How to create reloadable object files.
20250 reload_flag=$lt_reload_flag
20251 reload_cmds=$lt_reload_cmds
20252
20253 # How to pass a linker flag through the compiler.
20254 wl=$lt_lt_prog_compiler_wl
20255
20256 # Object file suffix (normally "o").
20257 objext="$ac_objext"
20258
20259 # Old archive suffix (normally "a").
20260 libext="$libext"
20261
20262 # Shared library suffix (normally ".so").
20263 shrext_cmds='$shrext_cmds'
20264
20265 # Executable file suffix (normally "").
20266 exeext="$exeext"
20267
20268 # Additional compiler flags for building library objects.
20269 pic_flag=$lt_lt_prog_compiler_pic
20270 pic_mode=$pic_mode
20271
20272 # What is the maximum length of a command?
20273 max_cmd_len=$lt_cv_sys_max_cmd_len
20274
20275 # Does compiler simultaneously support -c and -o options?
20276 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20277
20278 # Must we lock files when doing compilation?
20279 need_locks=$lt_need_locks
20280
20281 # Do we need the lib prefix for modules?
20282 need_lib_prefix=$need_lib_prefix
20283
20284 # Do we need a version for libraries?
20285 need_version=$need_version
20286
20287 # Whether dlopen is supported.
20288 dlopen_support=$enable_dlopen
20289
20290 # Whether dlopen of programs is supported.
20291 dlopen_self=$enable_dlopen_self
20292
20293 # Whether dlopen of statically linked programs is supported.
20294 dlopen_self_static=$enable_dlopen_self_static
20295
20296 # Compiler flag to prevent dynamic linking.
20297 link_static_flag=$lt_lt_prog_compiler_static
20298
20299 # Compiler flag to turn off builtin functions.
20300 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20301
20302 # Compiler flag to allow reflexive dlopens.
20303 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20304
20305 # Compiler flag to generate shared objects directly from archives.
20306 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20307
20308 # Compiler flag to generate thread-safe objects.
20309 thread_safe_flag_spec=$lt_thread_safe_flag_spec
20310
20311 # Library versioning type.
20312 version_type=$version_type
20313
20314 # Format of library name prefix.
20315 libname_spec=$lt_libname_spec
20316
20317 # List of archive names.  First name is the real one, the rest are links.
20318 # The last name is the one that the linker finds with -lNAME.
20319 library_names_spec=$lt_library_names_spec
20320
20321 # The coded name of the library, if different from the real name.
20322 soname_spec=$lt_soname_spec
20323
20324 # Commands used to build and install an old-style archive.
20325 RANLIB=$lt_RANLIB
20326 old_archive_cmds=$lt_old_archive_cmds
20327 old_postinstall_cmds=$lt_old_postinstall_cmds
20328 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20329
20330 # Create an old-style archive from a shared archive.
20331 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20332
20333 # Create a temporary old-style archive to link instead of a shared archive.
20334 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20335
20336 # Commands used to build and install a shared archive.
20337 archive_cmds=$lt_archive_cmds
20338 archive_expsym_cmds=$lt_archive_expsym_cmds
20339 postinstall_cmds=$lt_postinstall_cmds
20340 postuninstall_cmds=$lt_postuninstall_cmds
20341
20342 # Commands used to build a loadable module (assumed same as above if empty)
20343 module_cmds=$lt_module_cmds
20344 module_expsym_cmds=$lt_module_expsym_cmds
20345
20346 # Commands to strip libraries.
20347 old_striplib=$lt_old_striplib
20348 striplib=$lt_striplib
20349
20350 # Dependencies to place before the objects being linked to create a
20351 # shared library.
20352 predep_objects=$lt_predep_objects
20353
20354 # Dependencies to place after the objects being linked to create a
20355 # shared library.
20356 postdep_objects=$lt_postdep_objects
20357
20358 # Dependencies to place before the objects being linked to create a
20359 # shared library.
20360 predeps=$lt_predeps
20361
20362 # Dependencies to place after the objects being linked to create a
20363 # shared library.
20364 postdeps=$lt_postdeps
20365
20366 # The library search path used internally by the compiler when linking
20367 # a shared library.
20368 compiler_lib_search_path=$lt_compiler_lib_search_path
20369
20370 # Method to check whether dependent libraries are shared objects.
20371 deplibs_check_method=$lt_deplibs_check_method
20372
20373 # Command to use when deplibs_check_method == file_magic.
20374 file_magic_cmd=$lt_file_magic_cmd
20375
20376 # Flag that allows shared libraries with undefined symbols to be built.
20377 allow_undefined_flag=$lt_allow_undefined_flag
20378
20379 # Flag that forces no undefined symbols.
20380 no_undefined_flag=$lt_no_undefined_flag
20381
20382 # Commands used to finish a libtool library installation in a directory.
20383 finish_cmds=$lt_finish_cmds
20384
20385 # Same as above, but a single script fragment to be evaled but not shown.
20386 finish_eval=$lt_finish_eval
20387
20388 # Take the output of nm and produce a listing of raw symbols and C names.
20389 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20390
20391 # Transform the output of nm in a proper C declaration
20392 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20393
20394 # Transform the output of nm in a C name address pair
20395 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20396
20397 # This is the shared library runtime path variable.
20398 runpath_var=$runpath_var
20399
20400 # This is the shared library path variable.
20401 shlibpath_var=$shlibpath_var
20402
20403 # Is shlibpath searched before the hard-coded library search path?
20404 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20405
20406 # How to hardcode a shared library path into an executable.
20407 hardcode_action=$hardcode_action
20408
20409 # Whether we should hardcode library paths into libraries.
20410 hardcode_into_libs=$hardcode_into_libs
20411
20412 # Flag to hardcode \$libdir into a binary during linking.
20413 # This must work even if \$libdir does not exist.
20414 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20415
20416 # If ld is used when linking, flag to hardcode \$libdir into
20417 # a binary during linking. This must work even if \$libdir does
20418 # not exist.
20419 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20420
20421 # Whether we need a single -rpath flag with a separated argument.
20422 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20423
20424 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20425 # resulting binary.
20426 hardcode_direct=$hardcode_direct
20427
20428 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20429 # resulting binary.
20430 hardcode_minus_L=$hardcode_minus_L
20431
20432 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20433 # the resulting binary.
20434 hardcode_shlibpath_var=$hardcode_shlibpath_var
20435
20436 # Set to yes if building a shared library automatically hardcodes DIR into the library
20437 # and all subsequent libraries and executables linked against it.
20438 hardcode_automatic=$hardcode_automatic
20439
20440 # Variables whose values should be saved in libtool wrapper scripts and
20441 # restored at relink time.
20442 variables_saved_for_relink="$variables_saved_for_relink"
20443
20444 # Whether libtool must link a program against all its dependency libraries.
20445 link_all_deplibs=$link_all_deplibs
20446
20447 # Compile-time system search path for libraries
20448 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20449
20450 # Run-time system search path for libraries
20451 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20452
20453 # Fix the shell variable \$srcfile for the compiler.
20454 fix_srcfile_path="$fix_srcfile_path"
20455
20456 # Set to yes if exported symbols are required.
20457 always_export_symbols=$always_export_symbols
20458
20459 # The commands to list exported symbols.
20460 export_symbols_cmds=$lt_export_symbols_cmds
20461
20462 # The commands to extract the exported symbol list from a shared archive.
20463 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20464
20465 # Symbols that should not be listed in the preloaded symbols.
20466 exclude_expsyms=$lt_exclude_expsyms
20467
20468 # Symbols that must always be exported.
20469 include_expsyms=$lt_include_expsyms
20470
20471 # ### END LIBTOOL CONFIG
20472
20473 __EOF__
20474
20475
20476   case $host_os in
20477   aix3*)
20478     cat <<\EOF >> "$cfgfile"
20479
20480 # AIX sometimes has problems with the GCC collect2 program.  For some
20481 # reason, if we set the COLLECT_NAMES environment variable, the problems
20482 # vanish in a puff of smoke.
20483 if test "X${COLLECT_NAMES+set}" != Xset; then
20484   COLLECT_NAMES=
20485   export COLLECT_NAMES
20486 fi
20487 EOF
20488     ;;
20489   esac
20490
20491   # We use sed instead of cat because bash on DJGPP gets confused if
20492   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20493   # text mode, it properly converts lines to CR/LF.  This bash problem
20494   # is reportedly fixed, but why not run on old versions too?
20495   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
20496
20497   mv -f "$cfgfile" "$ofile" || \
20498     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20499   chmod +x "$ofile"
20500
20501 else
20502   # If there is no Makefile yet, we rely on a make rule to execute
20503   # `config.status --recheck' to rerun these tests and create the
20504   # libtool script then.
20505   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20506   if test -f "$ltmain_in"; then
20507     test -f Makefile && make "$ltmain"
20508   fi
20509 fi
20510
20511
20512 ac_ext=c
20513 ac_cpp='$CPP $CPPFLAGS'
20514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20517
20518 CC="$lt_save_CC"
20519
20520
20521 # Check whether --with-tags or --without-tags was given.
20522 if test "${with_tags+set}" = set; then
20523   withval="$with_tags"
20524   tagnames="$withval"
20525 fi;
20526
20527 if test -f "$ltmain" && test -n "$tagnames"; then
20528   if test ! -f "${ofile}"; then
20529     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
20530 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
20531   fi
20532
20533   if test -z "$LTCC"; then
20534     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
20535     if test -z "$LTCC"; then
20536       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
20537 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
20538     else
20539       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
20540 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
20541     fi
20542   fi
20543
20544   # Extract list of available tagged configurations in $ofile.
20545   # Note that this assumes the entire list is on one line.
20546   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
20547
20548   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
20549   for tagname in $tagnames; do
20550     IFS="$lt_save_ifs"
20551     # Check whether tagname contains only valid characters
20552     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
20553     "") ;;
20554     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
20555 echo "$as_me: error: invalid tag name: $tagname" >&2;}
20556    { (exit 1); exit 1; }; }
20557         ;;
20558     esac
20559
20560     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
20561     then
20562       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
20563 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
20564    { (exit 1); exit 1; }; }
20565     fi
20566
20567     # Update the list of available tags.
20568     if test -n "$tagname"; then
20569       echo appending configuration tag \"$tagname\" to $ofile
20570
20571       case $tagname in
20572       CXX)
20573         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20574             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20575             (test "X$CXX" != "Xg++"))) ; then
20576           ac_ext=cc
20577 ac_cpp='$CXXCPP $CPPFLAGS'
20578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20581
20582
20583
20584
20585 archive_cmds_need_lc_CXX=no
20586 allow_undefined_flag_CXX=
20587 always_export_symbols_CXX=no
20588 archive_expsym_cmds_CXX=
20589 export_dynamic_flag_spec_CXX=
20590 hardcode_direct_CXX=no
20591 hardcode_libdir_flag_spec_CXX=
20592 hardcode_libdir_flag_spec_ld_CXX=
20593 hardcode_libdir_separator_CXX=
20594 hardcode_minus_L_CXX=no
20595 hardcode_automatic_CXX=no
20596 module_cmds_CXX=
20597 module_expsym_cmds_CXX=
20598 link_all_deplibs_CXX=unknown
20599 old_archive_cmds_CXX=$old_archive_cmds
20600 no_undefined_flag_CXX=
20601 whole_archive_flag_spec_CXX=
20602 enable_shared_with_static_runtimes_CXX=no
20603
20604 # Dependencies to place before and after the object being linked:
20605 predep_objects_CXX=
20606 postdep_objects_CXX=
20607 predeps_CXX=
20608 postdeps_CXX=
20609 compiler_lib_search_path_CXX=
20610
20611 # Source file extension for C++ test sources.
20612 ac_ext=cpp
20613
20614 # Object file extension for compiled C++ test sources.
20615 objext=o
20616 objext_CXX=$objext
20617
20618 # Code to be used in simple compile tests
20619 lt_simple_compile_test_code="int some_variable = 0;\n"
20620
20621 # Code to be used in simple link tests
20622 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
20623
20624 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20625
20626 # If no C compiler was specified, use CC.
20627 LTCC=${LTCC-"$CC"}
20628
20629 # Allow CC to be a program name with arguments.
20630 compiler=$CC
20631
20632
20633 # save warnings/boilerplate of simple test code
20634 ac_outfile=conftest.$ac_objext
20635 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20636 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20637 _lt_compiler_boilerplate=`cat conftest.err`
20638 $rm conftest*
20639
20640 ac_outfile=conftest.$ac_objext
20641 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20642 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20643 _lt_linker_boilerplate=`cat conftest.err`
20644 $rm conftest*
20645
20646
20647 # Allow CC to be a program name with arguments.
20648 lt_save_CC=$CC
20649 lt_save_LD=$LD
20650 lt_save_GCC=$GCC
20651 GCC=$GXX
20652 lt_save_with_gnu_ld=$with_gnu_ld
20653 lt_save_path_LD=$lt_cv_path_LD
20654 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20655   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20656 else
20657   unset lt_cv_prog_gnu_ld
20658 fi
20659 if test -n "${lt_cv_path_LDCXX+set}"; then
20660   lt_cv_path_LD=$lt_cv_path_LDCXX
20661 else
20662   unset lt_cv_path_LD
20663 fi
20664 test -z "${LDCXX+set}" || LD=$LDCXX
20665 CC=${CXX-"c++"}
20666 compiler=$CC
20667 compiler_CXX=$CC
20668 for cc_temp in $compiler""; do
20669   case $cc_temp in
20670     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20671     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20672     \-*) ;;
20673     *) break;;
20674   esac
20675 done
20676 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20677
20678
20679 # We don't want -fno-exception wen compiling C++ code, so set the
20680 # no_builtin_flag separately
20681 if test "$GXX" = yes; then
20682   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20683 else
20684   lt_prog_compiler_no_builtin_flag_CXX=
20685 fi
20686
20687 if test "$GXX" = yes; then
20688   # Set up default GNU C++ configuration
20689
20690
20691 # Check whether --with-gnu-ld or --without-gnu-ld was given.
20692 if test "${with_gnu_ld+set}" = set; then
20693   withval="$with_gnu_ld"
20694   test "$withval" = no || with_gnu_ld=yes
20695 else
20696   with_gnu_ld=no
20697 fi;
20698 ac_prog=ld
20699 if test "$GCC" = yes; then
20700   # Check if gcc -print-prog-name=ld gives a path.
20701   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
20702 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
20703   case $host in
20704   *-*-mingw*)
20705     # gcc leaves a trailing carriage return which upsets mingw
20706     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20707   *)
20708     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20709   esac
20710   case $ac_prog in
20711     # Accept absolute paths.
20712     [\\/]* | ?:[\\/]*)
20713       re_direlt='/[^/][^/]*/\.\./'
20714       # Canonicalize the pathname of ld
20715       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
20716       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20717         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
20718       done
20719       test -z "$LD" && LD="$ac_prog"
20720       ;;
20721   "")
20722     # If it fails, then pretend we aren't using GCC.
20723     ac_prog=ld
20724     ;;
20725   *)
20726     # If it is relative, then search for the first ld in PATH.
20727     with_gnu_ld=unknown
20728     ;;
20729   esac
20730 elif test "$with_gnu_ld" = yes; then
20731   echo "$as_me:$LINENO: checking for GNU ld" >&5
20732 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
20733 else
20734   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20735 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
20736 fi
20737 if test "${lt_cv_path_LD+set}" = set; then
20738   echo $ECHO_N "(cached) $ECHO_C" >&6
20739 else
20740   if test -z "$LD"; then
20741   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20742   for ac_dir in $PATH; do
20743     IFS="$lt_save_ifs"
20744     test -z "$ac_dir" && ac_dir=.
20745     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20746       lt_cv_path_LD="$ac_dir/$ac_prog"
20747       # Check to see if the program is GNU ld.  I'd rather use --version,
20748       # but apparently some variants of GNU ld only accept -v.
20749       # Break only if it was the GNU/non-GNU ld that we prefer.
20750       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20751       *GNU* | *'with BFD'*)
20752         test "$with_gnu_ld" != no && break
20753         ;;
20754       *)
20755         test "$with_gnu_ld" != yes && break
20756         ;;
20757       esac
20758     fi
20759   done
20760   IFS="$lt_save_ifs"
20761 else
20762   lt_cv_path_LD="$LD" # Let the user override the test with a path.
20763 fi
20764 fi
20765
20766 LD="$lt_cv_path_LD"
20767 if test -n "$LD"; then
20768   echo "$as_me:$LINENO: result: $LD" >&5
20769 echo "${ECHO_T}$LD" >&6
20770 else
20771   echo "$as_me:$LINENO: result: no" >&5
20772 echo "${ECHO_T}no" >&6
20773 fi
20774 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20775 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20776    { (exit 1); exit 1; }; }
20777 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20778 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
20779 if test "${lt_cv_prog_gnu_ld+set}" = set; then
20780   echo $ECHO_N "(cached) $ECHO_C" >&6
20781 else
20782   # I'd rather use --version here, but apparently some GNU lds only accept -v.
20783 case `$LD -v 2>&1 </dev/null` in
20784 *GNU* | *'with BFD'*)
20785   lt_cv_prog_gnu_ld=yes
20786   ;;
20787 *)
20788   lt_cv_prog_gnu_ld=no
20789   ;;
20790 esac
20791 fi
20792 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
20793 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
20794 with_gnu_ld=$lt_cv_prog_gnu_ld
20795
20796
20797
20798   # Check if GNU C++ uses GNU ld as the underlying linker, since the
20799   # archiving commands below assume that GNU ld is being used.
20800   if test "$with_gnu_ld" = yes; then
20801     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20802     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'
20803
20804     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20805     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20806
20807     # If archive_cmds runs LD, not CC, wlarc should be empty
20808     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20809     #     investigate it a little bit more. (MM)
20810     wlarc='${wl}'
20811
20812     # ancient GNU ld didn't support --whole-archive et. al.
20813     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
20814         grep 'no-whole-archive' > /dev/null; then
20815       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20816     else
20817       whole_archive_flag_spec_CXX=
20818     fi
20819   else
20820     with_gnu_ld=no
20821     wlarc=
20822
20823     # A generic and very simple default shared library creation
20824     # command for GNU C++ for the case where it uses the native
20825     # linker, instead of GNU ld.  If possible, this setting should
20826     # overridden to take advantage of the native linker features on
20827     # the platform it is being used on.
20828     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20829   fi
20830
20831   # Commands to make compiler produce verbose output that lists
20832   # what "hidden" libraries, object files and flags are used when
20833   # linking a shared library.
20834   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
20835
20836 else
20837   GXX=no
20838   with_gnu_ld=no
20839   wlarc=
20840 fi
20841
20842 # PORTME: fill in a description of your system's C++ link characteristics
20843 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20844 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20845 ld_shlibs_CXX=yes
20846 case $host_os in
20847   aix3*)
20848     # FIXME: insert proper C++ library support
20849     ld_shlibs_CXX=no
20850     ;;
20851   aix4* | aix5*)
20852     if test "$host_cpu" = ia64; then
20853       # On IA64, the linker does run time linking by default, so we don't
20854       # have to do anything special.
20855       aix_use_runtimelinking=no
20856       exp_sym_flag='-Bexport'
20857       no_entry_flag=""
20858     else
20859       aix_use_runtimelinking=no
20860
20861       # Test if we are trying to use run time linking or normal
20862       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20863       # need to do runtime linking.
20864       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20865         for ld_flag in $LDFLAGS; do
20866           case $ld_flag in
20867           *-brtl*)
20868             aix_use_runtimelinking=yes
20869             break
20870             ;;
20871           esac
20872         done
20873       esac
20874
20875       exp_sym_flag='-bexport'
20876       no_entry_flag='-bnoentry'
20877     fi
20878
20879     # When large executables or shared objects are built, AIX ld can
20880     # have problems creating the table of contents.  If linking a library
20881     # or program results in "error TOC overflow" add -mminimal-toc to
20882     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20883     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20884
20885     archive_cmds_CXX=''
20886     hardcode_direct_CXX=yes
20887     hardcode_libdir_separator_CXX=':'
20888     link_all_deplibs_CXX=yes
20889
20890     if test "$GXX" = yes; then
20891       case $host_os in aix4.[012]|aix4.[012].*)
20892       # We only want to do this on AIX 4.2 and lower, the check
20893       # below for broken collect2 doesn't work under 4.3+
20894         collect2name=`${CC} -print-prog-name=collect2`
20895         if test -f "$collect2name" && \
20896            strings "$collect2name" | grep resolve_lib_name >/dev/null
20897         then
20898           # We have reworked collect2
20899           hardcode_direct_CXX=yes
20900         else
20901           # We have old collect2
20902           hardcode_direct_CXX=unsupported
20903           # It fails to find uninstalled libraries when the uninstalled
20904           # path is not listed in the libpath.  Setting hardcode_minus_L
20905           # to unsupported forces relinking
20906           hardcode_minus_L_CXX=yes
20907           hardcode_libdir_flag_spec_CXX='-L$libdir'
20908           hardcode_libdir_separator_CXX=
20909         fi
20910       esac
20911       shared_flag='-shared'
20912       if test "$aix_use_runtimelinking" = yes; then
20913         shared_flag="$shared_flag "'${wl}-G'
20914       fi
20915     else
20916       # not using gcc
20917       if test "$host_cpu" = ia64; then
20918         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20919         # chokes on -Wl,-G. The following line is correct:
20920         shared_flag='-G'
20921       else
20922         if test "$aix_use_runtimelinking" = yes; then
20923           shared_flag='${wl}-G'
20924         else
20925           shared_flag='${wl}-bM:SRE'
20926         fi
20927       fi
20928     fi
20929
20930     # It seems that -bexpall does not export symbols beginning with
20931     # underscore (_), so it is better to generate a list of symbols to export.
20932     always_export_symbols_CXX=yes
20933     if test "$aix_use_runtimelinking" = yes; then
20934       # Warning - without using the other runtime loading flags (-brtl),
20935       # -berok will link without error, but may produce a broken library.
20936       allow_undefined_flag_CXX='-berok'
20937       # Determine the default libpath from the value encoded in an empty executable.
20938       cat >conftest.$ac_ext <<_ACEOF
20939 /* confdefs.h.  */
20940 _ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h.  */
20944
20945 int
20946 main ()
20947 {
20948
20949   ;
20950   return 0;
20951 }
20952 _ACEOF
20953 rm -f conftest.$ac_objext conftest$ac_exeext
20954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20955   (eval $ac_link) 2>conftest.er1
20956   ac_status=$?
20957   grep -v '^ *+' conftest.er1 >conftest.err
20958   rm -f conftest.er1
20959   cat conftest.err >&5
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); } &&
20962          { ac_try='test -z "$ac_cxx_werror_flag"
20963                          || test ! -s conftest.err'
20964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965   (eval $ac_try) 2>&5
20966   ac_status=$?
20967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968   (exit $ac_status); }; } &&
20969          { ac_try='test -s conftest$ac_exeext'
20970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971   (eval $ac_try) 2>&5
20972   ac_status=$?
20973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974   (exit $ac_status); }; }; then
20975
20976 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20977 }'`
20978 # Check for a 64-bit object if we didn't find anything.
20979 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; }
20980 }'`; fi
20981 else
20982   echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20984
20985 fi
20986 rm -f conftest.err conftest.$ac_objext \
20987       conftest$ac_exeext conftest.$ac_ext
20988 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20989
20990       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20991
20992       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"
20993      else
20994       if test "$host_cpu" = ia64; then
20995         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20996         allow_undefined_flag_CXX="-z nodefs"
20997         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"
20998       else
20999         # Determine the default libpath from the value encoded in an empty executable.
21000         cat >conftest.$ac_ext <<_ACEOF
21001 /* confdefs.h.  */
21002 _ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h.  */
21006
21007 int
21008 main ()
21009 {
21010
21011   ;
21012   return 0;
21013 }
21014 _ACEOF
21015 rm -f conftest.$ac_objext conftest$ac_exeext
21016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21017   (eval $ac_link) 2>conftest.er1
21018   ac_status=$?
21019   grep -v '^ *+' conftest.er1 >conftest.err
21020   rm -f conftest.er1
21021   cat conftest.err >&5
21022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023   (exit $ac_status); } &&
21024          { ac_try='test -z "$ac_cxx_werror_flag"
21025                          || test ! -s conftest.err'
21026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027   (eval $ac_try) 2>&5
21028   ac_status=$?
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); }; } &&
21031          { ac_try='test -s conftest$ac_exeext'
21032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033   (eval $ac_try) 2>&5
21034   ac_status=$?
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); }; }; then
21037
21038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21039 }'`
21040 # Check for a 64-bit object if we didn't find anything.
21041 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; }
21042 }'`; fi
21043 else
21044   echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21046
21047 fi
21048 rm -f conftest.err conftest.$ac_objext \
21049       conftest$ac_exeext conftest.$ac_ext
21050 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21051
21052         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
21053         # Warning - without using the other run time loading flags,
21054         # -berok will link without error, but may produce a broken library.
21055         no_undefined_flag_CXX=' ${wl}-bernotok'
21056         allow_undefined_flag_CXX=' ${wl}-berok'
21057         # -bexpall does not export symbols beginning with underscore (_)
21058         always_export_symbols_CXX=yes
21059         # Exported symbols can be pulled into shared objects from archives
21060         whole_archive_flag_spec_CXX=' '
21061         archive_cmds_need_lc_CXX=yes
21062         # This is similar to how AIX traditionally builds its shared libraries.
21063         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'
21064       fi
21065     fi
21066     ;;
21067   chorus*)
21068     case $cc_basename in
21069       *)
21070         # FIXME: insert proper C++ library support
21071         ld_shlibs_CXX=no
21072         ;;
21073     esac
21074     ;;
21075
21076
21077   cygwin* | mingw* | pw32*)
21078     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
21079     # as there is no search path for DLLs.
21080     hardcode_libdir_flag_spec_CXX='-L$libdir'
21081     allow_undefined_flag_CXX=unsupported
21082     always_export_symbols_CXX=no
21083     enable_shared_with_static_runtimes_CXX=yes
21084
21085     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21086       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'
21087       # If the export-symbols file already is a .def file (1st line
21088       # is EXPORTS), use it as is; otherwise, prepend...
21089       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21090         cp $export_symbols $output_objdir/$soname.def;
21091       else
21092         echo EXPORTS > $output_objdir/$soname.def;
21093         cat $export_symbols >> $output_objdir/$soname.def;
21094       fi~
21095       $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'
21096     else
21097       ld_shlibs_CXX=no
21098     fi
21099   ;;
21100       darwin* | rhapsody*)
21101         case $host_os in
21102         rhapsody* | darwin1.[012])
21103          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
21104          ;;
21105        *) # Darwin 1.3 on
21106          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21107            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21108          else
21109            case ${MACOSX_DEPLOYMENT_TARGET} in
21110              10.[012])
21111                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21112                ;;
21113              10.*)
21114                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
21115                ;;
21116            esac
21117          fi
21118          ;;
21119         esac
21120       archive_cmds_need_lc_CXX=no
21121       hardcode_direct_CXX=no
21122       hardcode_automatic_CXX=yes
21123       hardcode_shlibpath_var_CXX=unsupported
21124       whole_archive_flag_spec_CXX=''
21125       link_all_deplibs_CXX=yes
21126
21127     if test "$GXX" = yes ; then
21128       lt_int_apple_cc_single_mod=no
21129       output_verbose_link_cmd='echo'
21130       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
21131        lt_int_apple_cc_single_mod=yes
21132       fi
21133       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21134        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21135       else
21136           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'
21137         fi
21138         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21139         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21140           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21141             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}'
21142           else
21143             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}'
21144           fi
21145             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}'
21146       else
21147       case $cc_basename in
21148         xlc*)
21149          output_verbose_link_cmd='echo'
21150           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'
21151           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21152           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21153           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}'
21154           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}'
21155           ;;
21156        *)
21157          ld_shlibs_CXX=no
21158           ;;
21159       esac
21160       fi
21161         ;;
21162
21163   dgux*)
21164     case $cc_basename in
21165       ec++*)
21166         # FIXME: insert proper C++ library support
21167         ld_shlibs_CXX=no
21168         ;;
21169       ghcx*)
21170         # Green Hills C++ Compiler
21171         # FIXME: insert proper C++ library support
21172         ld_shlibs_CXX=no
21173         ;;
21174       *)
21175         # FIXME: insert proper C++ library support
21176         ld_shlibs_CXX=no
21177         ;;
21178     esac
21179     ;;
21180   freebsd[12]*)
21181     # C++ shared libraries reported to be fairly broken before switch to ELF
21182     ld_shlibs_CXX=no
21183     ;;
21184   freebsd-elf*)
21185     archive_cmds_need_lc_CXX=no
21186     ;;
21187   freebsd* | kfreebsd*-gnu | dragonfly*)
21188     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21189     # conventions
21190     ld_shlibs_CXX=yes
21191     ;;
21192   gnu*)
21193     ;;
21194   hpux9*)
21195     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21196     hardcode_libdir_separator_CXX=:
21197     export_dynamic_flag_spec_CXX='${wl}-E'
21198     hardcode_direct_CXX=yes
21199     hardcode_minus_L_CXX=yes # Not in the search PATH,
21200                                 # but as the default
21201                                 # location of the library.
21202
21203     case $cc_basename in
21204     CC*)
21205       # FIXME: insert proper C++ library support
21206       ld_shlibs_CXX=no
21207       ;;
21208     aCC*)
21209       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'
21210       # Commands to make compiler produce verbose output that lists
21211       # what "hidden" libraries, object files and flags are used when
21212       # linking a shared library.
21213       #
21214       # There doesn't appear to be a way to prevent this compiler from
21215       # explicitly linking system object files so we need to strip them
21216       # from the output so that they don't get included in the library
21217       # dependencies.
21218       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'
21219       ;;
21220     *)
21221       if test "$GXX" = yes; then
21222         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'
21223       else
21224         # FIXME: insert proper C++ library support
21225         ld_shlibs_CXX=no
21226       fi
21227       ;;
21228     esac
21229     ;;
21230   hpux10*|hpux11*)
21231     if test $with_gnu_ld = no; then
21232       case $host_cpu in
21233       hppa*64*)
21234         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21235         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
21236         hardcode_libdir_separator_CXX=:
21237         ;;
21238       ia64*)
21239         hardcode_libdir_flag_spec_CXX='-L$libdir'
21240         ;;
21241       *)
21242         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21243         hardcode_libdir_separator_CXX=:
21244         export_dynamic_flag_spec_CXX='${wl}-E'
21245         ;;
21246       esac
21247     fi
21248     case $host_cpu in
21249     hppa*64*)
21250       hardcode_direct_CXX=no
21251       hardcode_shlibpath_var_CXX=no
21252       ;;
21253     ia64*)
21254       hardcode_direct_CXX=no
21255       hardcode_shlibpath_var_CXX=no
21256       hardcode_minus_L_CXX=yes # Not in the search PATH,
21257                                               # but as the default
21258                                               # location of the library.
21259       ;;
21260     *)
21261       hardcode_direct_CXX=yes
21262       hardcode_minus_L_CXX=yes # Not in the search PATH,
21263                                               # but as the default
21264                                               # location of the library.
21265       ;;
21266     esac
21267
21268     case $cc_basename in
21269       CC*)
21270         # FIXME: insert proper C++ library support
21271         ld_shlibs_CXX=no
21272         ;;
21273       aCC*)
21274         case $host_cpu in
21275         hppa*64*|ia64*)
21276           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
21277           ;;
21278         *)
21279           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21280           ;;
21281         esac
21282         # Commands to make compiler produce verbose output that lists
21283         # what "hidden" libraries, object files and flags are used when
21284         # linking a shared library.
21285         #
21286         # There doesn't appear to be a way to prevent this compiler from
21287         # explicitly linking system object files so we need to strip them
21288         # from the output so that they don't get included in the library
21289         # dependencies.
21290         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'
21291         ;;
21292       *)
21293         if test "$GXX" = yes; then
21294           if test $with_gnu_ld = no; then
21295             case $host_cpu in
21296             ia64*|hppa*64*)
21297               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
21298               ;;
21299             *)
21300               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'
21301               ;;
21302             esac
21303           fi
21304         else
21305           # FIXME: insert proper C++ library support
21306           ld_shlibs_CXX=no
21307         fi
21308         ;;
21309     esac
21310     ;;
21311   irix5* | irix6*)
21312     case $cc_basename in
21313       CC*)
21314         # SGI C++
21315         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'
21316
21317         # Archives containing C++ object files must be created using
21318         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
21319         # necessary to make sure instantiated templates are included
21320         # in the archive.
21321         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21322         ;;
21323       *)
21324         if test "$GXX" = yes; then
21325           if test "$with_gnu_ld" = no; then
21326             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'
21327           else
21328             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'
21329           fi
21330         fi
21331         link_all_deplibs_CXX=yes
21332         ;;
21333     esac
21334     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21335     hardcode_libdir_separator_CXX=:
21336     ;;
21337   linux*)
21338     case $cc_basename in
21339       KCC*)
21340         # Kuck and Associates, Inc. (KAI) C++ Compiler
21341
21342         # KCC will only create a shared library if the output file
21343         # ends with ".so" (or ".sl" for HP-UX), so rename the library
21344         # to its proper name (with version) after linking.
21345         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'
21346         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'
21347         # Commands to make compiler produce verbose output that lists
21348         # what "hidden" libraries, object files and flags are used when
21349         # linking a shared library.
21350         #
21351         # There doesn't appear to be a way to prevent this compiler from
21352         # explicitly linking system object files so we need to strip them
21353         # from the output so that they don't get included in the library
21354         # dependencies.
21355         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'
21356
21357         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
21358         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21359
21360         # Archives containing C++ object files must be created using
21361         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21362         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21363         ;;
21364       icpc*)
21365         # Intel C++
21366         with_gnu_ld=yes
21367         # version 8.0 and above of icpc choke on multiply defined symbols
21368         # if we add $predep_objects and $postdep_objects, however 7.1 and
21369         # earlier do not add the objects themselves.
21370         case `$CC -V 2>&1` in
21371         *"Version 7."*)
21372           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21373           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'
21374           ;;
21375         *)  # Version 8.0 or newer
21376           tmp_idyn=
21377           case $host_cpu in
21378             ia64*) tmp_idyn=' -i_dynamic';;
21379           esac
21380           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21381           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'
21382           ;;
21383         esac
21384         archive_cmds_need_lc_CXX=no
21385         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21386         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21387         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21388         ;;
21389       pgCC*)
21390         # Portland Group C++ compiler
21391         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21392         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'
21393
21394         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21395         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21396         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'
21397         ;;
21398       cxx*)
21399         # Compaq C++
21400         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21401         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'
21402
21403         runpath_var=LD_RUN_PATH
21404         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21405         hardcode_libdir_separator_CXX=:
21406
21407         # Commands to make compiler produce verbose output that lists
21408         # what "hidden" libraries, object files and flags are used when
21409         # linking a shared library.
21410         #
21411         # There doesn't appear to be a way to prevent this compiler from
21412         # explicitly linking system object files so we need to strip them
21413         # from the output so that they don't get included in the library
21414         # dependencies.
21415         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'
21416         ;;
21417     esac
21418     ;;
21419   lynxos*)
21420     # FIXME: insert proper C++ library support
21421     ld_shlibs_CXX=no
21422     ;;
21423   m88k*)
21424     # FIXME: insert proper C++ library support
21425     ld_shlibs_CXX=no
21426     ;;
21427   mvs*)
21428     case $cc_basename in
21429       cxx*)
21430         # FIXME: insert proper C++ library support
21431         ld_shlibs_CXX=no
21432         ;;
21433       *)
21434         # FIXME: insert proper C++ library support
21435         ld_shlibs_CXX=no
21436         ;;
21437     esac
21438     ;;
21439   netbsd*)
21440     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21441       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21442       wlarc=
21443       hardcode_libdir_flag_spec_CXX='-R$libdir'
21444       hardcode_direct_CXX=yes
21445       hardcode_shlibpath_var_CXX=no
21446     fi
21447     # Workaround some broken pre-1.5 toolchains
21448     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21449     ;;
21450   openbsd2*)
21451     # C++ shared libraries are fairly broken
21452     ld_shlibs_CXX=no
21453     ;;
21454   openbsd*)
21455     hardcode_direct_CXX=yes
21456     hardcode_shlibpath_var_CXX=no
21457     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21458     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21459     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21460       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21461       export_dynamic_flag_spec_CXX='${wl}-E'
21462       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21463     fi
21464     output_verbose_link_cmd='echo'
21465     ;;
21466   osf3*)
21467     case $cc_basename in
21468       KCC*)
21469         # Kuck and Associates, Inc. (KAI) C++ Compiler
21470
21471         # KCC will only create a shared library if the output file
21472         # ends with ".so" (or ".sl" for HP-UX), so rename the library
21473         # to its proper name (with version) after linking.
21474         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'
21475
21476         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21477         hardcode_libdir_separator_CXX=:
21478
21479         # Archives containing C++ object files must be created using
21480         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21481         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21482
21483         ;;
21484       RCC*)
21485         # Rational C++ 2.4.1
21486         # FIXME: insert proper C++ library support
21487         ld_shlibs_CXX=no
21488         ;;
21489       cxx*)
21490         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21491         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'
21492
21493         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21494         hardcode_libdir_separator_CXX=:
21495
21496         # Commands to make compiler produce verbose output that lists
21497         # what "hidden" libraries, object files and flags are used when
21498         # linking a shared library.
21499         #
21500         # There doesn't appear to be a way to prevent this compiler from
21501         # explicitly linking system object files so we need to strip them
21502         # from the output so that they don't get included in the library
21503         # dependencies.
21504         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'
21505         ;;
21506       *)
21507         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21508           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21509           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'
21510
21511           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21512           hardcode_libdir_separator_CXX=:
21513
21514           # Commands to make compiler produce verbose output that lists
21515           # what "hidden" libraries, object files and flags are used when
21516           # linking a shared library.
21517           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
21518
21519         else
21520           # FIXME: insert proper C++ library support
21521           ld_shlibs_CXX=no
21522         fi
21523         ;;
21524     esac
21525     ;;
21526   osf4* | osf5*)
21527     case $cc_basename in
21528       KCC*)
21529         # Kuck and Associates, Inc. (KAI) C++ Compiler
21530
21531         # KCC will only create a shared library if the output file
21532         # ends with ".so" (or ".sl" for HP-UX), so rename the library
21533         # to its proper name (with version) after linking.
21534         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'
21535
21536         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21537         hardcode_libdir_separator_CXX=:
21538
21539         # Archives containing C++ object files must be created using
21540         # the KAI C++ compiler.
21541         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
21542         ;;
21543       RCC*)
21544         # Rational C++ 2.4.1
21545         # FIXME: insert proper C++ library support
21546         ld_shlibs_CXX=no
21547         ;;
21548       cxx*)
21549         allow_undefined_flag_CXX=' -expect_unresolved \*'
21550         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'
21551         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21552           echo "-hidden">> $lib.exp~
21553           $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~
21554           $rm $lib.exp'
21555
21556         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21557         hardcode_libdir_separator_CXX=:
21558
21559         # Commands to make compiler produce verbose output that lists
21560         # what "hidden" libraries, object files and flags are used when
21561         # linking a shared library.
21562         #
21563         # There doesn't appear to be a way to prevent this compiler from
21564         # explicitly linking system object files so we need to strip them
21565         # from the output so that they don't get included in the library
21566         # dependencies.
21567         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'
21568         ;;
21569       *)
21570         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21571           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21572          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'
21573
21574           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21575           hardcode_libdir_separator_CXX=:
21576
21577           # Commands to make compiler produce verbose output that lists
21578           # what "hidden" libraries, object files and flags are used when
21579           # linking a shared library.
21580           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
21581
21582         else
21583           # FIXME: insert proper C++ library support
21584           ld_shlibs_CXX=no
21585         fi
21586         ;;
21587     esac
21588     ;;
21589   psos*)
21590     # FIXME: insert proper C++ library support
21591     ld_shlibs_CXX=no
21592     ;;
21593   sco*)
21594     archive_cmds_need_lc_CXX=no
21595     case $cc_basename in
21596       CC*)
21597         # FIXME: insert proper C++ library support
21598         ld_shlibs_CXX=no
21599         ;;
21600       *)
21601         # FIXME: insert proper C++ library support
21602         ld_shlibs_CXX=no
21603         ;;
21604     esac
21605     ;;
21606   sunos4*)
21607     case $cc_basename in
21608       CC*)
21609         # Sun C++ 4.x
21610         # FIXME: insert proper C++ library support
21611         ld_shlibs_CXX=no
21612         ;;
21613       lcc*)
21614         # Lucid
21615         # FIXME: insert proper C++ library support
21616         ld_shlibs_CXX=no
21617         ;;
21618       *)
21619         # FIXME: insert proper C++ library support
21620         ld_shlibs_CXX=no
21621         ;;
21622     esac
21623     ;;
21624   solaris*)
21625     case $cc_basename in
21626       CC*)
21627         # Sun C++ 4.2, 5.x and Centerline C++
21628         archive_cmds_need_lc_CXX=yes
21629         no_undefined_flag_CXX=' -zdefs'
21630         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21631         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21632         $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'
21633
21634         hardcode_libdir_flag_spec_CXX='-R$libdir'
21635         hardcode_shlibpath_var_CXX=no
21636         case $host_os in
21637           solaris2.[0-5] | solaris2.[0-5].*) ;;
21638           *)
21639             # The C++ compiler is used as linker so we must use $wl
21640             # flag to pass the commands to the underlying system
21641             # linker. We must also pass each convience library through
21642             # to the system linker between allextract/defaultextract.
21643             # The C++ compiler will combine linker options so we
21644             # cannot just pass the convience library names through
21645             # without $wl.
21646             # Supported since Solaris 2.6 (maybe 2.5.1?)
21647             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'
21648             ;;
21649         esac
21650         link_all_deplibs_CXX=yes
21651
21652         output_verbose_link_cmd='echo'
21653
21654         # Archives containing C++ object files must be created using
21655         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
21656         # necessary to make sure instantiated templates are included
21657         # in the archive.
21658         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21659         ;;
21660       gcx*)
21661         # Green Hills C++ Compiler
21662         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21663
21664         # The C++ compiler must be used to create the archive.
21665         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21666         ;;
21667       *)
21668         # GNU C++ compiler with Solaris linker
21669         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21670           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21671           if $CC --version | grep -v '^2\.7' > /dev/null; then
21672             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21673             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21674                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21675
21676             # Commands to make compiler produce verbose output that lists
21677             # what "hidden" libraries, object files and flags are used when
21678             # linking a shared library.
21679             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
21680           else
21681             # g++ 2.7 appears to require `-G' NOT `-shared' on this
21682             # platform.
21683             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21684             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21685                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21686
21687             # Commands to make compiler produce verbose output that lists
21688             # what "hidden" libraries, object files and flags are used when
21689             # linking a shared library.
21690             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
21691           fi
21692
21693           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21694         fi
21695         ;;
21696     esac
21697     ;;
21698   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
21699     archive_cmds_need_lc_CXX=no
21700     ;;
21701   tandem*)
21702     case $cc_basename in
21703       NCC*)
21704         # NonStop-UX NCC 3.20
21705         # FIXME: insert proper C++ library support
21706         ld_shlibs_CXX=no
21707         ;;
21708       *)
21709         # FIXME: insert proper C++ library support
21710         ld_shlibs_CXX=no
21711         ;;
21712     esac
21713     ;;
21714   vxworks*)
21715     # FIXME: insert proper C++ library support
21716     ld_shlibs_CXX=no
21717     ;;
21718   *)
21719     # FIXME: insert proper C++ library support
21720     ld_shlibs_CXX=no
21721     ;;
21722 esac
21723 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21724 echo "${ECHO_T}$ld_shlibs_CXX" >&6
21725 test "$ld_shlibs_CXX" = no && can_build_shared=no
21726
21727 GCC_CXX="$GXX"
21728 LD_CXX="$LD"
21729
21730 ## CAVEAT EMPTOR:
21731 ## There is no encapsulation within the following macros, do not change
21732 ## the running order or otherwise move them around unless you know exactly
21733 ## what you are doing...
21734
21735 cat > conftest.$ac_ext <<EOF
21736 class Foo
21737 {
21738 public:
21739   Foo (void) { a = 0; }
21740 private:
21741   int a;
21742 };
21743 EOF
21744
21745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21746   (eval $ac_compile) 2>&5
21747   ac_status=$?
21748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749   (exit $ac_status); }; then
21750   # Parse the compiler output and extract the necessary
21751   # objects, libraries and library flags.
21752
21753   # Sentinel used to keep track of whether or not we are before
21754   # the conftest object file.
21755   pre_test_object_deps_done=no
21756
21757   # The `*' in the case matches for architectures that use `case' in
21758   # $output_verbose_cmd can trigger glob expansion during the loop
21759   # eval without this substitution.
21760   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
21761
21762   for p in `eval $output_verbose_link_cmd`; do
21763     case $p in
21764
21765     -L* | -R* | -l*)
21766        # Some compilers place space between "-{L,R}" and the path.
21767        # Remove the space.
21768        if test $p = "-L" \
21769           || test $p = "-R"; then
21770          prev=$p
21771          continue
21772        else
21773          prev=
21774        fi
21775
21776        if test "$pre_test_object_deps_done" = no; then
21777          case $p in
21778          -L* | -R*)
21779            # Internal compiler library paths should come after those
21780            # provided the user.  The postdeps already come after the
21781            # user supplied libs so there is no need to process them.
21782            if test -z "$compiler_lib_search_path_CXX"; then
21783              compiler_lib_search_path_CXX="${prev}${p}"
21784            else
21785              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21786            fi
21787            ;;
21788          # The "-l" case would never come before the object being
21789          # linked, so don't bother handling this case.
21790          esac
21791        else
21792          if test -z "$postdeps_CXX"; then
21793            postdeps_CXX="${prev}${p}"
21794          else
21795            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21796          fi
21797        fi
21798        ;;
21799
21800     *.$objext)
21801        # This assumes that the test object file only shows up
21802        # once in the compiler output.
21803        if test "$p" = "conftest.$objext"; then
21804          pre_test_object_deps_done=yes
21805          continue
21806        fi
21807
21808        if test "$pre_test_object_deps_done" = no; then
21809          if test -z "$predep_objects_CXX"; then
21810            predep_objects_CXX="$p"
21811          else
21812            predep_objects_CXX="$predep_objects_CXX $p"
21813          fi
21814        else
21815          if test -z "$postdep_objects_CXX"; then
21816            postdep_objects_CXX="$p"
21817          else
21818            postdep_objects_CXX="$postdep_objects_CXX $p"
21819          fi
21820        fi
21821        ;;
21822
21823     *) ;; # Ignore the rest.
21824
21825     esac
21826   done
21827
21828   # Clean up.
21829   rm -f a.out a.exe
21830 else
21831   echo "libtool.m4: error: problem compiling CXX test program"
21832 fi
21833
21834 $rm -f confest.$objext
21835
21836 # PORTME: override above test on systems where it is broken
21837 case $host_os in
21838 solaris*)
21839   case $cc_basename in
21840   CC*)
21841     # Adding this requires a known-good setup of shared libraries for
21842     # Sun compiler versions before 5.6, else PIC objects from an old
21843     # archive will be linked into the output, leading to subtle bugs.
21844     postdeps_CXX='-lCstd -lCrun'
21845     ;;
21846   esac
21847 esac
21848
21849
21850 case " $postdeps_CXX " in
21851 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21852 esac
21853
21854 lt_prog_compiler_wl_CXX=
21855 lt_prog_compiler_pic_CXX=
21856 lt_prog_compiler_static_CXX=
21857
21858 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21859 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21860
21861   # C++ specific cases for pic, static, wl, etc.
21862   if test "$GXX" = yes; then
21863     lt_prog_compiler_wl_CXX='-Wl,'
21864     lt_prog_compiler_static_CXX='-static'
21865
21866     case $host_os in
21867     aix*)
21868       # All AIX code is PIC.
21869       if test "$host_cpu" = ia64; then
21870         # AIX 5 now supports IA64 processor
21871         lt_prog_compiler_static_CXX='-Bstatic'
21872       fi
21873       ;;
21874     amigaos*)
21875       # FIXME: we need at least 68020 code to build shared libraries, but
21876       # adding the `-m68020' flag to GCC prevents building anything better,
21877       # like `-m68040'.
21878       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21879       ;;
21880     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21881       # PIC is the default for these OSes.
21882       ;;
21883     mingw* | os2* | pw32*)
21884       # This hack is so that the source file can tell whether it is being
21885       # built for inclusion in a dll (and should export symbols for example).
21886       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21887       ;;
21888     darwin* | rhapsody*)
21889       # PIC is the default on this platform
21890       # Common symbols not allowed in MH_DYLIB files
21891       lt_prog_compiler_pic_CXX='-fno-common'
21892       ;;
21893     *djgpp*)
21894       # DJGPP does not support shared libraries at all
21895       lt_prog_compiler_pic_CXX=
21896       ;;
21897     sysv4*MP*)
21898       if test -d /usr/nec; then
21899         lt_prog_compiler_pic_CXX=-Kconform_pic
21900       fi
21901       ;;
21902     hpux*)
21903       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21904       # not for PA HP-UX.
21905       case $host_cpu in
21906       hppa*64*|ia64*)
21907         ;;
21908       *)
21909         lt_prog_compiler_pic_CXX='-fPIC'
21910         ;;
21911       esac
21912       ;;
21913     *)
21914       lt_prog_compiler_pic_CXX='-fPIC'
21915       ;;
21916     esac
21917   else
21918     case $host_os in
21919       aix4* | aix5*)
21920         # All AIX code is PIC.
21921         if test "$host_cpu" = ia64; then
21922           # AIX 5 now supports IA64 processor
21923           lt_prog_compiler_static_CXX='-Bstatic'
21924         else
21925           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21926         fi
21927         ;;
21928       chorus*)
21929         case $cc_basename in
21930         cxch68*)
21931           # Green Hills C++ Compiler
21932           # _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"
21933           ;;
21934         esac
21935         ;;
21936        darwin*)
21937          # PIC is the default on this platform
21938          # Common symbols not allowed in MH_DYLIB files
21939          case $cc_basename in
21940            xlc*)
21941            lt_prog_compiler_pic_CXX='-qnocommon'
21942            lt_prog_compiler_wl_CXX='-Wl,'
21943            ;;
21944          esac
21945        ;;
21946       dgux*)
21947         case $cc_basename in
21948           ec++*)
21949             lt_prog_compiler_pic_CXX='-KPIC'
21950             ;;
21951           ghcx*)
21952             # Green Hills C++ Compiler
21953             lt_prog_compiler_pic_CXX='-pic'
21954             ;;
21955           *)
21956             ;;
21957         esac
21958         ;;
21959       freebsd* | kfreebsd*-gnu | dragonfly*)
21960         # FreeBSD uses GNU C++
21961         ;;
21962       hpux9* | hpux10* | hpux11*)
21963         case $cc_basename in
21964           CC*)
21965             lt_prog_compiler_wl_CXX='-Wl,'
21966             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
21967             if test "$host_cpu" != ia64; then
21968               lt_prog_compiler_pic_CXX='+Z'
21969             fi
21970             ;;
21971           aCC*)
21972             lt_prog_compiler_wl_CXX='-Wl,'
21973             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
21974             case $host_cpu in
21975             hppa*64*|ia64*)
21976               # +Z the default
21977               ;;
21978             *)
21979               lt_prog_compiler_pic_CXX='+Z'
21980               ;;
21981             esac
21982             ;;
21983           *)
21984             ;;
21985         esac
21986         ;;
21987       irix5* | irix6* | nonstopux*)
21988         case $cc_basename in
21989           CC*)
21990             lt_prog_compiler_wl_CXX='-Wl,'
21991             lt_prog_compiler_static_CXX='-non_shared'
21992             # CC pic flag -KPIC is the default.
21993             ;;
21994           *)
21995             ;;
21996         esac
21997         ;;
21998       linux*)
21999         case $cc_basename in
22000           KCC*)
22001             # KAI C++ Compiler
22002             lt_prog_compiler_wl_CXX='--backend -Wl,'
22003             lt_prog_compiler_pic_CXX='-fPIC'
22004             ;;
22005           icpc* | ecpc*)
22006             # Intel C++
22007             lt_prog_compiler_wl_CXX='-Wl,'
22008             lt_prog_compiler_pic_CXX='-KPIC'
22009             lt_prog_compiler_static_CXX='-static'
22010             ;;
22011           pgCC*)
22012             # Portland Group C++ compiler.
22013             lt_prog_compiler_wl_CXX='-Wl,'
22014             lt_prog_compiler_pic_CXX='-fpic'
22015             lt_prog_compiler_static_CXX='-Bstatic'
22016             ;;
22017           cxx*)
22018             # Compaq C++
22019             # Make sure the PIC flag is empty.  It appears that all Alpha
22020             # Linux and Compaq Tru64 Unix objects are PIC.
22021             lt_prog_compiler_pic_CXX=
22022             lt_prog_compiler_static_CXX='-non_shared'
22023             ;;
22024           *)
22025             ;;
22026         esac
22027         ;;
22028       lynxos*)
22029         ;;
22030       m88k*)
22031         ;;
22032       mvs*)
22033         case $cc_basename in
22034           cxx*)
22035             lt_prog_compiler_pic_CXX='-W c,exportall'
22036             ;;
22037           *)
22038             ;;
22039         esac
22040         ;;
22041       netbsd*)
22042         ;;
22043       osf3* | osf4* | osf5*)
22044         case $cc_basename in
22045           KCC*)
22046             lt_prog_compiler_wl_CXX='--backend -Wl,'
22047             ;;
22048           RCC*)
22049             # Rational C++ 2.4.1
22050             lt_prog_compiler_pic_CXX='-pic'
22051             ;;
22052           cxx*)
22053             # Digital/Compaq C++
22054             lt_prog_compiler_wl_CXX='-Wl,'
22055             # Make sure the PIC flag is empty.  It appears that all Alpha
22056             # Linux and Compaq Tru64 Unix objects are PIC.
22057             lt_prog_compiler_pic_CXX=
22058             lt_prog_compiler_static_CXX='-non_shared'
22059             ;;
22060           *)
22061             ;;
22062         esac
22063         ;;
22064       psos*)
22065         ;;
22066       sco*)
22067         case $cc_basename in
22068           CC*)
22069             lt_prog_compiler_pic_CXX='-fPIC'
22070             ;;
22071           *)
22072             ;;
22073         esac
22074         ;;
22075       solaris*)
22076         case $cc_basename in
22077           CC*)
22078             # Sun C++ 4.2, 5.x and Centerline C++
22079             lt_prog_compiler_pic_CXX='-KPIC'
22080             lt_prog_compiler_static_CXX='-Bstatic'
22081             lt_prog_compiler_wl_CXX='-Qoption ld '
22082             ;;
22083           gcx*)
22084             # Green Hills C++ Compiler
22085             lt_prog_compiler_pic_CXX='-PIC'
22086             ;;
22087           *)
22088             ;;
22089         esac
22090         ;;
22091       sunos4*)
22092         case $cc_basename in
22093           CC*)
22094             # Sun C++ 4.x
22095             lt_prog_compiler_pic_CXX='-pic'
22096             lt_prog_compiler_static_CXX='-Bstatic'
22097             ;;
22098           lcc*)
22099             # Lucid
22100             lt_prog_compiler_pic_CXX='-pic'
22101             ;;
22102           *)
22103             ;;
22104         esac
22105         ;;
22106       tandem*)
22107         case $cc_basename in
22108           NCC*)
22109             # NonStop-UX NCC 3.20
22110             lt_prog_compiler_pic_CXX='-KPIC'
22111             ;;
22112           *)
22113             ;;
22114         esac
22115         ;;
22116       unixware*)
22117         ;;
22118       vxworks*)
22119         ;;
22120       *)
22121         lt_prog_compiler_can_build_shared_CXX=no
22122         ;;
22123     esac
22124   fi
22125
22126 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
22127 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
22128
22129 #
22130 # Check to make sure the PIC flag actually works.
22131 #
22132 if test -n "$lt_prog_compiler_pic_CXX"; then
22133
22134 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22135 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
22136 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
22137   echo $ECHO_N "(cached) $ECHO_C" >&6
22138 else
22139   lt_prog_compiler_pic_works_CXX=no
22140   ac_outfile=conftest.$ac_objext
22141    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22142    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
22143    # Insert the option either (1) after the last *FLAGS variable, or
22144    # (2) before a word containing "conftest.", or (3) at the end.
22145    # Note that $ac_compile itself does not contain backslashes and begins
22146    # with a dollar sign (not a hyphen), so the echo should work correctly.
22147    # The option is referenced via a variable to avoid confusing sed.
22148    lt_compile=`echo "$ac_compile" | $SED \
22149    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22150    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22151    -e 's:$: $lt_compiler_flag:'`
22152    (eval echo "\"\$as_me:22152: $lt_compile\"" >&5)
22153    (eval "$lt_compile" 2>conftest.err)
22154    ac_status=$?
22155    cat conftest.err >&5
22156    echo "$as_me:22156: \$? = $ac_status" >&5
22157    if (exit $ac_status) && test -s "$ac_outfile"; then
22158      # The compiler can only warn and ignore the option if not recognized
22159      # So say no if there are warnings other than the usual output.
22160      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
22161      $SED '/^$/d' conftest.err >conftest.er2
22162      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
22163        lt_prog_compiler_pic_works_CXX=yes
22164      fi
22165    fi
22166    $rm conftest*
22167
22168 fi
22169 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
22170 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
22171
22172 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
22173     case $lt_prog_compiler_pic_CXX in
22174      "" | " "*) ;;
22175      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22176      esac
22177 else
22178     lt_prog_compiler_pic_CXX=
22179      lt_prog_compiler_can_build_shared_CXX=no
22180 fi
22181
22182 fi
22183 case $host_os in
22184   # For platforms which do not support PIC, -DPIC is meaningless:
22185   *djgpp*)
22186     lt_prog_compiler_pic_CXX=
22187     ;;
22188   *)
22189     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22190     ;;
22191 esac
22192
22193 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22194 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22195 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
22196   echo $ECHO_N "(cached) $ECHO_C" >&6
22197 else
22198   lt_cv_prog_compiler_c_o_CXX=no
22199    $rm -r conftest 2>/dev/null
22200    mkdir conftest
22201    cd conftest
22202    mkdir out
22203    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22204
22205    lt_compiler_flag="-o out/conftest2.$ac_objext"
22206    # Insert the option either (1) after the last *FLAGS variable, or
22207    # (2) before a word containing "conftest.", or (3) at the end.
22208    # Note that $ac_compile itself does not contain backslashes and begins
22209    # with a dollar sign (not a hyphen), so the echo should work correctly.
22210    lt_compile=`echo "$ac_compile" | $SED \
22211    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22212    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22213    -e 's:$: $lt_compiler_flag:'`
22214    (eval echo "\"\$as_me:22214: $lt_compile\"" >&5)
22215    (eval "$lt_compile" 2>out/conftest.err)
22216    ac_status=$?
22217    cat out/conftest.err >&5
22218    echo "$as_me:22218: \$? = $ac_status" >&5
22219    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22220    then
22221      # The compiler can only warn and ignore the option if not recognized
22222      # So say no if there are warnings
22223      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
22224      $SED '/^$/d' out/conftest.err >out/conftest.er2
22225      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22226        lt_cv_prog_compiler_c_o_CXX=yes
22227      fi
22228    fi
22229    chmod u+w . 2>&5
22230    $rm conftest*
22231    # SGI C++ compiler will create directory out/ii_files/ for
22232    # template instantiation
22233    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22234    $rm out/* && rmdir out
22235    cd ..
22236    rmdir conftest
22237    $rm conftest*
22238
22239 fi
22240 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22241 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
22242
22243
22244 hard_links="nottested"
22245 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22246   # do not overwrite the value of need_locks provided by the user
22247   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22248 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22249   hard_links=yes
22250   $rm conftest*
22251   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22252   touch conftest.a
22253   ln conftest.a conftest.b 2>&5 || hard_links=no
22254   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22255   echo "$as_me:$LINENO: result: $hard_links" >&5
22256 echo "${ECHO_T}$hard_links" >&6
22257   if test "$hard_links" = no; then
22258     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22259 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22260     need_locks=warn
22261   fi
22262 else
22263   need_locks=no
22264 fi
22265
22266 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22267 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22268
22269   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22270   case $host_os in
22271   aix4* | aix5*)
22272     # If we're using GNU nm, then we don't want the "-C" option.
22273     # -C means demangle to AIX nm, but means don't demangle with GNU nm
22274     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22275       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'
22276     else
22277       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'
22278     fi
22279     ;;
22280   pw32*)
22281     export_symbols_cmds_CXX="$ltdll_cmds"
22282   ;;
22283   cygwin* | mingw*)
22284     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'
22285   ;;
22286   *)
22287     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22288   ;;
22289   esac
22290
22291 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
22292 echo "${ECHO_T}$ld_shlibs_CXX" >&6
22293 test "$ld_shlibs_CXX" = no && can_build_shared=no
22294
22295 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22296 if test "$GCC" = yes; then
22297   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22298 fi
22299
22300 #
22301 # Do we need to explicitly link libc?
22302 #
22303 case "x$archive_cmds_need_lc_CXX" in
22304 x|xyes)
22305   # Assume -lc should be added
22306   archive_cmds_need_lc_CXX=yes
22307
22308   if test "$enable_shared" = yes && test "$GCC" = yes; then
22309     case $archive_cmds_CXX in
22310     *'~'*)
22311       # FIXME: we may have to deal with multi-command sequences.
22312       ;;
22313     '$CC '*)
22314       # Test whether the compiler implicitly links with -lc since on some
22315       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22316       # to ld, don't add -lc before -lgcc.
22317       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22318 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22319       $rm conftest*
22320       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22321
22322       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22323   (eval $ac_compile) 2>&5
22324   ac_status=$?
22325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326   (exit $ac_status); } 2>conftest.err; then
22327         soname=conftest
22328         lib=conftest
22329         libobjs=conftest.$ac_objext
22330         deplibs=
22331         wl=$lt_prog_compiler_wl_CXX
22332         compiler_flags=-v
22333         linker_flags=-v
22334         verstring=
22335         output_objdir=.
22336         libname=conftest
22337         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22338         allow_undefined_flag_CXX=
22339         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22340   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22341   ac_status=$?
22342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343   (exit $ac_status); }
22344         then
22345           archive_cmds_need_lc_CXX=no
22346         else
22347           archive_cmds_need_lc_CXX=yes
22348         fi
22349         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22350       else
22351         cat conftest.err 1>&5
22352       fi
22353       $rm conftest*
22354       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
22355 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
22356       ;;
22357     esac
22358   fi
22359   ;;
22360 esac
22361
22362 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22363 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22364 library_names_spec=
22365 libname_spec='lib$name'
22366 soname_spec=
22367 shrext_cmds=".so"
22368 postinstall_cmds=
22369 postuninstall_cmds=
22370 finish_cmds=
22371 finish_eval=
22372 shlibpath_var=
22373 shlibpath_overrides_runpath=unknown
22374 version_type=none
22375 dynamic_linker="$host_os ld.so"
22376 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22377 if test "$GCC" = yes; then
22378   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22379   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22380     # if the path contains ";" then we assume it to be the separator
22381     # otherwise default to the standard path separator (i.e. ":") - it is
22382     # assumed that no part of a normal pathname contains ";" but that should
22383     # okay in the real world where ";" in dirpaths is itself problematic.
22384     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22385   else
22386     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22387   fi
22388 else
22389   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22390 fi
22391 need_lib_prefix=unknown
22392 hardcode_into_libs=no
22393
22394 # when you set need_version to no, make sure it does not cause -set_version
22395 # flags to be left without arguments
22396 need_version=unknown
22397
22398 case $host_os in
22399 aix3*)
22400   version_type=linux
22401   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22402   shlibpath_var=LIBPATH
22403
22404   # AIX 3 has no versioning support, so we append a major version to the name.
22405   soname_spec='${libname}${release}${shared_ext}$major'
22406   ;;
22407
22408 aix4* | aix5*)
22409   version_type=linux
22410   need_lib_prefix=no
22411   need_version=no
22412   hardcode_into_libs=yes
22413   if test "$host_cpu" = ia64; then
22414     # AIX 5 supports IA64
22415     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22416     shlibpath_var=LD_LIBRARY_PATH
22417   else
22418     # With GCC up to 2.95.x, collect2 would create an import file
22419     # for dependence libraries.  The import file would start with
22420     # the line `#! .'.  This would cause the generated library to
22421     # depend on `.', always an invalid library.  This was fixed in
22422     # development snapshots of GCC prior to 3.0.
22423     case $host_os in
22424       aix4 | aix4.[01] | aix4.[01].*)
22425       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22426            echo ' yes '
22427            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22428         :
22429       else
22430         can_build_shared=no
22431       fi
22432       ;;
22433     esac
22434     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22435     # soname into executable. Probably we can add versioning support to
22436     # collect2, so additional links can be useful in future.
22437     if test "$aix_use_runtimelinking" = yes; then
22438       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22439       # instead of lib<name>.a to let people know that these are not
22440       # typical AIX shared libraries.
22441       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22442     else
22443       # We preserve .a as extension for shared libraries through AIX4.2
22444       # and later when we are not doing run time linking.
22445       library_names_spec='${libname}${release}.a $libname.a'
22446       soname_spec='${libname}${release}${shared_ext}$major'
22447     fi
22448     shlibpath_var=LIBPATH
22449   fi
22450   ;;
22451
22452 amigaos*)
22453   library_names_spec='$libname.ixlibrary $libname.a'
22454   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22455   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'
22456   ;;
22457
22458 beos*)
22459   library_names_spec='${libname}${shared_ext}'
22460   dynamic_linker="$host_os ld.so"
22461   shlibpath_var=LIBRARY_PATH
22462   ;;
22463
22464 bsdi[45]*)
22465   version_type=linux
22466   need_version=no
22467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22468   soname_spec='${libname}${release}${shared_ext}$major'
22469   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22470   shlibpath_var=LD_LIBRARY_PATH
22471   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22472   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22473   # the default ld.so.conf also contains /usr/contrib/lib and
22474   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22475   # libtool to hard-code these into programs
22476   ;;
22477
22478 cygwin* | mingw* | pw32*)
22479   version_type=windows
22480   shrext_cmds=".dll"
22481   need_version=no
22482   need_lib_prefix=no
22483
22484   case $GCC,$host_os in
22485   yes,cygwin* | yes,mingw* | yes,pw32*)
22486     library_names_spec='$libname.dll.a'
22487     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22488     postinstall_cmds='base_file=`basename \${file}`~
22489       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22490       dldir=$destdir/`dirname \$dlpath`~
22491       test -d \$dldir || mkdir -p \$dldir~
22492       $install_prog $dir/$dlname \$dldir/$dlname~
22493       chmod a+x \$dldir/$dlname'
22494     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22495       dlpath=$dir/\$dldll~
22496        $rm \$dlpath'
22497     shlibpath_overrides_runpath=yes
22498
22499     case $host_os in
22500     cygwin*)
22501       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22502       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22503       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22504       ;;
22505     mingw*)
22506       # MinGW DLLs use traditional 'lib' prefix
22507       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22508       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22509       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22510         # It is most probably a Windows format PATH printed by
22511         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22512         # path with ; separators, and with drive letters. We can handle the
22513         # drive letters (cygwin fileutils understands them), so leave them,
22514         # especially as we might pass files found there to a mingw objdump,
22515         # which wouldn't understand a cygwinified path. Ahh.
22516         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22517       else
22518         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22519       fi
22520       ;;
22521     pw32*)
22522       # pw32 DLLs use 'pw' prefix rather than 'lib'
22523       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22524       ;;
22525     esac
22526     ;;
22527
22528   *)
22529     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22530     ;;
22531   esac
22532   dynamic_linker='Win32 ld.exe'
22533   # FIXME: first we should search . and the directory the executable is in
22534   shlibpath_var=PATH
22535   ;;
22536
22537 darwin* | rhapsody*)
22538   dynamic_linker="$host_os dyld"
22539   version_type=darwin
22540   need_lib_prefix=no
22541   need_version=no
22542   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22543   soname_spec='${libname}${release}${major}$shared_ext'
22544   shlibpath_overrides_runpath=yes
22545   shlibpath_var=DYLD_LIBRARY_PATH
22546   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22547   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22548   if test "$GCC" = yes; then
22549     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"`
22550   else
22551     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22552   fi
22553   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22554   ;;
22555
22556 dgux*)
22557   version_type=linux
22558   need_lib_prefix=no
22559   need_version=no
22560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22561   soname_spec='${libname}${release}${shared_ext}$major'
22562   shlibpath_var=LD_LIBRARY_PATH
22563   ;;
22564
22565 freebsd1*)
22566   dynamic_linker=no
22567   ;;
22568
22569 kfreebsd*-gnu)
22570   version_type=linux
22571   need_lib_prefix=no
22572   need_version=no
22573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22574   soname_spec='${libname}${release}${shared_ext}$major'
22575   shlibpath_var=LD_LIBRARY_PATH
22576   shlibpath_overrides_runpath=no
22577   hardcode_into_libs=yes
22578   dynamic_linker='GNU ld.so'
22579   ;;
22580
22581 freebsd* | dragonfly*)
22582   # DragonFly does not have aout.  When/if they implement a new
22583   # versioning mechanism, adjust this.
22584   if test -x /usr/bin/objformat; then
22585     objformat=`/usr/bin/objformat`
22586   else
22587     case $host_os in
22588     freebsd[123]*) objformat=aout ;;
22589     *) objformat=elf ;;
22590     esac
22591   fi
22592   version_type=freebsd-$objformat
22593   case $version_type in
22594     freebsd-elf*)
22595       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22596       need_version=no
22597       need_lib_prefix=no
22598       ;;
22599     freebsd-*)
22600       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22601       need_version=yes
22602       ;;
22603   esac
22604   shlibpath_var=LD_LIBRARY_PATH
22605   case $host_os in
22606   freebsd2*)
22607     shlibpath_overrides_runpath=yes
22608     ;;
22609   freebsd3.[01]* | freebsdelf3.[01]*)
22610     shlibpath_overrides_runpath=yes
22611     hardcode_into_libs=yes
22612     ;;
22613   *) # from 3.2 on
22614     shlibpath_overrides_runpath=no
22615     hardcode_into_libs=yes
22616     ;;
22617   esac
22618   ;;
22619
22620 gnu*)
22621   version_type=linux
22622   need_lib_prefix=no
22623   need_version=no
22624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22625   soname_spec='${libname}${release}${shared_ext}$major'
22626   shlibpath_var=LD_LIBRARY_PATH
22627   hardcode_into_libs=yes
22628   ;;
22629
22630 hpux9* | hpux10* | hpux11*)
22631   # Give a soname corresponding to the major version so that dld.sl refuses to
22632   # link against other versions.
22633   version_type=sunos
22634   need_lib_prefix=no
22635   need_version=no
22636   case $host_cpu in
22637   ia64*)
22638     shrext_cmds='.so'
22639     hardcode_into_libs=yes
22640     dynamic_linker="$host_os dld.so"
22641     shlibpath_var=LD_LIBRARY_PATH
22642     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22643     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22644     soname_spec='${libname}${release}${shared_ext}$major'
22645     if test "X$HPUX_IA64_MODE" = X32; then
22646       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22647     else
22648       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22649     fi
22650     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22651     ;;
22652    hppa*64*)
22653      shrext_cmds='.sl'
22654      hardcode_into_libs=yes
22655      dynamic_linker="$host_os dld.sl"
22656      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22657      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22658      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22659      soname_spec='${libname}${release}${shared_ext}$major'
22660      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22661      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22662      ;;
22663    *)
22664     shrext_cmds='.sl'
22665     dynamic_linker="$host_os dld.sl"
22666     shlibpath_var=SHLIB_PATH
22667     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22668     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22669     soname_spec='${libname}${release}${shared_ext}$major'
22670     ;;
22671   esac
22672   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22673   postinstall_cmds='chmod 555 $lib'
22674   ;;
22675
22676 irix5* | irix6* | nonstopux*)
22677   case $host_os in
22678     nonstopux*) version_type=nonstopux ;;
22679     *)
22680         if test "$lt_cv_prog_gnu_ld" = yes; then
22681                 version_type=linux
22682         else
22683                 version_type=irix
22684         fi ;;
22685   esac
22686   need_lib_prefix=no
22687   need_version=no
22688   soname_spec='${libname}${release}${shared_ext}$major'
22689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22690   case $host_os in
22691   irix5* | nonstopux*)
22692     libsuff= shlibsuff=
22693     ;;
22694   *)
22695     case $LD in # libtool.m4 will add one of these switches to LD
22696     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22697       libsuff= shlibsuff= libmagic=32-bit;;
22698     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22699       libsuff=32 shlibsuff=N32 libmagic=N32;;
22700     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22701       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22702     *) libsuff= shlibsuff= libmagic=never-match;;
22703     esac
22704     ;;
22705   esac
22706   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22707   shlibpath_overrides_runpath=no
22708   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22709   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22710   hardcode_into_libs=yes
22711   ;;
22712
22713 # No shared lib support for Linux oldld, aout, or coff.
22714 linux*oldld* | linux*aout* | linux*coff*)
22715   dynamic_linker=no
22716   ;;
22717
22718 # This must be Linux ELF.
22719 linux*)
22720   version_type=linux
22721   need_lib_prefix=no
22722   need_version=no
22723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22724   soname_spec='${libname}${release}${shared_ext}$major'
22725   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22726   shlibpath_var=LD_LIBRARY_PATH
22727   shlibpath_overrides_runpath=no
22728   # This implies no fast_install, which is unacceptable.
22729   # Some rework will be needed to allow for fast_install
22730   # before this can be enabled.
22731   hardcode_into_libs=yes
22732
22733   # Append ld.so.conf contents to the search path
22734   if test -f /etc/ld.so.conf; then
22735     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' ' '`
22736     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22737   fi
22738
22739   # We used to test for /lib/ld.so.1 and disable shared libraries on
22740   # powerpc, because MkLinux only supported shared libraries with the
22741   # GNU dynamic linker.  Since this was broken with cross compilers,
22742   # most powerpc-linux boxes support dynamic linking these days and
22743   # people can always --disable-shared, the test was removed, and we
22744   # assume the GNU/Linux dynamic linker is in use.
22745   dynamic_linker='GNU/Linux ld.so'
22746   ;;
22747
22748 knetbsd*-gnu)
22749   version_type=linux
22750   need_lib_prefix=no
22751   need_version=no
22752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22753   soname_spec='${libname}${release}${shared_ext}$major'
22754   shlibpath_var=LD_LIBRARY_PATH
22755   shlibpath_overrides_runpath=no
22756   hardcode_into_libs=yes
22757   dynamic_linker='GNU ld.so'
22758   ;;
22759
22760 netbsd*)
22761   version_type=sunos
22762   need_lib_prefix=no
22763   need_version=no
22764   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22765     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22766     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22767     dynamic_linker='NetBSD (a.out) ld.so'
22768   else
22769     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22770     soname_spec='${libname}${release}${shared_ext}$major'
22771     dynamic_linker='NetBSD ld.elf_so'
22772   fi
22773   shlibpath_var=LD_LIBRARY_PATH
22774   shlibpath_overrides_runpath=yes
22775   hardcode_into_libs=yes
22776   ;;
22777
22778 newsos6)
22779   version_type=linux
22780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22781   shlibpath_var=LD_LIBRARY_PATH
22782   shlibpath_overrides_runpath=yes
22783   ;;
22784
22785 nto-qnx*)
22786   version_type=linux
22787   need_lib_prefix=no
22788   need_version=no
22789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22790   soname_spec='${libname}${release}${shared_ext}$major'
22791   shlibpath_var=LD_LIBRARY_PATH
22792   shlibpath_overrides_runpath=yes
22793   ;;
22794
22795 openbsd*)
22796   version_type=sunos
22797   need_lib_prefix=no
22798   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22799   case $host_os in
22800     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22801     *)                         need_version=no  ;;
22802   esac
22803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22804   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22805   shlibpath_var=LD_LIBRARY_PATH
22806   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22807     case $host_os in
22808       openbsd2.[89] | openbsd2.[89].*)
22809         shlibpath_overrides_runpath=no
22810         ;;
22811       *)
22812         shlibpath_overrides_runpath=yes
22813         ;;
22814       esac
22815   else
22816     shlibpath_overrides_runpath=yes
22817   fi
22818   ;;
22819
22820 os2*)
22821   libname_spec='$name'
22822   shrext_cmds=".dll"
22823   need_lib_prefix=no
22824   library_names_spec='$libname${shared_ext} $libname.a'
22825   dynamic_linker='OS/2 ld.exe'
22826   shlibpath_var=LIBPATH
22827   ;;
22828
22829 osf3* | osf4* | osf5*)
22830   version_type=osf
22831   need_lib_prefix=no
22832   need_version=no
22833   soname_spec='${libname}${release}${shared_ext}$major'
22834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22835   shlibpath_var=LD_LIBRARY_PATH
22836   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22837   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22838   ;;
22839
22840 sco3.2v5*)
22841   version_type=osf
22842   soname_spec='${libname}${release}${shared_ext}$major'
22843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22844   shlibpath_var=LD_LIBRARY_PATH
22845   ;;
22846
22847 solaris*)
22848   version_type=linux
22849   need_lib_prefix=no
22850   need_version=no
22851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22852   soname_spec='${libname}${release}${shared_ext}$major'
22853   shlibpath_var=LD_LIBRARY_PATH
22854   shlibpath_overrides_runpath=yes
22855   hardcode_into_libs=yes
22856   # ldd complains unless libraries are executable
22857   postinstall_cmds='chmod +x $lib'
22858   ;;
22859
22860 sunos4*)
22861   version_type=sunos
22862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22863   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22864   shlibpath_var=LD_LIBRARY_PATH
22865   shlibpath_overrides_runpath=yes
22866   if test "$with_gnu_ld" = yes; then
22867     need_lib_prefix=no
22868   fi
22869   need_version=yes
22870   ;;
22871
22872 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22873   version_type=linux
22874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22875   soname_spec='${libname}${release}${shared_ext}$major'
22876   shlibpath_var=LD_LIBRARY_PATH
22877   case $host_vendor in
22878     sni)
22879       shlibpath_overrides_runpath=no
22880       need_lib_prefix=no
22881       export_dynamic_flag_spec='${wl}-Blargedynsym'
22882       runpath_var=LD_RUN_PATH
22883       ;;
22884     siemens)
22885       need_lib_prefix=no
22886       ;;
22887     motorola)
22888       need_lib_prefix=no
22889       need_version=no
22890       shlibpath_overrides_runpath=no
22891       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22892       ;;
22893   esac
22894   ;;
22895
22896 sysv4*MP*)
22897   if test -d /usr/nec ;then
22898     version_type=linux
22899     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22900     soname_spec='$libname${shared_ext}.$major'
22901     shlibpath_var=LD_LIBRARY_PATH
22902   fi
22903   ;;
22904
22905 uts4*)
22906   version_type=linux
22907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22908   soname_spec='${libname}${release}${shared_ext}$major'
22909   shlibpath_var=LD_LIBRARY_PATH
22910   ;;
22911
22912 *)
22913   dynamic_linker=no
22914   ;;
22915 esac
22916 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22917 echo "${ECHO_T}$dynamic_linker" >&6
22918 test "$dynamic_linker" = no && can_build_shared=no
22919
22920 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22921 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22922 hardcode_action_CXX=
22923 if test -n "$hardcode_libdir_flag_spec_CXX" || \
22924    test -n "$runpath_var_CXX" || \
22925    test "X$hardcode_automatic_CXX" = "Xyes" ; then
22926
22927   # We can hardcode non-existant directories.
22928   if test "$hardcode_direct_CXX" != no &&
22929      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22930      # have to relink, otherwise we might link with an installed library
22931      # when we should be linking with a yet-to-be-installed one
22932      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22933      test "$hardcode_minus_L_CXX" != no; then
22934     # Linking always hardcodes the temporary library directory.
22935     hardcode_action_CXX=relink
22936   else
22937     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22938     hardcode_action_CXX=immediate
22939   fi
22940 else
22941   # We cannot hardcode anything, or else we can only hardcode existing
22942   # directories.
22943   hardcode_action_CXX=unsupported
22944 fi
22945 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
22946 echo "${ECHO_T}$hardcode_action_CXX" >&6
22947
22948 if test "$hardcode_action_CXX" = relink; then
22949   # Fast installation is not supported
22950   enable_fast_install=no
22951 elif test "$shlibpath_overrides_runpath" = yes ||
22952      test "$enable_shared" = no; then
22953   # Fast installation is not necessary
22954   enable_fast_install=needless
22955 fi
22956
22957 striplib=
22958 old_striplib=
22959 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22960 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22961 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22962   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22963   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22964   echo "$as_me:$LINENO: result: yes" >&5
22965 echo "${ECHO_T}yes" >&6
22966 else
22967 # FIXME - insert some real tests, host_os isn't really good enough
22968   case $host_os in
22969    darwin*)
22970        if test -n "$STRIP" ; then
22971          striplib="$STRIP -x"
22972          echo "$as_me:$LINENO: result: yes" >&5
22973 echo "${ECHO_T}yes" >&6
22974        else
22975   echo "$as_me:$LINENO: result: no" >&5
22976 echo "${ECHO_T}no" >&6
22977 fi
22978        ;;
22979    *)
22980   echo "$as_me:$LINENO: result: no" >&5
22981 echo "${ECHO_T}no" >&6
22982     ;;
22983   esac
22984 fi
22985
22986 if test "x$enable_dlopen" != xyes; then
22987   enable_dlopen=unknown
22988   enable_dlopen_self=unknown
22989   enable_dlopen_self_static=unknown
22990 else
22991   lt_cv_dlopen=no
22992   lt_cv_dlopen_libs=
22993
22994   case $host_os in
22995   beos*)
22996     lt_cv_dlopen="load_add_on"
22997     lt_cv_dlopen_libs=
22998     lt_cv_dlopen_self=yes
22999     ;;
23000
23001   mingw* | pw32*)
23002     lt_cv_dlopen="LoadLibrary"
23003     lt_cv_dlopen_libs=
23004    ;;
23005
23006   cygwin*)
23007     lt_cv_dlopen="dlopen"
23008     lt_cv_dlopen_libs=
23009    ;;
23010
23011   darwin*)
23012   # if libdl is installed we need to link against it
23013     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23014 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23015 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23016   echo $ECHO_N "(cached) $ECHO_C" >&6
23017 else
23018   ac_check_lib_save_LIBS=$LIBS
23019 LIBS="-ldl  $LIBS"
23020 cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h.  */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h.  */
23026
23027 /* Override any gcc2 internal prototype to avoid an error.  */
23028 #ifdef __cplusplus
23029 extern "C"
23030 #endif
23031 /* We use char because int might match the return type of a gcc2
23032    builtin and then its argument prototype would still apply.  */
23033 char dlopen ();
23034 int
23035 main ()
23036 {
23037 dlopen ();
23038   ;
23039   return 0;
23040 }
23041 _ACEOF
23042 rm -f conftest.$ac_objext conftest$ac_exeext
23043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23044   (eval $ac_link) 2>conftest.er1
23045   ac_status=$?
23046   grep -v '^ *+' conftest.er1 >conftest.err
23047   rm -f conftest.er1
23048   cat conftest.err >&5
23049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050   (exit $ac_status); } &&
23051          { ac_try='test -z "$ac_cxx_werror_flag"
23052                          || test ! -s conftest.err'
23053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054   (eval $ac_try) 2>&5
23055   ac_status=$?
23056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057   (exit $ac_status); }; } &&
23058          { ac_try='test -s conftest$ac_exeext'
23059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060   (eval $ac_try) 2>&5
23061   ac_status=$?
23062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063   (exit $ac_status); }; }; then
23064   ac_cv_lib_dl_dlopen=yes
23065 else
23066   echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23068
23069 ac_cv_lib_dl_dlopen=no
23070 fi
23071 rm -f conftest.err conftest.$ac_objext \
23072       conftest$ac_exeext conftest.$ac_ext
23073 LIBS=$ac_check_lib_save_LIBS
23074 fi
23075 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23076 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23077 if test $ac_cv_lib_dl_dlopen = yes; then
23078   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23079 else
23080
23081     lt_cv_dlopen="dyld"
23082     lt_cv_dlopen_libs=
23083     lt_cv_dlopen_self=yes
23084
23085 fi
23086
23087    ;;
23088
23089   *)
23090     echo "$as_me:$LINENO: checking for shl_load" >&5
23091 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23092 if test "${ac_cv_func_shl_load+set}" = set; then
23093   echo $ECHO_N "(cached) $ECHO_C" >&6
23094 else
23095   cat >conftest.$ac_ext <<_ACEOF
23096 /* confdefs.h.  */
23097 _ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h.  */
23101 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23103 #define shl_load innocuous_shl_load
23104
23105 /* System header to define __stub macros and hopefully few prototypes,
23106     which can conflict with char shl_load (); below.
23107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23108     <limits.h> exists even on freestanding compilers.  */
23109
23110 #ifdef __STDC__
23111 # include <limits.h>
23112 #else
23113 # include <assert.h>
23114 #endif
23115
23116 #undef shl_load
23117
23118 /* Override any gcc2 internal prototype to avoid an error.  */
23119 #ifdef __cplusplus
23120 extern "C"
23121 {
23122 #endif
23123 /* We use char because int might match the return type of a gcc2
23124    builtin and then its argument prototype would still apply.  */
23125 char shl_load ();
23126 /* The GNU C library defines this for functions which it implements
23127     to always fail with ENOSYS.  Some functions are actually named
23128     something starting with __ and the normal name is an alias.  */
23129 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23130 choke me
23131 #else
23132 char (*f) () = shl_load;
23133 #endif
23134 #ifdef __cplusplus
23135 }
23136 #endif
23137
23138 int
23139 main ()
23140 {
23141 return f != shl_load;
23142   ;
23143   return 0;
23144 }
23145 _ACEOF
23146 rm -f conftest.$ac_objext conftest$ac_exeext
23147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23148   (eval $ac_link) 2>conftest.er1
23149   ac_status=$?
23150   grep -v '^ *+' conftest.er1 >conftest.err
23151   rm -f conftest.er1
23152   cat conftest.err >&5
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); } &&
23155          { ac_try='test -z "$ac_cxx_werror_flag"
23156                          || test ! -s conftest.err'
23157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23158   (eval $ac_try) 2>&5
23159   ac_status=$?
23160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161   (exit $ac_status); }; } &&
23162          { ac_try='test -s conftest$ac_exeext'
23163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164   (eval $ac_try) 2>&5
23165   ac_status=$?
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); }; }; then
23168   ac_cv_func_shl_load=yes
23169 else
23170   echo "$as_me: failed program was:" >&5
23171 sed 's/^/| /' conftest.$ac_ext >&5
23172
23173 ac_cv_func_shl_load=no
23174 fi
23175 rm -f conftest.err conftest.$ac_objext \
23176       conftest$ac_exeext conftest.$ac_ext
23177 fi
23178 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23179 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23180 if test $ac_cv_func_shl_load = yes; then
23181   lt_cv_dlopen="shl_load"
23182 else
23183   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23184 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23185 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23186   echo $ECHO_N "(cached) $ECHO_C" >&6
23187 else
23188   ac_check_lib_save_LIBS=$LIBS
23189 LIBS="-ldld  $LIBS"
23190 cat >conftest.$ac_ext <<_ACEOF
23191 /* confdefs.h.  */
23192 _ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h.  */
23196
23197 /* Override any gcc2 internal prototype to avoid an error.  */
23198 #ifdef __cplusplus
23199 extern "C"
23200 #endif
23201 /* We use char because int might match the return type of a gcc2
23202    builtin and then its argument prototype would still apply.  */
23203 char shl_load ();
23204 int
23205 main ()
23206 {
23207 shl_load ();
23208   ;
23209   return 0;
23210 }
23211 _ACEOF
23212 rm -f conftest.$ac_objext conftest$ac_exeext
23213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23214   (eval $ac_link) 2>conftest.er1
23215   ac_status=$?
23216   grep -v '^ *+' conftest.er1 >conftest.err
23217   rm -f conftest.er1
23218   cat conftest.err >&5
23219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220   (exit $ac_status); } &&
23221          { ac_try='test -z "$ac_cxx_werror_flag"
23222                          || test ! -s conftest.err'
23223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224   (eval $ac_try) 2>&5
23225   ac_status=$?
23226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227   (exit $ac_status); }; } &&
23228          { ac_try='test -s conftest$ac_exeext'
23229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230   (eval $ac_try) 2>&5
23231   ac_status=$?
23232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233   (exit $ac_status); }; }; then
23234   ac_cv_lib_dld_shl_load=yes
23235 else
23236   echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23238
23239 ac_cv_lib_dld_shl_load=no
23240 fi
23241 rm -f conftest.err conftest.$ac_objext \
23242       conftest$ac_exeext conftest.$ac_ext
23243 LIBS=$ac_check_lib_save_LIBS
23244 fi
23245 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23246 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23247 if test $ac_cv_lib_dld_shl_load = yes; then
23248   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23249 else
23250   echo "$as_me:$LINENO: checking for dlopen" >&5
23251 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23252 if test "${ac_cv_func_dlopen+set}" = set; then
23253   echo $ECHO_N "(cached) $ECHO_C" >&6
23254 else
23255   cat >conftest.$ac_ext <<_ACEOF
23256 /* confdefs.h.  */
23257 _ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h.  */
23261 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23263 #define dlopen innocuous_dlopen
23264
23265 /* System header to define __stub macros and hopefully few prototypes,
23266     which can conflict with char dlopen (); below.
23267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23268     <limits.h> exists even on freestanding compilers.  */
23269
23270 #ifdef __STDC__
23271 # include <limits.h>
23272 #else
23273 # include <assert.h>
23274 #endif
23275
23276 #undef dlopen
23277
23278 /* Override any gcc2 internal prototype to avoid an error.  */
23279 #ifdef __cplusplus
23280 extern "C"
23281 {
23282 #endif
23283 /* We use char because int might match the return type of a gcc2
23284    builtin and then its argument prototype would still apply.  */
23285 char dlopen ();
23286 /* The GNU C library defines this for functions which it implements
23287     to always fail with ENOSYS.  Some functions are actually named
23288     something starting with __ and the normal name is an alias.  */
23289 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23290 choke me
23291 #else
23292 char (*f) () = dlopen;
23293 #endif
23294 #ifdef __cplusplus
23295 }
23296 #endif
23297
23298 int
23299 main ()
23300 {
23301 return f != dlopen;
23302   ;
23303   return 0;
23304 }
23305 _ACEOF
23306 rm -f conftest.$ac_objext conftest$ac_exeext
23307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23308   (eval $ac_link) 2>conftest.er1
23309   ac_status=$?
23310   grep -v '^ *+' conftest.er1 >conftest.err
23311   rm -f conftest.er1
23312   cat conftest.err >&5
23313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314   (exit $ac_status); } &&
23315          { ac_try='test -z "$ac_cxx_werror_flag"
23316                          || test ! -s conftest.err'
23317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318   (eval $ac_try) 2>&5
23319   ac_status=$?
23320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321   (exit $ac_status); }; } &&
23322          { ac_try='test -s conftest$ac_exeext'
23323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324   (eval $ac_try) 2>&5
23325   ac_status=$?
23326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327   (exit $ac_status); }; }; then
23328   ac_cv_func_dlopen=yes
23329 else
23330   echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23332
23333 ac_cv_func_dlopen=no
23334 fi
23335 rm -f conftest.err conftest.$ac_objext \
23336       conftest$ac_exeext conftest.$ac_ext
23337 fi
23338 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23339 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23340 if test $ac_cv_func_dlopen = yes; then
23341   lt_cv_dlopen="dlopen"
23342 else
23343   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23344 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23345 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23346   echo $ECHO_N "(cached) $ECHO_C" >&6
23347 else
23348   ac_check_lib_save_LIBS=$LIBS
23349 LIBS="-ldl  $LIBS"
23350 cat >conftest.$ac_ext <<_ACEOF
23351 /* confdefs.h.  */
23352 _ACEOF
23353 cat confdefs.h >>conftest.$ac_ext
23354 cat >>conftest.$ac_ext <<_ACEOF
23355 /* end confdefs.h.  */
23356
23357 /* Override any gcc2 internal prototype to avoid an error.  */
23358 #ifdef __cplusplus
23359 extern "C"
23360 #endif
23361 /* We use char because int might match the return type of a gcc2
23362    builtin and then its argument prototype would still apply.  */
23363 char dlopen ();
23364 int
23365 main ()
23366 {
23367 dlopen ();
23368   ;
23369   return 0;
23370 }
23371 _ACEOF
23372 rm -f conftest.$ac_objext conftest$ac_exeext
23373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23374   (eval $ac_link) 2>conftest.er1
23375   ac_status=$?
23376   grep -v '^ *+' conftest.er1 >conftest.err
23377   rm -f conftest.er1
23378   cat conftest.err >&5
23379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380   (exit $ac_status); } &&
23381          { ac_try='test -z "$ac_cxx_werror_flag"
23382                          || test ! -s conftest.err'
23383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384   (eval $ac_try) 2>&5
23385   ac_status=$?
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); }; } &&
23388          { ac_try='test -s conftest$ac_exeext'
23389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390   (eval $ac_try) 2>&5
23391   ac_status=$?
23392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393   (exit $ac_status); }; }; then
23394   ac_cv_lib_dl_dlopen=yes
23395 else
23396   echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23398
23399 ac_cv_lib_dl_dlopen=no
23400 fi
23401 rm -f conftest.err conftest.$ac_objext \
23402       conftest$ac_exeext conftest.$ac_ext
23403 LIBS=$ac_check_lib_save_LIBS
23404 fi
23405 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23406 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23407 if test $ac_cv_lib_dl_dlopen = yes; then
23408   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23409 else
23410   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23411 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23412 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23413   echo $ECHO_N "(cached) $ECHO_C" >&6
23414 else
23415   ac_check_lib_save_LIBS=$LIBS
23416 LIBS="-lsvld  $LIBS"
23417 cat >conftest.$ac_ext <<_ACEOF
23418 /* confdefs.h.  */
23419 _ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h.  */
23423
23424 /* Override any gcc2 internal prototype to avoid an error.  */
23425 #ifdef __cplusplus
23426 extern "C"
23427 #endif
23428 /* We use char because int might match the return type of a gcc2
23429    builtin and then its argument prototype would still apply.  */
23430 char dlopen ();
23431 int
23432 main ()
23433 {
23434 dlopen ();
23435   ;
23436   return 0;
23437 }
23438 _ACEOF
23439 rm -f conftest.$ac_objext conftest$ac_exeext
23440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23441   (eval $ac_link) 2>conftest.er1
23442   ac_status=$?
23443   grep -v '^ *+' conftest.er1 >conftest.err
23444   rm -f conftest.er1
23445   cat conftest.err >&5
23446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447   (exit $ac_status); } &&
23448          { ac_try='test -z "$ac_cxx_werror_flag"
23449                          || test ! -s conftest.err'
23450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451   (eval $ac_try) 2>&5
23452   ac_status=$?
23453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454   (exit $ac_status); }; } &&
23455          { ac_try='test -s conftest$ac_exeext'
23456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457   (eval $ac_try) 2>&5
23458   ac_status=$?
23459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460   (exit $ac_status); }; }; then
23461   ac_cv_lib_svld_dlopen=yes
23462 else
23463   echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23465
23466 ac_cv_lib_svld_dlopen=no
23467 fi
23468 rm -f conftest.err conftest.$ac_objext \
23469       conftest$ac_exeext conftest.$ac_ext
23470 LIBS=$ac_check_lib_save_LIBS
23471 fi
23472 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23473 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23474 if test $ac_cv_lib_svld_dlopen = yes; then
23475   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23476 else
23477   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23478 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23479 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23480   echo $ECHO_N "(cached) $ECHO_C" >&6
23481 else
23482   ac_check_lib_save_LIBS=$LIBS
23483 LIBS="-ldld  $LIBS"
23484 cat >conftest.$ac_ext <<_ACEOF
23485 /* confdefs.h.  */
23486 _ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h.  */
23490
23491 /* Override any gcc2 internal prototype to avoid an error.  */
23492 #ifdef __cplusplus
23493 extern "C"
23494 #endif
23495 /* We use char because int might match the return type of a gcc2
23496    builtin and then its argument prototype would still apply.  */
23497 char dld_link ();
23498 int
23499 main ()
23500 {
23501 dld_link ();
23502   ;
23503   return 0;
23504 }
23505 _ACEOF
23506 rm -f conftest.$ac_objext conftest$ac_exeext
23507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23508   (eval $ac_link) 2>conftest.er1
23509   ac_status=$?
23510   grep -v '^ *+' conftest.er1 >conftest.err
23511   rm -f conftest.er1
23512   cat conftest.err >&5
23513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514   (exit $ac_status); } &&
23515          { ac_try='test -z "$ac_cxx_werror_flag"
23516                          || test ! -s conftest.err'
23517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518   (eval $ac_try) 2>&5
23519   ac_status=$?
23520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); }; } &&
23522          { ac_try='test -s conftest$ac_exeext'
23523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524   (eval $ac_try) 2>&5
23525   ac_status=$?
23526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527   (exit $ac_status); }; }; then
23528   ac_cv_lib_dld_dld_link=yes
23529 else
23530   echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23532
23533 ac_cv_lib_dld_dld_link=no
23534 fi
23535 rm -f conftest.err conftest.$ac_objext \
23536       conftest$ac_exeext conftest.$ac_ext
23537 LIBS=$ac_check_lib_save_LIBS
23538 fi
23539 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23540 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23541 if test $ac_cv_lib_dld_dld_link = yes; then
23542   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23543 fi
23544
23545
23546 fi
23547
23548
23549 fi
23550
23551
23552 fi
23553
23554
23555 fi
23556
23557
23558 fi
23559
23560     ;;
23561   esac
23562
23563   if test "x$lt_cv_dlopen" != xno; then
23564     enable_dlopen=yes
23565   else
23566     enable_dlopen=no
23567   fi
23568
23569   case $lt_cv_dlopen in
23570   dlopen)
23571     save_CPPFLAGS="$CPPFLAGS"
23572     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23573
23574     save_LDFLAGS="$LDFLAGS"
23575     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23576
23577     save_LIBS="$LIBS"
23578     LIBS="$lt_cv_dlopen_libs $LIBS"
23579
23580     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23581 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23582 if test "${lt_cv_dlopen_self+set}" = set; then
23583   echo $ECHO_N "(cached) $ECHO_C" >&6
23584 else
23585           if test "$cross_compiling" = yes; then :
23586   lt_cv_dlopen_self=cross
23587 else
23588   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23589   lt_status=$lt_dlunknown
23590   cat > conftest.$ac_ext <<EOF
23591 #line 23591 "configure"
23592 #include "confdefs.h"
23593
23594 #if HAVE_DLFCN_H
23595 #include <dlfcn.h>
23596 #endif
23597
23598 #include <stdio.h>
23599
23600 #ifdef RTLD_GLOBAL
23601 #  define LT_DLGLOBAL           RTLD_GLOBAL
23602 #else
23603 #  ifdef DL_GLOBAL
23604 #    define LT_DLGLOBAL         DL_GLOBAL
23605 #  else
23606 #    define LT_DLGLOBAL         0
23607 #  endif
23608 #endif
23609
23610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23611    find out it does not work in some platform. */
23612 #ifndef LT_DLLAZY_OR_NOW
23613 #  ifdef RTLD_LAZY
23614 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23615 #  else
23616 #    ifdef DL_LAZY
23617 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23618 #    else
23619 #      ifdef RTLD_NOW
23620 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23621 #      else
23622 #        ifdef DL_NOW
23623 #          define LT_DLLAZY_OR_NOW      DL_NOW
23624 #        else
23625 #          define LT_DLLAZY_OR_NOW      0
23626 #        endif
23627 #      endif
23628 #    endif
23629 #  endif
23630 #endif
23631
23632 #ifdef __cplusplus
23633 extern "C" void exit (int);
23634 #endif
23635
23636 void fnord() { int i=42;}
23637 int main ()
23638 {
23639   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23640   int status = $lt_dlunknown;
23641
23642   if (self)
23643     {
23644       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23645       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23646       /* dlclose (self); */
23647     }
23648
23649     exit (status);
23650 }
23651 EOF
23652   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23653   (eval $ac_link) 2>&5
23654   ac_status=$?
23655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23657     (./conftest; exit; ) >&5 2>/dev/null
23658     lt_status=$?
23659     case x$lt_status in
23660       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23661       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23662       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23663     esac
23664   else :
23665     # compilation failed
23666     lt_cv_dlopen_self=no
23667   fi
23668 fi
23669 rm -fr conftest*
23670
23671
23672 fi
23673 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23674 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23675
23676     if test "x$lt_cv_dlopen_self" = xyes; then
23677       LDFLAGS="$LDFLAGS $link_static_flag"
23678       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23679 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23680 if test "${lt_cv_dlopen_self_static+set}" = set; then
23681   echo $ECHO_N "(cached) $ECHO_C" >&6
23682 else
23683           if test "$cross_compiling" = yes; then :
23684   lt_cv_dlopen_self_static=cross
23685 else
23686   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23687   lt_status=$lt_dlunknown
23688   cat > conftest.$ac_ext <<EOF
23689 #line 23689 "configure"
23690 #include "confdefs.h"
23691
23692 #if HAVE_DLFCN_H
23693 #include <dlfcn.h>
23694 #endif
23695
23696 #include <stdio.h>
23697
23698 #ifdef RTLD_GLOBAL
23699 #  define LT_DLGLOBAL           RTLD_GLOBAL
23700 #else
23701 #  ifdef DL_GLOBAL
23702 #    define LT_DLGLOBAL         DL_GLOBAL
23703 #  else
23704 #    define LT_DLGLOBAL         0
23705 #  endif
23706 #endif
23707
23708 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23709    find out it does not work in some platform. */
23710 #ifndef LT_DLLAZY_OR_NOW
23711 #  ifdef RTLD_LAZY
23712 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23713 #  else
23714 #    ifdef DL_LAZY
23715 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23716 #    else
23717 #      ifdef RTLD_NOW
23718 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23719 #      else
23720 #        ifdef DL_NOW
23721 #          define LT_DLLAZY_OR_NOW      DL_NOW
23722 #        else
23723 #          define LT_DLLAZY_OR_NOW      0
23724 #        endif
23725 #      endif
23726 #    endif
23727 #  endif
23728 #endif
23729
23730 #ifdef __cplusplus
23731 extern "C" void exit (int);
23732 #endif
23733
23734 void fnord() { int i=42;}
23735 int main ()
23736 {
23737   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23738   int status = $lt_dlunknown;
23739
23740   if (self)
23741     {
23742       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23743       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23744       /* dlclose (self); */
23745     }
23746
23747     exit (status);
23748 }
23749 EOF
23750   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23751   (eval $ac_link) 2>&5
23752   ac_status=$?
23753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23755     (./conftest; exit; ) >&5 2>/dev/null
23756     lt_status=$?
23757     case x$lt_status in
23758       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23759       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23760       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23761     esac
23762   else :
23763     # compilation failed
23764     lt_cv_dlopen_self_static=no
23765   fi
23766 fi
23767 rm -fr conftest*
23768
23769
23770 fi
23771 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23772 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23773     fi
23774
23775     CPPFLAGS="$save_CPPFLAGS"
23776     LDFLAGS="$save_LDFLAGS"
23777     LIBS="$save_LIBS"
23778     ;;
23779   esac
23780
23781   case $lt_cv_dlopen_self in
23782   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23783   *) enable_dlopen_self=unknown ;;
23784   esac
23785
23786   case $lt_cv_dlopen_self_static in
23787   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23788   *) enable_dlopen_self_static=unknown ;;
23789   esac
23790 fi
23791
23792
23793 # The else clause should only fire when bootstrapping the
23794 # libtool distribution, otherwise you forgot to ship ltmain.sh
23795 # with your package, and you will get complaints that there are
23796 # no rules to generate ltmain.sh.
23797 if test -f "$ltmain"; then
23798   # See if we are running on zsh, and set the options which allow our commands through
23799   # without removal of \ escapes.
23800   if test -n "${ZSH_VERSION+set}" ; then
23801     setopt NO_GLOB_SUBST
23802   fi
23803   # Now quote all the things that may contain metacharacters while being
23804   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23805   # variables and quote the copies for generation of the libtool script.
23806   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23807     SED SHELL STRIP \
23808     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23809     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23810     deplibs_check_method reload_flag reload_cmds need_locks \
23811     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23812     lt_cv_sys_global_symbol_to_c_name_address \
23813     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23814     old_postinstall_cmds old_postuninstall_cmds \
23815     compiler_CXX \
23816     CC_CXX \
23817     LD_CXX \
23818     lt_prog_compiler_wl_CXX \
23819     lt_prog_compiler_pic_CXX \
23820     lt_prog_compiler_static_CXX \
23821     lt_prog_compiler_no_builtin_flag_CXX \
23822     export_dynamic_flag_spec_CXX \
23823     thread_safe_flag_spec_CXX \
23824     whole_archive_flag_spec_CXX \
23825     enable_shared_with_static_runtimes_CXX \
23826     old_archive_cmds_CXX \
23827     old_archive_from_new_cmds_CXX \
23828     predep_objects_CXX \
23829     postdep_objects_CXX \
23830     predeps_CXX \
23831     postdeps_CXX \
23832     compiler_lib_search_path_CXX \
23833     archive_cmds_CXX \
23834     archive_expsym_cmds_CXX \
23835     postinstall_cmds_CXX \
23836     postuninstall_cmds_CXX \
23837     old_archive_from_expsyms_cmds_CXX \
23838     allow_undefined_flag_CXX \
23839     no_undefined_flag_CXX \
23840     export_symbols_cmds_CXX \
23841     hardcode_libdir_flag_spec_CXX \
23842     hardcode_libdir_flag_spec_ld_CXX \
23843     hardcode_libdir_separator_CXX \
23844     hardcode_automatic_CXX \
23845     module_cmds_CXX \
23846     module_expsym_cmds_CXX \
23847     lt_cv_prog_compiler_c_o_CXX \
23848     exclude_expsyms_CXX \
23849     include_expsyms_CXX; do
23850
23851     case $var in
23852     old_archive_cmds_CXX | \
23853     old_archive_from_new_cmds_CXX | \
23854     archive_cmds_CXX | \
23855     archive_expsym_cmds_CXX | \
23856     module_cmds_CXX | \
23857     module_expsym_cmds_CXX | \
23858     old_archive_from_expsyms_cmds_CXX | \
23859     export_symbols_cmds_CXX | \
23860     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23861     postinstall_cmds | postuninstall_cmds | \
23862     old_postinstall_cmds | old_postuninstall_cmds | \
23863     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23864       # Double-quote double-evaled strings.
23865       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23866       ;;
23867     *)
23868       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23869       ;;
23870     esac
23871   done
23872
23873   case $lt_echo in
23874   *'\$0 --fallback-echo"')
23875     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23876     ;;
23877   esac
23878
23879 cfgfile="$ofile"
23880
23881   cat <<__EOF__ >> "$cfgfile"
23882 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23883
23884 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23885
23886 # Shell to use when invoking shell scripts.
23887 SHELL=$lt_SHELL
23888
23889 # Whether or not to build shared libraries.
23890 build_libtool_libs=$enable_shared
23891
23892 # Whether or not to build static libraries.
23893 build_old_libs=$enable_static
23894
23895 # Whether or not to add -lc for building shared libraries.
23896 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23897
23898 # Whether or not to disallow shared libs when runtime libs are static
23899 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23900
23901 # Whether or not to optimize for fast installation.
23902 fast_install=$enable_fast_install
23903
23904 # The host system.
23905 host_alias=$host_alias
23906 host=$host
23907 host_os=$host_os
23908
23909 # The build system.
23910 build_alias=$build_alias
23911 build=$build
23912 build_os=$build_os
23913
23914 # An echo program that does not interpret backslashes.
23915 echo=$lt_echo
23916
23917 # The archiver.
23918 AR=$lt_AR
23919 AR_FLAGS=$lt_AR_FLAGS
23920
23921 # A C compiler.
23922 LTCC=$lt_LTCC
23923
23924 # A language-specific compiler.
23925 CC=$lt_compiler_CXX
23926
23927 # Is the compiler the GNU C compiler?
23928 with_gcc=$GCC_CXX
23929
23930 # An ERE matcher.
23931 EGREP=$lt_EGREP
23932
23933 # The linker used to build libraries.
23934 LD=$lt_LD_CXX
23935
23936 # Whether we need hard or soft links.
23937 LN_S=$lt_LN_S
23938
23939 # A BSD-compatible nm program.
23940 NM=$lt_NM
23941
23942 # A symbol stripping program
23943 STRIP=$lt_STRIP
23944
23945 # Used to examine libraries when file_magic_cmd begins "file"
23946 MAGIC_CMD=$MAGIC_CMD
23947
23948 # Used on cygwin: DLL creation program.
23949 DLLTOOL="$DLLTOOL"
23950
23951 # Used on cygwin: object dumper.
23952 OBJDUMP="$OBJDUMP"
23953
23954 # Used on cygwin: assembler.
23955 AS="$AS"
23956
23957 # The name of the directory that contains temporary libtool files.
23958 objdir=$objdir
23959
23960 # How to create reloadable object files.
23961 reload_flag=$lt_reload_flag
23962 reload_cmds=$lt_reload_cmds
23963
23964 # How to pass a linker flag through the compiler.
23965 wl=$lt_lt_prog_compiler_wl_CXX
23966
23967 # Object file suffix (normally "o").
23968 objext="$ac_objext"
23969
23970 # Old archive suffix (normally "a").
23971 libext="$libext"
23972
23973 # Shared library suffix (normally ".so").
23974 shrext_cmds='$shrext_cmds'
23975
23976 # Executable file suffix (normally "").
23977 exeext="$exeext"
23978
23979 # Additional compiler flags for building library objects.
23980 pic_flag=$lt_lt_prog_compiler_pic_CXX
23981 pic_mode=$pic_mode
23982
23983 # What is the maximum length of a command?
23984 max_cmd_len=$lt_cv_sys_max_cmd_len
23985
23986 # Does compiler simultaneously support -c and -o options?
23987 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23988
23989 # Must we lock files when doing compilation?
23990 need_locks=$lt_need_locks
23991
23992 # Do we need the lib prefix for modules?
23993 need_lib_prefix=$need_lib_prefix
23994
23995 # Do we need a version for libraries?
23996 need_version=$need_version
23997
23998 # Whether dlopen is supported.
23999 dlopen_support=$enable_dlopen
24000
24001 # Whether dlopen of programs is supported.
24002 dlopen_self=$enable_dlopen_self
24003
24004 # Whether dlopen of statically linked programs is supported.
24005 dlopen_self_static=$enable_dlopen_self_static
24006
24007 # Compiler flag to prevent dynamic linking.
24008 link_static_flag=$lt_lt_prog_compiler_static_CXX
24009
24010 # Compiler flag to turn off builtin functions.
24011 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24012
24013 # Compiler flag to allow reflexive dlopens.
24014 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24015
24016 # Compiler flag to generate shared objects directly from archives.
24017 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24018
24019 # Compiler flag to generate thread-safe objects.
24020 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
24021
24022 # Library versioning type.
24023 version_type=$version_type
24024
24025 # Format of library name prefix.
24026 libname_spec=$lt_libname_spec
24027
24028 # List of archive names.  First name is the real one, the rest are links.
24029 # The last name is the one that the linker finds with -lNAME.
24030 library_names_spec=$lt_library_names_spec
24031
24032 # The coded name of the library, if different from the real name.
24033 soname_spec=$lt_soname_spec
24034
24035 # Commands used to build and install an old-style archive.
24036 RANLIB=$lt_RANLIB
24037 old_archive_cmds=$lt_old_archive_cmds_CXX
24038 old_postinstall_cmds=$lt_old_postinstall_cmds
24039 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24040
24041 # Create an old-style archive from a shared archive.
24042 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24043
24044 # Create a temporary old-style archive to link instead of a shared archive.
24045 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24046
24047 # Commands used to build and install a shared archive.
24048 archive_cmds=$lt_archive_cmds_CXX
24049 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24050 postinstall_cmds=$lt_postinstall_cmds
24051 postuninstall_cmds=$lt_postuninstall_cmds
24052
24053 # Commands used to build a loadable module (assumed same as above if empty)
24054 module_cmds=$lt_module_cmds_CXX
24055 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24056
24057 # Commands to strip libraries.
24058 old_striplib=$lt_old_striplib
24059 striplib=$lt_striplib
24060
24061 # Dependencies to place before the objects being linked to create a
24062 # shared library.
24063 predep_objects=$lt_predep_objects_CXX
24064
24065 # Dependencies to place after the objects being linked to create a
24066 # shared library.
24067 postdep_objects=$lt_postdep_objects_CXX
24068
24069 # Dependencies to place before the objects being linked to create a
24070 # shared library.
24071 predeps=$lt_predeps_CXX
24072
24073 # Dependencies to place after the objects being linked to create a
24074 # shared library.
24075 postdeps=$lt_postdeps_CXX
24076
24077 # The library search path used internally by the compiler when linking
24078 # a shared library.
24079 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24080
24081 # Method to check whether dependent libraries are shared objects.
24082 deplibs_check_method=$lt_deplibs_check_method
24083
24084 # Command to use when deplibs_check_method == file_magic.
24085 file_magic_cmd=$lt_file_magic_cmd
24086
24087 # Flag that allows shared libraries with undefined symbols to be built.
24088 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24089
24090 # Flag that forces no undefined symbols.
24091 no_undefined_flag=$lt_no_undefined_flag_CXX
24092
24093 # Commands used to finish a libtool library installation in a directory.
24094 finish_cmds=$lt_finish_cmds
24095
24096 # Same as above, but a single script fragment to be evaled but not shown.
24097 finish_eval=$lt_finish_eval
24098
24099 # Take the output of nm and produce a listing of raw symbols and C names.
24100 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24101
24102 # Transform the output of nm in a proper C declaration
24103 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24104
24105 # Transform the output of nm in a C name address pair
24106 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24107
24108 # This is the shared library runtime path variable.
24109 runpath_var=$runpath_var
24110
24111 # This is the shared library path variable.
24112 shlibpath_var=$shlibpath_var
24113
24114 # Is shlibpath searched before the hard-coded library search path?
24115 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24116
24117 # How to hardcode a shared library path into an executable.
24118 hardcode_action=$hardcode_action_CXX
24119
24120 # Whether we should hardcode library paths into libraries.
24121 hardcode_into_libs=$hardcode_into_libs
24122
24123 # Flag to hardcode \$libdir into a binary during linking.
24124 # This must work even if \$libdir does not exist.
24125 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24126
24127 # If ld is used when linking, flag to hardcode \$libdir into
24128 # a binary during linking. This must work even if \$libdir does
24129 # not exist.
24130 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
24131
24132 # Whether we need a single -rpath flag with a separated argument.
24133 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24134
24135 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24136 # resulting binary.
24137 hardcode_direct=$hardcode_direct_CXX
24138
24139 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24140 # resulting binary.
24141 hardcode_minus_L=$hardcode_minus_L_CXX
24142
24143 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24144 # the resulting binary.
24145 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24146
24147 # Set to yes if building a shared library automatically hardcodes DIR into the library
24148 # and all subsequent libraries and executables linked against it.
24149 hardcode_automatic=$hardcode_automatic_CXX
24150
24151 # Variables whose values should be saved in libtool wrapper scripts and
24152 # restored at relink time.
24153 variables_saved_for_relink="$variables_saved_for_relink"
24154
24155 # Whether libtool must link a program against all its dependency libraries.
24156 link_all_deplibs=$link_all_deplibs_CXX
24157
24158 # Compile-time system search path for libraries
24159 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24160
24161 # Run-time system search path for libraries
24162 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24163
24164 # Fix the shell variable \$srcfile for the compiler.
24165 fix_srcfile_path="$fix_srcfile_path_CXX"
24166
24167 # Set to yes if exported symbols are required.
24168 always_export_symbols=$always_export_symbols_CXX
24169
24170 # The commands to list exported symbols.
24171 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24172
24173 # The commands to extract the exported symbol list from a shared archive.
24174 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24175
24176 # Symbols that should not be listed in the preloaded symbols.
24177 exclude_expsyms=$lt_exclude_expsyms_CXX
24178
24179 # Symbols that must always be exported.
24180 include_expsyms=$lt_include_expsyms_CXX
24181
24182 # ### END LIBTOOL TAG CONFIG: $tagname
24183
24184 __EOF__
24185
24186
24187 else
24188   # If there is no Makefile yet, we rely on a make rule to execute
24189   # `config.status --recheck' to rerun these tests and create the
24190   # libtool script then.
24191   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24192   if test -f "$ltmain_in"; then
24193     test -f Makefile && make "$ltmain"
24194   fi
24195 fi
24196
24197
24198 ac_ext=c
24199 ac_cpp='$CPP $CPPFLAGS'
24200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24203
24204 CC=$lt_save_CC
24205 LDCXX=$LD
24206 LD=$lt_save_LD
24207 GCC=$lt_save_GCC
24208 with_gnu_ldcxx=$with_gnu_ld
24209 with_gnu_ld=$lt_save_with_gnu_ld
24210 lt_cv_path_LDCXX=$lt_cv_path_LD
24211 lt_cv_path_LD=$lt_save_path_LD
24212 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24213 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24214
24215         else
24216           tagname=""
24217         fi
24218         ;;
24219
24220       F77)
24221         if test -n "$F77" && test "X$F77" != "Xno"; then
24222
24223 ac_ext=f
24224 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24225 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24226 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24227
24228
24229 archive_cmds_need_lc_F77=no
24230 allow_undefined_flag_F77=
24231 always_export_symbols_F77=no
24232 archive_expsym_cmds_F77=
24233 export_dynamic_flag_spec_F77=
24234 hardcode_direct_F77=no
24235 hardcode_libdir_flag_spec_F77=
24236 hardcode_libdir_flag_spec_ld_F77=
24237 hardcode_libdir_separator_F77=
24238 hardcode_minus_L_F77=no
24239 hardcode_automatic_F77=no
24240 module_cmds_F77=
24241 module_expsym_cmds_F77=
24242 link_all_deplibs_F77=unknown
24243 old_archive_cmds_F77=$old_archive_cmds
24244 no_undefined_flag_F77=
24245 whole_archive_flag_spec_F77=
24246 enable_shared_with_static_runtimes_F77=no
24247
24248 # Source file extension for f77 test sources.
24249 ac_ext=f
24250
24251 # Object file extension for compiled f77 test sources.
24252 objext=o
24253 objext_F77=$objext
24254
24255 # Code to be used in simple compile tests
24256 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
24257
24258 # Code to be used in simple link tests
24259 lt_simple_link_test_code="      program t\n      end\n"
24260
24261 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24262
24263 # If no C compiler was specified, use CC.
24264 LTCC=${LTCC-"$CC"}
24265
24266 # Allow CC to be a program name with arguments.
24267 compiler=$CC
24268
24269
24270 # save warnings/boilerplate of simple test code
24271 ac_outfile=conftest.$ac_objext
24272 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24273 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
24274 _lt_compiler_boilerplate=`cat conftest.err`
24275 $rm conftest*
24276
24277 ac_outfile=conftest.$ac_objext
24278 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24279 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
24280 _lt_linker_boilerplate=`cat conftest.err`
24281 $rm conftest*
24282
24283
24284 # Allow CC to be a program name with arguments.
24285 lt_save_CC="$CC"
24286 CC=${F77-"f77"}
24287 compiler=$CC
24288 compiler_F77=$CC
24289 for cc_temp in $compiler""; do
24290   case $cc_temp in
24291     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24292     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24293     \-*) ;;
24294     *) break;;
24295   esac
24296 done
24297 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24298
24299
24300 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
24301 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
24302 echo "$as_me:$LINENO: result: $can_build_shared" >&5
24303 echo "${ECHO_T}$can_build_shared" >&6
24304
24305 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
24306 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
24307 test "$can_build_shared" = "no" && enable_shared=no
24308
24309 # On AIX, shared libraries and static libraries use the same namespace, and
24310 # are all built from PIC.
24311 case $host_os in
24312 aix3*)
24313   test "$enable_shared" = yes && enable_static=no
24314   if test -n "$RANLIB"; then
24315     archive_cmds="$archive_cmds~\$RANLIB \$lib"
24316     postinstall_cmds='$RANLIB $lib'
24317   fi
24318   ;;
24319 aix4* | aix5*)
24320   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
24321     test "$enable_shared" = yes && enable_static=no
24322   fi
24323   ;;
24324 esac
24325 echo "$as_me:$LINENO: result: $enable_shared" >&5
24326 echo "${ECHO_T}$enable_shared" >&6
24327
24328 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
24329 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
24330 # Make sure either enable_shared or enable_static is yes.
24331 test "$enable_shared" = yes || enable_static=yes
24332 echo "$as_me:$LINENO: result: $enable_static" >&5
24333 echo "${ECHO_T}$enable_static" >&6
24334
24335 test "$ld_shlibs_F77" = no && can_build_shared=no
24336
24337 GCC_F77="$G77"
24338 LD_F77="$LD"
24339
24340 lt_prog_compiler_wl_F77=
24341 lt_prog_compiler_pic_F77=
24342 lt_prog_compiler_static_F77=
24343
24344 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24345 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
24346
24347   if test "$GCC" = yes; then
24348     lt_prog_compiler_wl_F77='-Wl,'
24349     lt_prog_compiler_static_F77='-static'
24350
24351     case $host_os in
24352       aix*)
24353       # All AIX code is PIC.
24354       if test "$host_cpu" = ia64; then
24355         # AIX 5 now supports IA64 processor
24356         lt_prog_compiler_static_F77='-Bstatic'
24357       fi
24358       ;;
24359
24360     amigaos*)
24361       # FIXME: we need at least 68020 code to build shared libraries, but
24362       # adding the `-m68020' flag to GCC prevents building anything better,
24363       # like `-m68040'.
24364       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
24365       ;;
24366
24367     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24368       # PIC is the default for these OSes.
24369       ;;
24370
24371     mingw* | pw32* | os2*)
24372       # This hack is so that the source file can tell whether it is being
24373       # built for inclusion in a dll (and should export symbols for example).
24374       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
24375       ;;
24376
24377     darwin* | rhapsody*)
24378       # PIC is the default on this platform
24379       # Common symbols not allowed in MH_DYLIB files
24380       lt_prog_compiler_pic_F77='-fno-common'
24381       ;;
24382
24383     msdosdjgpp*)
24384       # Just because we use GCC doesn't mean we suddenly get shared libraries
24385       # on systems that don't support them.
24386       lt_prog_compiler_can_build_shared_F77=no
24387       enable_shared=no
24388       ;;
24389
24390     sysv4*MP*)
24391       if test -d /usr/nec; then
24392         lt_prog_compiler_pic_F77=-Kconform_pic
24393       fi
24394       ;;
24395
24396     hpux*)
24397       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24398       # not for PA HP-UX.
24399       case $host_cpu in
24400       hppa*64*|ia64*)
24401         # +Z the default
24402         ;;
24403       *)
24404         lt_prog_compiler_pic_F77='-fPIC'
24405         ;;
24406       esac
24407       ;;
24408
24409     *)
24410       lt_prog_compiler_pic_F77='-fPIC'
24411       ;;
24412     esac
24413   else
24414     # PORTME Check for flag to pass linker flags through the system compiler.
24415     case $host_os in
24416     aix*)
24417       lt_prog_compiler_wl_F77='-Wl,'
24418       if test "$host_cpu" = ia64; then
24419         # AIX 5 now supports IA64 processor
24420         lt_prog_compiler_static_F77='-Bstatic'
24421       else
24422         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
24423       fi
24424       ;;
24425       darwin*)
24426         # PIC is the default on this platform
24427         # Common symbols not allowed in MH_DYLIB files
24428        case $cc_basename in
24429          xlc*)
24430          lt_prog_compiler_pic_F77='-qnocommon'
24431          lt_prog_compiler_wl_F77='-Wl,'
24432          ;;
24433        esac
24434        ;;
24435
24436     mingw* | pw32* | os2*)
24437       # This hack is so that the source file can tell whether it is being
24438       # built for inclusion in a dll (and should export symbols for example).
24439       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
24440       ;;
24441
24442     hpux9* | hpux10* | hpux11*)
24443       lt_prog_compiler_wl_F77='-Wl,'
24444       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24445       # not for PA HP-UX.
24446       case $host_cpu in
24447       hppa*64*|ia64*)
24448         # +Z the default
24449         ;;
24450       *)
24451         lt_prog_compiler_pic_F77='+Z'
24452         ;;
24453       esac
24454       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24455       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
24456       ;;
24457
24458     irix5* | irix6* | nonstopux*)
24459       lt_prog_compiler_wl_F77='-Wl,'
24460       # PIC (with -KPIC) is the default.
24461       lt_prog_compiler_static_F77='-non_shared'
24462       ;;
24463
24464     newsos6)
24465       lt_prog_compiler_pic_F77='-KPIC'
24466       lt_prog_compiler_static_F77='-Bstatic'
24467       ;;
24468
24469     linux*)
24470       case $cc_basename in
24471       icc* | ecc*)
24472         lt_prog_compiler_wl_F77='-Wl,'
24473         lt_prog_compiler_pic_F77='-KPIC'
24474         lt_prog_compiler_static_F77='-static'
24475         ;;
24476       pgcc* | pgf77* | pgf90* | pgf95*)
24477         # Portland Group compilers (*not* the Pentium gcc compiler,
24478         # which looks to be a dead project)
24479         lt_prog_compiler_wl_F77='-Wl,'
24480         lt_prog_compiler_pic_F77='-fpic'
24481         lt_prog_compiler_static_F77='-Bstatic'
24482         ;;
24483       ccc*)
24484         lt_prog_compiler_wl_F77='-Wl,'
24485         # All Alpha code is PIC.
24486         lt_prog_compiler_static_F77='-non_shared'
24487         ;;
24488       esac
24489       ;;
24490
24491     osf3* | osf4* | osf5*)
24492       lt_prog_compiler_wl_F77='-Wl,'
24493       # All OSF/1 code is PIC.
24494       lt_prog_compiler_static_F77='-non_shared'
24495       ;;
24496
24497     sco3.2v5*)
24498       lt_prog_compiler_pic_F77='-Kpic'
24499       lt_prog_compiler_static_F77='-dn'
24500       ;;
24501
24502     solaris*)
24503       lt_prog_compiler_pic_F77='-KPIC'
24504       lt_prog_compiler_static_F77='-Bstatic'
24505       case $cc_basename in
24506       f77* | f90* | f95*)
24507         lt_prog_compiler_wl_F77='-Qoption ld ';;
24508       *)
24509         lt_prog_compiler_wl_F77='-Wl,';;
24510       esac
24511       ;;
24512
24513     sunos4*)
24514       lt_prog_compiler_wl_F77='-Qoption ld '
24515       lt_prog_compiler_pic_F77='-PIC'
24516       lt_prog_compiler_static_F77='-Bstatic'
24517       ;;
24518
24519     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24520       lt_prog_compiler_wl_F77='-Wl,'
24521       lt_prog_compiler_pic_F77='-KPIC'
24522       lt_prog_compiler_static_F77='-Bstatic'
24523       ;;
24524
24525     sysv4*MP*)
24526       if test -d /usr/nec ;then
24527         lt_prog_compiler_pic_F77='-Kconform_pic'
24528         lt_prog_compiler_static_F77='-Bstatic'
24529       fi
24530       ;;
24531
24532     unicos*)
24533       lt_prog_compiler_wl_F77='-Wl,'
24534       lt_prog_compiler_can_build_shared_F77=no
24535       ;;
24536
24537     uts4*)
24538       lt_prog_compiler_pic_F77='-pic'
24539       lt_prog_compiler_static_F77='-Bstatic'
24540       ;;
24541
24542     *)
24543       lt_prog_compiler_can_build_shared_F77=no
24544       ;;
24545     esac
24546   fi
24547
24548 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
24549 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
24550
24551 #
24552 # Check to make sure the PIC flag actually works.
24553 #
24554 if test -n "$lt_prog_compiler_pic_F77"; then
24555
24556 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
24557 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
24558 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
24559   echo $ECHO_N "(cached) $ECHO_C" >&6
24560 else
24561   lt_prog_compiler_pic_works_F77=no
24562   ac_outfile=conftest.$ac_objext
24563    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24564    lt_compiler_flag="$lt_prog_compiler_pic_F77"
24565    # Insert the option either (1) after the last *FLAGS variable, or
24566    # (2) before a word containing "conftest.", or (3) at the end.
24567    # Note that $ac_compile itself does not contain backslashes and begins
24568    # with a dollar sign (not a hyphen), so the echo should work correctly.
24569    # The option is referenced via a variable to avoid confusing sed.
24570    lt_compile=`echo "$ac_compile" | $SED \
24571    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24572    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24573    -e 's:$: $lt_compiler_flag:'`
24574    (eval echo "\"\$as_me:24574: $lt_compile\"" >&5)
24575    (eval "$lt_compile" 2>conftest.err)
24576    ac_status=$?
24577    cat conftest.err >&5
24578    echo "$as_me:24578: \$? = $ac_status" >&5
24579    if (exit $ac_status) && test -s "$ac_outfile"; then
24580      # The compiler can only warn and ignore the option if not recognized
24581      # So say no if there are warnings other than the usual output.
24582      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
24583      $SED '/^$/d' conftest.err >conftest.er2
24584      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
24585        lt_prog_compiler_pic_works_F77=yes
24586      fi
24587    fi
24588    $rm conftest*
24589
24590 fi
24591 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
24592 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
24593
24594 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
24595     case $lt_prog_compiler_pic_F77 in
24596      "" | " "*) ;;
24597      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
24598      esac
24599 else
24600     lt_prog_compiler_pic_F77=
24601      lt_prog_compiler_can_build_shared_F77=no
24602 fi
24603
24604 fi
24605 case $host_os in
24606   # For platforms which do not support PIC, -DPIC is meaningless:
24607   *djgpp*)
24608     lt_prog_compiler_pic_F77=
24609     ;;
24610   *)
24611     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
24612     ;;
24613 esac
24614
24615 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24616 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
24617 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
24618   echo $ECHO_N "(cached) $ECHO_C" >&6
24619 else
24620   lt_cv_prog_compiler_c_o_F77=no
24621    $rm -r conftest 2>/dev/null
24622    mkdir conftest
24623    cd conftest
24624    mkdir out
24625    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24626
24627    lt_compiler_flag="-o out/conftest2.$ac_objext"
24628    # Insert the option either (1) after the last *FLAGS variable, or
24629    # (2) before a word containing "conftest.", or (3) at the end.
24630    # Note that $ac_compile itself does not contain backslashes and begins
24631    # with a dollar sign (not a hyphen), so the echo should work correctly.
24632    lt_compile=`echo "$ac_compile" | $SED \
24633    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24634    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24635    -e 's:$: $lt_compiler_flag:'`
24636    (eval echo "\"\$as_me:24636: $lt_compile\"" >&5)
24637    (eval "$lt_compile" 2>out/conftest.err)
24638    ac_status=$?
24639    cat out/conftest.err >&5
24640    echo "$as_me:24640: \$? = $ac_status" >&5
24641    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24642    then
24643      # The compiler can only warn and ignore the option if not recognized
24644      # So say no if there are warnings
24645      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
24646      $SED '/^$/d' out/conftest.err >out/conftest.er2
24647      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24648        lt_cv_prog_compiler_c_o_F77=yes
24649      fi
24650    fi
24651    chmod u+w . 2>&5
24652    $rm conftest*
24653    # SGI C++ compiler will create directory out/ii_files/ for
24654    # template instantiation
24655    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24656    $rm out/* && rmdir out
24657    cd ..
24658    rmdir conftest
24659    $rm conftest*
24660
24661 fi
24662 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
24663 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
24664
24665
24666 hard_links="nottested"
24667 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
24668   # do not overwrite the value of need_locks provided by the user
24669   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24670 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
24671   hard_links=yes
24672   $rm conftest*
24673   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24674   touch conftest.a
24675   ln conftest.a conftest.b 2>&5 || hard_links=no
24676   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24677   echo "$as_me:$LINENO: result: $hard_links" >&5
24678 echo "${ECHO_T}$hard_links" >&6
24679   if test "$hard_links" = no; then
24680     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24681 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24682     need_locks=warn
24683   fi
24684 else
24685   need_locks=no
24686 fi
24687
24688 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24689 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
24690
24691   runpath_var=
24692   allow_undefined_flag_F77=
24693   enable_shared_with_static_runtimes_F77=no
24694   archive_cmds_F77=
24695   archive_expsym_cmds_F77=
24696   old_archive_From_new_cmds_F77=
24697   old_archive_from_expsyms_cmds_F77=
24698   export_dynamic_flag_spec_F77=
24699   whole_archive_flag_spec_F77=
24700   thread_safe_flag_spec_F77=
24701   hardcode_libdir_flag_spec_F77=
24702   hardcode_libdir_flag_spec_ld_F77=
24703   hardcode_libdir_separator_F77=
24704   hardcode_direct_F77=no
24705   hardcode_minus_L_F77=no
24706   hardcode_shlibpath_var_F77=unsupported
24707   link_all_deplibs_F77=unknown
24708   hardcode_automatic_F77=no
24709   module_cmds_F77=
24710   module_expsym_cmds_F77=
24711   always_export_symbols_F77=no
24712   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24713   # include_expsyms should be a list of space-separated symbols to be *always*
24714   # included in the symbol list
24715   include_expsyms_F77=
24716   # exclude_expsyms can be an extended regexp of symbols to exclude
24717   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24718   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24719   # as well as any symbol that contains `d'.
24720   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
24721   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24722   # platforms (ab)use it in PIC code, but their linkers get confused if
24723   # the symbol is explicitly referenced.  Since portable code cannot
24724   # rely on this symbol name, it's probably fine to never include it in
24725   # preloaded symbol tables.
24726   extract_expsyms_cmds=
24727   # Just being paranoid about ensuring that cc_basename is set.
24728   for cc_temp in $compiler""; do
24729   case $cc_temp in
24730     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24731     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24732     \-*) ;;
24733     *) break;;
24734   esac
24735 done
24736 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24737
24738   case $host_os in
24739   cygwin* | mingw* | pw32*)
24740     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24741     # When not using gcc, we currently assume that we are using
24742     # Microsoft Visual C++.
24743     if test "$GCC" != yes; then
24744       with_gnu_ld=no
24745     fi
24746     ;;
24747   openbsd*)
24748     with_gnu_ld=no
24749     ;;
24750   esac
24751
24752   ld_shlibs_F77=yes
24753   if test "$with_gnu_ld" = yes; then
24754     # If archive_cmds runs LD, not CC, wlarc should be empty
24755     wlarc='${wl}'
24756
24757     # Set some defaults for GNU ld with shared library support. These
24758     # are reset later if shared libraries are not supported. Putting them
24759     # here allows them to be overridden if necessary.
24760     runpath_var=LD_RUN_PATH
24761     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
24762     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
24763     # ancient GNU ld didn't support --whole-archive et. al.
24764     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24765         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24766       else
24767         whole_archive_flag_spec_F77=
24768     fi
24769     supports_anon_versioning=no
24770     case `$LD -v 2>/dev/null` in
24771       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24772       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24773       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24774       *\ 2.11.*) ;; # other 2.11 versions
24775       *) supports_anon_versioning=yes ;;
24776     esac
24777
24778     # See if GNU ld supports shared libraries.
24779     case $host_os in
24780     aix3* | aix4* | aix5*)
24781       # On AIX/PPC, the GNU linker is very broken
24782       if test "$host_cpu" != ia64; then
24783         ld_shlibs_F77=no
24784         cat <<EOF 1>&2
24785
24786 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24787 *** to be unable to reliably create shared libraries on AIX.
24788 *** Therefore, libtool is disabling shared libraries support.  If you
24789 *** really care for shared libraries, you may want to modify your PATH
24790 *** so that a non-GNU linker is found, and then restart.
24791
24792 EOF
24793       fi
24794       ;;
24795
24796     amigaos*)
24797       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)'
24798       hardcode_libdir_flag_spec_F77='-L$libdir'
24799       hardcode_minus_L_F77=yes
24800
24801       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24802       # that the semantics of dynamic libraries on AmigaOS, at least up
24803       # to version 4, is to share data among multiple programs linked
24804       # with the same dynamic library.  Since this doesn't match the
24805       # behavior of shared libraries on other platforms, we can't use
24806       # them.
24807       ld_shlibs_F77=no
24808       ;;
24809
24810     beos*)
24811       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24812         allow_undefined_flag_F77=unsupported
24813         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24814         # support --undefined.  This deserves some investigation.  FIXME
24815         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24816       else
24817         ld_shlibs_F77=no
24818       fi
24819       ;;
24820
24821     cygwin* | mingw* | pw32*)
24822       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
24823       # as there is no search path for DLLs.
24824       hardcode_libdir_flag_spec_F77='-L$libdir'
24825       allow_undefined_flag_F77=unsupported
24826       always_export_symbols_F77=no
24827       enable_shared_with_static_runtimes_F77=yes
24828       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24829
24830       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24831         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
24832         # If the export-symbols file already is a .def file (1st line
24833         # is EXPORTS), use it as is; otherwise, prepend...
24834         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24835           cp $export_symbols $output_objdir/$soname.def;
24836         else
24837           echo EXPORTS > $output_objdir/$soname.def;
24838           cat $export_symbols >> $output_objdir/$soname.def;
24839         fi~
24840         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
24841       else
24842         ld_shlibs_F77=no
24843       fi
24844       ;;
24845
24846     linux*)
24847       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24848         tmp_addflag=
24849         case $cc_basename,$host_cpu in
24850         pgcc*)                          # Portland Group C compiler
24851           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'
24852           tmp_addflag=' $pic_flag'
24853           ;;
24854         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24855           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'
24856           tmp_addflag=' $pic_flag -Mnomain' ;;
24857         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24858           tmp_addflag=' -i_dynamic' ;;
24859         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24860           tmp_addflag=' -i_dynamic -nofor_main' ;;
24861         ifc* | ifort*)                  # Intel Fortran compiler
24862           tmp_addflag=' -nofor_main' ;;
24863         esac
24864         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24865
24866         if test $supports_anon_versioning = yes; then
24867           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
24868   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24869   $echo "local: *; };" >> $output_objdir/$libname.ver~
24870           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24871         fi
24872       else
24873         ld_shlibs_F77=no
24874       fi
24875       ;;
24876
24877     netbsd*)
24878       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24879         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24880         wlarc=
24881       else
24882         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24883         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24884       fi
24885       ;;
24886
24887     solaris* | sysv5*)
24888       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24889         ld_shlibs_F77=no
24890         cat <<EOF 1>&2
24891
24892 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24893 *** create shared libraries on Solaris systems.  Therefore, libtool
24894 *** is disabling shared libraries support.  We urge you to upgrade GNU
24895 *** binutils to release 2.9.1 or newer.  Another option is to modify
24896 *** your PATH or compiler configuration so that the native linker is
24897 *** used, and then restart.
24898
24899 EOF
24900       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24901         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24902         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24903       else
24904         ld_shlibs_F77=no
24905       fi
24906       ;;
24907
24908     sunos4*)
24909       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24910       wlarc=
24911       hardcode_direct_F77=yes
24912       hardcode_shlibpath_var_F77=no
24913       ;;
24914
24915     *)
24916       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24917         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24918         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24919       else
24920         ld_shlibs_F77=no
24921       fi
24922       ;;
24923     esac
24924
24925     if test "$ld_shlibs_F77" = no; then
24926       runpath_var=
24927       hardcode_libdir_flag_spec_F77=
24928       export_dynamic_flag_spec_F77=
24929       whole_archive_flag_spec_F77=
24930     fi
24931   else
24932     # PORTME fill in a description of your system's linker (not GNU ld)
24933     case $host_os in
24934     aix3*)
24935       allow_undefined_flag_F77=unsupported
24936       always_export_symbols_F77=yes
24937       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'
24938       # Note: this linker hardcodes the directories in LIBPATH if there
24939       # are no directories specified by -L.
24940       hardcode_minus_L_F77=yes
24941       if test "$GCC" = yes && test -z "$link_static_flag"; then
24942         # Neither direct hardcoding nor static linking is supported with a
24943         # broken collect2.
24944         hardcode_direct_F77=unsupported
24945       fi
24946       ;;
24947
24948     aix4* | aix5*)
24949       if test "$host_cpu" = ia64; then
24950         # On IA64, the linker does run time linking by default, so we don't
24951         # have to do anything special.
24952         aix_use_runtimelinking=no
24953         exp_sym_flag='-Bexport'
24954         no_entry_flag=""
24955       else
24956         # If we're using GNU nm, then we don't want the "-C" option.
24957         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24958         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24959           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'
24960         else
24961           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'
24962         fi
24963         aix_use_runtimelinking=no
24964
24965         # Test if we are trying to use run time linking or normal
24966         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24967         # need to do runtime linking.
24968         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24969           for ld_flag in $LDFLAGS; do
24970           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24971             aix_use_runtimelinking=yes
24972             break
24973           fi
24974           done
24975         esac
24976
24977         exp_sym_flag='-bexport'
24978         no_entry_flag='-bnoentry'
24979       fi
24980
24981       # When large executables or shared objects are built, AIX ld can
24982       # have problems creating the table of contents.  If linking a library
24983       # or program results in "error TOC overflow" add -mminimal-toc to
24984       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24985       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24986
24987       archive_cmds_F77=''
24988       hardcode_direct_F77=yes
24989       hardcode_libdir_separator_F77=':'
24990       link_all_deplibs_F77=yes
24991
24992       if test "$GCC" = yes; then
24993         case $host_os in aix4.[012]|aix4.[012].*)
24994         # We only want to do this on AIX 4.2 and lower, the check
24995         # below for broken collect2 doesn't work under 4.3+
24996           collect2name=`${CC} -print-prog-name=collect2`
24997           if test -f "$collect2name" && \
24998            strings "$collect2name" | grep resolve_lib_name >/dev/null
24999           then
25000           # We have reworked collect2
25001           hardcode_direct_F77=yes
25002           else
25003           # We have old collect2
25004           hardcode_direct_F77=unsupported
25005           # It fails to find uninstalled libraries when the uninstalled
25006           # path is not listed in the libpath.  Setting hardcode_minus_L
25007           # to unsupported forces relinking
25008           hardcode_minus_L_F77=yes
25009           hardcode_libdir_flag_spec_F77='-L$libdir'
25010           hardcode_libdir_separator_F77=
25011           fi
25012         esac
25013         shared_flag='-shared'
25014         if test "$aix_use_runtimelinking" = yes; then
25015           shared_flag="$shared_flag "'${wl}-G'
25016         fi
25017       else
25018         # not using gcc
25019         if test "$host_cpu" = ia64; then
25020         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25021         # chokes on -Wl,-G. The following line is correct:
25022           shared_flag='-G'
25023         else
25024         if test "$aix_use_runtimelinking" = yes; then
25025             shared_flag='${wl}-G'
25026           else
25027             shared_flag='${wl}-bM:SRE'
25028         fi
25029         fi
25030       fi
25031
25032       # It seems that -bexpall does not export symbols beginning with
25033       # underscore (_), so it is better to generate a list of symbols to export.
25034       always_export_symbols_F77=yes
25035       if test "$aix_use_runtimelinking" = yes; then
25036         # Warning - without using the other runtime loading flags (-brtl),
25037         # -berok will link without error, but may produce a broken library.
25038         allow_undefined_flag_F77='-berok'
25039        # Determine the default libpath from the value encoded in an empty executable.
25040        cat >conftest.$ac_ext <<_ACEOF
25041       program main
25042
25043       end
25044 _ACEOF
25045 rm -f conftest.$ac_objext conftest$ac_exeext
25046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25047   (eval $ac_link) 2>conftest.er1
25048   ac_status=$?
25049   grep -v '^ *+' conftest.er1 >conftest.err
25050   rm -f conftest.er1
25051   cat conftest.err >&5
25052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053   (exit $ac_status); } &&
25054          { ac_try='test -z "$ac_f77_werror_flag"
25055                          || test ! -s conftest.err'
25056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25057   (eval $ac_try) 2>&5
25058   ac_status=$?
25059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060   (exit $ac_status); }; } &&
25061          { ac_try='test -s conftest$ac_exeext'
25062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25063   (eval $ac_try) 2>&5
25064   ac_status=$?
25065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066   (exit $ac_status); }; }; then
25067
25068 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25069 }'`
25070 # Check for a 64-bit object if we didn't find anything.
25071 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; }
25072 }'`; fi
25073 else
25074   echo "$as_me: failed program was:" >&5
25075 sed 's/^/| /' conftest.$ac_ext >&5
25076
25077 fi
25078 rm -f conftest.err conftest.$ac_objext \
25079       conftest$ac_exeext conftest.$ac_ext
25080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25081
25082        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
25083         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"
25084        else
25085         if test "$host_cpu" = ia64; then
25086           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
25087           allow_undefined_flag_F77="-z nodefs"
25088           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"
25089         else
25090          # Determine the default libpath from the value encoded in an empty executable.
25091          cat >conftest.$ac_ext <<_ACEOF
25092       program main
25093
25094       end
25095 _ACEOF
25096 rm -f conftest.$ac_objext conftest$ac_exeext
25097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25098   (eval $ac_link) 2>conftest.er1
25099   ac_status=$?
25100   grep -v '^ *+' conftest.er1 >conftest.err
25101   rm -f conftest.er1
25102   cat conftest.err >&5
25103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104   (exit $ac_status); } &&
25105          { ac_try='test -z "$ac_f77_werror_flag"
25106                          || test ! -s conftest.err'
25107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25108   (eval $ac_try) 2>&5
25109   ac_status=$?
25110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111   (exit $ac_status); }; } &&
25112          { ac_try='test -s conftest$ac_exeext'
25113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25114   (eval $ac_try) 2>&5
25115   ac_status=$?
25116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117   (exit $ac_status); }; }; then
25118
25119 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25120 }'`
25121 # Check for a 64-bit object if we didn't find anything.
25122 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; }
25123 }'`; fi
25124 else
25125   echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25127
25128 fi
25129 rm -f conftest.err conftest.$ac_objext \
25130       conftest$ac_exeext conftest.$ac_ext
25131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25132
25133          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
25134           # Warning - without using the other run time loading flags,
25135           # -berok will link without error, but may produce a broken library.
25136           no_undefined_flag_F77=' ${wl}-bernotok'
25137           allow_undefined_flag_F77=' ${wl}-berok'
25138           # -bexpall does not export symbols beginning with underscore (_)
25139           always_export_symbols_F77=yes
25140           # Exported symbols can be pulled into shared objects from archives
25141           whole_archive_flag_spec_F77=' '
25142           archive_cmds_need_lc_F77=yes
25143           # This is similar to how AIX traditionally builds its shared libraries.
25144           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'
25145         fi
25146       fi
25147       ;;
25148
25149     amigaos*)
25150       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)'
25151       hardcode_libdir_flag_spec_F77='-L$libdir'
25152       hardcode_minus_L_F77=yes
25153       # see comment about different semantics on the GNU ld section
25154       ld_shlibs_F77=no
25155       ;;
25156
25157     bsdi[45]*)
25158       export_dynamic_flag_spec_F77=-rdynamic
25159       ;;
25160
25161     cygwin* | mingw* | pw32*)
25162       # When not using gcc, we currently assume that we are using
25163       # Microsoft Visual C++.
25164       # hardcode_libdir_flag_spec is actually meaningless, as there is
25165       # no search path for DLLs.
25166       hardcode_libdir_flag_spec_F77=' '
25167       allow_undefined_flag_F77=unsupported
25168       # Tell ltmain to make .lib files, not .a files.
25169       libext=lib
25170       # Tell ltmain to make .dll files, not .so files.
25171       shrext_cmds=".dll"
25172       # FIXME: Setting linknames here is a bad hack.
25173       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25174       # The linker will automatically build a .lib file if we build a DLL.
25175       old_archive_From_new_cmds_F77='true'
25176       # FIXME: Should let the user specify the lib program.
25177       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
25178       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
25179       enable_shared_with_static_runtimes_F77=yes
25180       ;;
25181
25182     darwin* | rhapsody*)
25183       case $host_os in
25184         rhapsody* | darwin1.[012])
25185          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
25186          ;;
25187        *) # Darwin 1.3 on
25188          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25189            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25190          else
25191            case ${MACOSX_DEPLOYMENT_TARGET} in
25192              10.[012])
25193                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25194                ;;
25195              10.*)
25196                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
25197                ;;
25198            esac
25199          fi
25200          ;;
25201       esac
25202       archive_cmds_need_lc_F77=no
25203       hardcode_direct_F77=no
25204       hardcode_automatic_F77=yes
25205       hardcode_shlibpath_var_F77=unsupported
25206       whole_archive_flag_spec_F77=''
25207       link_all_deplibs_F77=yes
25208     if test "$GCC" = yes ; then
25209         output_verbose_link_cmd='echo'
25210         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25211       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25212       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25213       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}'
25214       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}'
25215     else
25216       case $cc_basename in
25217         xlc*)
25218          output_verbose_link_cmd='echo'
25219          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25220          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25221           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25222          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}'
25223           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}'
25224           ;;
25225        *)
25226          ld_shlibs_F77=no
25227           ;;
25228       esac
25229     fi
25230       ;;
25231
25232     dgux*)
25233       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25234       hardcode_libdir_flag_spec_F77='-L$libdir'
25235       hardcode_shlibpath_var_F77=no
25236       ;;
25237
25238     freebsd1*)
25239       ld_shlibs_F77=no
25240       ;;
25241
25242     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25243     # support.  Future versions do this automatically, but an explicit c++rt0.o
25244     # does not break anything, and helps significantly (at the cost of a little
25245     # extra space).
25246     freebsd2.2*)
25247       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25248       hardcode_libdir_flag_spec_F77='-R$libdir'
25249       hardcode_direct_F77=yes
25250       hardcode_shlibpath_var_F77=no
25251       ;;
25252
25253     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25254     freebsd2*)
25255       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25256       hardcode_direct_F77=yes
25257       hardcode_minus_L_F77=yes
25258       hardcode_shlibpath_var_F77=no
25259       ;;
25260
25261     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25262     freebsd* | kfreebsd*-gnu | dragonfly*)
25263       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25264       hardcode_libdir_flag_spec_F77='-R$libdir'
25265       hardcode_direct_F77=yes
25266       hardcode_shlibpath_var_F77=no
25267       ;;
25268
25269     hpux9*)
25270       if test "$GCC" = yes; then
25271         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'
25272       else
25273         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'
25274       fi
25275       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
25276       hardcode_libdir_separator_F77=:
25277       hardcode_direct_F77=yes
25278
25279       # hardcode_minus_L: Not really in the search PATH,
25280       # but as the default location of the library.
25281       hardcode_minus_L_F77=yes
25282       export_dynamic_flag_spec_F77='${wl}-E'
25283       ;;
25284
25285     hpux10* | hpux11*)
25286       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25287         case $host_cpu in
25288         hppa*64*|ia64*)
25289           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25290           ;;
25291         *)
25292           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25293           ;;
25294         esac
25295       else
25296         case $host_cpu in
25297         hppa*64*|ia64*)
25298           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
25299           ;;
25300         *)
25301           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25302           ;;
25303         esac
25304       fi
25305       if test "$with_gnu_ld" = no; then
25306         case $host_cpu in
25307         hppa*64*)
25308           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
25309           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
25310           hardcode_libdir_separator_F77=:
25311           hardcode_direct_F77=no
25312           hardcode_shlibpath_var_F77=no
25313           ;;
25314         ia64*)
25315           hardcode_libdir_flag_spec_F77='-L$libdir'
25316           hardcode_direct_F77=no
25317           hardcode_shlibpath_var_F77=no
25318
25319           # hardcode_minus_L: Not really in the search PATH,
25320           # but as the default location of the library.
25321           hardcode_minus_L_F77=yes
25322           ;;
25323         *)
25324           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
25325           hardcode_libdir_separator_F77=:
25326           hardcode_direct_F77=yes
25327           export_dynamic_flag_spec_F77='${wl}-E'
25328
25329           # hardcode_minus_L: Not really in the search PATH,
25330           # but as the default location of the library.
25331           hardcode_minus_L_F77=yes
25332           ;;
25333         esac
25334       fi
25335       ;;
25336
25337     irix5* | irix6* | nonstopux*)
25338       if test "$GCC" = yes; then
25339         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'
25340       else
25341         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'
25342         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
25343       fi
25344       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25345       hardcode_libdir_separator_F77=:
25346       link_all_deplibs_F77=yes
25347       ;;
25348
25349     netbsd*)
25350       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25351         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25352       else
25353         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25354       fi
25355       hardcode_libdir_flag_spec_F77='-R$libdir'
25356       hardcode_direct_F77=yes
25357       hardcode_shlibpath_var_F77=no
25358       ;;
25359
25360     newsos6)
25361       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25362       hardcode_direct_F77=yes
25363       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25364       hardcode_libdir_separator_F77=:
25365       hardcode_shlibpath_var_F77=no
25366       ;;
25367
25368     openbsd*)
25369       hardcode_direct_F77=yes
25370       hardcode_shlibpath_var_F77=no
25371       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25372         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25373         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25374         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
25375         export_dynamic_flag_spec_F77='${wl}-E'
25376       else
25377        case $host_os in
25378          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25379            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25380            hardcode_libdir_flag_spec_F77='-R$libdir'
25381            ;;
25382          *)
25383            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25384            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
25385            ;;
25386        esac
25387       fi
25388       ;;
25389
25390     os2*)
25391       hardcode_libdir_flag_spec_F77='-L$libdir'
25392       hardcode_minus_L_F77=yes
25393       allow_undefined_flag_F77=unsupported
25394       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'
25395       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25396       ;;
25397
25398     osf3*)
25399       if test "$GCC" = yes; then
25400         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
25401         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'
25402       else
25403         allow_undefined_flag_F77=' -expect_unresolved \*'
25404         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'
25405       fi
25406       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25407       hardcode_libdir_separator_F77=:
25408       ;;
25409
25410     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25411       if test "$GCC" = yes; then
25412         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
25413         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'
25414         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25415       else
25416         allow_undefined_flag_F77=' -expect_unresolved \*'
25417         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'
25418         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~
25419         $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'
25420
25421         # Both c and cxx compiler support -rpath directly
25422         hardcode_libdir_flag_spec_F77='-rpath $libdir'
25423       fi
25424       hardcode_libdir_separator_F77=:
25425       ;;
25426
25427     sco3.2v5*)
25428       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25429       hardcode_shlibpath_var_F77=no
25430       export_dynamic_flag_spec_F77='${wl}-Bexport'
25431       runpath_var=LD_RUN_PATH
25432       hardcode_runpath_var=yes
25433       ;;
25434
25435     solaris*)
25436       no_undefined_flag_F77=' -z text'
25437       if test "$GCC" = yes; then
25438         wlarc='${wl}'
25439         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25440         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25441           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25442       else
25443         wlarc=''
25444         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25445         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25446         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25447       fi
25448       hardcode_libdir_flag_spec_F77='-R$libdir'
25449       hardcode_shlibpath_var_F77=no
25450       case $host_os in
25451       solaris2.[0-5] | solaris2.[0-5].*) ;;
25452       *)
25453         # The compiler driver will combine linker options so we
25454         # cannot just pass the convience library names through
25455         # without $wl, iff we do not link with $LD.
25456         # Luckily, gcc supports the same syntax we need for Sun Studio.
25457         # Supported since Solaris 2.6 (maybe 2.5.1?)
25458         case $wlarc in
25459         '')
25460           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
25461         *)
25462           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' ;;
25463         esac ;;
25464       esac
25465       link_all_deplibs_F77=yes
25466       ;;
25467
25468     sunos4*)
25469       if test "x$host_vendor" = xsequent; then
25470         # Use $CC to link under sequent, because it throws in some extra .o
25471         # files that make .init and .fini sections work.
25472         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25473       else
25474         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25475       fi
25476       hardcode_libdir_flag_spec_F77='-L$libdir'
25477       hardcode_direct_F77=yes
25478       hardcode_minus_L_F77=yes
25479       hardcode_shlibpath_var_F77=no
25480       ;;
25481
25482     sysv4)
25483       case $host_vendor in
25484         sni)
25485           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25486           hardcode_direct_F77=yes # is this really true???
25487         ;;
25488         siemens)
25489           ## LD is ld it makes a PLAMLIB
25490           ## CC just makes a GrossModule.
25491           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25492           reload_cmds_F77='$CC -r -o $output$reload_objs'
25493           hardcode_direct_F77=no
25494         ;;
25495         motorola)
25496           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25497           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
25498         ;;
25499       esac
25500       runpath_var='LD_RUN_PATH'
25501       hardcode_shlibpath_var_F77=no
25502       ;;
25503
25504     sysv4.3*)
25505       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25506       hardcode_shlibpath_var_F77=no
25507       export_dynamic_flag_spec_F77='-Bexport'
25508       ;;
25509
25510     sysv4*MP*)
25511       if test -d /usr/nec; then
25512         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25513         hardcode_shlibpath_var_F77=no
25514         runpath_var=LD_RUN_PATH
25515         hardcode_runpath_var=yes
25516         ld_shlibs_F77=yes
25517       fi
25518       ;;
25519
25520     sysv4.2uw2*)
25521       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25522       hardcode_direct_F77=yes
25523       hardcode_minus_L_F77=no
25524       hardcode_shlibpath_var_F77=no
25525       hardcode_runpath_var=yes
25526       runpath_var=LD_RUN_PATH
25527       ;;
25528
25529    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
25530       no_undefined_flag_F77='${wl}-z ${wl}text'
25531       if test "$GCC" = yes; then
25532         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25533       else
25534         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25535       fi
25536       runpath_var='LD_RUN_PATH'
25537       hardcode_shlibpath_var_F77=no
25538       ;;
25539
25540     sysv5*)
25541       no_undefined_flag_F77=' -z text'
25542       # $CC -shared without GNU ld will not create a library from C++
25543       # object files and a static libstdc++, better avoid it by now
25544       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25545       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25546                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25547       hardcode_libdir_flag_spec_F77=
25548       hardcode_shlibpath_var_F77=no
25549       runpath_var='LD_RUN_PATH'
25550       ;;
25551
25552     uts4*)
25553       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25554       hardcode_libdir_flag_spec_F77='-L$libdir'
25555       hardcode_shlibpath_var_F77=no
25556       ;;
25557
25558     *)
25559       ld_shlibs_F77=no
25560       ;;
25561     esac
25562   fi
25563
25564 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
25565 echo "${ECHO_T}$ld_shlibs_F77" >&6
25566 test "$ld_shlibs_F77" = no && can_build_shared=no
25567
25568 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25569 if test "$GCC" = yes; then
25570   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25571 fi
25572
25573 #
25574 # Do we need to explicitly link libc?
25575 #
25576 case "x$archive_cmds_need_lc_F77" in
25577 x|xyes)
25578   # Assume -lc should be added
25579   archive_cmds_need_lc_F77=yes
25580
25581   if test "$enable_shared" = yes && test "$GCC" = yes; then
25582     case $archive_cmds_F77 in
25583     *'~'*)
25584       # FIXME: we may have to deal with multi-command sequences.
25585       ;;
25586     '$CC '*)
25587       # Test whether the compiler implicitly links with -lc since on some
25588       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25589       # to ld, don't add -lc before -lgcc.
25590       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25591 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
25592       $rm conftest*
25593       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25594
25595       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25596   (eval $ac_compile) 2>&5
25597   ac_status=$?
25598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599   (exit $ac_status); } 2>conftest.err; then
25600         soname=conftest
25601         lib=conftest
25602         libobjs=conftest.$ac_objext
25603         deplibs=
25604         wl=$lt_prog_compiler_wl_F77
25605         compiler_flags=-v
25606         linker_flags=-v
25607         verstring=
25608         output_objdir=.
25609         libname=conftest
25610         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
25611         allow_undefined_flag_F77=
25612         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25613   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25614   ac_status=$?
25615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616   (exit $ac_status); }
25617         then
25618           archive_cmds_need_lc_F77=no
25619         else
25620           archive_cmds_need_lc_F77=yes
25621         fi
25622         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
25623       else
25624         cat conftest.err 1>&5
25625       fi
25626       $rm conftest*
25627       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
25628 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
25629       ;;
25630     esac
25631   fi
25632   ;;
25633 esac
25634
25635 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25636 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
25637 library_names_spec=
25638 libname_spec='lib$name'
25639 soname_spec=
25640 shrext_cmds=".so"
25641 postinstall_cmds=
25642 postuninstall_cmds=
25643 finish_cmds=
25644 finish_eval=
25645 shlibpath_var=
25646 shlibpath_overrides_runpath=unknown
25647 version_type=none
25648 dynamic_linker="$host_os ld.so"
25649 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25650 if test "$GCC" = yes; then
25651   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25652   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25653     # if the path contains ";" then we assume it to be the separator
25654     # otherwise default to the standard path separator (i.e. ":") - it is
25655     # assumed that no part of a normal pathname contains ";" but that should
25656     # okay in the real world where ";" in dirpaths is itself problematic.
25657     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25658   else
25659     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25660   fi
25661 else
25662   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25663 fi
25664 need_lib_prefix=unknown
25665 hardcode_into_libs=no
25666
25667 # when you set need_version to no, make sure it does not cause -set_version
25668 # flags to be left without arguments
25669 need_version=unknown
25670
25671 case $host_os in
25672 aix3*)
25673   version_type=linux
25674   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25675   shlibpath_var=LIBPATH
25676
25677   # AIX 3 has no versioning support, so we append a major version to the name.
25678   soname_spec='${libname}${release}${shared_ext}$major'
25679   ;;
25680
25681 aix4* | aix5*)
25682   version_type=linux
25683   need_lib_prefix=no
25684   need_version=no
25685   hardcode_into_libs=yes
25686   if test "$host_cpu" = ia64; then
25687     # AIX 5 supports IA64
25688     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25689     shlibpath_var=LD_LIBRARY_PATH
25690   else
25691     # With GCC up to 2.95.x, collect2 would create an import file
25692     # for dependence libraries.  The import file would start with
25693     # the line `#! .'.  This would cause the generated library to
25694     # depend on `.', always an invalid library.  This was fixed in
25695     # development snapshots of GCC prior to 3.0.
25696     case $host_os in
25697       aix4 | aix4.[01] | aix4.[01].*)
25698       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25699            echo ' yes '
25700            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25701         :
25702       else
25703         can_build_shared=no
25704       fi
25705       ;;
25706     esac
25707     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25708     # soname into executable. Probably we can add versioning support to
25709     # collect2, so additional links can be useful in future.
25710     if test "$aix_use_runtimelinking" = yes; then
25711       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25712       # instead of lib<name>.a to let people know that these are not
25713       # typical AIX shared libraries.
25714       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25715     else
25716       # We preserve .a as extension for shared libraries through AIX4.2
25717       # and later when we are not doing run time linking.
25718       library_names_spec='${libname}${release}.a $libname.a'
25719       soname_spec='${libname}${release}${shared_ext}$major'
25720     fi
25721     shlibpath_var=LIBPATH
25722   fi
25723   ;;
25724
25725 amigaos*)
25726   library_names_spec='$libname.ixlibrary $libname.a'
25727   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25728   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'
25729   ;;
25730
25731 beos*)
25732   library_names_spec='${libname}${shared_ext}'
25733   dynamic_linker="$host_os ld.so"
25734   shlibpath_var=LIBRARY_PATH
25735   ;;
25736
25737 bsdi[45]*)
25738   version_type=linux
25739   need_version=no
25740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25741   soname_spec='${libname}${release}${shared_ext}$major'
25742   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25743   shlibpath_var=LD_LIBRARY_PATH
25744   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25745   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25746   # the default ld.so.conf also contains /usr/contrib/lib and
25747   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25748   # libtool to hard-code these into programs
25749   ;;
25750
25751 cygwin* | mingw* | pw32*)
25752   version_type=windows
25753   shrext_cmds=".dll"
25754   need_version=no
25755   need_lib_prefix=no
25756
25757   case $GCC,$host_os in
25758   yes,cygwin* | yes,mingw* | yes,pw32*)
25759     library_names_spec='$libname.dll.a'
25760     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25761     postinstall_cmds='base_file=`basename \${file}`~
25762       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25763       dldir=$destdir/`dirname \$dlpath`~
25764       test -d \$dldir || mkdir -p \$dldir~
25765       $install_prog $dir/$dlname \$dldir/$dlname~
25766       chmod a+x \$dldir/$dlname'
25767     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25768       dlpath=$dir/\$dldll~
25769        $rm \$dlpath'
25770     shlibpath_overrides_runpath=yes
25771
25772     case $host_os in
25773     cygwin*)
25774       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25775       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25776       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25777       ;;
25778     mingw*)
25779       # MinGW DLLs use traditional 'lib' prefix
25780       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25781       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25782       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25783         # It is most probably a Windows format PATH printed by
25784         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25785         # path with ; separators, and with drive letters. We can handle the
25786         # drive letters (cygwin fileutils understands them), so leave them,
25787         # especially as we might pass files found there to a mingw objdump,
25788         # which wouldn't understand a cygwinified path. Ahh.
25789         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25790       else
25791         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25792       fi
25793       ;;
25794     pw32*)
25795       # pw32 DLLs use 'pw' prefix rather than 'lib'
25796       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25797       ;;
25798     esac
25799     ;;
25800
25801   *)
25802     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25803     ;;
25804   esac
25805   dynamic_linker='Win32 ld.exe'
25806   # FIXME: first we should search . and the directory the executable is in
25807   shlibpath_var=PATH
25808   ;;
25809
25810 darwin* | rhapsody*)
25811   dynamic_linker="$host_os dyld"
25812   version_type=darwin
25813   need_lib_prefix=no
25814   need_version=no
25815   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25816   soname_spec='${libname}${release}${major}$shared_ext'
25817   shlibpath_overrides_runpath=yes
25818   shlibpath_var=DYLD_LIBRARY_PATH
25819   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25820   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25821   if test "$GCC" = yes; then
25822     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"`
25823   else
25824     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25825   fi
25826   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25827   ;;
25828
25829 dgux*)
25830   version_type=linux
25831   need_lib_prefix=no
25832   need_version=no
25833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25834   soname_spec='${libname}${release}${shared_ext}$major'
25835   shlibpath_var=LD_LIBRARY_PATH
25836   ;;
25837
25838 freebsd1*)
25839   dynamic_linker=no
25840   ;;
25841
25842 kfreebsd*-gnu)
25843   version_type=linux
25844   need_lib_prefix=no
25845   need_version=no
25846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25847   soname_spec='${libname}${release}${shared_ext}$major'
25848   shlibpath_var=LD_LIBRARY_PATH
25849   shlibpath_overrides_runpath=no
25850   hardcode_into_libs=yes
25851   dynamic_linker='GNU ld.so'
25852   ;;
25853
25854 freebsd* | dragonfly*)
25855   # DragonFly does not have aout.  When/if they implement a new
25856   # versioning mechanism, adjust this.
25857   if test -x /usr/bin/objformat; then
25858     objformat=`/usr/bin/objformat`
25859   else
25860     case $host_os in
25861     freebsd[123]*) objformat=aout ;;
25862     *) objformat=elf ;;
25863     esac
25864   fi
25865   version_type=freebsd-$objformat
25866   case $version_type in
25867     freebsd-elf*)
25868       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25869       need_version=no
25870       need_lib_prefix=no
25871       ;;
25872     freebsd-*)
25873       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25874       need_version=yes
25875       ;;
25876   esac
25877   shlibpath_var=LD_LIBRARY_PATH
25878   case $host_os in
25879   freebsd2*)
25880     shlibpath_overrides_runpath=yes
25881     ;;
25882   freebsd3.[01]* | freebsdelf3.[01]*)
25883     shlibpath_overrides_runpath=yes
25884     hardcode_into_libs=yes
25885     ;;
25886   *) # from 3.2 on
25887     shlibpath_overrides_runpath=no
25888     hardcode_into_libs=yes
25889     ;;
25890   esac
25891   ;;
25892
25893 gnu*)
25894   version_type=linux
25895   need_lib_prefix=no
25896   need_version=no
25897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25898   soname_spec='${libname}${release}${shared_ext}$major'
25899   shlibpath_var=LD_LIBRARY_PATH
25900   hardcode_into_libs=yes
25901   ;;
25902
25903 hpux9* | hpux10* | hpux11*)
25904   # Give a soname corresponding to the major version so that dld.sl refuses to
25905   # link against other versions.
25906   version_type=sunos
25907   need_lib_prefix=no
25908   need_version=no
25909   case $host_cpu in
25910   ia64*)
25911     shrext_cmds='.so'
25912     hardcode_into_libs=yes
25913     dynamic_linker="$host_os dld.so"
25914     shlibpath_var=LD_LIBRARY_PATH
25915     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25916     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25917     soname_spec='${libname}${release}${shared_ext}$major'
25918     if test "X$HPUX_IA64_MODE" = X32; then
25919       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25920     else
25921       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25922     fi
25923     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25924     ;;
25925    hppa*64*)
25926      shrext_cmds='.sl'
25927      hardcode_into_libs=yes
25928      dynamic_linker="$host_os dld.sl"
25929      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25930      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25931      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25932      soname_spec='${libname}${release}${shared_ext}$major'
25933      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25934      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25935      ;;
25936    *)
25937     shrext_cmds='.sl'
25938     dynamic_linker="$host_os dld.sl"
25939     shlibpath_var=SHLIB_PATH
25940     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25942     soname_spec='${libname}${release}${shared_ext}$major'
25943     ;;
25944   esac
25945   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25946   postinstall_cmds='chmod 555 $lib'
25947   ;;
25948
25949 irix5* | irix6* | nonstopux*)
25950   case $host_os in
25951     nonstopux*) version_type=nonstopux ;;
25952     *)
25953         if test "$lt_cv_prog_gnu_ld" = yes; then
25954                 version_type=linux
25955         else
25956                 version_type=irix
25957         fi ;;
25958   esac
25959   need_lib_prefix=no
25960   need_version=no
25961   soname_spec='${libname}${release}${shared_ext}$major'
25962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25963   case $host_os in
25964   irix5* | nonstopux*)
25965     libsuff= shlibsuff=
25966     ;;
25967   *)
25968     case $LD in # libtool.m4 will add one of these switches to LD
25969     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25970       libsuff= shlibsuff= libmagic=32-bit;;
25971     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25972       libsuff=32 shlibsuff=N32 libmagic=N32;;
25973     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25974       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25975     *) libsuff= shlibsuff= libmagic=never-match;;
25976     esac
25977     ;;
25978   esac
25979   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25980   shlibpath_overrides_runpath=no
25981   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25982   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25983   hardcode_into_libs=yes
25984   ;;
25985
25986 # No shared lib support for Linux oldld, aout, or coff.
25987 linux*oldld* | linux*aout* | linux*coff*)
25988   dynamic_linker=no
25989   ;;
25990
25991 # This must be Linux ELF.
25992 linux*)
25993   version_type=linux
25994   need_lib_prefix=no
25995   need_version=no
25996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25997   soname_spec='${libname}${release}${shared_ext}$major'
25998   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25999   shlibpath_var=LD_LIBRARY_PATH
26000   shlibpath_overrides_runpath=no
26001   # This implies no fast_install, which is unacceptable.
26002   # Some rework will be needed to allow for fast_install
26003   # before this can be enabled.
26004   hardcode_into_libs=yes
26005
26006   # Append ld.so.conf contents to the search path
26007   if test -f /etc/ld.so.conf; then
26008     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' ' '`
26009     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26010   fi
26011
26012   # We used to test for /lib/ld.so.1 and disable shared libraries on
26013   # powerpc, because MkLinux only supported shared libraries with the
26014   # GNU dynamic linker.  Since this was broken with cross compilers,
26015   # most powerpc-linux boxes support dynamic linking these days and
26016   # people can always --disable-shared, the test was removed, and we
26017   # assume the GNU/Linux dynamic linker is in use.
26018   dynamic_linker='GNU/Linux ld.so'
26019   ;;
26020
26021 knetbsd*-gnu)
26022   version_type=linux
26023   need_lib_prefix=no
26024   need_version=no
26025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26026   soname_spec='${libname}${release}${shared_ext}$major'
26027   shlibpath_var=LD_LIBRARY_PATH
26028   shlibpath_overrides_runpath=no
26029   hardcode_into_libs=yes
26030   dynamic_linker='GNU ld.so'
26031   ;;
26032
26033 netbsd*)
26034   version_type=sunos
26035   need_lib_prefix=no
26036   need_version=no
26037   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26038     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26039     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26040     dynamic_linker='NetBSD (a.out) ld.so'
26041   else
26042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26043     soname_spec='${libname}${release}${shared_ext}$major'
26044     dynamic_linker='NetBSD ld.elf_so'
26045   fi
26046   shlibpath_var=LD_LIBRARY_PATH
26047   shlibpath_overrides_runpath=yes
26048   hardcode_into_libs=yes
26049   ;;
26050
26051 newsos6)
26052   version_type=linux
26053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26054   shlibpath_var=LD_LIBRARY_PATH
26055   shlibpath_overrides_runpath=yes
26056   ;;
26057
26058 nto-qnx*)
26059   version_type=linux
26060   need_lib_prefix=no
26061   need_version=no
26062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26063   soname_spec='${libname}${release}${shared_ext}$major'
26064   shlibpath_var=LD_LIBRARY_PATH
26065   shlibpath_overrides_runpath=yes
26066   ;;
26067
26068 openbsd*)
26069   version_type=sunos
26070   need_lib_prefix=no
26071   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26072   case $host_os in
26073     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26074     *)                         need_version=no  ;;
26075   esac
26076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26077   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26078   shlibpath_var=LD_LIBRARY_PATH
26079   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26080     case $host_os in
26081       openbsd2.[89] | openbsd2.[89].*)
26082         shlibpath_overrides_runpath=no
26083         ;;
26084       *)
26085         shlibpath_overrides_runpath=yes
26086         ;;
26087       esac
26088   else
26089     shlibpath_overrides_runpath=yes
26090   fi
26091   ;;
26092
26093 os2*)
26094   libname_spec='$name'
26095   shrext_cmds=".dll"
26096   need_lib_prefix=no
26097   library_names_spec='$libname${shared_ext} $libname.a'
26098   dynamic_linker='OS/2 ld.exe'
26099   shlibpath_var=LIBPATH
26100   ;;
26101
26102 osf3* | osf4* | osf5*)
26103   version_type=osf
26104   need_lib_prefix=no
26105   need_version=no
26106   soname_spec='${libname}${release}${shared_ext}$major'
26107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26108   shlibpath_var=LD_LIBRARY_PATH
26109   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26110   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26111   ;;
26112
26113 sco3.2v5*)
26114   version_type=osf
26115   soname_spec='${libname}${release}${shared_ext}$major'
26116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26117   shlibpath_var=LD_LIBRARY_PATH
26118   ;;
26119
26120 solaris*)
26121   version_type=linux
26122   need_lib_prefix=no
26123   need_version=no
26124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26125   soname_spec='${libname}${release}${shared_ext}$major'
26126   shlibpath_var=LD_LIBRARY_PATH
26127   shlibpath_overrides_runpath=yes
26128   hardcode_into_libs=yes
26129   # ldd complains unless libraries are executable
26130   postinstall_cmds='chmod +x $lib'
26131   ;;
26132
26133 sunos4*)
26134   version_type=sunos
26135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26136   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26137   shlibpath_var=LD_LIBRARY_PATH
26138   shlibpath_overrides_runpath=yes
26139   if test "$with_gnu_ld" = yes; then
26140     need_lib_prefix=no
26141   fi
26142   need_version=yes
26143   ;;
26144
26145 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26146   version_type=linux
26147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26148   soname_spec='${libname}${release}${shared_ext}$major'
26149   shlibpath_var=LD_LIBRARY_PATH
26150   case $host_vendor in
26151     sni)
26152       shlibpath_overrides_runpath=no
26153       need_lib_prefix=no
26154       export_dynamic_flag_spec='${wl}-Blargedynsym'
26155       runpath_var=LD_RUN_PATH
26156       ;;
26157     siemens)
26158       need_lib_prefix=no
26159       ;;
26160     motorola)
26161       need_lib_prefix=no
26162       need_version=no
26163       shlibpath_overrides_runpath=no
26164       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26165       ;;
26166   esac
26167   ;;
26168
26169 sysv4*MP*)
26170   if test -d /usr/nec ;then
26171     version_type=linux
26172     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26173     soname_spec='$libname${shared_ext}.$major'
26174     shlibpath_var=LD_LIBRARY_PATH
26175   fi
26176   ;;
26177
26178 uts4*)
26179   version_type=linux
26180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26181   soname_spec='${libname}${release}${shared_ext}$major'
26182   shlibpath_var=LD_LIBRARY_PATH
26183   ;;
26184
26185 *)
26186   dynamic_linker=no
26187   ;;
26188 esac
26189 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26190 echo "${ECHO_T}$dynamic_linker" >&6
26191 test "$dynamic_linker" = no && can_build_shared=no
26192
26193 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26194 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
26195 hardcode_action_F77=
26196 if test -n "$hardcode_libdir_flag_spec_F77" || \
26197    test -n "$runpath_var_F77" || \
26198    test "X$hardcode_automatic_F77" = "Xyes" ; then
26199
26200   # We can hardcode non-existant directories.
26201   if test "$hardcode_direct_F77" != no &&
26202      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26203      # have to relink, otherwise we might link with an installed library
26204      # when we should be linking with a yet-to-be-installed one
26205      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
26206      test "$hardcode_minus_L_F77" != no; then
26207     # Linking always hardcodes the temporary library directory.
26208     hardcode_action_F77=relink
26209   else
26210     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26211     hardcode_action_F77=immediate
26212   fi
26213 else
26214   # We cannot hardcode anything, or else we can only hardcode existing
26215   # directories.
26216   hardcode_action_F77=unsupported
26217 fi
26218 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
26219 echo "${ECHO_T}$hardcode_action_F77" >&6
26220
26221 if test "$hardcode_action_F77" = relink; then
26222   # Fast installation is not supported
26223   enable_fast_install=no
26224 elif test "$shlibpath_overrides_runpath" = yes ||
26225      test "$enable_shared" = no; then
26226   # Fast installation is not necessary
26227   enable_fast_install=needless
26228 fi
26229
26230 striplib=
26231 old_striplib=
26232 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
26233 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
26234 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
26235   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
26236   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
26237   echo "$as_me:$LINENO: result: yes" >&5
26238 echo "${ECHO_T}yes" >&6
26239 else
26240 # FIXME - insert some real tests, host_os isn't really good enough
26241   case $host_os in
26242    darwin*)
26243        if test -n "$STRIP" ; then
26244          striplib="$STRIP -x"
26245          echo "$as_me:$LINENO: result: yes" >&5
26246 echo "${ECHO_T}yes" >&6
26247        else
26248   echo "$as_me:$LINENO: result: no" >&5
26249 echo "${ECHO_T}no" >&6
26250 fi
26251        ;;
26252    *)
26253   echo "$as_me:$LINENO: result: no" >&5
26254 echo "${ECHO_T}no" >&6
26255     ;;
26256   esac
26257 fi
26258
26259
26260
26261 # The else clause should only fire when bootstrapping the
26262 # libtool distribution, otherwise you forgot to ship ltmain.sh
26263 # with your package, and you will get complaints that there are
26264 # no rules to generate ltmain.sh.
26265 if test -f "$ltmain"; then
26266   # See if we are running on zsh, and set the options which allow our commands through
26267   # without removal of \ escapes.
26268   if test -n "${ZSH_VERSION+set}" ; then
26269     setopt NO_GLOB_SUBST
26270   fi
26271   # Now quote all the things that may contain metacharacters while being
26272   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26273   # variables and quote the copies for generation of the libtool script.
26274   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
26275     SED SHELL STRIP \
26276     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26277     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26278     deplibs_check_method reload_flag reload_cmds need_locks \
26279     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26280     lt_cv_sys_global_symbol_to_c_name_address \
26281     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26282     old_postinstall_cmds old_postuninstall_cmds \
26283     compiler_F77 \
26284     CC_F77 \
26285     LD_F77 \
26286     lt_prog_compiler_wl_F77 \
26287     lt_prog_compiler_pic_F77 \
26288     lt_prog_compiler_static_F77 \
26289     lt_prog_compiler_no_builtin_flag_F77 \
26290     export_dynamic_flag_spec_F77 \
26291     thread_safe_flag_spec_F77 \
26292     whole_archive_flag_spec_F77 \
26293     enable_shared_with_static_runtimes_F77 \
26294     old_archive_cmds_F77 \
26295     old_archive_from_new_cmds_F77 \
26296     predep_objects_F77 \
26297     postdep_objects_F77 \
26298     predeps_F77 \
26299     postdeps_F77 \
26300     compiler_lib_search_path_F77 \
26301     archive_cmds_F77 \
26302     archive_expsym_cmds_F77 \
26303     postinstall_cmds_F77 \
26304     postuninstall_cmds_F77 \
26305     old_archive_from_expsyms_cmds_F77 \
26306     allow_undefined_flag_F77 \
26307     no_undefined_flag_F77 \
26308     export_symbols_cmds_F77 \
26309     hardcode_libdir_flag_spec_F77 \
26310     hardcode_libdir_flag_spec_ld_F77 \
26311     hardcode_libdir_separator_F77 \
26312     hardcode_automatic_F77 \
26313     module_cmds_F77 \
26314     module_expsym_cmds_F77 \
26315     lt_cv_prog_compiler_c_o_F77 \
26316     exclude_expsyms_F77 \
26317     include_expsyms_F77; do
26318
26319     case $var in
26320     old_archive_cmds_F77 | \
26321     old_archive_from_new_cmds_F77 | \
26322     archive_cmds_F77 | \
26323     archive_expsym_cmds_F77 | \
26324     module_cmds_F77 | \
26325     module_expsym_cmds_F77 | \
26326     old_archive_from_expsyms_cmds_F77 | \
26327     export_symbols_cmds_F77 | \
26328     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26329     postinstall_cmds | postuninstall_cmds | \
26330     old_postinstall_cmds | old_postuninstall_cmds | \
26331     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26332       # Double-quote double-evaled strings.
26333       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26334       ;;
26335     *)
26336       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26337       ;;
26338     esac
26339   done
26340
26341   case $lt_echo in
26342   *'\$0 --fallback-echo"')
26343     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26344     ;;
26345   esac
26346
26347 cfgfile="$ofile"
26348
26349   cat <<__EOF__ >> "$cfgfile"
26350 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26351
26352 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26353
26354 # Shell to use when invoking shell scripts.
26355 SHELL=$lt_SHELL
26356
26357 # Whether or not to build shared libraries.
26358 build_libtool_libs=$enable_shared
26359
26360 # Whether or not to build static libraries.
26361 build_old_libs=$enable_static
26362
26363 # Whether or not to add -lc for building shared libraries.
26364 build_libtool_need_lc=$archive_cmds_need_lc_F77
26365
26366 # Whether or not to disallow shared libs when runtime libs are static
26367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
26368
26369 # Whether or not to optimize for fast installation.
26370 fast_install=$enable_fast_install
26371
26372 # The host system.
26373 host_alias=$host_alias
26374 host=$host
26375 host_os=$host_os
26376
26377 # The build system.
26378 build_alias=$build_alias
26379 build=$build
26380 build_os=$build_os
26381
26382 # An echo program that does not interpret backslashes.
26383 echo=$lt_echo
26384
26385 # The archiver.
26386 AR=$lt_AR
26387 AR_FLAGS=$lt_AR_FLAGS
26388
26389 # A C compiler.
26390 LTCC=$lt_LTCC
26391
26392 # A language-specific compiler.
26393 CC=$lt_compiler_F77
26394
26395 # Is the compiler the GNU C compiler?
26396 with_gcc=$GCC_F77
26397
26398 # An ERE matcher.
26399 EGREP=$lt_EGREP
26400
26401 # The linker used to build libraries.
26402 LD=$lt_LD_F77
26403
26404 # Whether we need hard or soft links.
26405 LN_S=$lt_LN_S
26406
26407 # A BSD-compatible nm program.
26408 NM=$lt_NM
26409
26410 # A symbol stripping program
26411 STRIP=$lt_STRIP
26412
26413 # Used to examine libraries when file_magic_cmd begins "file"
26414 MAGIC_CMD=$MAGIC_CMD
26415
26416 # Used on cygwin: DLL creation program.
26417 DLLTOOL="$DLLTOOL"
26418
26419 # Used on cygwin: object dumper.
26420 OBJDUMP="$OBJDUMP"
26421
26422 # Used on cygwin: assembler.
26423 AS="$AS"
26424
26425 # The name of the directory that contains temporary libtool files.
26426 objdir=$objdir
26427
26428 # How to create reloadable object files.
26429 reload_flag=$lt_reload_flag
26430 reload_cmds=$lt_reload_cmds
26431
26432 # How to pass a linker flag through the compiler.
26433 wl=$lt_lt_prog_compiler_wl_F77
26434
26435 # Object file suffix (normally "o").
26436 objext="$ac_objext"
26437
26438 # Old archive suffix (normally "a").
26439 libext="$libext"
26440
26441 # Shared library suffix (normally ".so").
26442 shrext_cmds='$shrext_cmds'
26443
26444 # Executable file suffix (normally "").
26445 exeext="$exeext"
26446
26447 # Additional compiler flags for building library objects.
26448 pic_flag=$lt_lt_prog_compiler_pic_F77
26449 pic_mode=$pic_mode
26450
26451 # What is the maximum length of a command?
26452 max_cmd_len=$lt_cv_sys_max_cmd_len
26453
26454 # Does compiler simultaneously support -c and -o options?
26455 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
26456
26457 # Must we lock files when doing compilation?
26458 need_locks=$lt_need_locks
26459
26460 # Do we need the lib prefix for modules?
26461 need_lib_prefix=$need_lib_prefix
26462
26463 # Do we need a version for libraries?
26464 need_version=$need_version
26465
26466 # Whether dlopen is supported.
26467 dlopen_support=$enable_dlopen
26468
26469 # Whether dlopen of programs is supported.
26470 dlopen_self=$enable_dlopen_self
26471
26472 # Whether dlopen of statically linked programs is supported.
26473 dlopen_self_static=$enable_dlopen_self_static
26474
26475 # Compiler flag to prevent dynamic linking.
26476 link_static_flag=$lt_lt_prog_compiler_static_F77
26477
26478 # Compiler flag to turn off builtin functions.
26479 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
26480
26481 # Compiler flag to allow reflexive dlopens.
26482 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
26483
26484 # Compiler flag to generate shared objects directly from archives.
26485 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
26486
26487 # Compiler flag to generate thread-safe objects.
26488 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
26489
26490 # Library versioning type.
26491 version_type=$version_type
26492
26493 # Format of library name prefix.
26494 libname_spec=$lt_libname_spec
26495
26496 # List of archive names.  First name is the real one, the rest are links.
26497 # The last name is the one that the linker finds with -lNAME.
26498 library_names_spec=$lt_library_names_spec
26499
26500 # The coded name of the library, if different from the real name.
26501 soname_spec=$lt_soname_spec
26502
26503 # Commands used to build and install an old-style archive.
26504 RANLIB=$lt_RANLIB
26505 old_archive_cmds=$lt_old_archive_cmds_F77
26506 old_postinstall_cmds=$lt_old_postinstall_cmds
26507 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26508
26509 # Create an old-style archive from a shared archive.
26510 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
26511
26512 # Create a temporary old-style archive to link instead of a shared archive.
26513 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
26514
26515 # Commands used to build and install a shared archive.
26516 archive_cmds=$lt_archive_cmds_F77
26517 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
26518 postinstall_cmds=$lt_postinstall_cmds
26519 postuninstall_cmds=$lt_postuninstall_cmds
26520
26521 # Commands used to build a loadable module (assumed same as above if empty)
26522 module_cmds=$lt_module_cmds_F77
26523 module_expsym_cmds=$lt_module_expsym_cmds_F77
26524
26525 # Commands to strip libraries.
26526 old_striplib=$lt_old_striplib
26527 striplib=$lt_striplib
26528
26529 # Dependencies to place before the objects being linked to create a
26530 # shared library.
26531 predep_objects=$lt_predep_objects_F77
26532
26533 # Dependencies to place after the objects being linked to create a
26534 # shared library.
26535 postdep_objects=$lt_postdep_objects_F77
26536
26537 # Dependencies to place before the objects being linked to create a
26538 # shared library.
26539 predeps=$lt_predeps_F77
26540
26541 # Dependencies to place after the objects being linked to create a
26542 # shared library.
26543 postdeps=$lt_postdeps_F77
26544
26545 # The library search path used internally by the compiler when linking
26546 # a shared library.
26547 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
26548
26549 # Method to check whether dependent libraries are shared objects.
26550 deplibs_check_method=$lt_deplibs_check_method
26551
26552 # Command to use when deplibs_check_method == file_magic.
26553 file_magic_cmd=$lt_file_magic_cmd
26554
26555 # Flag that allows shared libraries with undefined symbols to be built.
26556 allow_undefined_flag=$lt_allow_undefined_flag_F77
26557
26558 # Flag that forces no undefined symbols.
26559 no_undefined_flag=$lt_no_undefined_flag_F77
26560
26561 # Commands used to finish a libtool library installation in a directory.
26562 finish_cmds=$lt_finish_cmds
26563
26564 # Same as above, but a single script fragment to be evaled but not shown.
26565 finish_eval=$lt_finish_eval
26566
26567 # Take the output of nm and produce a listing of raw symbols and C names.
26568 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26569
26570 # Transform the output of nm in a proper C declaration
26571 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26572
26573 # Transform the output of nm in a C name address pair
26574 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26575
26576 # This is the shared library runtime path variable.
26577 runpath_var=$runpath_var
26578
26579 # This is the shared library path variable.
26580 shlibpath_var=$shlibpath_var
26581
26582 # Is shlibpath searched before the hard-coded library search path?
26583 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26584
26585 # How to hardcode a shared library path into an executable.
26586 hardcode_action=$hardcode_action_F77
26587
26588 # Whether we should hardcode library paths into libraries.
26589 hardcode_into_libs=$hardcode_into_libs
26590
26591 # Flag to hardcode \$libdir into a binary during linking.
26592 # This must work even if \$libdir does not exist.
26593 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
26594
26595 # If ld is used when linking, flag to hardcode \$libdir into
26596 # a binary during linking. This must work even if \$libdir does
26597 # not exist.
26598 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
26599
26600 # Whether we need a single -rpath flag with a separated argument.
26601 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
26602
26603 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26604 # resulting binary.
26605 hardcode_direct=$hardcode_direct_F77
26606
26607 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26608 # resulting binary.
26609 hardcode_minus_L=$hardcode_minus_L_F77
26610
26611 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26612 # the resulting binary.
26613 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
26614
26615 # Set to yes if building a shared library automatically hardcodes DIR into the library
26616 # and all subsequent libraries and executables linked against it.
26617 hardcode_automatic=$hardcode_automatic_F77
26618
26619 # Variables whose values should be saved in libtool wrapper scripts and
26620 # restored at relink time.
26621 variables_saved_for_relink="$variables_saved_for_relink"
26622
26623 # Whether libtool must link a program against all its dependency libraries.
26624 link_all_deplibs=$link_all_deplibs_F77
26625
26626 # Compile-time system search path for libraries
26627 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26628
26629 # Run-time system search path for libraries
26630 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26631
26632 # Fix the shell variable \$srcfile for the compiler.
26633 fix_srcfile_path="$fix_srcfile_path_F77"
26634
26635 # Set to yes if exported symbols are required.
26636 always_export_symbols=$always_export_symbols_F77
26637
26638 # The commands to list exported symbols.
26639 export_symbols_cmds=$lt_export_symbols_cmds_F77
26640
26641 # The commands to extract the exported symbol list from a shared archive.
26642 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26643
26644 # Symbols that should not be listed in the preloaded symbols.
26645 exclude_expsyms=$lt_exclude_expsyms_F77
26646
26647 # Symbols that must always be exported.
26648 include_expsyms=$lt_include_expsyms_F77
26649
26650 # ### END LIBTOOL TAG CONFIG: $tagname
26651
26652 __EOF__
26653
26654
26655 else
26656   # If there is no Makefile yet, we rely on a make rule to execute
26657   # `config.status --recheck' to rerun these tests and create the
26658   # libtool script then.
26659   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26660   if test -f "$ltmain_in"; then
26661     test -f Makefile && make "$ltmain"
26662   fi
26663 fi
26664
26665
26666 ac_ext=c
26667 ac_cpp='$CPP $CPPFLAGS'
26668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26671
26672 CC="$lt_save_CC"
26673
26674         else
26675           tagname=""
26676         fi
26677         ;;
26678
26679       GCJ)
26680         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
26681
26682
26683
26684 # Source file extension for Java test sources.
26685 ac_ext=java
26686
26687 # Object file extension for compiled Java test sources.
26688 objext=o
26689 objext_GCJ=$objext
26690
26691 # Code to be used in simple compile tests
26692 lt_simple_compile_test_code="class foo {}\n"
26693
26694 # Code to be used in simple link tests
26695 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
26696
26697 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26698
26699 # If no C compiler was specified, use CC.
26700 LTCC=${LTCC-"$CC"}
26701
26702 # Allow CC to be a program name with arguments.
26703 compiler=$CC
26704
26705
26706 # save warnings/boilerplate of simple test code
26707 ac_outfile=conftest.$ac_objext
26708 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26709 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
26710 _lt_compiler_boilerplate=`cat conftest.err`
26711 $rm conftest*
26712
26713 ac_outfile=conftest.$ac_objext
26714 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26715 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
26716 _lt_linker_boilerplate=`cat conftest.err`
26717 $rm conftest*
26718
26719
26720 # Allow CC to be a program name with arguments.
26721 lt_save_CC="$CC"
26722 CC=${GCJ-"gcj"}
26723 compiler=$CC
26724 compiler_GCJ=$CC
26725 for cc_temp in $compiler""; do
26726   case $cc_temp in
26727     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26728     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26729     \-*) ;;
26730     *) break;;
26731   esac
26732 done
26733 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26734
26735
26736 # GCJ did not exist at the time GCC didn't implicitly link libc in.
26737 archive_cmds_need_lc_GCJ=no
26738
26739 old_archive_cmds_GCJ=$old_archive_cmds
26740
26741 ## CAVEAT EMPTOR:
26742 ## There is no encapsulation within the following macros, do not change
26743 ## the running order or otherwise move them around unless you know exactly
26744 ## what you are doing...
26745
26746 lt_prog_compiler_no_builtin_flag_GCJ=
26747
26748 if test "$GCC" = yes; then
26749   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
26750
26751
26752 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
26753 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
26754 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
26755   echo $ECHO_N "(cached) $ECHO_C" >&6
26756 else
26757   lt_cv_prog_compiler_rtti_exceptions=no
26758   ac_outfile=conftest.$ac_objext
26759    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26760    lt_compiler_flag="-fno-rtti -fno-exceptions"
26761    # Insert the option either (1) after the last *FLAGS variable, or
26762    # (2) before a word containing "conftest.", or (3) at the end.
26763    # Note that $ac_compile itself does not contain backslashes and begins
26764    # with a dollar sign (not a hyphen), so the echo should work correctly.
26765    # The option is referenced via a variable to avoid confusing sed.
26766    lt_compile=`echo "$ac_compile" | $SED \
26767    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
26768    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
26769    -e 's:$: $lt_compiler_flag:'`
26770    (eval echo "\"\$as_me:26770: $lt_compile\"" >&5)
26771    (eval "$lt_compile" 2>conftest.err)
26772    ac_status=$?
26773    cat conftest.err >&5
26774    echo "$as_me:26774: \$? = $ac_status" >&5
26775    if (exit $ac_status) && test -s "$ac_outfile"; then
26776      # The compiler can only warn and ignore the option if not recognized
26777      # So say no if there are warnings other than the usual output.
26778      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
26779      $SED '/^$/d' conftest.err >conftest.er2
26780      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
26781        lt_cv_prog_compiler_rtti_exceptions=yes
26782      fi
26783    fi
26784    $rm conftest*
26785
26786 fi
26787 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
26788 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
26789
26790 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
26791     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
26792 else
26793     :
26794 fi
26795
26796 fi
26797
26798 lt_prog_compiler_wl_GCJ=
26799 lt_prog_compiler_pic_GCJ=
26800 lt_prog_compiler_static_GCJ=
26801
26802 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
26803 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
26804
26805   if test "$GCC" = yes; then
26806     lt_prog_compiler_wl_GCJ='-Wl,'
26807     lt_prog_compiler_static_GCJ='-static'
26808
26809     case $host_os in
26810       aix*)
26811       # All AIX code is PIC.
26812       if test "$host_cpu" = ia64; then
26813         # AIX 5 now supports IA64 processor
26814         lt_prog_compiler_static_GCJ='-Bstatic'
26815       fi
26816       ;;
26817
26818     amigaos*)
26819       # FIXME: we need at least 68020 code to build shared libraries, but
26820       # adding the `-m68020' flag to GCC prevents building anything better,
26821       # like `-m68040'.
26822       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
26823       ;;
26824
26825     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
26826       # PIC is the default for these OSes.
26827       ;;
26828
26829     mingw* | pw32* | os2*)
26830       # This hack is so that the source file can tell whether it is being
26831       # built for inclusion in a dll (and should export symbols for example).
26832       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
26833       ;;
26834
26835     darwin* | rhapsody*)
26836       # PIC is the default on this platform
26837       # Common symbols not allowed in MH_DYLIB files
26838       lt_prog_compiler_pic_GCJ='-fno-common'
26839       ;;
26840
26841     msdosdjgpp*)
26842       # Just because we use GCC doesn't mean we suddenly get shared libraries
26843       # on systems that don't support them.
26844       lt_prog_compiler_can_build_shared_GCJ=no
26845       enable_shared=no
26846       ;;
26847
26848     sysv4*MP*)
26849       if test -d /usr/nec; then
26850         lt_prog_compiler_pic_GCJ=-Kconform_pic
26851       fi
26852       ;;
26853
26854     hpux*)
26855       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
26856       # not for PA HP-UX.
26857       case $host_cpu in
26858       hppa*64*|ia64*)
26859         # +Z the default
26860         ;;
26861       *)
26862         lt_prog_compiler_pic_GCJ='-fPIC'
26863         ;;
26864       esac
26865       ;;
26866
26867     *)
26868       lt_prog_compiler_pic_GCJ='-fPIC'
26869       ;;
26870     esac
26871   else
26872     # PORTME Check for flag to pass linker flags through the system compiler.
26873     case $host_os in
26874     aix*)
26875       lt_prog_compiler_wl_GCJ='-Wl,'
26876       if test "$host_cpu" = ia64; then
26877         # AIX 5 now supports IA64 processor
26878         lt_prog_compiler_static_GCJ='-Bstatic'
26879       else
26880         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
26881       fi
26882       ;;
26883       darwin*)
26884         # PIC is the default on this platform
26885         # Common symbols not allowed in MH_DYLIB files
26886        case $cc_basename in
26887          xlc*)
26888          lt_prog_compiler_pic_GCJ='-qnocommon'
26889          lt_prog_compiler_wl_GCJ='-Wl,'
26890          ;;
26891        esac
26892        ;;
26893
26894     mingw* | pw32* | os2*)
26895       # This hack is so that the source file can tell whether it is being
26896       # built for inclusion in a dll (and should export symbols for example).
26897       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
26898       ;;
26899
26900     hpux9* | hpux10* | hpux11*)
26901       lt_prog_compiler_wl_GCJ='-Wl,'
26902       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
26903       # not for PA HP-UX.
26904       case $host_cpu in
26905       hppa*64*|ia64*)
26906         # +Z the default
26907         ;;
26908       *)
26909         lt_prog_compiler_pic_GCJ='+Z'
26910         ;;
26911       esac
26912       # Is there a better lt_prog_compiler_static that works with the bundled CC?
26913       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
26914       ;;
26915
26916     irix5* | irix6* | nonstopux*)
26917       lt_prog_compiler_wl_GCJ='-Wl,'
26918       # PIC (with -KPIC) is the default.
26919       lt_prog_compiler_static_GCJ='-non_shared'
26920       ;;
26921
26922     newsos6)
26923       lt_prog_compiler_pic_GCJ='-KPIC'
26924       lt_prog_compiler_static_GCJ='-Bstatic'
26925       ;;
26926
26927     linux*)
26928       case $cc_basename in
26929       icc* | ecc*)
26930         lt_prog_compiler_wl_GCJ='-Wl,'
26931         lt_prog_compiler_pic_GCJ='-KPIC'
26932         lt_prog_compiler_static_GCJ='-static'
26933         ;;
26934       pgcc* | pgf77* | pgf90* | pgf95*)
26935         # Portland Group compilers (*not* the Pentium gcc compiler,
26936         # which looks to be a dead project)
26937         lt_prog_compiler_wl_GCJ='-Wl,'
26938         lt_prog_compiler_pic_GCJ='-fpic'
26939         lt_prog_compiler_static_GCJ='-Bstatic'
26940         ;;
26941       ccc*)
26942         lt_prog_compiler_wl_GCJ='-Wl,'
26943         # All Alpha code is PIC.
26944         lt_prog_compiler_static_GCJ='-non_shared'
26945         ;;
26946       esac
26947       ;;
26948
26949     osf3* | osf4* | osf5*)
26950       lt_prog_compiler_wl_GCJ='-Wl,'
26951       # All OSF/1 code is PIC.
26952       lt_prog_compiler_static_GCJ='-non_shared'
26953       ;;
26954
26955     sco3.2v5*)
26956       lt_prog_compiler_pic_GCJ='-Kpic'
26957       lt_prog_compiler_static_GCJ='-dn'
26958       ;;
26959
26960     solaris*)
26961       lt_prog_compiler_pic_GCJ='-KPIC'
26962       lt_prog_compiler_static_GCJ='-Bstatic'
26963       case $cc_basename in
26964       f77* | f90* | f95*)
26965         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
26966       *)
26967         lt_prog_compiler_wl_GCJ='-Wl,';;
26968       esac
26969       ;;
26970
26971     sunos4*)
26972       lt_prog_compiler_wl_GCJ='-Qoption ld '
26973       lt_prog_compiler_pic_GCJ='-PIC'
26974       lt_prog_compiler_static_GCJ='-Bstatic'
26975       ;;
26976
26977     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26978       lt_prog_compiler_wl_GCJ='-Wl,'
26979       lt_prog_compiler_pic_GCJ='-KPIC'
26980       lt_prog_compiler_static_GCJ='-Bstatic'
26981       ;;
26982
26983     sysv4*MP*)
26984       if test -d /usr/nec ;then
26985         lt_prog_compiler_pic_GCJ='-Kconform_pic'
26986         lt_prog_compiler_static_GCJ='-Bstatic'
26987       fi
26988       ;;
26989
26990     unicos*)
26991       lt_prog_compiler_wl_GCJ='-Wl,'
26992       lt_prog_compiler_can_build_shared_GCJ=no
26993       ;;
26994
26995     uts4*)
26996       lt_prog_compiler_pic_GCJ='-pic'
26997       lt_prog_compiler_static_GCJ='-Bstatic'
26998       ;;
26999
27000     *)
27001       lt_prog_compiler_can_build_shared_GCJ=no
27002       ;;
27003     esac
27004   fi
27005
27006 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
27007 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
27008
27009 #
27010 # Check to make sure the PIC flag actually works.
27011 #
27012 if test -n "$lt_prog_compiler_pic_GCJ"; then
27013
27014 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
27015 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
27016 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
27017   echo $ECHO_N "(cached) $ECHO_C" >&6
27018 else
27019   lt_prog_compiler_pic_works_GCJ=no
27020   ac_outfile=conftest.$ac_objext
27021    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
27022    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
27023    # Insert the option either (1) after the last *FLAGS variable, or
27024    # (2) before a word containing "conftest.", or (3) at the end.
27025    # Note that $ac_compile itself does not contain backslashes and begins
27026    # with a dollar sign (not a hyphen), so the echo should work correctly.
27027    # The option is referenced via a variable to avoid confusing sed.
27028    lt_compile=`echo "$ac_compile" | $SED \
27029    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27030    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27031    -e 's:$: $lt_compiler_flag:'`
27032    (eval echo "\"\$as_me:27032: $lt_compile\"" >&5)
27033    (eval "$lt_compile" 2>conftest.err)
27034    ac_status=$?
27035    cat conftest.err >&5
27036    echo "$as_me:27036: \$? = $ac_status" >&5
27037    if (exit $ac_status) && test -s "$ac_outfile"; then
27038      # The compiler can only warn and ignore the option if not recognized
27039      # So say no if there are warnings other than the usual output.
27040      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
27041      $SED '/^$/d' conftest.err >conftest.er2
27042      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
27043        lt_prog_compiler_pic_works_GCJ=yes
27044      fi
27045    fi
27046    $rm conftest*
27047
27048 fi
27049 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
27050 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
27051
27052 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
27053     case $lt_prog_compiler_pic_GCJ in
27054      "" | " "*) ;;
27055      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
27056      esac
27057 else
27058     lt_prog_compiler_pic_GCJ=
27059      lt_prog_compiler_can_build_shared_GCJ=no
27060 fi
27061
27062 fi
27063 case $host_os in
27064   # For platforms which do not support PIC, -DPIC is meaningless:
27065   *djgpp*)
27066     lt_prog_compiler_pic_GCJ=
27067     ;;
27068   *)
27069     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
27070     ;;
27071 esac
27072
27073 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
27074 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
27075 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
27076   echo $ECHO_N "(cached) $ECHO_C" >&6
27077 else
27078   lt_cv_prog_compiler_c_o_GCJ=no
27079    $rm -r conftest 2>/dev/null
27080    mkdir conftest
27081    cd conftest
27082    mkdir out
27083    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
27084
27085    lt_compiler_flag="-o out/conftest2.$ac_objext"
27086    # Insert the option either (1) after the last *FLAGS variable, or
27087    # (2) before a word containing "conftest.", or (3) at the end.
27088    # Note that $ac_compile itself does not contain backslashes and begins
27089    # with a dollar sign (not a hyphen), so the echo should work correctly.
27090    lt_compile=`echo "$ac_compile" | $SED \
27091    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27092    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27093    -e 's:$: $lt_compiler_flag:'`
27094    (eval echo "\"\$as_me:27094: $lt_compile\"" >&5)
27095    (eval "$lt_compile" 2>out/conftest.err)
27096    ac_status=$?
27097    cat out/conftest.err >&5
27098    echo "$as_me:27098: \$? = $ac_status" >&5
27099    if (exit $ac_status) && test -s out/conftest2.$ac_objext
27100    then
27101      # The compiler can only warn and ignore the option if not recognized
27102      # So say no if there are warnings
27103      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
27104      $SED '/^$/d' out/conftest.err >out/conftest.er2
27105      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
27106        lt_cv_prog_compiler_c_o_GCJ=yes
27107      fi
27108    fi
27109    chmod u+w . 2>&5
27110    $rm conftest*
27111    # SGI C++ compiler will create directory out/ii_files/ for
27112    # template instantiation
27113    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
27114    $rm out/* && rmdir out
27115    cd ..
27116    rmdir conftest
27117    $rm conftest*
27118
27119 fi
27120 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
27121 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
27122
27123
27124 hard_links="nottested"
27125 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
27126   # do not overwrite the value of need_locks provided by the user
27127   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
27128 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
27129   hard_links=yes
27130   $rm conftest*
27131   ln conftest.a conftest.b 2>/dev/null && hard_links=no
27132   touch conftest.a
27133   ln conftest.a conftest.b 2>&5 || hard_links=no
27134   ln conftest.a conftest.b 2>/dev/null && hard_links=no
27135   echo "$as_me:$LINENO: result: $hard_links" >&5
27136 echo "${ECHO_T}$hard_links" >&6
27137   if test "$hard_links" = no; then
27138     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
27139 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
27140     need_locks=warn
27141   fi
27142 else
27143   need_locks=no
27144 fi
27145
27146 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
27147 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
27148
27149   runpath_var=
27150   allow_undefined_flag_GCJ=
27151   enable_shared_with_static_runtimes_GCJ=no
27152   archive_cmds_GCJ=
27153   archive_expsym_cmds_GCJ=
27154   old_archive_From_new_cmds_GCJ=
27155   old_archive_from_expsyms_cmds_GCJ=
27156   export_dynamic_flag_spec_GCJ=
27157   whole_archive_flag_spec_GCJ=
27158   thread_safe_flag_spec_GCJ=
27159   hardcode_libdir_flag_spec_GCJ=
27160   hardcode_libdir_flag_spec_ld_GCJ=
27161   hardcode_libdir_separator_GCJ=
27162   hardcode_direct_GCJ=no
27163   hardcode_minus_L_GCJ=no
27164   hardcode_shlibpath_var_GCJ=unsupported
27165   link_all_deplibs_GCJ=unknown
27166   hardcode_automatic_GCJ=no
27167   module_cmds_GCJ=
27168   module_expsym_cmds_GCJ=
27169   always_export_symbols_GCJ=no
27170   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
27171   # include_expsyms should be a list of space-separated symbols to be *always*
27172   # included in the symbol list
27173   include_expsyms_GCJ=
27174   # exclude_expsyms can be an extended regexp of symbols to exclude
27175   # it will be wrapped by ` (' and `)$', so one must not match beginning or
27176   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
27177   # as well as any symbol that contains `d'.
27178   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
27179   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
27180   # platforms (ab)use it in PIC code, but their linkers get confused if
27181   # the symbol is explicitly referenced.  Since portable code cannot
27182   # rely on this symbol name, it's probably fine to never include it in
27183   # preloaded symbol tables.
27184   extract_expsyms_cmds=
27185   # Just being paranoid about ensuring that cc_basename is set.
27186   for cc_temp in $compiler""; do
27187   case $cc_temp in
27188     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27189     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27190     \-*) ;;
27191     *) break;;
27192   esac
27193 done
27194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27195
27196   case $host_os in
27197   cygwin* | mingw* | pw32*)
27198     # FIXME: the MSVC++ port hasn't been tested in a loooong time
27199     # When not using gcc, we currently assume that we are using
27200     # Microsoft Visual C++.
27201     if test "$GCC" != yes; then
27202       with_gnu_ld=no
27203     fi
27204     ;;
27205   openbsd*)
27206     with_gnu_ld=no
27207     ;;
27208   esac
27209
27210   ld_shlibs_GCJ=yes
27211   if test "$with_gnu_ld" = yes; then
27212     # If archive_cmds runs LD, not CC, wlarc should be empty
27213     wlarc='${wl}'
27214
27215     # Set some defaults for GNU ld with shared library support. These
27216     # are reset later if shared libraries are not supported. Putting them
27217     # here allows them to be overridden if necessary.
27218     runpath_var=LD_RUN_PATH
27219     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
27220     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
27221     # ancient GNU ld didn't support --whole-archive et. al.
27222     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
27223         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
27224       else
27225         whole_archive_flag_spec_GCJ=
27226     fi
27227     supports_anon_versioning=no
27228     case `$LD -v 2>/dev/null` in
27229       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
27230       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
27231       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
27232       *\ 2.11.*) ;; # other 2.11 versions
27233       *) supports_anon_versioning=yes ;;
27234     esac
27235
27236     # See if GNU ld supports shared libraries.
27237     case $host_os in
27238     aix3* | aix4* | aix5*)
27239       # On AIX/PPC, the GNU linker is very broken
27240       if test "$host_cpu" != ia64; then
27241         ld_shlibs_GCJ=no
27242         cat <<EOF 1>&2
27243
27244 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
27245 *** to be unable to reliably create shared libraries on AIX.
27246 *** Therefore, libtool is disabling shared libraries support.  If you
27247 *** really care for shared libraries, you may want to modify your PATH
27248 *** so that a non-GNU linker is found, and then restart.
27249
27250 EOF
27251       fi
27252       ;;
27253
27254     amigaos*)
27255       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)'
27256       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27257       hardcode_minus_L_GCJ=yes
27258
27259       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
27260       # that the semantics of dynamic libraries on AmigaOS, at least up
27261       # to version 4, is to share data among multiple programs linked
27262       # with the same dynamic library.  Since this doesn't match the
27263       # behavior of shared libraries on other platforms, we can't use
27264       # them.
27265       ld_shlibs_GCJ=no
27266       ;;
27267
27268     beos*)
27269       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27270         allow_undefined_flag_GCJ=unsupported
27271         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
27272         # support --undefined.  This deserves some investigation.  FIXME
27273         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27274       else
27275         ld_shlibs_GCJ=no
27276       fi
27277       ;;
27278
27279     cygwin* | mingw* | pw32*)
27280       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
27281       # as there is no search path for DLLs.
27282       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27283       allow_undefined_flag_GCJ=unsupported
27284       always_export_symbols_GCJ=no
27285       enable_shared_with_static_runtimes_GCJ=yes
27286       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
27287
27288       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
27289         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
27290         # If the export-symbols file already is a .def file (1st line
27291         # is EXPORTS), use it as is; otherwise, prepend...
27292         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
27293           cp $export_symbols $output_objdir/$soname.def;
27294         else
27295           echo EXPORTS > $output_objdir/$soname.def;
27296           cat $export_symbols >> $output_objdir/$soname.def;
27297         fi~
27298         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
27299       else
27300         ld_shlibs_GCJ=no
27301       fi
27302       ;;
27303
27304     linux*)
27305       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27306         tmp_addflag=
27307         case $cc_basename,$host_cpu in
27308         pgcc*)                          # Portland Group C compiler
27309           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'
27310           tmp_addflag=' $pic_flag'
27311           ;;
27312         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
27313           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'
27314           tmp_addflag=' $pic_flag -Mnomain' ;;
27315         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
27316           tmp_addflag=' -i_dynamic' ;;
27317         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
27318           tmp_addflag=' -i_dynamic -nofor_main' ;;
27319         ifc* | ifort*)                  # Intel Fortran compiler
27320           tmp_addflag=' -nofor_main' ;;
27321         esac
27322         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27323
27324         if test $supports_anon_versioning = yes; then
27325           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
27326   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
27327   $echo "local: *; };" >> $output_objdir/$libname.ver~
27328           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
27329         fi
27330       else
27331         ld_shlibs_GCJ=no
27332       fi
27333       ;;
27334
27335     netbsd*)
27336       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
27337         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
27338         wlarc=
27339       else
27340         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27341         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27342       fi
27343       ;;
27344
27345     solaris* | sysv5*)
27346       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
27347         ld_shlibs_GCJ=no
27348         cat <<EOF 1>&2
27349
27350 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
27351 *** create shared libraries on Solaris systems.  Therefore, libtool
27352 *** is disabling shared libraries support.  We urge you to upgrade GNU
27353 *** binutils to release 2.9.1 or newer.  Another option is to modify
27354 *** your PATH or compiler configuration so that the native linker is
27355 *** used, and then restart.
27356
27357 EOF
27358       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27359         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27360         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27361       else
27362         ld_shlibs_GCJ=no
27363       fi
27364       ;;
27365
27366     sunos4*)
27367       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27368       wlarc=
27369       hardcode_direct_GCJ=yes
27370       hardcode_shlibpath_var_GCJ=no
27371       ;;
27372
27373     *)
27374       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27375         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27376         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27377       else
27378         ld_shlibs_GCJ=no
27379       fi
27380       ;;
27381     esac
27382
27383     if test "$ld_shlibs_GCJ" = no; then
27384       runpath_var=
27385       hardcode_libdir_flag_spec_GCJ=
27386       export_dynamic_flag_spec_GCJ=
27387       whole_archive_flag_spec_GCJ=
27388     fi
27389   else
27390     # PORTME fill in a description of your system's linker (not GNU ld)
27391     case $host_os in
27392     aix3*)
27393       allow_undefined_flag_GCJ=unsupported
27394       always_export_symbols_GCJ=yes
27395       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'
27396       # Note: this linker hardcodes the directories in LIBPATH if there
27397       # are no directories specified by -L.
27398       hardcode_minus_L_GCJ=yes
27399       if test "$GCC" = yes && test -z "$link_static_flag"; then
27400         # Neither direct hardcoding nor static linking is supported with a
27401         # broken collect2.
27402         hardcode_direct_GCJ=unsupported
27403       fi
27404       ;;
27405
27406     aix4* | aix5*)
27407       if test "$host_cpu" = ia64; then
27408         # On IA64, the linker does run time linking by default, so we don't
27409         # have to do anything special.
27410         aix_use_runtimelinking=no
27411         exp_sym_flag='-Bexport'
27412         no_entry_flag=""
27413       else
27414         # If we're using GNU nm, then we don't want the "-C" option.
27415         # -C means demangle to AIX nm, but means don't demangle with GNU nm
27416         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
27417           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'
27418         else
27419           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'
27420         fi
27421         aix_use_runtimelinking=no
27422
27423         # Test if we are trying to use run time linking or normal
27424         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
27425         # need to do runtime linking.
27426         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
27427           for ld_flag in $LDFLAGS; do
27428           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
27429             aix_use_runtimelinking=yes
27430             break
27431           fi
27432           done
27433         esac
27434
27435         exp_sym_flag='-bexport'
27436         no_entry_flag='-bnoentry'
27437       fi
27438
27439       # When large executables or shared objects are built, AIX ld can
27440       # have problems creating the table of contents.  If linking a library
27441       # or program results in "error TOC overflow" add -mminimal-toc to
27442       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
27443       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
27444
27445       archive_cmds_GCJ=''
27446       hardcode_direct_GCJ=yes
27447       hardcode_libdir_separator_GCJ=':'
27448       link_all_deplibs_GCJ=yes
27449
27450       if test "$GCC" = yes; then
27451         case $host_os in aix4.[012]|aix4.[012].*)
27452         # We only want to do this on AIX 4.2 and lower, the check
27453         # below for broken collect2 doesn't work under 4.3+
27454           collect2name=`${CC} -print-prog-name=collect2`
27455           if test -f "$collect2name" && \
27456            strings "$collect2name" | grep resolve_lib_name >/dev/null
27457           then
27458           # We have reworked collect2
27459           hardcode_direct_GCJ=yes
27460           else
27461           # We have old collect2
27462           hardcode_direct_GCJ=unsupported
27463           # It fails to find uninstalled libraries when the uninstalled
27464           # path is not listed in the libpath.  Setting hardcode_minus_L
27465           # to unsupported forces relinking
27466           hardcode_minus_L_GCJ=yes
27467           hardcode_libdir_flag_spec_GCJ='-L$libdir'
27468           hardcode_libdir_separator_GCJ=
27469           fi
27470         esac
27471         shared_flag='-shared'
27472         if test "$aix_use_runtimelinking" = yes; then
27473           shared_flag="$shared_flag "'${wl}-G'
27474         fi
27475       else
27476         # not using gcc
27477         if test "$host_cpu" = ia64; then
27478         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
27479         # chokes on -Wl,-G. The following line is correct:
27480           shared_flag='-G'
27481         else
27482         if test "$aix_use_runtimelinking" = yes; then
27483             shared_flag='${wl}-G'
27484           else
27485             shared_flag='${wl}-bM:SRE'
27486         fi
27487         fi
27488       fi
27489
27490       # It seems that -bexpall does not export symbols beginning with
27491       # underscore (_), so it is better to generate a list of symbols to export.
27492       always_export_symbols_GCJ=yes
27493       if test "$aix_use_runtimelinking" = yes; then
27494         # Warning - without using the other runtime loading flags (-brtl),
27495         # -berok will link without error, but may produce a broken library.
27496         allow_undefined_flag_GCJ='-berok'
27497        # Determine the default libpath from the value encoded in an empty executable.
27498        cat >conftest.$ac_ext <<_ACEOF
27499 /* confdefs.h.  */
27500 _ACEOF
27501 cat confdefs.h >>conftest.$ac_ext
27502 cat >>conftest.$ac_ext <<_ACEOF
27503 /* end confdefs.h.  */
27504
27505 int
27506 main ()
27507 {
27508
27509   ;
27510   return 0;
27511 }
27512 _ACEOF
27513 rm -f conftest.$ac_objext conftest$ac_exeext
27514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27515   (eval $ac_link) 2>conftest.er1
27516   ac_status=$?
27517   grep -v '^ *+' conftest.er1 >conftest.err
27518   rm -f conftest.er1
27519   cat conftest.err >&5
27520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521   (exit $ac_status); } &&
27522          { ac_try='test -z "$ac_c_werror_flag"
27523                          || test ! -s conftest.err'
27524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525   (eval $ac_try) 2>&5
27526   ac_status=$?
27527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528   (exit $ac_status); }; } &&
27529          { ac_try='test -s conftest$ac_exeext'
27530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27531   (eval $ac_try) 2>&5
27532   ac_status=$?
27533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534   (exit $ac_status); }; }; then
27535
27536 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
27537 }'`
27538 # Check for a 64-bit object if we didn't find anything.
27539 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; }
27540 }'`; fi
27541 else
27542   echo "$as_me: failed program was:" >&5
27543 sed 's/^/| /' conftest.$ac_ext >&5
27544
27545 fi
27546 rm -f conftest.err conftest.$ac_objext \
27547       conftest$ac_exeext conftest.$ac_ext
27548 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
27549
27550        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
27551         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"
27552        else
27553         if test "$host_cpu" = ia64; then
27554           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
27555           allow_undefined_flag_GCJ="-z nodefs"
27556           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"
27557         else
27558          # Determine the default libpath from the value encoded in an empty executable.
27559          cat >conftest.$ac_ext <<_ACEOF
27560 /* confdefs.h.  */
27561 _ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h.  */
27565
27566 int
27567 main ()
27568 {
27569
27570   ;
27571   return 0;
27572 }
27573 _ACEOF
27574 rm -f conftest.$ac_objext conftest$ac_exeext
27575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27576   (eval $ac_link) 2>conftest.er1
27577   ac_status=$?
27578   grep -v '^ *+' conftest.er1 >conftest.err
27579   rm -f conftest.er1
27580   cat conftest.err >&5
27581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582   (exit $ac_status); } &&
27583          { ac_try='test -z "$ac_c_werror_flag"
27584                          || test ! -s conftest.err'
27585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27586   (eval $ac_try) 2>&5
27587   ac_status=$?
27588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589   (exit $ac_status); }; } &&
27590          { ac_try='test -s conftest$ac_exeext'
27591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27592   (eval $ac_try) 2>&5
27593   ac_status=$?
27594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595   (exit $ac_status); }; }; then
27596
27597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
27598 }'`
27599 # Check for a 64-bit object if we didn't find anything.
27600 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; }
27601 }'`; fi
27602 else
27603   echo "$as_me: failed program was:" >&5
27604 sed 's/^/| /' conftest.$ac_ext >&5
27605
27606 fi
27607 rm -f conftest.err conftest.$ac_objext \
27608       conftest$ac_exeext conftest.$ac_ext
27609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
27610
27611          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
27612           # Warning - without using the other run time loading flags,
27613           # -berok will link without error, but may produce a broken library.
27614           no_undefined_flag_GCJ=' ${wl}-bernotok'
27615           allow_undefined_flag_GCJ=' ${wl}-berok'
27616           # -bexpall does not export symbols beginning with underscore (_)
27617           always_export_symbols_GCJ=yes
27618           # Exported symbols can be pulled into shared objects from archives
27619           whole_archive_flag_spec_GCJ=' '
27620           archive_cmds_need_lc_GCJ=yes
27621           # This is similar to how AIX traditionally builds its shared libraries.
27622           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'
27623         fi
27624       fi
27625       ;;
27626
27627     amigaos*)
27628       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)'
27629       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27630       hardcode_minus_L_GCJ=yes
27631       # see comment about different semantics on the GNU ld section
27632       ld_shlibs_GCJ=no
27633       ;;
27634
27635     bsdi[45]*)
27636       export_dynamic_flag_spec_GCJ=-rdynamic
27637       ;;
27638
27639     cygwin* | mingw* | pw32*)
27640       # When not using gcc, we currently assume that we are using
27641       # Microsoft Visual C++.
27642       # hardcode_libdir_flag_spec is actually meaningless, as there is
27643       # no search path for DLLs.
27644       hardcode_libdir_flag_spec_GCJ=' '
27645       allow_undefined_flag_GCJ=unsupported
27646       # Tell ltmain to make .lib files, not .a files.
27647       libext=lib
27648       # Tell ltmain to make .dll files, not .so files.
27649       shrext_cmds=".dll"
27650       # FIXME: Setting linknames here is a bad hack.
27651       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
27652       # The linker will automatically build a .lib file if we build a DLL.
27653       old_archive_From_new_cmds_GCJ='true'
27654       # FIXME: Should let the user specify the lib program.
27655       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
27656       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
27657       enable_shared_with_static_runtimes_GCJ=yes
27658       ;;
27659
27660     darwin* | rhapsody*)
27661       case $host_os in
27662         rhapsody* | darwin1.[012])
27663          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
27664          ;;
27665        *) # Darwin 1.3 on
27666          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
27667            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
27668          else
27669            case ${MACOSX_DEPLOYMENT_TARGET} in
27670              10.[012])
27671                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
27672                ;;
27673              10.*)
27674                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
27675                ;;
27676            esac
27677          fi
27678          ;;
27679       esac
27680       archive_cmds_need_lc_GCJ=no
27681       hardcode_direct_GCJ=no
27682       hardcode_automatic_GCJ=yes
27683       hardcode_shlibpath_var_GCJ=unsupported
27684       whole_archive_flag_spec_GCJ=''
27685       link_all_deplibs_GCJ=yes
27686     if test "$GCC" = yes ; then
27687         output_verbose_link_cmd='echo'
27688         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
27689       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
27690       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
27691       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}'
27692       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}'
27693     else
27694       case $cc_basename in
27695         xlc*)
27696          output_verbose_link_cmd='echo'
27697          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
27698          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
27699           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
27700          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}'
27701           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}'
27702           ;;
27703        *)
27704          ld_shlibs_GCJ=no
27705           ;;
27706       esac
27707     fi
27708       ;;
27709
27710     dgux*)
27711       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27712       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27713       hardcode_shlibpath_var_GCJ=no
27714       ;;
27715
27716     freebsd1*)
27717       ld_shlibs_GCJ=no
27718       ;;
27719
27720     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
27721     # support.  Future versions do this automatically, but an explicit c++rt0.o
27722     # does not break anything, and helps significantly (at the cost of a little
27723     # extra space).
27724     freebsd2.2*)
27725       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
27726       hardcode_libdir_flag_spec_GCJ='-R$libdir'
27727       hardcode_direct_GCJ=yes
27728       hardcode_shlibpath_var_GCJ=no
27729       ;;
27730
27731     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
27732     freebsd2*)
27733       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27734       hardcode_direct_GCJ=yes
27735       hardcode_minus_L_GCJ=yes
27736       hardcode_shlibpath_var_GCJ=no
27737       ;;
27738
27739     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
27740     freebsd* | kfreebsd*-gnu | dragonfly*)
27741       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
27742       hardcode_libdir_flag_spec_GCJ='-R$libdir'
27743       hardcode_direct_GCJ=yes
27744       hardcode_shlibpath_var_GCJ=no
27745       ;;
27746
27747     hpux9*)
27748       if test "$GCC" = yes; then
27749         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'
27750       else
27751         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'
27752       fi
27753       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27754       hardcode_libdir_separator_GCJ=:
27755       hardcode_direct_GCJ=yes
27756
27757       # hardcode_minus_L: Not really in the search PATH,
27758       # but as the default location of the library.
27759       hardcode_minus_L_GCJ=yes
27760       export_dynamic_flag_spec_GCJ='${wl}-E'
27761       ;;
27762
27763     hpux10* | hpux11*)
27764       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
27765         case $host_cpu in
27766         hppa*64*|ia64*)
27767           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
27768           ;;
27769         *)
27770           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
27771           ;;
27772         esac
27773       else
27774         case $host_cpu in
27775         hppa*64*|ia64*)
27776           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
27777           ;;
27778         *)
27779           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
27780           ;;
27781         esac
27782       fi
27783       if test "$with_gnu_ld" = no; then
27784         case $host_cpu in
27785         hppa*64*)
27786           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27787           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
27788           hardcode_libdir_separator_GCJ=:
27789           hardcode_direct_GCJ=no
27790           hardcode_shlibpath_var_GCJ=no
27791           ;;
27792         ia64*)
27793           hardcode_libdir_flag_spec_GCJ='-L$libdir'
27794           hardcode_direct_GCJ=no
27795           hardcode_shlibpath_var_GCJ=no
27796
27797           # hardcode_minus_L: Not really in the search PATH,
27798           # but as the default location of the library.
27799           hardcode_minus_L_GCJ=yes
27800           ;;
27801         *)
27802           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27803           hardcode_libdir_separator_GCJ=:
27804           hardcode_direct_GCJ=yes
27805           export_dynamic_flag_spec_GCJ='${wl}-E'
27806
27807           # hardcode_minus_L: Not really in the search PATH,
27808           # but as the default location of the library.
27809           hardcode_minus_L_GCJ=yes
27810           ;;
27811         esac
27812       fi
27813       ;;
27814
27815     irix5* | irix6* | nonstopux*)
27816       if test "$GCC" = yes; then
27817         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'
27818       else
27819         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'
27820         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
27821       fi
27822       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27823       hardcode_libdir_separator_GCJ=:
27824       link_all_deplibs_GCJ=yes
27825       ;;
27826
27827     netbsd*)
27828       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
27829         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
27830       else
27831         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
27832       fi
27833       hardcode_libdir_flag_spec_GCJ='-R$libdir'
27834       hardcode_direct_GCJ=yes
27835       hardcode_shlibpath_var_GCJ=no
27836       ;;
27837
27838     newsos6)
27839       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27840       hardcode_direct_GCJ=yes
27841       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27842       hardcode_libdir_separator_GCJ=:
27843       hardcode_shlibpath_var_GCJ=no
27844       ;;
27845
27846     openbsd*)
27847       hardcode_direct_GCJ=yes
27848       hardcode_shlibpath_var_GCJ=no
27849       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
27850         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
27851         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
27852         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
27853         export_dynamic_flag_spec_GCJ='${wl}-E'
27854       else
27855        case $host_os in
27856          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
27857            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27858            hardcode_libdir_flag_spec_GCJ='-R$libdir'
27859            ;;
27860          *)
27861            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
27862            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
27863            ;;
27864        esac
27865       fi
27866       ;;
27867
27868     os2*)
27869       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27870       hardcode_minus_L_GCJ=yes
27871       allow_undefined_flag_GCJ=unsupported
27872       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'
27873       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
27874       ;;
27875
27876     osf3*)
27877       if test "$GCC" = yes; then
27878         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
27879         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'
27880       else
27881         allow_undefined_flag_GCJ=' -expect_unresolved \*'
27882         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'
27883       fi
27884       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27885       hardcode_libdir_separator_GCJ=:
27886       ;;
27887
27888     osf4* | osf5*)      # as osf3* with the addition of -msym flag
27889       if test "$GCC" = yes; then
27890         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
27891         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'
27892         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27893       else
27894         allow_undefined_flag_GCJ=' -expect_unresolved \*'
27895         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'
27896         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~
27897         $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'
27898
27899         # Both c and cxx compiler support -rpath directly
27900         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
27901       fi
27902       hardcode_libdir_separator_GCJ=:
27903       ;;
27904
27905     sco3.2v5*)
27906       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27907       hardcode_shlibpath_var_GCJ=no
27908       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
27909       runpath_var=LD_RUN_PATH
27910       hardcode_runpath_var=yes
27911       ;;
27912
27913     solaris*)
27914       no_undefined_flag_GCJ=' -z text'
27915       if test "$GCC" = yes; then
27916         wlarc='${wl}'
27917         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
27918         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
27919           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
27920       else
27921         wlarc=''
27922         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
27923         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
27924         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
27925       fi
27926       hardcode_libdir_flag_spec_GCJ='-R$libdir'
27927       hardcode_shlibpath_var_GCJ=no
27928       case $host_os in
27929       solaris2.[0-5] | solaris2.[0-5].*) ;;
27930       *)
27931         # The compiler driver will combine linker options so we
27932         # cannot just pass the convience library names through
27933         # without $wl, iff we do not link with $LD.
27934         # Luckily, gcc supports the same syntax we need for Sun Studio.
27935         # Supported since Solaris 2.6 (maybe 2.5.1?)
27936         case $wlarc in
27937         '')
27938           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
27939         *)
27940           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' ;;
27941         esac ;;
27942       esac
27943       link_all_deplibs_GCJ=yes
27944       ;;
27945
27946     sunos4*)
27947       if test "x$host_vendor" = xsequent; then
27948         # Use $CC to link under sequent, because it throws in some extra .o
27949         # files that make .init and .fini sections work.
27950         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
27951       else
27952         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
27953       fi
27954       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27955       hardcode_direct_GCJ=yes
27956       hardcode_minus_L_GCJ=yes
27957       hardcode_shlibpath_var_GCJ=no
27958       ;;
27959
27960     sysv4)
27961       case $host_vendor in
27962         sni)
27963           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27964           hardcode_direct_GCJ=yes # is this really true???
27965         ;;
27966         siemens)
27967           ## LD is ld it makes a PLAMLIB
27968           ## CC just makes a GrossModule.
27969           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
27970           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
27971           hardcode_direct_GCJ=no
27972         ;;
27973         motorola)
27974           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27975           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
27976         ;;
27977       esac
27978       runpath_var='LD_RUN_PATH'
27979       hardcode_shlibpath_var_GCJ=no
27980       ;;
27981
27982     sysv4.3*)
27983       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27984       hardcode_shlibpath_var_GCJ=no
27985       export_dynamic_flag_spec_GCJ='-Bexport'
27986       ;;
27987
27988     sysv4*MP*)
27989       if test -d /usr/nec; then
27990         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27991         hardcode_shlibpath_var_GCJ=no
27992         runpath_var=LD_RUN_PATH
27993         hardcode_runpath_var=yes
27994         ld_shlibs_GCJ=yes
27995       fi
27996       ;;
27997
27998     sysv4.2uw2*)
27999       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
28000       hardcode_direct_GCJ=yes
28001       hardcode_minus_L_GCJ=no
28002       hardcode_shlibpath_var_GCJ=no
28003       hardcode_runpath_var=yes
28004       runpath_var=LD_RUN_PATH
28005       ;;
28006
28007    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
28008       no_undefined_flag_GCJ='${wl}-z ${wl}text'
28009       if test "$GCC" = yes; then
28010         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
28011       else
28012         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
28013       fi
28014       runpath_var='LD_RUN_PATH'
28015       hardcode_shlibpath_var_GCJ=no
28016       ;;
28017
28018     sysv5*)
28019       no_undefined_flag_GCJ=' -z text'
28020       # $CC -shared without GNU ld will not create a library from C++
28021       # object files and a static libstdc++, better avoid it by now
28022       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
28023       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
28024                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
28025       hardcode_libdir_flag_spec_GCJ=
28026       hardcode_shlibpath_var_GCJ=no
28027       runpath_var='LD_RUN_PATH'
28028       ;;
28029
28030     uts4*)
28031       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28032       hardcode_libdir_flag_spec_GCJ='-L$libdir'
28033       hardcode_shlibpath_var_GCJ=no
28034       ;;
28035
28036     *)
28037       ld_shlibs_GCJ=no
28038       ;;
28039     esac
28040   fi
28041
28042 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
28043 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
28044 test "$ld_shlibs_GCJ" = no && can_build_shared=no
28045
28046 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
28047 if test "$GCC" = yes; then
28048   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
28049 fi
28050
28051 #
28052 # Do we need to explicitly link libc?
28053 #
28054 case "x$archive_cmds_need_lc_GCJ" in
28055 x|xyes)
28056   # Assume -lc should be added
28057   archive_cmds_need_lc_GCJ=yes
28058
28059   if test "$enable_shared" = yes && test "$GCC" = yes; then
28060     case $archive_cmds_GCJ in
28061     *'~'*)
28062       # FIXME: we may have to deal with multi-command sequences.
28063       ;;
28064     '$CC '*)
28065       # Test whether the compiler implicitly links with -lc since on some
28066       # systems, -lgcc has to come before -lc. If gcc already passes -lc
28067       # to ld, don't add -lc before -lgcc.
28068       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
28069 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
28070       $rm conftest*
28071       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
28072
28073       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28074   (eval $ac_compile) 2>&5
28075   ac_status=$?
28076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077   (exit $ac_status); } 2>conftest.err; then
28078         soname=conftest
28079         lib=conftest
28080         libobjs=conftest.$ac_objext
28081         deplibs=
28082         wl=$lt_prog_compiler_wl_GCJ
28083         compiler_flags=-v
28084         linker_flags=-v
28085         verstring=
28086         output_objdir=.
28087         libname=conftest
28088         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
28089         allow_undefined_flag_GCJ=
28090         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
28091   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
28092   ac_status=$?
28093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094   (exit $ac_status); }
28095         then
28096           archive_cmds_need_lc_GCJ=no
28097         else
28098           archive_cmds_need_lc_GCJ=yes
28099         fi
28100         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
28101       else
28102         cat conftest.err 1>&5
28103       fi
28104       $rm conftest*
28105       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
28106 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
28107       ;;
28108     esac
28109   fi
28110   ;;
28111 esac
28112
28113 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
28114 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
28115 library_names_spec=
28116 libname_spec='lib$name'
28117 soname_spec=
28118 shrext_cmds=".so"
28119 postinstall_cmds=
28120 postuninstall_cmds=
28121 finish_cmds=
28122 finish_eval=
28123 shlibpath_var=
28124 shlibpath_overrides_runpath=unknown
28125 version_type=none
28126 dynamic_linker="$host_os ld.so"
28127 sys_lib_dlsearch_path_spec="/lib /usr/lib"
28128 if test "$GCC" = yes; then
28129   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
28130   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
28131     # if the path contains ";" then we assume it to be the separator
28132     # otherwise default to the standard path separator (i.e. ":") - it is
28133     # assumed that no part of a normal pathname contains ";" but that should
28134     # okay in the real world where ";" in dirpaths is itself problematic.
28135     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
28136   else
28137     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
28138   fi
28139 else
28140   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
28141 fi
28142 need_lib_prefix=unknown
28143 hardcode_into_libs=no
28144
28145 # when you set need_version to no, make sure it does not cause -set_version
28146 # flags to be left without arguments
28147 need_version=unknown
28148
28149 case $host_os in
28150 aix3*)
28151   version_type=linux
28152   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
28153   shlibpath_var=LIBPATH
28154
28155   # AIX 3 has no versioning support, so we append a major version to the name.
28156   soname_spec='${libname}${release}${shared_ext}$major'
28157   ;;
28158
28159 aix4* | aix5*)
28160   version_type=linux
28161   need_lib_prefix=no
28162   need_version=no
28163   hardcode_into_libs=yes
28164   if test "$host_cpu" = ia64; then
28165     # AIX 5 supports IA64
28166     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
28167     shlibpath_var=LD_LIBRARY_PATH
28168   else
28169     # With GCC up to 2.95.x, collect2 would create an import file
28170     # for dependence libraries.  The import file would start with
28171     # the line `#! .'.  This would cause the generated library to
28172     # depend on `.', always an invalid library.  This was fixed in
28173     # development snapshots of GCC prior to 3.0.
28174     case $host_os in
28175       aix4 | aix4.[01] | aix4.[01].*)
28176       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
28177            echo ' yes '
28178            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
28179         :
28180       else
28181         can_build_shared=no
28182       fi
28183       ;;
28184     esac
28185     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
28186     # soname into executable. Probably we can add versioning support to
28187     # collect2, so additional links can be useful in future.
28188     if test "$aix_use_runtimelinking" = yes; then
28189       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
28190       # instead of lib<name>.a to let people know that these are not
28191       # typical AIX shared libraries.
28192       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28193     else
28194       # We preserve .a as extension for shared libraries through AIX4.2
28195       # and later when we are not doing run time linking.
28196       library_names_spec='${libname}${release}.a $libname.a'
28197       soname_spec='${libname}${release}${shared_ext}$major'
28198     fi
28199     shlibpath_var=LIBPATH
28200   fi
28201   ;;
28202
28203 amigaos*)
28204   library_names_spec='$libname.ixlibrary $libname.a'
28205   # Create ${libname}_ixlibrary.a entries in /sys/libs.
28206   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'
28207   ;;
28208
28209 beos*)
28210   library_names_spec='${libname}${shared_ext}'
28211   dynamic_linker="$host_os ld.so"
28212   shlibpath_var=LIBRARY_PATH
28213   ;;
28214
28215 bsdi[45]*)
28216   version_type=linux
28217   need_version=no
28218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28219   soname_spec='${libname}${release}${shared_ext}$major'
28220   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
28221   shlibpath_var=LD_LIBRARY_PATH
28222   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
28223   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
28224   # the default ld.so.conf also contains /usr/contrib/lib and
28225   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
28226   # libtool to hard-code these into programs
28227   ;;
28228
28229 cygwin* | mingw* | pw32*)
28230   version_type=windows
28231   shrext_cmds=".dll"
28232   need_version=no
28233   need_lib_prefix=no
28234
28235   case $GCC,$host_os in
28236   yes,cygwin* | yes,mingw* | yes,pw32*)
28237     library_names_spec='$libname.dll.a'
28238     # DLL is installed to $(libdir)/../bin by postinstall_cmds
28239     postinstall_cmds='base_file=`basename \${file}`~
28240       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
28241       dldir=$destdir/`dirname \$dlpath`~
28242       test -d \$dldir || mkdir -p \$dldir~
28243       $install_prog $dir/$dlname \$dldir/$dlname~
28244       chmod a+x \$dldir/$dlname'
28245     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
28246       dlpath=$dir/\$dldll~
28247        $rm \$dlpath'
28248     shlibpath_overrides_runpath=yes
28249
28250     case $host_os in
28251     cygwin*)
28252       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
28253       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28254       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
28255       ;;
28256     mingw*)
28257       # MinGW DLLs use traditional 'lib' prefix
28258       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28259       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
28260       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
28261         # It is most probably a Windows format PATH printed by
28262         # mingw gcc, but we are running on Cygwin. Gcc prints its search
28263         # path with ; separators, and with drive letters. We can handle the
28264         # drive letters (cygwin fileutils understands them), so leave them,
28265         # especially as we might pass files found there to a mingw objdump,
28266         # which wouldn't understand a cygwinified path. Ahh.
28267         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
28268       else
28269         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
28270       fi
28271       ;;
28272     pw32*)
28273       # pw32 DLLs use 'pw' prefix rather than 'lib'
28274       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28275       ;;
28276     esac
28277     ;;
28278
28279   *)
28280     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
28281     ;;
28282   esac
28283   dynamic_linker='Win32 ld.exe'
28284   # FIXME: first we should search . and the directory the executable is in
28285   shlibpath_var=PATH
28286   ;;
28287
28288 darwin* | rhapsody*)
28289   dynamic_linker="$host_os dyld"
28290   version_type=darwin
28291   need_lib_prefix=no
28292   need_version=no
28293   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
28294   soname_spec='${libname}${release}${major}$shared_ext'
28295   shlibpath_overrides_runpath=yes
28296   shlibpath_var=DYLD_LIBRARY_PATH
28297   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
28298   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
28299   if test "$GCC" = yes; then
28300     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"`
28301   else
28302     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
28303   fi
28304   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
28305   ;;
28306
28307 dgux*)
28308   version_type=linux
28309   need_lib_prefix=no
28310   need_version=no
28311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
28312   soname_spec='${libname}${release}${shared_ext}$major'
28313   shlibpath_var=LD_LIBRARY_PATH
28314   ;;
28315
28316 freebsd1*)
28317   dynamic_linker=no
28318   ;;
28319
28320 kfreebsd*-gnu)
28321   version_type=linux
28322   need_lib_prefix=no
28323   need_version=no
28324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28325   soname_spec='${libname}${release}${shared_ext}$major'
28326   shlibpath_var=LD_LIBRARY_PATH
28327   shlibpath_overrides_runpath=no
28328   hardcode_into_libs=yes
28329   dynamic_linker='GNU ld.so'
28330   ;;
28331
28332 freebsd* | dragonfly*)
28333   # DragonFly does not have aout.  When/if they implement a new
28334   # versioning mechanism, adjust this.
28335   if test -x /usr/bin/objformat; then
28336     objformat=`/usr/bin/objformat`
28337   else
28338     case $host_os in
28339     freebsd[123]*) objformat=aout ;;
28340     *) objformat=elf ;;
28341     esac
28342   fi
28343   version_type=freebsd-$objformat
28344   case $version_type in
28345     freebsd-elf*)
28346       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
28347       need_version=no
28348       need_lib_prefix=no
28349       ;;
28350     freebsd-*)
28351       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
28352       need_version=yes
28353       ;;
28354   esac
28355   shlibpath_var=LD_LIBRARY_PATH
28356   case $host_os in
28357   freebsd2*)
28358     shlibpath_overrides_runpath=yes
28359     ;;
28360   freebsd3.[01]* | freebsdelf3.[01]*)
28361     shlibpath_overrides_runpath=yes
28362     hardcode_into_libs=yes
28363     ;;
28364   *) # from 3.2 on
28365     shlibpath_overrides_runpath=no
28366     hardcode_into_libs=yes
28367     ;;
28368   esac
28369   ;;
28370
28371 gnu*)
28372   version_type=linux
28373   need_lib_prefix=no
28374   need_version=no
28375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
28376   soname_spec='${libname}${release}${shared_ext}$major'
28377   shlibpath_var=LD_LIBRARY_PATH
28378   hardcode_into_libs=yes
28379   ;;
28380
28381 hpux9* | hpux10* | hpux11*)
28382   # Give a soname corresponding to the major version so that dld.sl refuses to
28383   # link against other versions.
28384   version_type=sunos
28385   need_lib_prefix=no
28386   need_version=no
28387   case $host_cpu in
28388   ia64*)
28389     shrext_cmds='.so'
28390     hardcode_into_libs=yes
28391     dynamic_linker="$host_os dld.so"
28392     shlibpath_var=LD_LIBRARY_PATH
28393     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
28394     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28395     soname_spec='${libname}${release}${shared_ext}$major'
28396     if test "X$HPUX_IA64_MODE" = X32; then
28397       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
28398     else
28399       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
28400     fi
28401     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
28402     ;;
28403    hppa*64*)
28404      shrext_cmds='.sl'
28405      hardcode_into_libs=yes
28406      dynamic_linker="$host_os dld.sl"
28407      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
28408      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
28409      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28410      soname_spec='${libname}${release}${shared_ext}$major'
28411      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
28412      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
28413      ;;
28414    *)
28415     shrext_cmds='.sl'
28416     dynamic_linker="$host_os dld.sl"
28417     shlibpath_var=SHLIB_PATH
28418     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
28419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28420     soname_spec='${libname}${release}${shared_ext}$major'
28421     ;;
28422   esac
28423   # HP-UX runs *really* slowly unless shared libraries are mode 555.
28424   postinstall_cmds='chmod 555 $lib'
28425   ;;
28426
28427 irix5* | irix6* | nonstopux*)
28428   case $host_os in
28429     nonstopux*) version_type=nonstopux ;;
28430     *)
28431         if test "$lt_cv_prog_gnu_ld" = yes; then
28432                 version_type=linux
28433         else
28434                 version_type=irix
28435         fi ;;
28436   esac
28437   need_lib_prefix=no
28438   need_version=no
28439   soname_spec='${libname}${release}${shared_ext}$major'
28440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
28441   case $host_os in
28442   irix5* | nonstopux*)
28443     libsuff= shlibsuff=
28444     ;;
28445   *)
28446     case $LD in # libtool.m4 will add one of these switches to LD
28447     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
28448       libsuff= shlibsuff= libmagic=32-bit;;
28449     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
28450       libsuff=32 shlibsuff=N32 libmagic=N32;;
28451     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
28452       libsuff=64 shlibsuff=64 libmagic=64-bit;;
28453     *) libsuff= shlibsuff= libmagic=never-match;;
28454     esac
28455     ;;
28456   esac
28457   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
28458   shlibpath_overrides_runpath=no
28459   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
28460   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
28461   hardcode_into_libs=yes
28462   ;;
28463
28464 # No shared lib support for Linux oldld, aout, or coff.
28465 linux*oldld* | linux*aout* | linux*coff*)
28466   dynamic_linker=no
28467   ;;
28468
28469 # This must be Linux ELF.
28470 linux*)
28471   version_type=linux
28472   need_lib_prefix=no
28473   need_version=no
28474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28475   soname_spec='${libname}${release}${shared_ext}$major'
28476   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
28477   shlibpath_var=LD_LIBRARY_PATH
28478   shlibpath_overrides_runpath=no
28479   # This implies no fast_install, which is unacceptable.
28480   # Some rework will be needed to allow for fast_install
28481   # before this can be enabled.
28482   hardcode_into_libs=yes
28483
28484   # Append ld.so.conf contents to the search path
28485   if test -f /etc/ld.so.conf; then
28486     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' ' '`
28487     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
28488   fi
28489
28490   # We used to test for /lib/ld.so.1 and disable shared libraries on
28491   # powerpc, because MkLinux only supported shared libraries with the
28492   # GNU dynamic linker.  Since this was broken with cross compilers,
28493   # most powerpc-linux boxes support dynamic linking these days and
28494   # people can always --disable-shared, the test was removed, and we
28495   # assume the GNU/Linux dynamic linker is in use.
28496   dynamic_linker='GNU/Linux ld.so'
28497   ;;
28498
28499 knetbsd*-gnu)
28500   version_type=linux
28501   need_lib_prefix=no
28502   need_version=no
28503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28504   soname_spec='${libname}${release}${shared_ext}$major'
28505   shlibpath_var=LD_LIBRARY_PATH
28506   shlibpath_overrides_runpath=no
28507   hardcode_into_libs=yes
28508   dynamic_linker='GNU ld.so'
28509   ;;
28510
28511 netbsd*)
28512   version_type=sunos
28513   need_lib_prefix=no
28514   need_version=no
28515   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
28516     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28517     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
28518     dynamic_linker='NetBSD (a.out) ld.so'
28519   else
28520     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28521     soname_spec='${libname}${release}${shared_ext}$major'
28522     dynamic_linker='NetBSD ld.elf_so'
28523   fi
28524   shlibpath_var=LD_LIBRARY_PATH
28525   shlibpath_overrides_runpath=yes
28526   hardcode_into_libs=yes
28527   ;;
28528
28529 newsos6)
28530   version_type=linux
28531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28532   shlibpath_var=LD_LIBRARY_PATH
28533   shlibpath_overrides_runpath=yes
28534   ;;
28535
28536 nto-qnx*)
28537   version_type=linux
28538   need_lib_prefix=no
28539   need_version=no
28540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28541   soname_spec='${libname}${release}${shared_ext}$major'
28542   shlibpath_var=LD_LIBRARY_PATH
28543   shlibpath_overrides_runpath=yes
28544   ;;
28545
28546 openbsd*)
28547   version_type=sunos
28548   need_lib_prefix=no
28549   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
28550   case $host_os in
28551     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
28552     *)                         need_version=no  ;;
28553   esac
28554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28555   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
28556   shlibpath_var=LD_LIBRARY_PATH
28557   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
28558     case $host_os in
28559       openbsd2.[89] | openbsd2.[89].*)
28560         shlibpath_overrides_runpath=no
28561         ;;
28562       *)
28563         shlibpath_overrides_runpath=yes
28564         ;;
28565       esac
28566   else
28567     shlibpath_overrides_runpath=yes
28568   fi
28569   ;;
28570
28571 os2*)
28572   libname_spec='$name'
28573   shrext_cmds=".dll"
28574   need_lib_prefix=no
28575   library_names_spec='$libname${shared_ext} $libname.a'
28576   dynamic_linker='OS/2 ld.exe'
28577   shlibpath_var=LIBPATH
28578   ;;
28579
28580 osf3* | osf4* | osf5*)
28581   version_type=osf
28582   need_lib_prefix=no
28583   need_version=no
28584   soname_spec='${libname}${release}${shared_ext}$major'
28585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28586   shlibpath_var=LD_LIBRARY_PATH
28587   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
28588   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
28589   ;;
28590
28591 sco3.2v5*)
28592   version_type=osf
28593   soname_spec='${libname}${release}${shared_ext}$major'
28594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28595   shlibpath_var=LD_LIBRARY_PATH
28596   ;;
28597
28598 solaris*)
28599   version_type=linux
28600   need_lib_prefix=no
28601   need_version=no
28602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28603   soname_spec='${libname}${release}${shared_ext}$major'
28604   shlibpath_var=LD_LIBRARY_PATH
28605   shlibpath_overrides_runpath=yes
28606   hardcode_into_libs=yes
28607   # ldd complains unless libraries are executable
28608   postinstall_cmds='chmod +x $lib'
28609   ;;
28610
28611 sunos4*)
28612   version_type=sunos
28613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28614   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
28615   shlibpath_var=LD_LIBRARY_PATH
28616   shlibpath_overrides_runpath=yes
28617   if test "$with_gnu_ld" = yes; then
28618     need_lib_prefix=no
28619   fi
28620   need_version=yes
28621   ;;
28622
28623 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
28624   version_type=linux
28625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28626   soname_spec='${libname}${release}${shared_ext}$major'
28627   shlibpath_var=LD_LIBRARY_PATH
28628   case $host_vendor in
28629     sni)
28630       shlibpath_overrides_runpath=no
28631       need_lib_prefix=no
28632       export_dynamic_flag_spec='${wl}-Blargedynsym'
28633       runpath_var=LD_RUN_PATH
28634       ;;
28635     siemens)
28636       need_lib_prefix=no
28637       ;;
28638     motorola)
28639       need_lib_prefix=no
28640       need_version=no
28641       shlibpath_overrides_runpath=no
28642       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
28643       ;;
28644   esac
28645   ;;
28646
28647 sysv4*MP*)
28648   if test -d /usr/nec ;then
28649     version_type=linux
28650     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
28651     soname_spec='$libname${shared_ext}.$major'
28652     shlibpath_var=LD_LIBRARY_PATH
28653   fi
28654   ;;
28655
28656 uts4*)
28657   version_type=linux
28658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28659   soname_spec='${libname}${release}${shared_ext}$major'
28660   shlibpath_var=LD_LIBRARY_PATH
28661   ;;
28662
28663 *)
28664   dynamic_linker=no
28665   ;;
28666 esac
28667 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
28668 echo "${ECHO_T}$dynamic_linker" >&6
28669 test "$dynamic_linker" = no && can_build_shared=no
28670
28671 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
28672 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
28673 hardcode_action_GCJ=
28674 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
28675    test -n "$runpath_var_GCJ" || \
28676    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
28677
28678   # We can hardcode non-existant directories.
28679   if test "$hardcode_direct_GCJ" != no &&
28680      # If the only mechanism to avoid hardcoding is shlibpath_var, we
28681      # have to relink, otherwise we might link with an installed library
28682      # when we should be linking with a yet-to-be-installed one
28683      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
28684      test "$hardcode_minus_L_GCJ" != no; then
28685     # Linking always hardcodes the temporary library directory.
28686     hardcode_action_GCJ=relink
28687   else
28688     # We can link without hardcoding, and we can hardcode nonexisting dirs.
28689     hardcode_action_GCJ=immediate
28690   fi
28691 else
28692   # We cannot hardcode anything, or else we can only hardcode existing
28693   # directories.
28694   hardcode_action_GCJ=unsupported
28695 fi
28696 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
28697 echo "${ECHO_T}$hardcode_action_GCJ" >&6
28698
28699 if test "$hardcode_action_GCJ" = relink; then
28700   # Fast installation is not supported
28701   enable_fast_install=no
28702 elif test "$shlibpath_overrides_runpath" = yes ||
28703      test "$enable_shared" = no; then
28704   # Fast installation is not necessary
28705   enable_fast_install=needless
28706 fi
28707
28708 striplib=
28709 old_striplib=
28710 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
28711 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
28712 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
28713   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
28714   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
28715   echo "$as_me:$LINENO: result: yes" >&5
28716 echo "${ECHO_T}yes" >&6
28717 else
28718 # FIXME - insert some real tests, host_os isn't really good enough
28719   case $host_os in
28720    darwin*)
28721        if test -n "$STRIP" ; then
28722          striplib="$STRIP -x"
28723          echo "$as_me:$LINENO: result: yes" >&5
28724 echo "${ECHO_T}yes" >&6
28725        else
28726   echo "$as_me:$LINENO: result: no" >&5
28727 echo "${ECHO_T}no" >&6
28728 fi
28729        ;;
28730    *)
28731   echo "$as_me:$LINENO: result: no" >&5
28732 echo "${ECHO_T}no" >&6
28733     ;;
28734   esac
28735 fi
28736
28737 if test "x$enable_dlopen" != xyes; then
28738   enable_dlopen=unknown
28739   enable_dlopen_self=unknown
28740   enable_dlopen_self_static=unknown
28741 else
28742   lt_cv_dlopen=no
28743   lt_cv_dlopen_libs=
28744
28745   case $host_os in
28746   beos*)
28747     lt_cv_dlopen="load_add_on"
28748     lt_cv_dlopen_libs=
28749     lt_cv_dlopen_self=yes
28750     ;;
28751
28752   mingw* | pw32*)
28753     lt_cv_dlopen="LoadLibrary"
28754     lt_cv_dlopen_libs=
28755    ;;
28756
28757   cygwin*)
28758     lt_cv_dlopen="dlopen"
28759     lt_cv_dlopen_libs=
28760    ;;
28761
28762   darwin*)
28763   # if libdl is installed we need to link against it
28764     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
28765 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
28766 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
28767   echo $ECHO_N "(cached) $ECHO_C" >&6
28768 else
28769   ac_check_lib_save_LIBS=$LIBS
28770 LIBS="-ldl  $LIBS"
28771 cat >conftest.$ac_ext <<_ACEOF
28772 /* confdefs.h.  */
28773 _ACEOF
28774 cat confdefs.h >>conftest.$ac_ext
28775 cat >>conftest.$ac_ext <<_ACEOF
28776 /* end confdefs.h.  */
28777
28778 /* Override any gcc2 internal prototype to avoid an error.  */
28779 #ifdef __cplusplus
28780 extern "C"
28781 #endif
28782 /* We use char because int might match the return type of a gcc2
28783    builtin and then its argument prototype would still apply.  */
28784 char dlopen ();
28785 int
28786 main ()
28787 {
28788 dlopen ();
28789   ;
28790   return 0;
28791 }
28792 _ACEOF
28793 rm -f conftest.$ac_objext conftest$ac_exeext
28794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28795   (eval $ac_link) 2>conftest.er1
28796   ac_status=$?
28797   grep -v '^ *+' conftest.er1 >conftest.err
28798   rm -f conftest.er1
28799   cat conftest.err >&5
28800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801   (exit $ac_status); } &&
28802          { ac_try='test -z "$ac_c_werror_flag"
28803                          || test ! -s conftest.err'
28804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28805   (eval $ac_try) 2>&5
28806   ac_status=$?
28807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808   (exit $ac_status); }; } &&
28809          { ac_try='test -s conftest$ac_exeext'
28810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28811   (eval $ac_try) 2>&5
28812   ac_status=$?
28813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814   (exit $ac_status); }; }; then
28815   ac_cv_lib_dl_dlopen=yes
28816 else
28817   echo "$as_me: failed program was:" >&5
28818 sed 's/^/| /' conftest.$ac_ext >&5
28819
28820 ac_cv_lib_dl_dlopen=no
28821 fi
28822 rm -f conftest.err conftest.$ac_objext \
28823       conftest$ac_exeext conftest.$ac_ext
28824 LIBS=$ac_check_lib_save_LIBS
28825 fi
28826 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
28827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
28828 if test $ac_cv_lib_dl_dlopen = yes; then
28829   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
28830 else
28831
28832     lt_cv_dlopen="dyld"
28833     lt_cv_dlopen_libs=
28834     lt_cv_dlopen_self=yes
28835
28836 fi
28837
28838    ;;
28839
28840   *)
28841     echo "$as_me:$LINENO: checking for shl_load" >&5
28842 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
28843 if test "${ac_cv_func_shl_load+set}" = set; then
28844   echo $ECHO_N "(cached) $ECHO_C" >&6
28845 else
28846   cat >conftest.$ac_ext <<_ACEOF
28847 /* confdefs.h.  */
28848 _ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h.  */
28852 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
28853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28854 #define shl_load innocuous_shl_load
28855
28856 /* System header to define __stub macros and hopefully few prototypes,
28857     which can conflict with char shl_load (); below.
28858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28859     <limits.h> exists even on freestanding compilers.  */
28860
28861 #ifdef __STDC__
28862 # include <limits.h>
28863 #else
28864 # include <assert.h>
28865 #endif
28866
28867 #undef shl_load
28868
28869 /* Override any gcc2 internal prototype to avoid an error.  */
28870 #ifdef __cplusplus
28871 extern "C"
28872 {
28873 #endif
28874 /* We use char because int might match the return type of a gcc2
28875    builtin and then its argument prototype would still apply.  */
28876 char shl_load ();
28877 /* The GNU C library defines this for functions which it implements
28878     to always fail with ENOSYS.  Some functions are actually named
28879     something starting with __ and the normal name is an alias.  */
28880 #if defined (__stub_shl_load) || defined (__stub___shl_load)
28881 choke me
28882 #else
28883 char (*f) () = shl_load;
28884 #endif
28885 #ifdef __cplusplus
28886 }
28887 #endif
28888
28889 int
28890 main ()
28891 {
28892 return f != shl_load;
28893   ;
28894   return 0;
28895 }
28896 _ACEOF
28897 rm -f conftest.$ac_objext conftest$ac_exeext
28898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28899   (eval $ac_link) 2>conftest.er1
28900   ac_status=$?
28901   grep -v '^ *+' conftest.er1 >conftest.err
28902   rm -f conftest.er1
28903   cat conftest.err >&5
28904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905   (exit $ac_status); } &&
28906          { ac_try='test -z "$ac_c_werror_flag"
28907                          || test ! -s conftest.err'
28908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28909   (eval $ac_try) 2>&5
28910   ac_status=$?
28911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912   (exit $ac_status); }; } &&
28913          { ac_try='test -s conftest$ac_exeext'
28914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28915   (eval $ac_try) 2>&5
28916   ac_status=$?
28917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918   (exit $ac_status); }; }; then
28919   ac_cv_func_shl_load=yes
28920 else
28921   echo "$as_me: failed program was:" >&5
28922 sed 's/^/| /' conftest.$ac_ext >&5
28923
28924 ac_cv_func_shl_load=no
28925 fi
28926 rm -f conftest.err conftest.$ac_objext \
28927       conftest$ac_exeext conftest.$ac_ext
28928 fi
28929 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
28930 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
28931 if test $ac_cv_func_shl_load = yes; then
28932   lt_cv_dlopen="shl_load"
28933 else
28934   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
28935 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
28936 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
28937   echo $ECHO_N "(cached) $ECHO_C" >&6
28938 else
28939   ac_check_lib_save_LIBS=$LIBS
28940 LIBS="-ldld  $LIBS"
28941 cat >conftest.$ac_ext <<_ACEOF
28942 /* confdefs.h.  */
28943 _ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h.  */
28947
28948 /* Override any gcc2 internal prototype to avoid an error.  */
28949 #ifdef __cplusplus
28950 extern "C"
28951 #endif
28952 /* We use char because int might match the return type of a gcc2
28953    builtin and then its argument prototype would still apply.  */
28954 char shl_load ();
28955 int
28956 main ()
28957 {
28958 shl_load ();
28959   ;
28960   return 0;
28961 }
28962 _ACEOF
28963 rm -f conftest.$ac_objext conftest$ac_exeext
28964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28965   (eval $ac_link) 2>conftest.er1
28966   ac_status=$?
28967   grep -v '^ *+' conftest.er1 >conftest.err
28968   rm -f conftest.er1
28969   cat conftest.err >&5
28970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971   (exit $ac_status); } &&
28972          { ac_try='test -z "$ac_c_werror_flag"
28973                          || test ! -s conftest.err'
28974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28975   (eval $ac_try) 2>&5
28976   ac_status=$?
28977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978   (exit $ac_status); }; } &&
28979          { ac_try='test -s conftest$ac_exeext'
28980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28981   (eval $ac_try) 2>&5
28982   ac_status=$?
28983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984   (exit $ac_status); }; }; then
28985   ac_cv_lib_dld_shl_load=yes
28986 else
28987   echo "$as_me: failed program was:" >&5
28988 sed 's/^/| /' conftest.$ac_ext >&5
28989
28990 ac_cv_lib_dld_shl_load=no
28991 fi
28992 rm -f conftest.err conftest.$ac_objext \
28993       conftest$ac_exeext conftest.$ac_ext
28994 LIBS=$ac_check_lib_save_LIBS
28995 fi
28996 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
28997 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
28998 if test $ac_cv_lib_dld_shl_load = yes; then
28999   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
29000 else
29001   echo "$as_me:$LINENO: checking for dlopen" >&5
29002 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
29003 if test "${ac_cv_func_dlopen+set}" = set; then
29004   echo $ECHO_N "(cached) $ECHO_C" >&6
29005 else
29006   cat >conftest.$ac_ext <<_ACEOF
29007 /* confdefs.h.  */
29008 _ACEOF
29009 cat confdefs.h >>conftest.$ac_ext
29010 cat >>conftest.$ac_ext <<_ACEOF
29011 /* end confdefs.h.  */
29012 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
29013    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29014 #define dlopen innocuous_dlopen
29015
29016 /* System header to define __stub macros and hopefully few prototypes,
29017     which can conflict with char dlopen (); below.
29018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29019     <limits.h> exists even on freestanding compilers.  */
29020
29021 #ifdef __STDC__
29022 # include <limits.h>
29023 #else
29024 # include <assert.h>
29025 #endif
29026
29027 #undef dlopen
29028
29029 /* Override any gcc2 internal prototype to avoid an error.  */
29030 #ifdef __cplusplus
29031 extern "C"
29032 {
29033 #endif
29034 /* We use char because int might match the return type of a gcc2
29035    builtin and then its argument prototype would still apply.  */
29036 char dlopen ();
29037 /* The GNU C library defines this for functions which it implements
29038     to always fail with ENOSYS.  Some functions are actually named
29039     something starting with __ and the normal name is an alias.  */
29040 #if defined (__stub_dlopen) || defined (__stub___dlopen)
29041 choke me
29042 #else
29043 char (*f) () = dlopen;
29044 #endif
29045 #ifdef __cplusplus
29046 }
29047 #endif
29048
29049 int
29050 main ()
29051 {
29052 return f != dlopen;
29053   ;
29054   return 0;
29055 }
29056 _ACEOF
29057 rm -f conftest.$ac_objext conftest$ac_exeext
29058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29059   (eval $ac_link) 2>conftest.er1
29060   ac_status=$?
29061   grep -v '^ *+' conftest.er1 >conftest.err
29062   rm -f conftest.er1
29063   cat conftest.err >&5
29064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065   (exit $ac_status); } &&
29066          { ac_try='test -z "$ac_c_werror_flag"
29067                          || test ! -s conftest.err'
29068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29069   (eval $ac_try) 2>&5
29070   ac_status=$?
29071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072   (exit $ac_status); }; } &&
29073          { ac_try='test -s conftest$ac_exeext'
29074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29075   (eval $ac_try) 2>&5
29076   ac_status=$?
29077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078   (exit $ac_status); }; }; then
29079   ac_cv_func_dlopen=yes
29080 else
29081   echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29083
29084 ac_cv_func_dlopen=no
29085 fi
29086 rm -f conftest.err conftest.$ac_objext \
29087       conftest$ac_exeext conftest.$ac_ext
29088 fi
29089 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
29090 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
29091 if test $ac_cv_func_dlopen = yes; then
29092   lt_cv_dlopen="dlopen"
29093 else
29094   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
29095 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
29096 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
29097   echo $ECHO_N "(cached) $ECHO_C" >&6
29098 else
29099   ac_check_lib_save_LIBS=$LIBS
29100 LIBS="-ldl  $LIBS"
29101 cat >conftest.$ac_ext <<_ACEOF
29102 /* confdefs.h.  */
29103 _ACEOF
29104 cat confdefs.h >>conftest.$ac_ext
29105 cat >>conftest.$ac_ext <<_ACEOF
29106 /* end confdefs.h.  */
29107
29108 /* Override any gcc2 internal prototype to avoid an error.  */
29109 #ifdef __cplusplus
29110 extern "C"
29111 #endif
29112 /* We use char because int might match the return type of a gcc2
29113    builtin and then its argument prototype would still apply.  */
29114 char dlopen ();
29115 int
29116 main ()
29117 {
29118 dlopen ();
29119   ;
29120   return 0;
29121 }
29122 _ACEOF
29123 rm -f conftest.$ac_objext conftest$ac_exeext
29124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29125   (eval $ac_link) 2>conftest.er1
29126   ac_status=$?
29127   grep -v '^ *+' conftest.er1 >conftest.err
29128   rm -f conftest.er1
29129   cat conftest.err >&5
29130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131   (exit $ac_status); } &&
29132          { ac_try='test -z "$ac_c_werror_flag"
29133                          || test ! -s conftest.err'
29134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135   (eval $ac_try) 2>&5
29136   ac_status=$?
29137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138   (exit $ac_status); }; } &&
29139          { ac_try='test -s conftest$ac_exeext'
29140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29141   (eval $ac_try) 2>&5
29142   ac_status=$?
29143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144   (exit $ac_status); }; }; then
29145   ac_cv_lib_dl_dlopen=yes
29146 else
29147   echo "$as_me: failed program was:" >&5
29148 sed 's/^/| /' conftest.$ac_ext >&5
29149
29150 ac_cv_lib_dl_dlopen=no
29151 fi
29152 rm -f conftest.err conftest.$ac_objext \
29153       conftest$ac_exeext conftest.$ac_ext
29154 LIBS=$ac_check_lib_save_LIBS
29155 fi
29156 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
29157 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
29158 if test $ac_cv_lib_dl_dlopen = yes; then
29159   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
29160 else
29161   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
29162 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
29163 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
29164   echo $ECHO_N "(cached) $ECHO_C" >&6
29165 else
29166   ac_check_lib_save_LIBS=$LIBS
29167 LIBS="-lsvld  $LIBS"
29168 cat >conftest.$ac_ext <<_ACEOF
29169 /* confdefs.h.  */
29170 _ACEOF
29171 cat confdefs.h >>conftest.$ac_ext
29172 cat >>conftest.$ac_ext <<_ACEOF
29173 /* end confdefs.h.  */
29174
29175 /* Override any gcc2 internal prototype to avoid an error.  */
29176 #ifdef __cplusplus
29177 extern "C"
29178 #endif
29179 /* We use char because int might match the return type of a gcc2
29180    builtin and then its argument prototype would still apply.  */
29181 char dlopen ();
29182 int
29183 main ()
29184 {
29185 dlopen ();
29186   ;
29187   return 0;
29188 }
29189 _ACEOF
29190 rm -f conftest.$ac_objext conftest$ac_exeext
29191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29192   (eval $ac_link) 2>conftest.er1
29193   ac_status=$?
29194   grep -v '^ *+' conftest.er1 >conftest.err
29195   rm -f conftest.er1
29196   cat conftest.err >&5
29197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198   (exit $ac_status); } &&
29199          { ac_try='test -z "$ac_c_werror_flag"
29200                          || test ! -s conftest.err'
29201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29202   (eval $ac_try) 2>&5
29203   ac_status=$?
29204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205   (exit $ac_status); }; } &&
29206          { ac_try='test -s conftest$ac_exeext'
29207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29208   (eval $ac_try) 2>&5
29209   ac_status=$?
29210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211   (exit $ac_status); }; }; then
29212   ac_cv_lib_svld_dlopen=yes
29213 else
29214   echo "$as_me: failed program was:" >&5
29215 sed 's/^/| /' conftest.$ac_ext >&5
29216
29217 ac_cv_lib_svld_dlopen=no
29218 fi
29219 rm -f conftest.err conftest.$ac_objext \
29220       conftest$ac_exeext conftest.$ac_ext
29221 LIBS=$ac_check_lib_save_LIBS
29222 fi
29223 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
29224 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
29225 if test $ac_cv_lib_svld_dlopen = yes; then
29226   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
29227 else
29228   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
29229 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
29230 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
29231   echo $ECHO_N "(cached) $ECHO_C" >&6
29232 else
29233   ac_check_lib_save_LIBS=$LIBS
29234 LIBS="-ldld  $LIBS"
29235 cat >conftest.$ac_ext <<_ACEOF
29236 /* confdefs.h.  */
29237 _ACEOF
29238 cat confdefs.h >>conftest.$ac_ext
29239 cat >>conftest.$ac_ext <<_ACEOF
29240 /* end confdefs.h.  */
29241
29242 /* Override any gcc2 internal prototype to avoid an error.  */
29243 #ifdef __cplusplus
29244 extern "C"
29245 #endif
29246 /* We use char because int might match the return type of a gcc2
29247    builtin and then its argument prototype would still apply.  */
29248 char dld_link ();
29249 int
29250 main ()
29251 {
29252 dld_link ();
29253   ;
29254   return 0;
29255 }
29256 _ACEOF
29257 rm -f conftest.$ac_objext conftest$ac_exeext
29258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29259   (eval $ac_link) 2>conftest.er1
29260   ac_status=$?
29261   grep -v '^ *+' conftest.er1 >conftest.err
29262   rm -f conftest.er1
29263   cat conftest.err >&5
29264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265   (exit $ac_status); } &&
29266          { ac_try='test -z "$ac_c_werror_flag"
29267                          || test ! -s conftest.err'
29268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29269   (eval $ac_try) 2>&5
29270   ac_status=$?
29271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272   (exit $ac_status); }; } &&
29273          { ac_try='test -s conftest$ac_exeext'
29274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29275   (eval $ac_try) 2>&5
29276   ac_status=$?
29277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278   (exit $ac_status); }; }; then
29279   ac_cv_lib_dld_dld_link=yes
29280 else
29281   echo "$as_me: failed program was:" >&5
29282 sed 's/^/| /' conftest.$ac_ext >&5
29283
29284 ac_cv_lib_dld_dld_link=no
29285 fi
29286 rm -f conftest.err conftest.$ac_objext \
29287       conftest$ac_exeext conftest.$ac_ext
29288 LIBS=$ac_check_lib_save_LIBS
29289 fi
29290 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
29291 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
29292 if test $ac_cv_lib_dld_dld_link = yes; then
29293   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
29294 fi
29295
29296
29297 fi
29298
29299
29300 fi
29301
29302
29303 fi
29304
29305
29306 fi
29307
29308
29309 fi
29310
29311     ;;
29312   esac
29313
29314   if test "x$lt_cv_dlopen" != xno; then
29315     enable_dlopen=yes
29316   else
29317     enable_dlopen=no
29318   fi
29319
29320   case $lt_cv_dlopen in
29321   dlopen)
29322     save_CPPFLAGS="$CPPFLAGS"
29323     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
29324
29325     save_LDFLAGS="$LDFLAGS"
29326     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
29327
29328     save_LIBS="$LIBS"
29329     LIBS="$lt_cv_dlopen_libs $LIBS"
29330
29331     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
29332 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
29333 if test "${lt_cv_dlopen_self+set}" = set; then
29334   echo $ECHO_N "(cached) $ECHO_C" >&6
29335 else
29336           if test "$cross_compiling" = yes; then :
29337   lt_cv_dlopen_self=cross
29338 else
29339   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
29340   lt_status=$lt_dlunknown
29341   cat > conftest.$ac_ext <<EOF
29342 #line 29342 "configure"
29343 #include "confdefs.h"
29344
29345 #if HAVE_DLFCN_H
29346 #include <dlfcn.h>
29347 #endif
29348
29349 #include <stdio.h>
29350
29351 #ifdef RTLD_GLOBAL
29352 #  define LT_DLGLOBAL           RTLD_GLOBAL
29353 #else
29354 #  ifdef DL_GLOBAL
29355 #    define LT_DLGLOBAL         DL_GLOBAL
29356 #  else
29357 #    define LT_DLGLOBAL         0
29358 #  endif
29359 #endif
29360
29361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
29362    find out it does not work in some platform. */
29363 #ifndef LT_DLLAZY_OR_NOW
29364 #  ifdef RTLD_LAZY
29365 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
29366 #  else
29367 #    ifdef DL_LAZY
29368 #      define LT_DLLAZY_OR_NOW          DL_LAZY
29369 #    else
29370 #      ifdef RTLD_NOW
29371 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
29372 #      else
29373 #        ifdef DL_NOW
29374 #          define LT_DLLAZY_OR_NOW      DL_NOW
29375 #        else
29376 #          define LT_DLLAZY_OR_NOW      0
29377 #        endif
29378 #      endif
29379 #    endif
29380 #  endif
29381 #endif
29382
29383 #ifdef __cplusplus
29384 extern "C" void exit (int);
29385 #endif
29386
29387 void fnord() { int i=42;}
29388 int main ()
29389 {
29390   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
29391   int status = $lt_dlunknown;
29392
29393   if (self)
29394     {
29395       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
29396       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
29397       /* dlclose (self); */
29398     }
29399
29400     exit (status);
29401 }
29402 EOF
29403   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29404   (eval $ac_link) 2>&5
29405   ac_status=$?
29406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
29408     (./conftest; exit; ) >&5 2>/dev/null
29409     lt_status=$?
29410     case x$lt_status in
29411       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
29412       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
29413       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
29414     esac
29415   else :
29416     # compilation failed
29417     lt_cv_dlopen_self=no
29418   fi
29419 fi
29420 rm -fr conftest*
29421
29422
29423 fi
29424 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
29425 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
29426
29427     if test "x$lt_cv_dlopen_self" = xyes; then
29428       LDFLAGS="$LDFLAGS $link_static_flag"
29429       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
29430 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
29431 if test "${lt_cv_dlopen_self_static+set}" = set; then
29432   echo $ECHO_N "(cached) $ECHO_C" >&6
29433 else
29434           if test "$cross_compiling" = yes; then :
29435   lt_cv_dlopen_self_static=cross
29436 else
29437   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
29438   lt_status=$lt_dlunknown
29439   cat > conftest.$ac_ext <<EOF
29440 #line 29440 "configure"
29441 #include "confdefs.h"
29442
29443 #if HAVE_DLFCN_H
29444 #include <dlfcn.h>
29445 #endif
29446
29447 #include <stdio.h>
29448
29449 #ifdef RTLD_GLOBAL
29450 #  define LT_DLGLOBAL           RTLD_GLOBAL
29451 #else
29452 #  ifdef DL_GLOBAL
29453 #    define LT_DLGLOBAL         DL_GLOBAL
29454 #  else
29455 #    define LT_DLGLOBAL         0
29456 #  endif
29457 #endif
29458
29459 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
29460    find out it does not work in some platform. */
29461 #ifndef LT_DLLAZY_OR_NOW
29462 #  ifdef RTLD_LAZY
29463 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
29464 #  else
29465 #    ifdef DL_LAZY
29466 #      define LT_DLLAZY_OR_NOW          DL_LAZY
29467 #    else
29468 #      ifdef RTLD_NOW
29469 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
29470 #      else
29471 #        ifdef DL_NOW
29472 #          define LT_DLLAZY_OR_NOW      DL_NOW
29473 #        else
29474 #          define LT_DLLAZY_OR_NOW      0
29475 #        endif
29476 #      endif
29477 #    endif
29478 #  endif
29479 #endif
29480
29481 #ifdef __cplusplus
29482 extern "C" void exit (int);
29483 #endif
29484
29485 void fnord() { int i=42;}
29486 int main ()
29487 {
29488   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
29489   int status = $lt_dlunknown;
29490
29491   if (self)
29492     {
29493       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
29494       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
29495       /* dlclose (self); */
29496     }
29497
29498     exit (status);
29499 }
29500 EOF
29501   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29502   (eval $ac_link) 2>&5
29503   ac_status=$?
29504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
29506     (./conftest; exit; ) >&5 2>/dev/null
29507     lt_status=$?
29508     case x$lt_status in
29509       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
29510       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
29511       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
29512     esac
29513   else :
29514     # compilation failed
29515     lt_cv_dlopen_self_static=no
29516   fi
29517 fi
29518 rm -fr conftest*
29519
29520
29521 fi
29522 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
29523 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
29524     fi
29525
29526     CPPFLAGS="$save_CPPFLAGS"
29527     LDFLAGS="$save_LDFLAGS"
29528     LIBS="$save_LIBS"
29529     ;;
29530   esac
29531
29532   case $lt_cv_dlopen_self in
29533   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
29534   *) enable_dlopen_self=unknown ;;
29535   esac
29536
29537   case $lt_cv_dlopen_self_static in
29538   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
29539   *) enable_dlopen_self_static=unknown ;;
29540   esac
29541 fi
29542
29543
29544 # The else clause should only fire when bootstrapping the
29545 # libtool distribution, otherwise you forgot to ship ltmain.sh
29546 # with your package, and you will get complaints that there are
29547 # no rules to generate ltmain.sh.
29548 if test -f "$ltmain"; then
29549   # See if we are running on zsh, and set the options which allow our commands through
29550   # without removal of \ escapes.
29551   if test -n "${ZSH_VERSION+set}" ; then
29552     setopt NO_GLOB_SUBST
29553   fi
29554   # Now quote all the things that may contain metacharacters while being
29555   # careful not to overquote the AC_SUBSTed values.  We take copies of the
29556   # variables and quote the copies for generation of the libtool script.
29557   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
29558     SED SHELL STRIP \
29559     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
29560     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
29561     deplibs_check_method reload_flag reload_cmds need_locks \
29562     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
29563     lt_cv_sys_global_symbol_to_c_name_address \
29564     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
29565     old_postinstall_cmds old_postuninstall_cmds \
29566     compiler_GCJ \
29567     CC_GCJ \
29568     LD_GCJ \
29569     lt_prog_compiler_wl_GCJ \
29570     lt_prog_compiler_pic_GCJ \
29571     lt_prog_compiler_static_GCJ \
29572     lt_prog_compiler_no_builtin_flag_GCJ \
29573     export_dynamic_flag_spec_GCJ \
29574     thread_safe_flag_spec_GCJ \
29575     whole_archive_flag_spec_GCJ \
29576     enable_shared_with_static_runtimes_GCJ \
29577     old_archive_cmds_GCJ \
29578     old_archive_from_new_cmds_GCJ \
29579     predep_objects_GCJ \
29580     postdep_objects_GCJ \
29581     predeps_GCJ \
29582     postdeps_GCJ \
29583     compiler_lib_search_path_GCJ \
29584     archive_cmds_GCJ \
29585     archive_expsym_cmds_GCJ \
29586     postinstall_cmds_GCJ \
29587     postuninstall_cmds_GCJ \
29588     old_archive_from_expsyms_cmds_GCJ \
29589     allow_undefined_flag_GCJ \
29590     no_undefined_flag_GCJ \
29591     export_symbols_cmds_GCJ \
29592     hardcode_libdir_flag_spec_GCJ \
29593     hardcode_libdir_flag_spec_ld_GCJ \
29594     hardcode_libdir_separator_GCJ \
29595     hardcode_automatic_GCJ \
29596     module_cmds_GCJ \
29597     module_expsym_cmds_GCJ \
29598     lt_cv_prog_compiler_c_o_GCJ \
29599     exclude_expsyms_GCJ \
29600     include_expsyms_GCJ; do
29601
29602     case $var in
29603     old_archive_cmds_GCJ | \
29604     old_archive_from_new_cmds_GCJ | \
29605     archive_cmds_GCJ | \
29606     archive_expsym_cmds_GCJ | \
29607     module_cmds_GCJ | \
29608     module_expsym_cmds_GCJ | \
29609     old_archive_from_expsyms_cmds_GCJ | \
29610     export_symbols_cmds_GCJ | \
29611     extract_expsyms_cmds | reload_cmds | finish_cmds | \
29612     postinstall_cmds | postuninstall_cmds | \
29613     old_postinstall_cmds | old_postuninstall_cmds | \
29614     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
29615       # Double-quote double-evaled strings.
29616       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
29617       ;;
29618     *)
29619       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
29620       ;;
29621     esac
29622   done
29623
29624   case $lt_echo in
29625   *'\$0 --fallback-echo"')
29626     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
29627     ;;
29628   esac
29629
29630 cfgfile="$ofile"
29631
29632   cat <<__EOF__ >> "$cfgfile"
29633 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
29634
29635 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29636
29637 # Shell to use when invoking shell scripts.
29638 SHELL=$lt_SHELL
29639
29640 # Whether or not to build shared libraries.
29641 build_libtool_libs=$enable_shared
29642
29643 # Whether or not to build static libraries.
29644 build_old_libs=$enable_static
29645
29646 # Whether or not to add -lc for building shared libraries.
29647 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
29648
29649 # Whether or not to disallow shared libs when runtime libs are static
29650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
29651
29652 # Whether or not to optimize for fast installation.
29653 fast_install=$enable_fast_install
29654
29655 # The host system.
29656 host_alias=$host_alias
29657 host=$host
29658 host_os=$host_os
29659
29660 # The build system.
29661 build_alias=$build_alias
29662 build=$build
29663 build_os=$build_os
29664
29665 # An echo program that does not interpret backslashes.
29666 echo=$lt_echo
29667
29668 # The archiver.
29669 AR=$lt_AR
29670 AR_FLAGS=$lt_AR_FLAGS
29671
29672 # A C compiler.
29673 LTCC=$lt_LTCC
29674
29675 # A language-specific compiler.
29676 CC=$lt_compiler_GCJ
29677
29678 # Is the compiler the GNU C compiler?
29679 with_gcc=$GCC_GCJ
29680
29681 # An ERE matcher.
29682 EGREP=$lt_EGREP
29683
29684 # The linker used to build libraries.
29685 LD=$lt_LD_GCJ
29686
29687 # Whether we need hard or soft links.
29688 LN_S=$lt_LN_S
29689
29690 # A BSD-compatible nm program.
29691 NM=$lt_NM
29692
29693 # A symbol stripping program
29694 STRIP=$lt_STRIP
29695
29696 # Used to examine libraries when file_magic_cmd begins "file"
29697 MAGIC_CMD=$MAGIC_CMD
29698
29699 # Used on cygwin: DLL creation program.
29700 DLLTOOL="$DLLTOOL"
29701
29702 # Used on cygwin: object dumper.
29703 OBJDUMP="$OBJDUMP"
29704
29705 # Used on cygwin: assembler.
29706 AS="$AS"
29707
29708 # The name of the directory that contains temporary libtool files.
29709 objdir=$objdir
29710
29711 # How to create reloadable object files.
29712 reload_flag=$lt_reload_flag
29713 reload_cmds=$lt_reload_cmds
29714
29715 # How to pass a linker flag through the compiler.
29716 wl=$lt_lt_prog_compiler_wl_GCJ
29717
29718 # Object file suffix (normally "o").
29719 objext="$ac_objext"
29720
29721 # Old archive suffix (normally "a").
29722 libext="$libext"
29723
29724 # Shared library suffix (normally ".so").
29725 shrext_cmds='$shrext_cmds'
29726
29727 # Executable file suffix (normally "").
29728 exeext="$exeext"
29729
29730 # Additional compiler flags for building library objects.
29731 pic_flag=$lt_lt_prog_compiler_pic_GCJ
29732 pic_mode=$pic_mode
29733
29734 # What is the maximum length of a command?
29735 max_cmd_len=$lt_cv_sys_max_cmd_len
29736
29737 # Does compiler simultaneously support -c and -o options?
29738 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
29739
29740 # Must we lock files when doing compilation?
29741 need_locks=$lt_need_locks
29742
29743 # Do we need the lib prefix for modules?
29744 need_lib_prefix=$need_lib_prefix
29745
29746 # Do we need a version for libraries?
29747 need_version=$need_version
29748
29749 # Whether dlopen is supported.
29750 dlopen_support=$enable_dlopen
29751
29752 # Whether dlopen of programs is supported.
29753 dlopen_self=$enable_dlopen_self
29754
29755 # Whether dlopen of statically linked programs is supported.
29756 dlopen_self_static=$enable_dlopen_self_static
29757
29758 # Compiler flag to prevent dynamic linking.
29759 link_static_flag=$lt_lt_prog_compiler_static_GCJ
29760
29761 # Compiler flag to turn off builtin functions.
29762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
29763
29764 # Compiler flag to allow reflexive dlopens.
29765 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
29766
29767 # Compiler flag to generate shared objects directly from archives.
29768 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
29769
29770 # Compiler flag to generate thread-safe objects.
29771 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
29772
29773 # Library versioning type.
29774 version_type=$version_type
29775
29776 # Format of library name prefix.
29777 libname_spec=$lt_libname_spec
29778
29779 # List of archive names.  First name is the real one, the rest are links.
29780 # The last name is the one that the linker finds with -lNAME.
29781 library_names_spec=$lt_library_names_spec
29782
29783 # The coded name of the library, if different from the real name.
29784 soname_spec=$lt_soname_spec
29785
29786 # Commands used to build and install an old-style archive.
29787 RANLIB=$lt_RANLIB
29788 old_archive_cmds=$lt_old_archive_cmds_GCJ
29789 old_postinstall_cmds=$lt_old_postinstall_cmds
29790 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29791
29792 # Create an old-style archive from a shared archive.
29793 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
29794
29795 # Create a temporary old-style archive to link instead of a shared archive.
29796 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
29797
29798 # Commands used to build and install a shared archive.
29799 archive_cmds=$lt_archive_cmds_GCJ
29800 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
29801 postinstall_cmds=$lt_postinstall_cmds
29802 postuninstall_cmds=$lt_postuninstall_cmds
29803
29804 # Commands used to build a loadable module (assumed same as above if empty)
29805 module_cmds=$lt_module_cmds_GCJ
29806 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
29807
29808 # Commands to strip libraries.
29809 old_striplib=$lt_old_striplib
29810 striplib=$lt_striplib
29811
29812 # Dependencies to place before the objects being linked to create a
29813 # shared library.
29814 predep_objects=$lt_predep_objects_GCJ
29815
29816 # Dependencies to place after the objects being linked to create a
29817 # shared library.
29818 postdep_objects=$lt_postdep_objects_GCJ
29819
29820 # Dependencies to place before the objects being linked to create a
29821 # shared library.
29822 predeps=$lt_predeps_GCJ
29823
29824 # Dependencies to place after the objects being linked to create a
29825 # shared library.
29826 postdeps=$lt_postdeps_GCJ
29827
29828 # The library search path used internally by the compiler when linking
29829 # a shared library.
29830 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
29831
29832 # Method to check whether dependent libraries are shared objects.
29833 deplibs_check_method=$lt_deplibs_check_method
29834
29835 # Command to use when deplibs_check_method == file_magic.
29836 file_magic_cmd=$lt_file_magic_cmd
29837
29838 # Flag that allows shared libraries with undefined symbols to be built.
29839 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
29840
29841 # Flag that forces no undefined symbols.
29842 no_undefined_flag=$lt_no_undefined_flag_GCJ
29843
29844 # Commands used to finish a libtool library installation in a directory.
29845 finish_cmds=$lt_finish_cmds
29846
29847 # Same as above, but a single script fragment to be evaled but not shown.
29848 finish_eval=$lt_finish_eval
29849
29850 # Take the output of nm and produce a listing of raw symbols and C names.
29851 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29852
29853 # Transform the output of nm in a proper C declaration
29854 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29855
29856 # Transform the output of nm in a C name address pair
29857 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29858
29859 # This is the shared library runtime path variable.
29860 runpath_var=$runpath_var
29861
29862 # This is the shared library path variable.
29863 shlibpath_var=$shlibpath_var
29864
29865 # Is shlibpath searched before the hard-coded library search path?
29866 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29867
29868 # How to hardcode a shared library path into an executable.
29869 hardcode_action=$hardcode_action_GCJ
29870
29871 # Whether we should hardcode library paths into libraries.
29872 hardcode_into_libs=$hardcode_into_libs
29873
29874 # Flag to hardcode \$libdir into a binary during linking.
29875 # This must work even if \$libdir does not exist.
29876 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
29877
29878 # If ld is used when linking, flag to hardcode \$libdir into
29879 # a binary during linking. This must work even if \$libdir does
29880 # not exist.
29881 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
29882
29883 # Whether we need a single -rpath flag with a separated argument.
29884 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
29885
29886 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
29887 # resulting binary.
29888 hardcode_direct=$hardcode_direct_GCJ
29889
29890 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
29891 # resulting binary.
29892 hardcode_minus_L=$hardcode_minus_L_GCJ
29893
29894 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
29895 # the resulting binary.
29896 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
29897
29898 # Set to yes if building a shared library automatically hardcodes DIR into the library
29899 # and all subsequent libraries and executables linked against it.
29900 hardcode_automatic=$hardcode_automatic_GCJ
29901
29902 # Variables whose values should be saved in libtool wrapper scripts and
29903 # restored at relink time.
29904 variables_saved_for_relink="$variables_saved_for_relink"
29905
29906 # Whether libtool must link a program against all its dependency libraries.
29907 link_all_deplibs=$link_all_deplibs_GCJ
29908
29909 # Compile-time system search path for libraries
29910 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29911
29912 # Run-time system search path for libraries
29913 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29914
29915 # Fix the shell variable \$srcfile for the compiler.
29916 fix_srcfile_path="$fix_srcfile_path_GCJ"
29917
29918 # Set to yes if exported symbols are required.
29919 always_export_symbols=$always_export_symbols_GCJ
29920
29921 # The commands to list exported symbols.
29922 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
29923
29924 # The commands to extract the exported symbol list from a shared archive.
29925 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29926
29927 # Symbols that should not be listed in the preloaded symbols.
29928 exclude_expsyms=$lt_exclude_expsyms_GCJ
29929
29930 # Symbols that must always be exported.
29931 include_expsyms=$lt_include_expsyms_GCJ
29932
29933 # ### END LIBTOOL TAG CONFIG: $tagname
29934
29935 __EOF__
29936
29937
29938 else
29939   # If there is no Makefile yet, we rely on a make rule to execute
29940   # `config.status --recheck' to rerun these tests and create the
29941   # libtool script then.
29942   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
29943   if test -f "$ltmain_in"; then
29944     test -f Makefile && make "$ltmain"
29945   fi
29946 fi
29947
29948
29949 ac_ext=c
29950 ac_cpp='$CPP $CPPFLAGS'
29951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29954
29955 CC="$lt_save_CC"
29956
29957         else
29958           tagname=""
29959         fi
29960         ;;
29961
29962       RC)
29963
29964
29965
29966 # Source file extension for RC test sources.
29967 ac_ext=rc
29968
29969 # Object file extension for compiled RC test sources.
29970 objext=o
29971 objext_RC=$objext
29972
29973 # Code to be used in simple compile tests
29974 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
29975
29976 # Code to be used in simple link tests
29977 lt_simple_link_test_code="$lt_simple_compile_test_code"
29978
29979 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
29980
29981 # If no C compiler was specified, use CC.
29982 LTCC=${LTCC-"$CC"}
29983
29984 # Allow CC to be a program name with arguments.
29985 compiler=$CC
29986
29987
29988 # save warnings/boilerplate of simple test code
29989 ac_outfile=conftest.$ac_objext
29990 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
29991 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
29992 _lt_compiler_boilerplate=`cat conftest.err`
29993 $rm conftest*
29994
29995 ac_outfile=conftest.$ac_objext
29996 printf "$lt_simple_link_test_code" >conftest.$ac_ext
29997 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
29998 _lt_linker_boilerplate=`cat conftest.err`
29999 $rm conftest*
30000
30001
30002 # Allow CC to be a program name with arguments.
30003 lt_save_CC="$CC"
30004 CC=${RC-"windres"}
30005 compiler=$CC
30006 compiler_RC=$CC
30007 for cc_temp in $compiler""; do
30008   case $cc_temp in
30009     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30010     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30011     \-*) ;;
30012     *) break;;
30013   esac
30014 done
30015 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
30016
30017 lt_cv_prog_compiler_c_o_RC=yes
30018
30019 # The else clause should only fire when bootstrapping the
30020 # libtool distribution, otherwise you forgot to ship ltmain.sh
30021 # with your package, and you will get complaints that there are
30022 # no rules to generate ltmain.sh.
30023 if test -f "$ltmain"; then
30024   # See if we are running on zsh, and set the options which allow our commands through
30025   # without removal of \ escapes.
30026   if test -n "${ZSH_VERSION+set}" ; then
30027     setopt NO_GLOB_SUBST
30028   fi
30029   # Now quote all the things that may contain metacharacters while being
30030   # careful not to overquote the AC_SUBSTed values.  We take copies of the
30031   # variables and quote the copies for generation of the libtool script.
30032   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
30033     SED SHELL STRIP \
30034     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
30035     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
30036     deplibs_check_method reload_flag reload_cmds need_locks \
30037     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
30038     lt_cv_sys_global_symbol_to_c_name_address \
30039     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
30040     old_postinstall_cmds old_postuninstall_cmds \
30041     compiler_RC \
30042     CC_RC \
30043     LD_RC \
30044     lt_prog_compiler_wl_RC \
30045     lt_prog_compiler_pic_RC \
30046     lt_prog_compiler_static_RC \
30047     lt_prog_compiler_no_builtin_flag_RC \
30048     export_dynamic_flag_spec_RC \
30049     thread_safe_flag_spec_RC \
30050     whole_archive_flag_spec_RC \
30051     enable_shared_with_static_runtimes_RC \
30052     old_archive_cmds_RC \
30053     old_archive_from_new_cmds_RC \
30054     predep_objects_RC \
30055     postdep_objects_RC \
30056     predeps_RC \
30057     postdeps_RC \
30058     compiler_lib_search_path_RC \
30059     archive_cmds_RC \
30060     archive_expsym_cmds_RC \
30061     postinstall_cmds_RC \
30062     postuninstall_cmds_RC \
30063     old_archive_from_expsyms_cmds_RC \
30064     allow_undefined_flag_RC \
30065     no_undefined_flag_RC \
30066     export_symbols_cmds_RC \
30067     hardcode_libdir_flag_spec_RC \
30068     hardcode_libdir_flag_spec_ld_RC \
30069     hardcode_libdir_separator_RC \
30070     hardcode_automatic_RC \
30071     module_cmds_RC \
30072     module_expsym_cmds_RC \
30073     lt_cv_prog_compiler_c_o_RC \
30074     exclude_expsyms_RC \
30075     include_expsyms_RC; do
30076
30077     case $var in
30078     old_archive_cmds_RC | \
30079     old_archive_from_new_cmds_RC | \
30080     archive_cmds_RC | \
30081     archive_expsym_cmds_RC | \
30082     module_cmds_RC | \
30083     module_expsym_cmds_RC | \
30084     old_archive_from_expsyms_cmds_RC | \
30085     export_symbols_cmds_RC | \
30086     extract_expsyms_cmds | reload_cmds | finish_cmds | \
30087     postinstall_cmds | postuninstall_cmds | \
30088     old_postinstall_cmds | old_postuninstall_cmds | \
30089     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
30090       # Double-quote double-evaled strings.
30091       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
30092       ;;
30093     *)
30094       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
30095       ;;
30096     esac
30097   done
30098
30099   case $lt_echo in
30100   *'\$0 --fallback-echo"')
30101     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
30102     ;;
30103   esac
30104
30105 cfgfile="$ofile"
30106
30107   cat <<__EOF__ >> "$cfgfile"
30108 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
30109
30110 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30111
30112 # Shell to use when invoking shell scripts.
30113 SHELL=$lt_SHELL
30114
30115 # Whether or not to build shared libraries.
30116 build_libtool_libs=$enable_shared
30117
30118 # Whether or not to build static libraries.
30119 build_old_libs=$enable_static
30120
30121 # Whether or not to add -lc for building shared libraries.
30122 build_libtool_need_lc=$archive_cmds_need_lc_RC
30123
30124 # Whether or not to disallow shared libs when runtime libs are static
30125 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
30126
30127 # Whether or not to optimize for fast installation.
30128 fast_install=$enable_fast_install
30129
30130 # The host system.
30131 host_alias=$host_alias
30132 host=$host
30133 host_os=$host_os
30134
30135 # The build system.
30136 build_alias=$build_alias
30137 build=$build
30138 build_os=$build_os
30139
30140 # An echo program that does not interpret backslashes.
30141 echo=$lt_echo
30142
30143 # The archiver.
30144 AR=$lt_AR
30145 AR_FLAGS=$lt_AR_FLAGS
30146
30147 # A C compiler.
30148 LTCC=$lt_LTCC
30149
30150 # A language-specific compiler.
30151 CC=$lt_compiler_RC
30152
30153 # Is the compiler the GNU C compiler?
30154 with_gcc=$GCC_RC
30155
30156 # An ERE matcher.
30157 EGREP=$lt_EGREP
30158
30159 # The linker used to build libraries.
30160 LD=$lt_LD_RC
30161
30162 # Whether we need hard or soft links.
30163 LN_S=$lt_LN_S
30164
30165 # A BSD-compatible nm program.
30166 NM=$lt_NM
30167
30168 # A symbol stripping program
30169 STRIP=$lt_STRIP
30170
30171 # Used to examine libraries when file_magic_cmd begins "file"
30172 MAGIC_CMD=$MAGIC_CMD
30173
30174 # Used on cygwin: DLL creation program.
30175 DLLTOOL="$DLLTOOL"
30176
30177 # Used on cygwin: object dumper.
30178 OBJDUMP="$OBJDUMP"
30179
30180 # Used on cygwin: assembler.
30181 AS="$AS"
30182
30183 # The name of the directory that contains temporary libtool files.
30184 objdir=$objdir
30185
30186 # How to create reloadable object files.
30187 reload_flag=$lt_reload_flag
30188 reload_cmds=$lt_reload_cmds
30189
30190 # How to pass a linker flag through the compiler.
30191 wl=$lt_lt_prog_compiler_wl_RC
30192
30193 # Object file suffix (normally "o").
30194 objext="$ac_objext"
30195
30196 # Old archive suffix (normally "a").
30197 libext="$libext"
30198
30199 # Shared library suffix (normally ".so").
30200 shrext_cmds='$shrext_cmds'
30201
30202 # Executable file suffix (normally "").
30203 exeext="$exeext"
30204
30205 # Additional compiler flags for building library objects.
30206 pic_flag=$lt_lt_prog_compiler_pic_RC
30207 pic_mode=$pic_mode
30208
30209 # What is the maximum length of a command?
30210 max_cmd_len=$lt_cv_sys_max_cmd_len
30211
30212 # Does compiler simultaneously support -c and -o options?
30213 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
30214
30215 # Must we lock files when doing compilation?
30216 need_locks=$lt_need_locks
30217
30218 # Do we need the lib prefix for modules?
30219 need_lib_prefix=$need_lib_prefix
30220
30221 # Do we need a version for libraries?
30222 need_version=$need_version
30223
30224 # Whether dlopen is supported.
30225 dlopen_support=$enable_dlopen
30226
30227 # Whether dlopen of programs is supported.
30228 dlopen_self=$enable_dlopen_self
30229
30230 # Whether dlopen of statically linked programs is supported.
30231 dlopen_self_static=$enable_dlopen_self_static
30232
30233 # Compiler flag to prevent dynamic linking.
30234 link_static_flag=$lt_lt_prog_compiler_static_RC
30235
30236 # Compiler flag to turn off builtin functions.
30237 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
30238
30239 # Compiler flag to allow reflexive dlopens.
30240 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
30241
30242 # Compiler flag to generate shared objects directly from archives.
30243 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
30244
30245 # Compiler flag to generate thread-safe objects.
30246 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
30247
30248 # Library versioning type.
30249 version_type=$version_type
30250
30251 # Format of library name prefix.
30252 libname_spec=$lt_libname_spec
30253
30254 # List of archive names.  First name is the real one, the rest are links.
30255 # The last name is the one that the linker finds with -lNAME.
30256 library_names_spec=$lt_library_names_spec
30257
30258 # The coded name of the library, if different from the real name.
30259 soname_spec=$lt_soname_spec
30260
30261 # Commands used to build and install an old-style archive.
30262 RANLIB=$lt_RANLIB
30263 old_archive_cmds=$lt_old_archive_cmds_RC
30264 old_postinstall_cmds=$lt_old_postinstall_cmds
30265 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30266
30267 # Create an old-style archive from a shared archive.
30268 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
30269
30270 # Create a temporary old-style archive to link instead of a shared archive.
30271 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
30272
30273 # Commands used to build and install a shared archive.
30274 archive_cmds=$lt_archive_cmds_RC
30275 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
30276 postinstall_cmds=$lt_postinstall_cmds
30277 postuninstall_cmds=$lt_postuninstall_cmds
30278
30279 # Commands used to build a loadable module (assumed same as above if empty)
30280 module_cmds=$lt_module_cmds_RC
30281 module_expsym_cmds=$lt_module_expsym_cmds_RC
30282
30283 # Commands to strip libraries.
30284 old_striplib=$lt_old_striplib
30285 striplib=$lt_striplib
30286
30287 # Dependencies to place before the objects being linked to create a
30288 # shared library.
30289 predep_objects=$lt_predep_objects_RC
30290
30291 # Dependencies to place after the objects being linked to create a
30292 # shared library.
30293 postdep_objects=$lt_postdep_objects_RC
30294
30295 # Dependencies to place before the objects being linked to create a
30296 # shared library.
30297 predeps=$lt_predeps_RC
30298
30299 # Dependencies to place after the objects being linked to create a
30300 # shared library.
30301 postdeps=$lt_postdeps_RC
30302
30303 # The library search path used internally by the compiler when linking
30304 # a shared library.
30305 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
30306
30307 # Method to check whether dependent libraries are shared objects.
30308 deplibs_check_method=$lt_deplibs_check_method
30309
30310 # Command to use when deplibs_check_method == file_magic.
30311 file_magic_cmd=$lt_file_magic_cmd
30312
30313 # Flag that allows shared libraries with undefined symbols to be built.
30314 allow_undefined_flag=$lt_allow_undefined_flag_RC
30315
30316 # Flag that forces no undefined symbols.
30317 no_undefined_flag=$lt_no_undefined_flag_RC
30318
30319 # Commands used to finish a libtool library installation in a directory.
30320 finish_cmds=$lt_finish_cmds
30321
30322 # Same as above, but a single script fragment to be evaled but not shown.
30323 finish_eval=$lt_finish_eval
30324
30325 # Take the output of nm and produce a listing of raw symbols and C names.
30326 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30327
30328 # Transform the output of nm in a proper C declaration
30329 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30330
30331 # Transform the output of nm in a C name address pair
30332 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30333
30334 # This is the shared library runtime path variable.
30335 runpath_var=$runpath_var
30336
30337 # This is the shared library path variable.
30338 shlibpath_var=$shlibpath_var
30339
30340 # Is shlibpath searched before the hard-coded library search path?
30341 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30342
30343 # How to hardcode a shared library path into an executable.
30344 hardcode_action=$hardcode_action_RC
30345
30346 # Whether we should hardcode library paths into libraries.
30347 hardcode_into_libs=$hardcode_into_libs
30348
30349 # Flag to hardcode \$libdir into a binary during linking.
30350 # This must work even if \$libdir does not exist.
30351 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
30352
30353 # If ld is used when linking, flag to hardcode \$libdir into
30354 # a binary during linking. This must work even if \$libdir does
30355 # not exist.
30356 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
30357
30358 # Whether we need a single -rpath flag with a separated argument.
30359 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
30360
30361 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
30362 # resulting binary.
30363 hardcode_direct=$hardcode_direct_RC
30364
30365 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
30366 # resulting binary.
30367 hardcode_minus_L=$hardcode_minus_L_RC
30368
30369 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
30370 # the resulting binary.
30371 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
30372
30373 # Set to yes if building a shared library automatically hardcodes DIR into the library
30374 # and all subsequent libraries and executables linked against it.
30375 hardcode_automatic=$hardcode_automatic_RC
30376
30377 # Variables whose values should be saved in libtool wrapper scripts and
30378 # restored at relink time.
30379 variables_saved_for_relink="$variables_saved_for_relink"
30380
30381 # Whether libtool must link a program against all its dependency libraries.
30382 link_all_deplibs=$link_all_deplibs_RC
30383
30384 # Compile-time system search path for libraries
30385 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30386
30387 # Run-time system search path for libraries
30388 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30389
30390 # Fix the shell variable \$srcfile for the compiler.
30391 fix_srcfile_path="$fix_srcfile_path_RC"
30392
30393 # Set to yes if exported symbols are required.
30394 always_export_symbols=$always_export_symbols_RC
30395
30396 # The commands to list exported symbols.
30397 export_symbols_cmds=$lt_export_symbols_cmds_RC
30398
30399 # The commands to extract the exported symbol list from a shared archive.
30400 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30401
30402 # Symbols that should not be listed in the preloaded symbols.
30403 exclude_expsyms=$lt_exclude_expsyms_RC
30404
30405 # Symbols that must always be exported.
30406 include_expsyms=$lt_include_expsyms_RC
30407
30408 # ### END LIBTOOL TAG CONFIG: $tagname
30409
30410 __EOF__
30411
30412
30413 else
30414   # If there is no Makefile yet, we rely on a make rule to execute
30415   # `config.status --recheck' to rerun these tests and create the
30416   # libtool script then.
30417   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
30418   if test -f "$ltmain_in"; then
30419     test -f Makefile && make "$ltmain"
30420   fi
30421 fi
30422
30423
30424 ac_ext=c
30425 ac_cpp='$CPP $CPPFLAGS'
30426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30429
30430 CC="$lt_save_CC"
30431
30432         ;;
30433
30434       *)
30435         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
30436 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
30437    { (exit 1); exit 1; }; }
30438         ;;
30439       esac
30440
30441       # Append the new tag name to the list of available tags.
30442       if test -n "$tagname" ; then
30443       available_tags="$available_tags $tagname"
30444     fi
30445     fi
30446   done
30447   IFS="$lt_save_ifs"
30448
30449   # Now substitute the updated list of available tags.
30450   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
30451     mv "${ofile}T" "$ofile"
30452     chmod +x "$ofile"
30453   else
30454     rm -f "${ofile}T"
30455     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
30456 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
30457    { (exit 1); exit 1; }; }
30458   fi
30459 fi
30460
30461
30462
30463 # This can be used to rebuild libtool when needed
30464 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
30465
30466 # Always use our own libtool.
30467 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
30468
30469 # Prevent multiple expansion
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492 if test $ac_cv_c_compiler_gnu = yes; then
30493     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
30494 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
30495 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
30496   echo $ECHO_N "(cached) $ECHO_C" >&6
30497 else
30498     ac_pattern="Autoconf.*'x'"
30499   cat >conftest.$ac_ext <<_ACEOF
30500 /* confdefs.h.  */
30501 _ACEOF
30502 cat confdefs.h >>conftest.$ac_ext
30503 cat >>conftest.$ac_ext <<_ACEOF
30504 /* end confdefs.h.  */
30505 #include <sgtty.h>
30506 Autoconf TIOCGETP
30507 _ACEOF
30508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30509   $EGREP "$ac_pattern" >/dev/null 2>&1; then
30510   ac_cv_prog_gcc_traditional=yes
30511 else
30512   ac_cv_prog_gcc_traditional=no
30513 fi
30514 rm -f conftest*
30515
30516
30517   if test $ac_cv_prog_gcc_traditional = no; then
30518     cat >conftest.$ac_ext <<_ACEOF
30519 /* confdefs.h.  */
30520 _ACEOF
30521 cat confdefs.h >>conftest.$ac_ext
30522 cat >>conftest.$ac_ext <<_ACEOF
30523 /* end confdefs.h.  */
30524 #include <termio.h>
30525 Autoconf TCGETA
30526 _ACEOF
30527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30528   $EGREP "$ac_pattern" >/dev/null 2>&1; then
30529   ac_cv_prog_gcc_traditional=yes
30530 fi
30531 rm -f conftest*
30532
30533   fi
30534 fi
30535 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
30536 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
30537   if test $ac_cv_prog_gcc_traditional = yes; then
30538     CC="$CC -traditional"
30539   fi
30540 fi
30541
30542 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
30543 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
30544 if test "${ac_cv_c_const+set}" = set; then
30545   echo $ECHO_N "(cached) $ECHO_C" >&6
30546 else
30547   cat >conftest.$ac_ext <<_ACEOF
30548 /* confdefs.h.  */
30549 _ACEOF
30550 cat confdefs.h >>conftest.$ac_ext
30551 cat >>conftest.$ac_ext <<_ACEOF
30552 /* end confdefs.h.  */
30553
30554 int
30555 main ()
30556 {
30557 /* FIXME: Include the comments suggested by Paul. */
30558 #ifndef __cplusplus
30559   /* Ultrix mips cc rejects this.  */
30560   typedef int charset[2];
30561   const charset x;
30562   /* SunOS 4.1.1 cc rejects this.  */
30563   char const *const *ccp;
30564   char **p;
30565   /* NEC SVR4.0.2 mips cc rejects this.  */
30566   struct point {int x, y;};
30567   static struct point const zero = {0,0};
30568   /* AIX XL C 1.02.0.0 rejects this.
30569      It does not let you subtract one const X* pointer from another in
30570      an arm of an if-expression whose if-part is not a constant
30571      expression */
30572   const char *g = "string";
30573   ccp = &g + (g ? g-g : 0);
30574   /* HPUX 7.0 cc rejects these. */
30575   ++ccp;
30576   p = (char**) ccp;
30577   ccp = (char const *const *) p;
30578   { /* SCO 3.2v4 cc rejects this.  */
30579     char *t;
30580     char const *s = 0 ? (char *) 0 : (char const *) 0;
30581
30582     *t++ = 0;
30583   }
30584   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
30585     int x[] = {25, 17};
30586     const int *foo = &x[0];
30587     ++foo;
30588   }
30589   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
30590     typedef const int *iptr;
30591     iptr p = 0;
30592     ++p;
30593   }
30594   { /* AIX XL C 1.02.0.0 rejects this saying
30595        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
30596     struct s { int j; const int *ap[3]; };
30597     struct s *b; b->j = 5;
30598   }
30599   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
30600     const int foo = 10;
30601   }
30602 #endif
30603
30604   ;
30605   return 0;
30606 }
30607 _ACEOF
30608 rm -f conftest.$ac_objext
30609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30610   (eval $ac_compile) 2>conftest.er1
30611   ac_status=$?
30612   grep -v '^ *+' conftest.er1 >conftest.err
30613   rm -f conftest.er1
30614   cat conftest.err >&5
30615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616   (exit $ac_status); } &&
30617          { ac_try='test -z "$ac_c_werror_flag"
30618                          || test ! -s conftest.err'
30619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30620   (eval $ac_try) 2>&5
30621   ac_status=$?
30622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623   (exit $ac_status); }; } &&
30624          { ac_try='test -s conftest.$ac_objext'
30625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626   (eval $ac_try) 2>&5
30627   ac_status=$?
30628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629   (exit $ac_status); }; }; then
30630   ac_cv_c_const=yes
30631 else
30632   echo "$as_me: failed program was:" >&5
30633 sed 's/^/| /' conftest.$ac_ext >&5
30634
30635 ac_cv_c_const=no
30636 fi
30637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30638 fi
30639 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
30640 echo "${ECHO_T}$ac_cv_c_const" >&6
30641 if test $ac_cv_c_const = no; then
30642
30643 cat >>confdefs.h <<\_ACEOF
30644 #define const
30645 _ACEOF
30646
30647 fi
30648
30649
30650         echo "$as_me:$LINENO: checking for working volatile" >&5
30651 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
30652 if test "${amanda_cv_c_volatile+set}" = set; then
30653   echo $ECHO_N "(cached) $ECHO_C" >&6
30654 else
30655
30656                 cat >conftest.$ac_ext <<_ACEOF
30657 /* confdefs.h.  */
30658 _ACEOF
30659 cat confdefs.h >>conftest.$ac_ext
30660 cat >>conftest.$ac_ext <<_ACEOF
30661 /* end confdefs.h.  */
30662
30663 int
30664 main ()
30665 {
30666
30667                         volatile int aaa = 0;
30668
30669   ;
30670   return 0;
30671 }
30672 _ACEOF
30673 rm -f conftest.$ac_objext
30674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30675   (eval $ac_compile) 2>conftest.er1
30676   ac_status=$?
30677   grep -v '^ *+' conftest.er1 >conftest.err
30678   rm -f conftest.er1
30679   cat conftest.err >&5
30680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681   (exit $ac_status); } &&
30682          { ac_try='test -z "$ac_c_werror_flag"
30683                          || test ! -s conftest.err'
30684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30685   (eval $ac_try) 2>&5
30686   ac_status=$?
30687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688   (exit $ac_status); }; } &&
30689          { ac_try='test -s conftest.$ac_objext'
30690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30691   (eval $ac_try) 2>&5
30692   ac_status=$?
30693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30694   (exit $ac_status); }; }; then
30695   amanda_cv_c_volatile=yes
30696 else
30697   echo "$as_me: failed program was:" >&5
30698 sed 's/^/| /' conftest.$ac_ext >&5
30699
30700 amanda_cv_c_volatile=no
30701
30702 fi
30703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30704
30705
30706 fi
30707 echo "$as_me:$LINENO: result: $amanda_cv_c_volatile" >&5
30708 echo "${ECHO_T}$amanda_cv_c_volatile" >&6
30709         if test $amanda_cv_c_volatile = no; then
30710
30711 cat >>confdefs.h <<\_ACEOF
30712 #define volatile
30713 _ACEOF
30714
30715         fi
30716
30717
30718
30719         echo "$as_me:$LINENO: checking for working unsigned long constants" >&5
30720 echo $ECHO_N "checking for working unsigned long constants... $ECHO_C" >&6
30721 if test "${amanda_cv_c_unsigned_long_constants+set}" = set; then
30722   echo $ECHO_N "(cached) $ECHO_C" >&6
30723 else
30724
30725                 cat >conftest.$ac_ext <<_ACEOF
30726 /* confdefs.h.  */
30727 _ACEOF
30728 cat confdefs.h >>conftest.$ac_ext
30729 cat >>conftest.$ac_ext <<_ACEOF
30730 /* end confdefs.h.  */
30731
30732
30733 int
30734 main ()
30735 {
30736
30737                         long l = 1ul;
30738
30739   ;
30740   return 0;
30741 }
30742 _ACEOF
30743 rm -f conftest.$ac_objext
30744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30745   (eval $ac_compile) 2>conftest.er1
30746   ac_status=$?
30747   grep -v '^ *+' conftest.er1 >conftest.err
30748   rm -f conftest.er1
30749   cat conftest.err >&5
30750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751   (exit $ac_status); } &&
30752          { ac_try='test -z "$ac_c_werror_flag"
30753                          || test ! -s conftest.err'
30754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30755   (eval $ac_try) 2>&5
30756   ac_status=$?
30757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758   (exit $ac_status); }; } &&
30759          { ac_try='test -s conftest.$ac_objext'
30760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30761   (eval $ac_try) 2>&5
30762   ac_status=$?
30763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764   (exit $ac_status); }; }; then
30765   amanda_cv_c_unsigned_long_constants=yes
30766 else
30767   echo "$as_me: failed program was:" >&5
30768 sed 's/^/| /' conftest.$ac_ext >&5
30769
30770 amanda_cv_c_unsigned_long_constants=no
30771
30772 fi
30773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30774
30775
30776 fi
30777 echo "$as_me:$LINENO: result: $amanda_cv_c_unsigned_long_constants" >&5
30778 echo "${ECHO_T}$amanda_cv_c_unsigned_long_constants" >&6
30779         if test "$amanda_cv_c_unsigned_long_constants" = yes; then
30780
30781 cat >>confdefs.h <<\_ACEOF
30782 #define HAVE_UNSIGNED_LONG_CONSTANTS 1
30783 _ACEOF
30784
30785         fi
30786
30787
30788 echo "$as_me:$LINENO: checking for off_t" >&5
30789 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30790 if test "${ac_cv_type_off_t+set}" = set; then
30791   echo $ECHO_N "(cached) $ECHO_C" >&6
30792 else
30793   cat >conftest.$ac_ext <<_ACEOF
30794 /* confdefs.h.  */
30795 _ACEOF
30796 cat confdefs.h >>conftest.$ac_ext
30797 cat >>conftest.$ac_ext <<_ACEOF
30798 /* end confdefs.h.  */
30799 $ac_includes_default
30800 int
30801 main ()
30802 {
30803 if ((off_t *) 0)
30804   return 0;
30805 if (sizeof (off_t))
30806   return 0;
30807   ;
30808   return 0;
30809 }
30810 _ACEOF
30811 rm -f conftest.$ac_objext
30812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30813   (eval $ac_compile) 2>conftest.er1
30814   ac_status=$?
30815   grep -v '^ *+' conftest.er1 >conftest.err
30816   rm -f conftest.er1
30817   cat conftest.err >&5
30818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30819   (exit $ac_status); } &&
30820          { ac_try='test -z "$ac_c_werror_flag"
30821                          || test ! -s conftest.err'
30822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30823   (eval $ac_try) 2>&5
30824   ac_status=$?
30825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826   (exit $ac_status); }; } &&
30827          { ac_try='test -s conftest.$ac_objext'
30828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30829   (eval $ac_try) 2>&5
30830   ac_status=$?
30831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832   (exit $ac_status); }; }; then
30833   ac_cv_type_off_t=yes
30834 else
30835   echo "$as_me: failed program was:" >&5
30836 sed 's/^/| /' conftest.$ac_ext >&5
30837
30838 ac_cv_type_off_t=no
30839 fi
30840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30841 fi
30842 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30843 echo "${ECHO_T}$ac_cv_type_off_t" >&6
30844 if test $ac_cv_type_off_t = yes; then
30845   :
30846 else
30847
30848 cat >>confdefs.h <<_ACEOF
30849 #define off_t long
30850 _ACEOF
30851
30852 fi
30853
30854 echo "$as_me:$LINENO: checking for pid_t" >&5
30855 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30856 if test "${ac_cv_type_pid_t+set}" = set; then
30857   echo $ECHO_N "(cached) $ECHO_C" >&6
30858 else
30859   cat >conftest.$ac_ext <<_ACEOF
30860 /* confdefs.h.  */
30861 _ACEOF
30862 cat confdefs.h >>conftest.$ac_ext
30863 cat >>conftest.$ac_ext <<_ACEOF
30864 /* end confdefs.h.  */
30865 $ac_includes_default
30866 int
30867 main ()
30868 {
30869 if ((pid_t *) 0)
30870   return 0;
30871 if (sizeof (pid_t))
30872   return 0;
30873   ;
30874   return 0;
30875 }
30876 _ACEOF
30877 rm -f conftest.$ac_objext
30878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30879   (eval $ac_compile) 2>conftest.er1
30880   ac_status=$?
30881   grep -v '^ *+' conftest.er1 >conftest.err
30882   rm -f conftest.er1
30883   cat conftest.err >&5
30884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885   (exit $ac_status); } &&
30886          { ac_try='test -z "$ac_c_werror_flag"
30887                          || test ! -s conftest.err'
30888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30889   (eval $ac_try) 2>&5
30890   ac_status=$?
30891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892   (exit $ac_status); }; } &&
30893          { ac_try='test -s conftest.$ac_objext'
30894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30895   (eval $ac_try) 2>&5
30896   ac_status=$?
30897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898   (exit $ac_status); }; }; then
30899   ac_cv_type_pid_t=yes
30900 else
30901   echo "$as_me: failed program was:" >&5
30902 sed 's/^/| /' conftest.$ac_ext >&5
30903
30904 ac_cv_type_pid_t=no
30905 fi
30906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30907 fi
30908 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30909 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30910 if test $ac_cv_type_pid_t = yes; then
30911   :
30912 else
30913
30914 cat >>confdefs.h <<_ACEOF
30915 #define pid_t int
30916 _ACEOF
30917
30918 fi
30919
30920 echo "$as_me:$LINENO: checking for size_t" >&5
30921 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30922 if test "${ac_cv_type_size_t+set}" = set; then
30923   echo $ECHO_N "(cached) $ECHO_C" >&6
30924 else
30925   cat >conftest.$ac_ext <<_ACEOF
30926 /* confdefs.h.  */
30927 _ACEOF
30928 cat confdefs.h >>conftest.$ac_ext
30929 cat >>conftest.$ac_ext <<_ACEOF
30930 /* end confdefs.h.  */
30931 $ac_includes_default
30932 int
30933 main ()
30934 {
30935 if ((size_t *) 0)
30936   return 0;
30937 if (sizeof (size_t))
30938   return 0;
30939   ;
30940   return 0;
30941 }
30942 _ACEOF
30943 rm -f conftest.$ac_objext
30944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30945   (eval $ac_compile) 2>conftest.er1
30946   ac_status=$?
30947   grep -v '^ *+' conftest.er1 >conftest.err
30948   rm -f conftest.er1
30949   cat conftest.err >&5
30950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951   (exit $ac_status); } &&
30952          { ac_try='test -z "$ac_c_werror_flag"
30953                          || test ! -s conftest.err'
30954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30955   (eval $ac_try) 2>&5
30956   ac_status=$?
30957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958   (exit $ac_status); }; } &&
30959          { ac_try='test -s conftest.$ac_objext'
30960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30961   (eval $ac_try) 2>&5
30962   ac_status=$?
30963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964   (exit $ac_status); }; }; then
30965   ac_cv_type_size_t=yes
30966 else
30967   echo "$as_me: failed program was:" >&5
30968 sed 's/^/| /' conftest.$ac_ext >&5
30969
30970 ac_cv_type_size_t=no
30971 fi
30972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30973 fi
30974 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30975 echo "${ECHO_T}$ac_cv_type_size_t" >&6
30976 if test $ac_cv_type_size_t = yes; then
30977   :
30978 else
30979
30980 cat >>confdefs.h <<_ACEOF
30981 #define size_t unsigned
30982 _ACEOF
30983
30984 fi
30985
30986
30987 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30988 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30989 if test "${ac_cv_type_uid_t+set}" = set; then
30990   echo $ECHO_N "(cached) $ECHO_C" >&6
30991 else
30992   cat >conftest.$ac_ext <<_ACEOF
30993 /* confdefs.h.  */
30994 _ACEOF
30995 cat confdefs.h >>conftest.$ac_ext
30996 cat >>conftest.$ac_ext <<_ACEOF
30997 /* end confdefs.h.  */
30998 #include <sys/types.h>
30999
31000 _ACEOF
31001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31002   $EGREP "uid_t" >/dev/null 2>&1; then
31003   ac_cv_type_uid_t=yes
31004 else
31005   ac_cv_type_uid_t=no
31006 fi
31007 rm -f conftest*
31008
31009 fi
31010 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
31011 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
31012 if test $ac_cv_type_uid_t = no; then
31013
31014 cat >>confdefs.h <<\_ACEOF
31015 #define uid_t int
31016 _ACEOF
31017
31018
31019 cat >>confdefs.h <<\_ACEOF
31020 #define gid_t int
31021 _ACEOF
31022
31023 fi
31024
31025 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31026 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
31027 if test "${ac_cv_type_signal+set}" = set; then
31028   echo $ECHO_N "(cached) $ECHO_C" >&6
31029 else
31030   cat >conftest.$ac_ext <<_ACEOF
31031 /* confdefs.h.  */
31032 _ACEOF
31033 cat confdefs.h >>conftest.$ac_ext
31034 cat >>conftest.$ac_ext <<_ACEOF
31035 /* end confdefs.h.  */
31036 #include <sys/types.h>
31037 #include <signal.h>
31038 #ifdef signal
31039 # undef signal
31040 #endif
31041 #ifdef __cplusplus
31042 extern "C" void (*signal (int, void (*)(int)))(int);
31043 #else
31044 void (*signal ()) ();
31045 #endif
31046
31047 int
31048 main ()
31049 {
31050 int i;
31051   ;
31052   return 0;
31053 }
31054 _ACEOF
31055 rm -f conftest.$ac_objext
31056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31057   (eval $ac_compile) 2>conftest.er1
31058   ac_status=$?
31059   grep -v '^ *+' conftest.er1 >conftest.err
31060   rm -f conftest.er1
31061   cat conftest.err >&5
31062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063   (exit $ac_status); } &&
31064          { ac_try='test -z "$ac_c_werror_flag"
31065                          || test ! -s conftest.err'
31066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31067   (eval $ac_try) 2>&5
31068   ac_status=$?
31069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070   (exit $ac_status); }; } &&
31071          { ac_try='test -s conftest.$ac_objext'
31072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31073   (eval $ac_try) 2>&5
31074   ac_status=$?
31075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076   (exit $ac_status); }; }; then
31077   ac_cv_type_signal=void
31078 else
31079   echo "$as_me: failed program was:" >&5
31080 sed 's/^/| /' conftest.$ac_ext >&5
31081
31082 ac_cv_type_signal=int
31083 fi
31084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31085 fi
31086 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31087 echo "${ECHO_T}$ac_cv_type_signal" >&6
31088
31089 cat >>confdefs.h <<_ACEOF
31090 #define RETSIGTYPE $ac_cv_type_signal
31091 _ACEOF
31092
31093
31094 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31095 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
31096 if test "${ac_cv_struct_tm+set}" = set; then
31097   echo $ECHO_N "(cached) $ECHO_C" >&6
31098 else
31099   cat >conftest.$ac_ext <<_ACEOF
31100 /* confdefs.h.  */
31101 _ACEOF
31102 cat confdefs.h >>conftest.$ac_ext
31103 cat >>conftest.$ac_ext <<_ACEOF
31104 /* end confdefs.h.  */
31105 #include <sys/types.h>
31106 #include <time.h>
31107
31108 int
31109 main ()
31110 {
31111 struct tm *tp; tp->tm_sec;
31112   ;
31113   return 0;
31114 }
31115 _ACEOF
31116 rm -f conftest.$ac_objext
31117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31118   (eval $ac_compile) 2>conftest.er1
31119   ac_status=$?
31120   grep -v '^ *+' conftest.er1 >conftest.err
31121   rm -f conftest.er1
31122   cat conftest.err >&5
31123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124   (exit $ac_status); } &&
31125          { ac_try='test -z "$ac_c_werror_flag"
31126                          || test ! -s conftest.err'
31127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31128   (eval $ac_try) 2>&5
31129   ac_status=$?
31130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31131   (exit $ac_status); }; } &&
31132          { ac_try='test -s conftest.$ac_objext'
31133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31134   (eval $ac_try) 2>&5
31135   ac_status=$?
31136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137   (exit $ac_status); }; }; then
31138   ac_cv_struct_tm=time.h
31139 else
31140   echo "$as_me: failed program was:" >&5
31141 sed 's/^/| /' conftest.$ac_ext >&5
31142
31143 ac_cv_struct_tm=sys/time.h
31144 fi
31145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31146 fi
31147 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31148 echo "${ECHO_T}$ac_cv_struct_tm" >&6
31149 if test $ac_cv_struct_tm = sys/time.h; then
31150
31151 cat >>confdefs.h <<\_ACEOF
31152 #define TM_IN_SYS_TIME 1
31153 _ACEOF
31154
31155 fi
31156
31157 for ac_prog in flex lex
31158 do
31159   # Extract the first word of "$ac_prog", so it can be a program name with args.
31160 set dummy $ac_prog; ac_word=$2
31161 echo "$as_me:$LINENO: checking for $ac_word" >&5
31162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31163 if test "${ac_cv_prog_LEX+set}" = set; then
31164   echo $ECHO_N "(cached) $ECHO_C" >&6
31165 else
31166   if test -n "$LEX"; then
31167   ac_cv_prog_LEX="$LEX" # Let the user override the test.
31168 else
31169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31170 for as_dir in $PATH
31171 do
31172   IFS=$as_save_IFS
31173   test -z "$as_dir" && as_dir=.
31174   for ac_exec_ext in '' $ac_executable_extensions; do
31175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31176     ac_cv_prog_LEX="$ac_prog"
31177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31178     break 2
31179   fi
31180 done
31181 done
31182
31183 fi
31184 fi
31185 LEX=$ac_cv_prog_LEX
31186 if test -n "$LEX"; then
31187   echo "$as_me:$LINENO: result: $LEX" >&5
31188 echo "${ECHO_T}$LEX" >&6
31189 else
31190   echo "$as_me:$LINENO: result: no" >&5
31191 echo "${ECHO_T}no" >&6
31192 fi
31193
31194   test -n "$LEX" && break
31195 done
31196 test -n "$LEX" || LEX=":"
31197
31198 if test -z "$LEXLIB"
31199 then
31200   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
31201 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
31202 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
31203   echo $ECHO_N "(cached) $ECHO_C" >&6
31204 else
31205   ac_check_lib_save_LIBS=$LIBS
31206 LIBS="-lfl  $LIBS"
31207 cat >conftest.$ac_ext <<_ACEOF
31208 /* confdefs.h.  */
31209 _ACEOF
31210 cat confdefs.h >>conftest.$ac_ext
31211 cat >>conftest.$ac_ext <<_ACEOF
31212 /* end confdefs.h.  */
31213
31214 /* Override any gcc2 internal prototype to avoid an error.  */
31215 #ifdef __cplusplus
31216 extern "C"
31217 #endif
31218 /* We use char because int might match the return type of a gcc2
31219    builtin and then its argument prototype would still apply.  */
31220 char yywrap ();
31221 int
31222 main ()
31223 {
31224 yywrap ();
31225   ;
31226   return 0;
31227 }
31228 _ACEOF
31229 rm -f conftest.$ac_objext conftest$ac_exeext
31230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31231   (eval $ac_link) 2>conftest.er1
31232   ac_status=$?
31233   grep -v '^ *+' conftest.er1 >conftest.err
31234   rm -f conftest.er1
31235   cat conftest.err >&5
31236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237   (exit $ac_status); } &&
31238          { ac_try='test -z "$ac_c_werror_flag"
31239                          || test ! -s conftest.err'
31240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31241   (eval $ac_try) 2>&5
31242   ac_status=$?
31243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244   (exit $ac_status); }; } &&
31245          { ac_try='test -s conftest$ac_exeext'
31246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31247   (eval $ac_try) 2>&5
31248   ac_status=$?
31249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250   (exit $ac_status); }; }; then
31251   ac_cv_lib_fl_yywrap=yes
31252 else
31253   echo "$as_me: failed program was:" >&5
31254 sed 's/^/| /' conftest.$ac_ext >&5
31255
31256 ac_cv_lib_fl_yywrap=no
31257 fi
31258 rm -f conftest.err conftest.$ac_objext \
31259       conftest$ac_exeext conftest.$ac_ext
31260 LIBS=$ac_check_lib_save_LIBS
31261 fi
31262 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
31263 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
31264 if test $ac_cv_lib_fl_yywrap = yes; then
31265   LEXLIB="-lfl"
31266 else
31267   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
31268 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
31269 if test "${ac_cv_lib_l_yywrap+set}" = set; then
31270   echo $ECHO_N "(cached) $ECHO_C" >&6
31271 else
31272   ac_check_lib_save_LIBS=$LIBS
31273 LIBS="-ll  $LIBS"
31274 cat >conftest.$ac_ext <<_ACEOF
31275 /* confdefs.h.  */
31276 _ACEOF
31277 cat confdefs.h >>conftest.$ac_ext
31278 cat >>conftest.$ac_ext <<_ACEOF
31279 /* end confdefs.h.  */
31280
31281 /* Override any gcc2 internal prototype to avoid an error.  */
31282 #ifdef __cplusplus
31283 extern "C"
31284 #endif
31285 /* We use char because int might match the return type of a gcc2
31286    builtin and then its argument prototype would still apply.  */
31287 char yywrap ();
31288 int
31289 main ()
31290 {
31291 yywrap ();
31292   ;
31293   return 0;
31294 }
31295 _ACEOF
31296 rm -f conftest.$ac_objext conftest$ac_exeext
31297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31298   (eval $ac_link) 2>conftest.er1
31299   ac_status=$?
31300   grep -v '^ *+' conftest.er1 >conftest.err
31301   rm -f conftest.er1
31302   cat conftest.err >&5
31303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304   (exit $ac_status); } &&
31305          { ac_try='test -z "$ac_c_werror_flag"
31306                          || test ! -s conftest.err'
31307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31308   (eval $ac_try) 2>&5
31309   ac_status=$?
31310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311   (exit $ac_status); }; } &&
31312          { ac_try='test -s conftest$ac_exeext'
31313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31314   (eval $ac_try) 2>&5
31315   ac_status=$?
31316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317   (exit $ac_status); }; }; then
31318   ac_cv_lib_l_yywrap=yes
31319 else
31320   echo "$as_me: failed program was:" >&5
31321 sed 's/^/| /' conftest.$ac_ext >&5
31322
31323 ac_cv_lib_l_yywrap=no
31324 fi
31325 rm -f conftest.err conftest.$ac_objext \
31326       conftest$ac_exeext conftest.$ac_ext
31327 LIBS=$ac_check_lib_save_LIBS
31328 fi
31329 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
31330 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
31331 if test $ac_cv_lib_l_yywrap = yes; then
31332   LEXLIB="-ll"
31333 fi
31334
31335 fi
31336
31337 fi
31338
31339 if test "x$LEX" != "x:"; then
31340   echo "$as_me:$LINENO: checking lex output file root" >&5
31341 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
31342 if test "${ac_cv_prog_lex_root+set}" = set; then
31343   echo $ECHO_N "(cached) $ECHO_C" >&6
31344 else
31345   # The minimal lex program is just a single line: %%.  But some broken lexes
31346 # (Solaris, I think it was) want two %% lines, so accommodate them.
31347 cat >conftest.l <<_ACEOF
31348 %%
31349 %%
31350 _ACEOF
31351 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
31352   (eval $LEX conftest.l) 2>&5
31353   ac_status=$?
31354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355   (exit $ac_status); }
31356 if test -f lex.yy.c; then
31357   ac_cv_prog_lex_root=lex.yy
31358 elif test -f lexyy.c; then
31359   ac_cv_prog_lex_root=lexyy
31360 else
31361   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
31362 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
31363    { (exit 1); exit 1; }; }
31364 fi
31365 fi
31366 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
31367 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
31368 rm -f conftest.l
31369 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
31370
31371 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
31372 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
31373 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
31374   echo $ECHO_N "(cached) $ECHO_C" >&6
31375 else
31376   # POSIX says lex can declare yytext either as a pointer or an array; the
31377 # default is implementation-dependent. Figure out which it is, since
31378 # not all implementations provide the %pointer and %array declarations.
31379 ac_cv_prog_lex_yytext_pointer=no
31380 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
31381 ac_save_LIBS=$LIBS
31382 LIBS="$LIBS $LEXLIB"
31383 cat >conftest.$ac_ext <<_ACEOF
31384 `cat $LEX_OUTPUT_ROOT.c`
31385 _ACEOF
31386 rm -f conftest.$ac_objext conftest$ac_exeext
31387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31388   (eval $ac_link) 2>conftest.er1
31389   ac_status=$?
31390   grep -v '^ *+' conftest.er1 >conftest.err
31391   rm -f conftest.er1
31392   cat conftest.err >&5
31393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394   (exit $ac_status); } &&
31395          { ac_try='test -z "$ac_c_werror_flag"
31396                          || test ! -s conftest.err'
31397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31398   (eval $ac_try) 2>&5
31399   ac_status=$?
31400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401   (exit $ac_status); }; } &&
31402          { ac_try='test -s conftest$ac_exeext'
31403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31404   (eval $ac_try) 2>&5
31405   ac_status=$?
31406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407   (exit $ac_status); }; }; then
31408   ac_cv_prog_lex_yytext_pointer=yes
31409 else
31410   echo "$as_me: failed program was:" >&5
31411 sed 's/^/| /' conftest.$ac_ext >&5
31412
31413 fi
31414 rm -f conftest.err conftest.$ac_objext \
31415       conftest$ac_exeext conftest.$ac_ext
31416 LIBS=$ac_save_LIBS
31417 rm -f "${LEX_OUTPUT_ROOT}.c"
31418
31419 fi
31420 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
31421 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
31422 if test $ac_cv_prog_lex_yytext_pointer = yes; then
31423
31424 cat >>confdefs.h <<\_ACEOF
31425 #define YYTEXT_POINTER 1
31426 _ACEOF
31427
31428 fi
31429
31430 fi
31431 if test "$LEX" = :; then
31432   LEX=${am_missing_run}flex
31433 fi
31434
31435 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31436 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
31437 if test "${ac_cv_header_stdc+set}" = set; then
31438   echo $ECHO_N "(cached) $ECHO_C" >&6
31439 else
31440   cat >conftest.$ac_ext <<_ACEOF
31441 /* confdefs.h.  */
31442 _ACEOF
31443 cat confdefs.h >>conftest.$ac_ext
31444 cat >>conftest.$ac_ext <<_ACEOF
31445 /* end confdefs.h.  */
31446 #include <stdlib.h>
31447 #include <stdarg.h>
31448 #include <string.h>
31449 #include <float.h>
31450
31451 int
31452 main ()
31453 {
31454
31455   ;
31456   return 0;
31457 }
31458 _ACEOF
31459 rm -f conftest.$ac_objext
31460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31461   (eval $ac_compile) 2>conftest.er1
31462   ac_status=$?
31463   grep -v '^ *+' conftest.er1 >conftest.err
31464   rm -f conftest.er1
31465   cat conftest.err >&5
31466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467   (exit $ac_status); } &&
31468          { ac_try='test -z "$ac_c_werror_flag"
31469                          || test ! -s conftest.err'
31470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31471   (eval $ac_try) 2>&5
31472   ac_status=$?
31473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474   (exit $ac_status); }; } &&
31475          { ac_try='test -s conftest.$ac_objext'
31476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31477   (eval $ac_try) 2>&5
31478   ac_status=$?
31479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480   (exit $ac_status); }; }; then
31481   ac_cv_header_stdc=yes
31482 else
31483   echo "$as_me: failed program was:" >&5
31484 sed 's/^/| /' conftest.$ac_ext >&5
31485
31486 ac_cv_header_stdc=no
31487 fi
31488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31489
31490 if test $ac_cv_header_stdc = yes; then
31491   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31492   cat >conftest.$ac_ext <<_ACEOF
31493 /* confdefs.h.  */
31494 _ACEOF
31495 cat confdefs.h >>conftest.$ac_ext
31496 cat >>conftest.$ac_ext <<_ACEOF
31497 /* end confdefs.h.  */
31498 #include <string.h>
31499
31500 _ACEOF
31501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31502   $EGREP "memchr" >/dev/null 2>&1; then
31503   :
31504 else
31505   ac_cv_header_stdc=no
31506 fi
31507 rm -f conftest*
31508
31509 fi
31510
31511 if test $ac_cv_header_stdc = yes; then
31512   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31513   cat >conftest.$ac_ext <<_ACEOF
31514 /* confdefs.h.  */
31515 _ACEOF
31516 cat confdefs.h >>conftest.$ac_ext
31517 cat >>conftest.$ac_ext <<_ACEOF
31518 /* end confdefs.h.  */
31519 #include <stdlib.h>
31520
31521 _ACEOF
31522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31523   $EGREP "free" >/dev/null 2>&1; then
31524   :
31525 else
31526   ac_cv_header_stdc=no
31527 fi
31528 rm -f conftest*
31529
31530 fi
31531
31532 if test $ac_cv_header_stdc = yes; then
31533   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31534   if test "$cross_compiling" = yes; then
31535   :
31536 else
31537   cat >conftest.$ac_ext <<_ACEOF
31538 /* confdefs.h.  */
31539 _ACEOF
31540 cat confdefs.h >>conftest.$ac_ext
31541 cat >>conftest.$ac_ext <<_ACEOF
31542 /* end confdefs.h.  */
31543 #include <ctype.h>
31544 #if ((' ' & 0x0FF) == 0x020)
31545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31547 #else
31548 # define ISLOWER(c) \
31549                    (('a' <= (c) && (c) <= 'i') \
31550                      || ('j' <= (c) && (c) <= 'r') \
31551                      || ('s' <= (c) && (c) <= 'z'))
31552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31553 #endif
31554
31555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31556 int
31557 main ()
31558 {
31559   int i;
31560   for (i = 0; i < 256; i++)
31561     if (XOR (islower (i), ISLOWER (i))
31562         || toupper (i) != TOUPPER (i))
31563       exit(2);
31564   exit (0);
31565 }
31566 _ACEOF
31567 rm -f conftest$ac_exeext
31568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31569   (eval $ac_link) 2>&5
31570   ac_status=$?
31571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31572   (exit $ac_status); } && { ac_try='./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   :
31579 else
31580   echo "$as_me: program exited with status $ac_status" >&5
31581 echo "$as_me: failed program was:" >&5
31582 sed 's/^/| /' conftest.$ac_ext >&5
31583
31584 ( exit $ac_status )
31585 ac_cv_header_stdc=no
31586 fi
31587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31588 fi
31589 fi
31590 fi
31591 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31592 echo "${ECHO_T}$ac_cv_header_stdc" >&6
31593 if test $ac_cv_header_stdc = yes; then
31594
31595 cat >>confdefs.h <<\_ACEOF
31596 #define STDC_HEADERS 1
31597 _ACEOF
31598
31599 fi
31600
31601
31602
31603 echo "$as_me:$LINENO: checking for socklen_t" >&5
31604 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
31605 if test "${ac_cv_type_socklen_t+set}" = set; then
31606   echo $ECHO_N "(cached) $ECHO_C" >&6
31607 else
31608   cat >conftest.$ac_ext <<_ACEOF
31609 /* confdefs.h.  */
31610 _ACEOF
31611 cat confdefs.h >>conftest.$ac_ext
31612 cat >>conftest.$ac_ext <<_ACEOF
31613 /* end confdefs.h.  */
31614 #include <sys/types.h>
31615 #if STDC_HEADERS
31616 #include <stdlib.h>
31617 #include <stddef.h>
31618 #endif
31619 #include <sys/socket.h>
31620 _ACEOF
31621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31622   $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
31623   ac_cv_type_socklen_t=yes
31624 else
31625   ac_cv_type_socklen_t=no
31626 fi
31627 rm -f conftest*
31628
31629 fi
31630 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
31631 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
31632 if test "x$ac_cv_type_socklen_t" = xno; then
31633
31634 cat >>confdefs.h <<\_ACEOF
31635 #define socklen_t int
31636 _ACEOF
31637
31638 fi
31639
31640 echo "$as_me:$LINENO: checking for sa_family_t" >&5
31641 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
31642 if test "${ac_cv_type_sa_family_t+set}" = set; then
31643   echo $ECHO_N "(cached) $ECHO_C" >&6
31644 else
31645   cat >conftest.$ac_ext <<_ACEOF
31646 /* confdefs.h.  */
31647 _ACEOF
31648 cat confdefs.h >>conftest.$ac_ext
31649 cat >>conftest.$ac_ext <<_ACEOF
31650 /* end confdefs.h.  */
31651 #include <sys/types.h>
31652 #if STDC_HEADERS
31653 #include <stdlib.h>
31654 #include <stddef.h>
31655 #endif
31656 #include <sys/socket.h>
31657 _ACEOF
31658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31659   $EGREP "(^|[^a-zA-Z_0-9])sa_family_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
31660   ac_cv_type_sa_family_t=yes
31661 else
31662   ac_cv_type_sa_family_t=no
31663 fi
31664 rm -f conftest*
31665
31666 fi
31667 echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
31668 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
31669 if test "x$ac_cv_type_sa_family_t" = xno; then
31670
31671 cat >>confdefs.h <<\_ACEOF
31672 #define sa_family_t unsigned short
31673 _ACEOF
31674
31675 fi
31676
31677
31678
31679
31680
31681
31682
31683 ac_header_dirent=no
31684 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31685   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31686 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31687 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
31688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31689   echo $ECHO_N "(cached) $ECHO_C" >&6
31690 else
31691   cat >conftest.$ac_ext <<_ACEOF
31692 /* confdefs.h.  */
31693 _ACEOF
31694 cat confdefs.h >>conftest.$ac_ext
31695 cat >>conftest.$ac_ext <<_ACEOF
31696 /* end confdefs.h.  */
31697 #include <sys/types.h>
31698 #include <$ac_hdr>
31699
31700 int
31701 main ()
31702 {
31703 if ((DIR *) 0)
31704 return 0;
31705   ;
31706   return 0;
31707 }
31708 _ACEOF
31709 rm -f conftest.$ac_objext
31710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31711   (eval $ac_compile) 2>conftest.er1
31712   ac_status=$?
31713   grep -v '^ *+' conftest.er1 >conftest.err
31714   rm -f conftest.er1
31715   cat conftest.err >&5
31716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717   (exit $ac_status); } &&
31718          { ac_try='test -z "$ac_c_werror_flag"
31719                          || test ! -s conftest.err'
31720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31721   (eval $ac_try) 2>&5
31722   ac_status=$?
31723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724   (exit $ac_status); }; } &&
31725          { ac_try='test -s conftest.$ac_objext'
31726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31727   (eval $ac_try) 2>&5
31728   ac_status=$?
31729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730   (exit $ac_status); }; }; then
31731   eval "$as_ac_Header=yes"
31732 else
31733   echo "$as_me: failed program was:" >&5
31734 sed 's/^/| /' conftest.$ac_ext >&5
31735
31736 eval "$as_ac_Header=no"
31737 fi
31738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31739 fi
31740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31743   cat >>confdefs.h <<_ACEOF
31744 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31745 _ACEOF
31746
31747 ac_header_dirent=$ac_hdr; break
31748 fi
31749
31750 done
31751 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31752 if test $ac_header_dirent = dirent.h; then
31753   echo "$as_me:$LINENO: checking for library containing opendir" >&5
31754 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
31755 if test "${ac_cv_search_opendir+set}" = set; then
31756   echo $ECHO_N "(cached) $ECHO_C" >&6
31757 else
31758   ac_func_search_save_LIBS=$LIBS
31759 ac_cv_search_opendir=no
31760 cat >conftest.$ac_ext <<_ACEOF
31761 /* confdefs.h.  */
31762 _ACEOF
31763 cat confdefs.h >>conftest.$ac_ext
31764 cat >>conftest.$ac_ext <<_ACEOF
31765 /* end confdefs.h.  */
31766
31767 /* Override any gcc2 internal prototype to avoid an error.  */
31768 #ifdef __cplusplus
31769 extern "C"
31770 #endif
31771 /* We use char because int might match the return type of a gcc2
31772    builtin and then its argument prototype would still apply.  */
31773 char opendir ();
31774 int
31775 main ()
31776 {
31777 opendir ();
31778   ;
31779   return 0;
31780 }
31781 _ACEOF
31782 rm -f conftest.$ac_objext conftest$ac_exeext
31783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31784   (eval $ac_link) 2>conftest.er1
31785   ac_status=$?
31786   grep -v '^ *+' conftest.er1 >conftest.err
31787   rm -f conftest.er1
31788   cat conftest.err >&5
31789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31790   (exit $ac_status); } &&
31791          { ac_try='test -z "$ac_c_werror_flag"
31792                          || test ! -s conftest.err'
31793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31794   (eval $ac_try) 2>&5
31795   ac_status=$?
31796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797   (exit $ac_status); }; } &&
31798          { ac_try='test -s conftest$ac_exeext'
31799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31800   (eval $ac_try) 2>&5
31801   ac_status=$?
31802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803   (exit $ac_status); }; }; then
31804   ac_cv_search_opendir="none required"
31805 else
31806   echo "$as_me: failed program was:" >&5
31807 sed 's/^/| /' conftest.$ac_ext >&5
31808
31809 fi
31810 rm -f conftest.err conftest.$ac_objext \
31811       conftest$ac_exeext conftest.$ac_ext
31812 if test "$ac_cv_search_opendir" = no; then
31813   for ac_lib in dir; do
31814     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31815     cat >conftest.$ac_ext <<_ACEOF
31816 /* confdefs.h.  */
31817 _ACEOF
31818 cat confdefs.h >>conftest.$ac_ext
31819 cat >>conftest.$ac_ext <<_ACEOF
31820 /* end confdefs.h.  */
31821
31822 /* Override any gcc2 internal prototype to avoid an error.  */
31823 #ifdef __cplusplus
31824 extern "C"
31825 #endif
31826 /* We use char because int might match the return type of a gcc2
31827    builtin and then its argument prototype would still apply.  */
31828 char opendir ();
31829 int
31830 main ()
31831 {
31832 opendir ();
31833   ;
31834   return 0;
31835 }
31836 _ACEOF
31837 rm -f conftest.$ac_objext conftest$ac_exeext
31838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31839   (eval $ac_link) 2>conftest.er1
31840   ac_status=$?
31841   grep -v '^ *+' conftest.er1 >conftest.err
31842   rm -f conftest.er1
31843   cat conftest.err >&5
31844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845   (exit $ac_status); } &&
31846          { ac_try='test -z "$ac_c_werror_flag"
31847                          || test ! -s conftest.err'
31848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31849   (eval $ac_try) 2>&5
31850   ac_status=$?
31851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852   (exit $ac_status); }; } &&
31853          { ac_try='test -s conftest$ac_exeext'
31854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31855   (eval $ac_try) 2>&5
31856   ac_status=$?
31857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31858   (exit $ac_status); }; }; then
31859   ac_cv_search_opendir="-l$ac_lib"
31860 break
31861 else
31862   echo "$as_me: failed program was:" >&5
31863 sed 's/^/| /' conftest.$ac_ext >&5
31864
31865 fi
31866 rm -f conftest.err conftest.$ac_objext \
31867       conftest$ac_exeext conftest.$ac_ext
31868   done
31869 fi
31870 LIBS=$ac_func_search_save_LIBS
31871 fi
31872 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31873 echo "${ECHO_T}$ac_cv_search_opendir" >&6
31874 if test "$ac_cv_search_opendir" != no; then
31875   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
31876
31877 fi
31878
31879 else
31880   echo "$as_me:$LINENO: checking for library containing opendir" >&5
31881 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
31882 if test "${ac_cv_search_opendir+set}" = set; then
31883   echo $ECHO_N "(cached) $ECHO_C" >&6
31884 else
31885   ac_func_search_save_LIBS=$LIBS
31886 ac_cv_search_opendir=no
31887 cat >conftest.$ac_ext <<_ACEOF
31888 /* confdefs.h.  */
31889 _ACEOF
31890 cat confdefs.h >>conftest.$ac_ext
31891 cat >>conftest.$ac_ext <<_ACEOF
31892 /* end confdefs.h.  */
31893
31894 /* Override any gcc2 internal prototype to avoid an error.  */
31895 #ifdef __cplusplus
31896 extern "C"
31897 #endif
31898 /* We use char because int might match the return type of a gcc2
31899    builtin and then its argument prototype would still apply.  */
31900 char opendir ();
31901 int
31902 main ()
31903 {
31904 opendir ();
31905   ;
31906   return 0;
31907 }
31908 _ACEOF
31909 rm -f conftest.$ac_objext conftest$ac_exeext
31910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31911   (eval $ac_link) 2>conftest.er1
31912   ac_status=$?
31913   grep -v '^ *+' conftest.er1 >conftest.err
31914   rm -f conftest.er1
31915   cat conftest.err >&5
31916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917   (exit $ac_status); } &&
31918          { ac_try='test -z "$ac_c_werror_flag"
31919                          || test ! -s conftest.err'
31920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31921   (eval $ac_try) 2>&5
31922   ac_status=$?
31923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924   (exit $ac_status); }; } &&
31925          { ac_try='test -s conftest$ac_exeext'
31926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31927   (eval $ac_try) 2>&5
31928   ac_status=$?
31929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930   (exit $ac_status); }; }; then
31931   ac_cv_search_opendir="none required"
31932 else
31933   echo "$as_me: failed program was:" >&5
31934 sed 's/^/| /' conftest.$ac_ext >&5
31935
31936 fi
31937 rm -f conftest.err conftest.$ac_objext \
31938       conftest$ac_exeext conftest.$ac_ext
31939 if test "$ac_cv_search_opendir" = no; then
31940   for ac_lib in x; do
31941     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31942     cat >conftest.$ac_ext <<_ACEOF
31943 /* confdefs.h.  */
31944 _ACEOF
31945 cat confdefs.h >>conftest.$ac_ext
31946 cat >>conftest.$ac_ext <<_ACEOF
31947 /* end confdefs.h.  */
31948
31949 /* Override any gcc2 internal prototype to avoid an error.  */
31950 #ifdef __cplusplus
31951 extern "C"
31952 #endif
31953 /* We use char because int might match the return type of a gcc2
31954    builtin and then its argument prototype would still apply.  */
31955 char opendir ();
31956 int
31957 main ()
31958 {
31959 opendir ();
31960   ;
31961   return 0;
31962 }
31963 _ACEOF
31964 rm -f conftest.$ac_objext conftest$ac_exeext
31965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31966   (eval $ac_link) 2>conftest.er1
31967   ac_status=$?
31968   grep -v '^ *+' conftest.er1 >conftest.err
31969   rm -f conftest.er1
31970   cat conftest.err >&5
31971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972   (exit $ac_status); } &&
31973          { ac_try='test -z "$ac_c_werror_flag"
31974                          || test ! -s conftest.err'
31975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31976   (eval $ac_try) 2>&5
31977   ac_status=$?
31978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31979   (exit $ac_status); }; } &&
31980          { ac_try='test -s conftest$ac_exeext'
31981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31982   (eval $ac_try) 2>&5
31983   ac_status=$?
31984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985   (exit $ac_status); }; }; then
31986   ac_cv_search_opendir="-l$ac_lib"
31987 break
31988 else
31989   echo "$as_me: failed program was:" >&5
31990 sed 's/^/| /' conftest.$ac_ext >&5
31991
31992 fi
31993 rm -f conftest.err conftest.$ac_objext \
31994       conftest$ac_exeext conftest.$ac_ext
31995   done
31996 fi
31997 LIBS=$ac_func_search_save_LIBS
31998 fi
31999 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32000 echo "${ECHO_T}$ac_cv_search_opendir" >&6
32001 if test "$ac_cv_search_opendir" != no; then
32002   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
32003
32004 fi
32005
32006 fi
32007
32008
32009
32010
32011
32012 for ac_header in sys/wait.h wait.h
32013 do
32014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32016   echo "$as_me:$LINENO: checking for $ac_header" >&5
32017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32019   echo $ECHO_N "(cached) $ECHO_C" >&6
32020 fi
32021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32023 else
32024   # Is the header compilable?
32025 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32027 cat >conftest.$ac_ext <<_ACEOF
32028 /* confdefs.h.  */
32029 _ACEOF
32030 cat confdefs.h >>conftest.$ac_ext
32031 cat >>conftest.$ac_ext <<_ACEOF
32032 /* end confdefs.h.  */
32033 $ac_includes_default
32034 #include <$ac_header>
32035 _ACEOF
32036 rm -f conftest.$ac_objext
32037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32038   (eval $ac_compile) 2>conftest.er1
32039   ac_status=$?
32040   grep -v '^ *+' conftest.er1 >conftest.err
32041   rm -f conftest.er1
32042   cat conftest.err >&5
32043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32044   (exit $ac_status); } &&
32045          { ac_try='test -z "$ac_c_werror_flag"
32046                          || test ! -s conftest.err'
32047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32048   (eval $ac_try) 2>&5
32049   ac_status=$?
32050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051   (exit $ac_status); }; } &&
32052          { ac_try='test -s conftest.$ac_objext'
32053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32054   (eval $ac_try) 2>&5
32055   ac_status=$?
32056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057   (exit $ac_status); }; }; then
32058   ac_header_compiler=yes
32059 else
32060   echo "$as_me: failed program was:" >&5
32061 sed 's/^/| /' conftest.$ac_ext >&5
32062
32063 ac_header_compiler=no
32064 fi
32065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32067 echo "${ECHO_T}$ac_header_compiler" >&6
32068
32069 # Is the header present?
32070 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32072 cat >conftest.$ac_ext <<_ACEOF
32073 /* confdefs.h.  */
32074 _ACEOF
32075 cat confdefs.h >>conftest.$ac_ext
32076 cat >>conftest.$ac_ext <<_ACEOF
32077 /* end confdefs.h.  */
32078 #include <$ac_header>
32079 _ACEOF
32080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32081   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32082   ac_status=$?
32083   grep -v '^ *+' conftest.er1 >conftest.err
32084   rm -f conftest.er1
32085   cat conftest.err >&5
32086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087   (exit $ac_status); } >/dev/null; then
32088   if test -s conftest.err; then
32089     ac_cpp_err=$ac_c_preproc_warn_flag
32090     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32091   else
32092     ac_cpp_err=
32093   fi
32094 else
32095   ac_cpp_err=yes
32096 fi
32097 if test -z "$ac_cpp_err"; then
32098   ac_header_preproc=yes
32099 else
32100   echo "$as_me: failed program was:" >&5
32101 sed 's/^/| /' conftest.$ac_ext >&5
32102
32103   ac_header_preproc=no
32104 fi
32105 rm -f conftest.err conftest.$ac_ext
32106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32107 echo "${ECHO_T}$ac_header_preproc" >&6
32108
32109 # So?  What about this header?
32110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32111   yes:no: )
32112     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32116     ac_header_preproc=yes
32117     ;;
32118   no:yes:* )
32119     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32121     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32122 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32123     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32125     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32126 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32129     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32131     (
32132       cat <<\_ASBOX
32133 ## ------------------------------------------ ##
32134 ## Report this to the AC_PACKAGE_NAME lists.  ##
32135 ## ------------------------------------------ ##
32136 _ASBOX
32137     ) |
32138       sed "s/^/$as_me: WARNING:     /" >&2
32139     ;;
32140 esac
32141 echo "$as_me:$LINENO: checking for $ac_header" >&5
32142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32144   echo $ECHO_N "(cached) $ECHO_C" >&6
32145 else
32146   eval "$as_ac_Header=\$ac_header_preproc"
32147 fi
32148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32150
32151 fi
32152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32153   cat >>confdefs.h <<_ACEOF
32154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32155 _ACEOF
32156
32157 fi
32158
32159 done
32160
32161 echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
32162 echo $ECHO_N "checking whether wait uses union wait... $ECHO_C" >&6
32163 if test "${cf_cv_arg_union_wait+set}" = set; then
32164   echo $ECHO_N "(cached) $ECHO_C" >&6
32165 else
32166   cat >conftest.$ac_ext <<_ACEOF
32167 /* confdefs.h.  */
32168 _ACEOF
32169 cat confdefs.h >>conftest.$ac_ext
32170 cat >>conftest.$ac_ext <<_ACEOF
32171 /* end confdefs.h.  */
32172
32173 #include <sys/types.h>
32174
32175 #if HAVE_SYS_WAIT_H
32176 # include <sys/wait.h>
32177 #else
32178 # if HAVE_WAIT_H
32179 #  include <wait.h>
32180 # endif
32181 #endif
32182
32183 #ifdef __STDC__
32184 pid_t wait(union wait *);
32185 #endif
32186
32187 int
32188 main ()
32189 {
32190
32191   union wait x; int i;
32192   wait(&x); i = WIFEXITED(x)
32193
32194   ;
32195   return 0;
32196 }
32197 _ACEOF
32198 rm -f conftest.$ac_objext
32199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32200   (eval $ac_compile) 2>conftest.er1
32201   ac_status=$?
32202   grep -v '^ *+' conftest.er1 >conftest.err
32203   rm -f conftest.er1
32204   cat conftest.err >&5
32205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206   (exit $ac_status); } &&
32207          { ac_try='test -z "$ac_c_werror_flag"
32208                          || test ! -s conftest.err'
32209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32210   (eval $ac_try) 2>&5
32211   ac_status=$?
32212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213   (exit $ac_status); }; } &&
32214          { ac_try='test -s conftest.$ac_objext'
32215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32216   (eval $ac_try) 2>&5
32217   ac_status=$?
32218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219   (exit $ac_status); }; }; then
32220   cf_cv_arg_union_wait=yes
32221 else
32222   echo "$as_me: failed program was:" >&5
32223 sed 's/^/| /' conftest.$ac_ext >&5
32224
32225 cf_cv_arg_union_wait=no
32226 fi
32227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32228 fi
32229 echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
32230 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6
32231 if test $cf_cv_arg_union_wait = yes; then
32232
32233 cat >>confdefs.h <<\_ACEOF
32234 #define WAIT_USES_UNION 1
32235 _ACEOF
32236
32237 fi
32238
32239
32240
32241
32242
32243 for ac_header in sys/wait.h wait.h
32244 do
32245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32247   echo "$as_me:$LINENO: checking for $ac_header" >&5
32248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32250   echo $ECHO_N "(cached) $ECHO_C" >&6
32251 fi
32252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32254 else
32255   # Is the header compilable?
32256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32258 cat >conftest.$ac_ext <<_ACEOF
32259 /* confdefs.h.  */
32260 _ACEOF
32261 cat confdefs.h >>conftest.$ac_ext
32262 cat >>conftest.$ac_ext <<_ACEOF
32263 /* end confdefs.h.  */
32264 $ac_includes_default
32265 #include <$ac_header>
32266 _ACEOF
32267 rm -f conftest.$ac_objext
32268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32269   (eval $ac_compile) 2>conftest.er1
32270   ac_status=$?
32271   grep -v '^ *+' conftest.er1 >conftest.err
32272   rm -f conftest.er1
32273   cat conftest.err >&5
32274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275   (exit $ac_status); } &&
32276          { ac_try='test -z "$ac_c_werror_flag"
32277                          || test ! -s conftest.err'
32278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32279   (eval $ac_try) 2>&5
32280   ac_status=$?
32281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282   (exit $ac_status); }; } &&
32283          { ac_try='test -s conftest.$ac_objext'
32284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32285   (eval $ac_try) 2>&5
32286   ac_status=$?
32287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288   (exit $ac_status); }; }; then
32289   ac_header_compiler=yes
32290 else
32291   echo "$as_me: failed program was:" >&5
32292 sed 's/^/| /' conftest.$ac_ext >&5
32293
32294 ac_header_compiler=no
32295 fi
32296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32298 echo "${ECHO_T}$ac_header_compiler" >&6
32299
32300 # Is the header present?
32301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32303 cat >conftest.$ac_ext <<_ACEOF
32304 /* confdefs.h.  */
32305 _ACEOF
32306 cat confdefs.h >>conftest.$ac_ext
32307 cat >>conftest.$ac_ext <<_ACEOF
32308 /* end confdefs.h.  */
32309 #include <$ac_header>
32310 _ACEOF
32311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32313   ac_status=$?
32314   grep -v '^ *+' conftest.er1 >conftest.err
32315   rm -f conftest.er1
32316   cat conftest.err >&5
32317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318   (exit $ac_status); } >/dev/null; then
32319   if test -s conftest.err; then
32320     ac_cpp_err=$ac_c_preproc_warn_flag
32321     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32322   else
32323     ac_cpp_err=
32324   fi
32325 else
32326   ac_cpp_err=yes
32327 fi
32328 if test -z "$ac_cpp_err"; then
32329   ac_header_preproc=yes
32330 else
32331   echo "$as_me: failed program was:" >&5
32332 sed 's/^/| /' conftest.$ac_ext >&5
32333
32334   ac_header_preproc=no
32335 fi
32336 rm -f conftest.err conftest.$ac_ext
32337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32338 echo "${ECHO_T}$ac_header_preproc" >&6
32339
32340 # So?  What about this header?
32341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32342   yes:no: )
32343     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32347     ac_header_preproc=yes
32348     ;;
32349   no:yes:* )
32350     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32352     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32353 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32354     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32356     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32357 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32360     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32362     (
32363       cat <<\_ASBOX
32364 ## ------------------------------------------ ##
32365 ## Report this to the AC_PACKAGE_NAME lists.  ##
32366 ## ------------------------------------------ ##
32367 _ASBOX
32368     ) |
32369       sed "s/^/$as_me: WARNING:     /" >&2
32370     ;;
32371 esac
32372 echo "$as_me:$LINENO: checking for $ac_header" >&5
32373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32375   echo $ECHO_N "(cached) $ECHO_C" >&6
32376 else
32377   eval "$as_ac_Header=\$ac_header_preproc"
32378 fi
32379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32381
32382 fi
32383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32384   cat >>confdefs.h <<_ACEOF
32385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32386 _ACEOF
32387
32388 fi
32389
32390 done
32391
32392 echo "$as_me:$LINENO: checking whether wait uses int" >&5
32393 echo $ECHO_N "checking whether wait uses int... $ECHO_C" >&6
32394 if test "${cf_cv_arg_int+set}" = set; then
32395   echo $ECHO_N "(cached) $ECHO_C" >&6
32396 else
32397   cat >conftest.$ac_ext <<_ACEOF
32398 /* confdefs.h.  */
32399 _ACEOF
32400 cat confdefs.h >>conftest.$ac_ext
32401 cat >>conftest.$ac_ext <<_ACEOF
32402 /* end confdefs.h.  */
32403
32404 #include <sys/types.h>
32405
32406 #if HAVE_SYS_WAIT_H
32407 # include <sys/wait.h>
32408 #else
32409 # if HAVE_WAIT_H
32410 #  include <wait.h>
32411 # endif
32412 #endif
32413
32414 #ifdef __STDC__
32415 pid_t wait(int *);
32416 #endif
32417
32418 int
32419 main ()
32420 {
32421
32422   int x; int i;
32423   wait(&x); i = WIFEXITED(x)
32424
32425   ;
32426   return 0;
32427 }
32428 _ACEOF
32429 rm -f conftest.$ac_objext
32430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32431   (eval $ac_compile) 2>conftest.er1
32432   ac_status=$?
32433   grep -v '^ *+' conftest.er1 >conftest.err
32434   rm -f conftest.er1
32435   cat conftest.err >&5
32436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32437   (exit $ac_status); } &&
32438          { ac_try='test -z "$ac_c_werror_flag"
32439                          || test ! -s conftest.err'
32440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32441   (eval $ac_try) 2>&5
32442   ac_status=$?
32443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444   (exit $ac_status); }; } &&
32445          { ac_try='test -s conftest.$ac_objext'
32446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32447   (eval $ac_try) 2>&5
32448   ac_status=$?
32449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450   (exit $ac_status); }; }; then
32451   cf_cv_arg_int=yes
32452 else
32453   echo "$as_me: failed program was:" >&5
32454 sed 's/^/| /' conftest.$ac_ext >&5
32455
32456 cf_cv_arg_int=no
32457 fi
32458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32459 fi
32460 echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
32461 echo "${ECHO_T}$cf_cv_arg_int" >&6
32462 if test $cf_cv_arg_int = yes; then
32463
32464 cat >>confdefs.h <<\_ACEOF
32465 #define WAIT_USES_INT 1
32466 _ACEOF
32467
32468 fi
32469
32470 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32471 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
32472 if test "${ac_cv_header_time+set}" = set; then
32473   echo $ECHO_N "(cached) $ECHO_C" >&6
32474 else
32475   cat >conftest.$ac_ext <<_ACEOF
32476 /* confdefs.h.  */
32477 _ACEOF
32478 cat confdefs.h >>conftest.$ac_ext
32479 cat >>conftest.$ac_ext <<_ACEOF
32480 /* end confdefs.h.  */
32481 #include <sys/types.h>
32482 #include <sys/time.h>
32483 #include <time.h>
32484
32485 int
32486 main ()
32487 {
32488 if ((struct tm *) 0)
32489 return 0;
32490   ;
32491   return 0;
32492 }
32493 _ACEOF
32494 rm -f conftest.$ac_objext
32495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32496   (eval $ac_compile) 2>conftest.er1
32497   ac_status=$?
32498   grep -v '^ *+' conftest.er1 >conftest.err
32499   rm -f conftest.er1
32500   cat conftest.err >&5
32501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502   (exit $ac_status); } &&
32503          { ac_try='test -z "$ac_c_werror_flag"
32504                          || test ! -s conftest.err'
32505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32506   (eval $ac_try) 2>&5
32507   ac_status=$?
32508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509   (exit $ac_status); }; } &&
32510          { ac_try='test -s conftest.$ac_objext'
32511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32512   (eval $ac_try) 2>&5
32513   ac_status=$?
32514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515   (exit $ac_status); }; }; then
32516   ac_cv_header_time=yes
32517 else
32518   echo "$as_me: failed program was:" >&5
32519 sed 's/^/| /' conftest.$ac_ext >&5
32520
32521 ac_cv_header_time=no
32522 fi
32523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32524 fi
32525 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32526 echo "${ECHO_T}$ac_cv_header_time" >&6
32527 if test $ac_cv_header_time = yes; then
32528
32529 cat >>confdefs.h <<\_ACEOF
32530 #define TIME_WITH_SYS_TIME 1
32531 _ACEOF
32532
32533 fi
32534
32535
32536
32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
32554
32555
32556
32557
32558
32559
32560
32561
32562
32563
32564
32565
32566
32567
32568
32569
32570
32571
32572
32573
32574
32575
32576
32577
32578
32579
32580
32581
32582
32583
32584
32585
32586
32587
32588
32589
32590
32591
32592
32593
32594
32595
32596 for ac_header in \
32597         arpa/inet.h \
32598         camlib.h \
32599         cam/cam.h \
32600         cam/scsi/scsi_message.h \
32601         chio.h \
32602         db.h \
32603         dbm.h \
32604         fcntl.h \
32605         fnmatch.h \
32606         fstab.h \
32607         grp.h \
32608         history.h \
32609         libc.h \
32610         libgen.h \
32611         limits.h \
32612         linux/zftape.h \
32613         math.h \
32614         mntent.h \
32615         mnttab.h \
32616         ndbm.h \
32617         netdb.h \
32618         netinet/in_systm.h \
32619         readline.h \
32620         readline/history.h \
32621         readline/readline.h \
32622         scsi/sg.h \
32623         scsi/scsi_ioctl.h \
32624         stdarg.h \
32625         stdlib.h \
32626         string.h \
32627         strings.h \
32628         sys/chio.h \
32629         sys/dsreq.h \
32630         sys/fcntl.h \
32631         sys/file.h \
32632         sys/ioctl.h \
32633         sys/ipc.h \
32634         sys/mman.h \
32635         sys/mntent.h \
32636         sys/mtio.h \
32637         sys/param.h \
32638         sys/scarray.h \
32639         sys/gscdds.h \
32640         sys/scsiio.h \
32641         sys/scsi.h \
32642         sys/scsi/impl/uscsi.h \
32643         sys/scsi/scsi/ioctl.h \
32644         sys/select.h \
32645         sys/shm.h \
32646         sys/stat.h \
32647         sys/statfs.h \
32648         sys/statvfs.h \
32649         sys/tape.h \
32650         sys/time.h \
32651         sys/types.h \
32652         sys/uio.h \
32653         sys/vfs.h \
32654         sys/vfstab.h \
32655         syslog.h \
32656         unistd.h \
32657         vtblc.h \
32658
32659 do
32660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32662   echo "$as_me:$LINENO: checking for $ac_header" >&5
32663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32665   echo $ECHO_N "(cached) $ECHO_C" >&6
32666 fi
32667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32669 else
32670   # Is the header compilable?
32671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32673 cat >conftest.$ac_ext <<_ACEOF
32674 /* confdefs.h.  */
32675 _ACEOF
32676 cat confdefs.h >>conftest.$ac_ext
32677 cat >>conftest.$ac_ext <<_ACEOF
32678 /* end confdefs.h.  */
32679 $ac_includes_default
32680 #include <$ac_header>
32681 _ACEOF
32682 rm -f conftest.$ac_objext
32683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32684   (eval $ac_compile) 2>conftest.er1
32685   ac_status=$?
32686   grep -v '^ *+' conftest.er1 >conftest.err
32687   rm -f conftest.er1
32688   cat conftest.err >&5
32689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690   (exit $ac_status); } &&
32691          { ac_try='test -z "$ac_c_werror_flag"
32692                          || test ! -s conftest.err'
32693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32694   (eval $ac_try) 2>&5
32695   ac_status=$?
32696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697   (exit $ac_status); }; } &&
32698          { ac_try='test -s conftest.$ac_objext'
32699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32700   (eval $ac_try) 2>&5
32701   ac_status=$?
32702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703   (exit $ac_status); }; }; then
32704   ac_header_compiler=yes
32705 else
32706   echo "$as_me: failed program was:" >&5
32707 sed 's/^/| /' conftest.$ac_ext >&5
32708
32709 ac_header_compiler=no
32710 fi
32711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32713 echo "${ECHO_T}$ac_header_compiler" >&6
32714
32715 # Is the header present?
32716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32718 cat >conftest.$ac_ext <<_ACEOF
32719 /* confdefs.h.  */
32720 _ACEOF
32721 cat confdefs.h >>conftest.$ac_ext
32722 cat >>conftest.$ac_ext <<_ACEOF
32723 /* end confdefs.h.  */
32724 #include <$ac_header>
32725 _ACEOF
32726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32727   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32728   ac_status=$?
32729   grep -v '^ *+' conftest.er1 >conftest.err
32730   rm -f conftest.er1
32731   cat conftest.err >&5
32732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733   (exit $ac_status); } >/dev/null; then
32734   if test -s conftest.err; then
32735     ac_cpp_err=$ac_c_preproc_warn_flag
32736     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32737   else
32738     ac_cpp_err=
32739   fi
32740 else
32741   ac_cpp_err=yes
32742 fi
32743 if test -z "$ac_cpp_err"; then
32744   ac_header_preproc=yes
32745 else
32746   echo "$as_me: failed program was:" >&5
32747 sed 's/^/| /' conftest.$ac_ext >&5
32748
32749   ac_header_preproc=no
32750 fi
32751 rm -f conftest.err conftest.$ac_ext
32752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32753 echo "${ECHO_T}$ac_header_preproc" >&6
32754
32755 # So?  What about this header?
32756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32757   yes:no: )
32758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32762     ac_header_preproc=yes
32763     ;;
32764   no:yes:* )
32765     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32767     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32768 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32769     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32771     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32772 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32775     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32777     (
32778       cat <<\_ASBOX
32779 ## ------------------------------------------ ##
32780 ## Report this to the AC_PACKAGE_NAME lists.  ##
32781 ## ------------------------------------------ ##
32782 _ASBOX
32783     ) |
32784       sed "s/^/$as_me: WARNING:     /" >&2
32785     ;;
32786 esac
32787 echo "$as_me:$LINENO: checking for $ac_header" >&5
32788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32790   echo $ECHO_N "(cached) $ECHO_C" >&6
32791 else
32792   eval "$as_ac_Header=\$ac_header_preproc"
32793 fi
32794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32796
32797 fi
32798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32799   cat >>confdefs.h <<_ACEOF
32800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32801 _ACEOF
32802
32803 fi
32804
32805 done
32806
32807
32808
32809 for ac_header in netinet/ip.h
32810 do
32811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32812 echo "$as_me:$LINENO: checking for $ac_header" >&5
32813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32815   echo $ECHO_N "(cached) $ECHO_C" >&6
32816 else
32817   cat >conftest.$ac_ext <<_ACEOF
32818 /* confdefs.h.  */
32819 _ACEOF
32820 cat confdefs.h >>conftest.$ac_ext
32821 cat >>conftest.$ac_ext <<_ACEOF
32822 /* end confdefs.h.  */
32823 #include <sys/socket.h>
32824 #if HAVE_SYS_TYPES_H
32825 #include <sys/types.h>
32826 #endif
32827 #ifdef HAVE_NETINET_IN_SYSTM_H
32828 #include <netinet/in_systm.h>
32829 #endif
32830 #include <netinet/in.h>
32831
32832
32833 #include <$ac_header>
32834 _ACEOF
32835 rm -f conftest.$ac_objext
32836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32837   (eval $ac_compile) 2>conftest.er1
32838   ac_status=$?
32839   grep -v '^ *+' conftest.er1 >conftest.err
32840   rm -f conftest.er1
32841   cat conftest.err >&5
32842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843   (exit $ac_status); } &&
32844          { ac_try='test -z "$ac_c_werror_flag"
32845                          || test ! -s conftest.err'
32846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32847   (eval $ac_try) 2>&5
32848   ac_status=$?
32849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850   (exit $ac_status); }; } &&
32851          { ac_try='test -s conftest.$ac_objext'
32852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32853   (eval $ac_try) 2>&5
32854   ac_status=$?
32855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856   (exit $ac_status); }; }; then
32857   eval "$as_ac_Header=yes"
32858 else
32859   echo "$as_me: failed program was:" >&5
32860 sed 's/^/| /' conftest.$ac_ext >&5
32861
32862 eval "$as_ac_Header=no"
32863 fi
32864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32865 fi
32866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32869   cat >>confdefs.h <<_ACEOF
32870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32871 _ACEOF
32872
32873 fi
32874
32875 done
32876
32877
32878
32879 for ac_header in sys/mount.h
32880 do
32881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32882 echo "$as_me:$LINENO: checking for $ac_header" >&5
32883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32885   echo $ECHO_N "(cached) $ECHO_C" >&6
32886 else
32887   cat >conftest.$ac_ext <<_ACEOF
32888 /* confdefs.h.  */
32889 _ACEOF
32890 cat confdefs.h >>conftest.$ac_ext
32891 cat >>conftest.$ac_ext <<_ACEOF
32892 /* end confdefs.h.  */
32893 #ifdef HAVE_SYS_PARAM_H
32894 #include <sys/param.h>
32895 #endif
32896
32897
32898 #include <$ac_header>
32899 _ACEOF
32900 rm -f conftest.$ac_objext
32901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32902   (eval $ac_compile) 2>conftest.er1
32903   ac_status=$?
32904   grep -v '^ *+' conftest.er1 >conftest.err
32905   rm -f conftest.er1
32906   cat conftest.err >&5
32907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908   (exit $ac_status); } &&
32909          { ac_try='test -z "$ac_c_werror_flag"
32910                          || test ! -s conftest.err'
32911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32912   (eval $ac_try) 2>&5
32913   ac_status=$?
32914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915   (exit $ac_status); }; } &&
32916          { ac_try='test -s conftest.$ac_objext'
32917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32918   (eval $ac_try) 2>&5
32919   ac_status=$?
32920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921   (exit $ac_status); }; }; then
32922   eval "$as_ac_Header=yes"
32923 else
32924   echo "$as_me: failed program was:" >&5
32925 sed 's/^/| /' conftest.$ac_ext >&5
32926
32927 eval "$as_ac_Header=no"
32928 fi
32929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32930 fi
32931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32934   cat >>confdefs.h <<_ACEOF
32935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32936 _ACEOF
32937
32938 fi
32939
32940 done
32941
32942
32943 NO_SCSI_CHANGER_MODE=true
32944 NO_CHIO_CHANGER_MODE=true
32945
32946 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
32947 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
32948 if test "${ac_cv_c_bigendian+set}" = set; then
32949   echo $ECHO_N "(cached) $ECHO_C" >&6
32950 else
32951   # See if sys/param.h defines the BYTE_ORDER macro.
32952 cat >conftest.$ac_ext <<_ACEOF
32953 /* confdefs.h.  */
32954 _ACEOF
32955 cat confdefs.h >>conftest.$ac_ext
32956 cat >>conftest.$ac_ext <<_ACEOF
32957 /* end confdefs.h.  */
32958 #include <sys/types.h>
32959 #include <sys/param.h>
32960
32961 int
32962 main ()
32963 {
32964 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
32965  bogus endian macros
32966 #endif
32967
32968   ;
32969   return 0;
32970 }
32971 _ACEOF
32972 rm -f conftest.$ac_objext
32973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32974   (eval $ac_compile) 2>conftest.er1
32975   ac_status=$?
32976   grep -v '^ *+' conftest.er1 >conftest.err
32977   rm -f conftest.er1
32978   cat conftest.err >&5
32979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980   (exit $ac_status); } &&
32981          { ac_try='test -z "$ac_c_werror_flag"
32982                          || test ! -s conftest.err'
32983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32984   (eval $ac_try) 2>&5
32985   ac_status=$?
32986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32987   (exit $ac_status); }; } &&
32988          { ac_try='test -s conftest.$ac_objext'
32989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32990   (eval $ac_try) 2>&5
32991   ac_status=$?
32992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32993   (exit $ac_status); }; }; then
32994   # It does; now see whether it defined to BIG_ENDIAN or not.
32995 cat >conftest.$ac_ext <<_ACEOF
32996 /* confdefs.h.  */
32997 _ACEOF
32998 cat confdefs.h >>conftest.$ac_ext
32999 cat >>conftest.$ac_ext <<_ACEOF
33000 /* end confdefs.h.  */
33001 #include <sys/types.h>
33002 #include <sys/param.h>
33003
33004 int
33005 main ()
33006 {
33007 #if BYTE_ORDER != BIG_ENDIAN
33008  not big endian
33009 #endif
33010
33011   ;
33012   return 0;
33013 }
33014 _ACEOF
33015 rm -f conftest.$ac_objext
33016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33017   (eval $ac_compile) 2>conftest.er1
33018   ac_status=$?
33019   grep -v '^ *+' conftest.er1 >conftest.err
33020   rm -f conftest.er1
33021   cat conftest.err >&5
33022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33023   (exit $ac_status); } &&
33024          { ac_try='test -z "$ac_c_werror_flag"
33025                          || test ! -s conftest.err'
33026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33027   (eval $ac_try) 2>&5
33028   ac_status=$?
33029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030   (exit $ac_status); }; } &&
33031          { ac_try='test -s conftest.$ac_objext'
33032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33033   (eval $ac_try) 2>&5
33034   ac_status=$?
33035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036   (exit $ac_status); }; }; then
33037   ac_cv_c_bigendian=yes
33038 else
33039   echo "$as_me: failed program was:" >&5
33040 sed 's/^/| /' conftest.$ac_ext >&5
33041
33042 ac_cv_c_bigendian=no
33043 fi
33044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33045 else
33046   echo "$as_me: failed program was:" >&5
33047 sed 's/^/| /' conftest.$ac_ext >&5
33048
33049 # It does not; compile a test program.
33050 if test "$cross_compiling" = yes; then
33051   # try to guess the endianness by grepping values into an object file
33052   ac_cv_c_bigendian=unknown
33053   cat >conftest.$ac_ext <<_ACEOF
33054 /* confdefs.h.  */
33055 _ACEOF
33056 cat confdefs.h >>conftest.$ac_ext
33057 cat >>conftest.$ac_ext <<_ACEOF
33058 /* end confdefs.h.  */
33059 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33060 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33061 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33062 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33063 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33064 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33065 int
33066 main ()
33067 {
33068  _ascii (); _ebcdic ();
33069   ;
33070   return 0;
33071 }
33072 _ACEOF
33073 rm -f conftest.$ac_objext
33074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33075   (eval $ac_compile) 2>conftest.er1
33076   ac_status=$?
33077   grep -v '^ *+' conftest.er1 >conftest.err
33078   rm -f conftest.er1
33079   cat conftest.err >&5
33080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081   (exit $ac_status); } &&
33082          { ac_try='test -z "$ac_c_werror_flag"
33083                          || test ! -s conftest.err'
33084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33085   (eval $ac_try) 2>&5
33086   ac_status=$?
33087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088   (exit $ac_status); }; } &&
33089          { ac_try='test -s conftest.$ac_objext'
33090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33091   (eval $ac_try) 2>&5
33092   ac_status=$?
33093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094   (exit $ac_status); }; }; then
33095   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33096   ac_cv_c_bigendian=yes
33097 fi
33098 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33099   if test "$ac_cv_c_bigendian" = unknown; then
33100     ac_cv_c_bigendian=no
33101   else
33102     # finding both strings is unlikely to happen, but who knows?
33103     ac_cv_c_bigendian=unknown
33104   fi
33105 fi
33106 else
33107   echo "$as_me: failed program was:" >&5
33108 sed 's/^/| /' conftest.$ac_ext >&5
33109
33110 fi
33111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33112 else
33113   cat >conftest.$ac_ext <<_ACEOF
33114 /* confdefs.h.  */
33115 _ACEOF
33116 cat confdefs.h >>conftest.$ac_ext
33117 cat >>conftest.$ac_ext <<_ACEOF
33118 /* end confdefs.h.  */
33119 int
33120 main ()
33121 {
33122   /* Are we little or big endian?  From Harbison&Steele.  */
33123   union
33124   {
33125     long l;
33126     char c[sizeof (long)];
33127   } u;
33128   u.l = 1;
33129   exit (u.c[sizeof (long) - 1] == 1);
33130 }
33131 _ACEOF
33132 rm -f conftest$ac_exeext
33133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33134   (eval $ac_link) 2>&5
33135   ac_status=$?
33136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33139   (eval $ac_try) 2>&5
33140   ac_status=$?
33141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142   (exit $ac_status); }; }; then
33143   ac_cv_c_bigendian=no
33144 else
33145   echo "$as_me: program exited with status $ac_status" >&5
33146 echo "$as_me: failed program was:" >&5
33147 sed 's/^/| /' conftest.$ac_ext >&5
33148
33149 ( exit $ac_status )
33150 ac_cv_c_bigendian=yes
33151 fi
33152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33153 fi
33154 fi
33155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33156 fi
33157 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33158 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
33159 case $ac_cv_c_bigendian in
33160   yes)
33161
33162 cat >>confdefs.h <<\_ACEOF
33163 #define WORDS_BIGENDIAN 1
33164 _ACEOF
33165  ;;
33166   no)
33167      ;;
33168   *)
33169     { { echo "$as_me:$LINENO: error: unknown endianness
33170 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33171 echo "$as_me: error: unknown endianness
33172 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33173    { (exit 1); exit 1; }; } ;;
33174 esac
33175
33176
33177 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
33178     echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
33179 echo $ECHO_N "checking for HP/UX-like scsi changer support... $ECHO_C" >&6
33180 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
33181   echo $ECHO_N "(cached) $ECHO_C" >&6
33182 else
33183   cat >conftest.$ac_ext <<_ACEOF
33184 /* confdefs.h.  */
33185 _ACEOF
33186 cat confdefs.h >>conftest.$ac_ext
33187 cat >>conftest.$ac_ext <<_ACEOF
33188 /* end confdefs.h.  */
33189
33190 #include <sys/scsi.h>
33191
33192 int
33193 main ()
33194 {
33195
33196         static struct element_addresses changer_info;
33197         int i = SIOC_ELEMENT_ADDRESSES;
33198         int j = SIOC_ELEMENT_STATUS;
33199         int k = SIOC_MOVE_MEDIUM;
33200
33201   ;
33202   return 0;
33203 }
33204 _ACEOF
33205 rm -f conftest.$ac_objext
33206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33207   (eval $ac_compile) 2>conftest.er1
33208   ac_status=$?
33209   grep -v '^ *+' conftest.er1 >conftest.err
33210   rm -f conftest.er1
33211   cat conftest.err >&5
33212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213   (exit $ac_status); } &&
33214          { ac_try='test -z "$ac_c_werror_flag"
33215                          || test ! -s conftest.err'
33216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33217   (eval $ac_try) 2>&5
33218   ac_status=$?
33219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33220   (exit $ac_status); }; } &&
33221          { ac_try='test -s conftest.$ac_objext'
33222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33223   (eval $ac_try) 2>&5
33224   ac_status=$?
33225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226   (exit $ac_status); }; }; then
33227   amanda_cv_hpux_scsi_chio=yes
33228 else
33229   echo "$as_me: failed program was:" >&5
33230 sed 's/^/| /' conftest.$ac_ext >&5
33231
33232 amanda_cv_hpux_scsi_chio=no
33233 fi
33234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33235 fi
33236 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
33237 echo "${ECHO_T}$amanda_cv_hpux_scsi_chio" >&6
33238     if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
33239
33240 cat >>confdefs.h <<\_ACEOF
33241 #define HAVE_HPUX_SCSI_CHIO 1
33242 _ACEOF
33243
33244         NO_SCSI_CHANGER_MODE=false
33245     fi
33246 fi
33247
33248 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33249    test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
33250         echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
33251 echo $ECHO_N "checking for Linux like scsi support (ioctl)... $ECHO_C" >&6
33252 if test "${amanda_cv_linux_scsi+set}" = set; then
33253   echo $ECHO_N "(cached) $ECHO_C" >&6
33254 else
33255   cat >conftest.$ac_ext <<_ACEOF
33256 /* confdefs.h.  */
33257 _ACEOF
33258 cat confdefs.h >>conftest.$ac_ext
33259 cat >>conftest.$ac_ext <<_ACEOF
33260 /* end confdefs.h.  */
33261
33262 #include <scsi/scsi_ioctl.h>
33263 #include <sys/mtio.h>
33264
33265 int
33266 main ()
33267 {
33268
33269         int device;
33270         char *Command;
33271         ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
33272
33273   ;
33274   return 0;
33275 }
33276 _ACEOF
33277 rm -f conftest.$ac_objext
33278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33279   (eval $ac_compile) 2>conftest.er1
33280   ac_status=$?
33281   grep -v '^ *+' conftest.er1 >conftest.err
33282   rm -f conftest.er1
33283   cat conftest.err >&5
33284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33285   (exit $ac_status); } &&
33286          { ac_try='test -z "$ac_c_werror_flag"
33287                          || test ! -s conftest.err'
33288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33289   (eval $ac_try) 2>&5
33290   ac_status=$?
33291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292   (exit $ac_status); }; } &&
33293          { ac_try='test -s conftest.$ac_objext'
33294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33295   (eval $ac_try) 2>&5
33296   ac_status=$?
33297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298   (exit $ac_status); }; }; then
33299   amanda_cv_linux_scsi=yes
33300 else
33301   echo "$as_me: failed program was:" >&5
33302 sed 's/^/| /' conftest.$ac_ext >&5
33303
33304 amanda_cv_linux_scsi=no
33305 fi
33306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33307 fi
33308 echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
33309 echo "${ECHO_T}$amanda_cv_linux_scsi" >&6
33310 fi
33311
33312 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33313    test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
33314         echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
33315 echo $ECHO_N "checking for Linux like scsi support (sg)... $ECHO_C" >&6
33316 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
33317   echo $ECHO_N "(cached) $ECHO_C" >&6
33318 else
33319   cat >conftest.$ac_ext <<_ACEOF
33320 /* confdefs.h.  */
33321 _ACEOF
33322 cat confdefs.h >>conftest.$ac_ext
33323 cat >>conftest.$ac_ext <<_ACEOF
33324 /* end confdefs.h.  */
33325
33326 #include <sys/types.h>
33327 #include <scsi/sg.h>
33328 #include <sys/mtio.h>
33329
33330 int
33331 main ()
33332 {
33333
33334         int device;
33335         struct sg_header *psg_header;
33336         char *buffer;
33337         write(device, buffer, 1);
33338
33339   ;
33340   return 0;
33341 }
33342 _ACEOF
33343 rm -f conftest.$ac_objext
33344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33345   (eval $ac_compile) 2>conftest.er1
33346   ac_status=$?
33347   grep -v '^ *+' conftest.er1 >conftest.err
33348   rm -f conftest.er1
33349   cat conftest.err >&5
33350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351   (exit $ac_status); } &&
33352          { ac_try='test -z "$ac_c_werror_flag"
33353                          || test ! -s conftest.err'
33354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33355   (eval $ac_try) 2>&5
33356   ac_status=$?
33357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358   (exit $ac_status); }; } &&
33359          { ac_try='test -s conftest.$ac_objext'
33360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33361   (eval $ac_try) 2>&5
33362   ac_status=$?
33363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33364   (exit $ac_status); }; }; then
33365   amanda_cv_linux_sg_scsi=yes
33366 else
33367   echo "$as_me: failed program was:" >&5
33368 sed 's/^/| /' conftest.$ac_ext >&5
33369
33370 amanda_cv_linux_sg_scsi=no
33371 fi
33372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33373 fi
33374 echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
33375 echo "${ECHO_T}$amanda_cv_linux_sg_scsi" >&6
33376 fi
33377
33378 if test x"$amanda_cv_linux_scsi" = x"yes" ||
33379  test x"$amanda_cv_linux_sg_scsi" = x"yes";then
33380
33381 cat >>confdefs.h <<\_ACEOF
33382 #define HAVE_LINUX_LIKE_SCSI 1
33383 _ACEOF
33384
33385         NO_SCSI_CHANGER_MODE=false
33386 fi
33387
33388 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33389    test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
33390         echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
33391 echo $ECHO_N "checking for HP-UX like scsi support... $ECHO_C" >&6
33392 if test "${amanda_cv_hpux_scsi+set}" = set; then
33393   echo $ECHO_N "(cached) $ECHO_C" >&6
33394 else
33395   cat >conftest.$ac_ext <<_ACEOF
33396 /* confdefs.h.  */
33397 _ACEOF
33398 cat confdefs.h >>conftest.$ac_ext
33399 cat >>conftest.$ac_ext <<_ACEOF
33400 /* end confdefs.h.  */
33401
33402 #include <stdio.h>
33403 #include <sys/ioctl.h>
33404 #include <sys/scsi.h>
33405 #include <sys/mtio.h>
33406
33407 int
33408 main ()
33409 {
33410
33411         int device;
33412         char *Command;
33413         ioctl(device, SIOC_IO, Command);
33414
33415   ;
33416   return 0;
33417 }
33418 _ACEOF
33419 rm -f conftest.$ac_objext
33420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33421   (eval $ac_compile) 2>conftest.er1
33422   ac_status=$?
33423   grep -v '^ *+' conftest.er1 >conftest.err
33424   rm -f conftest.er1
33425   cat conftest.err >&5
33426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33427   (exit $ac_status); } &&
33428          { ac_try='test -z "$ac_c_werror_flag"
33429                          || test ! -s conftest.err'
33430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33431   (eval $ac_try) 2>&5
33432   ac_status=$?
33433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434   (exit $ac_status); }; } &&
33435          { ac_try='test -s conftest.$ac_objext'
33436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33437   (eval $ac_try) 2>&5
33438   ac_status=$?
33439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440   (exit $ac_status); }; }; then
33441   amanda_cv_hpux_scsi=yes
33442 else
33443   echo "$as_me: failed program was:" >&5
33444 sed 's/^/| /' conftest.$ac_ext >&5
33445
33446 amanda_cv_hpux_scsi=no
33447 fi
33448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33449 fi
33450 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
33451 echo "${ECHO_T}$amanda_cv_hpux_scsi" >&6
33452         if test x"$amanda_cv_hpux_scsi" = x"yes";then
33453
33454 cat >>confdefs.h <<\_ACEOF
33455 #define HAVE_HPUX_LIKE_SCSI 1
33456 _ACEOF
33457
33458                 NO_SCSI_CHANGER_MODE=false
33459                 NO_CHIO_CHANGER_MODE=false
33460         fi
33461 fi
33462
33463 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33464    test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
33465         echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
33466 echo $ECHO_N "checking for Irix like scsi support... $ECHO_C" >&6
33467 if test "${amanda_cv_irix_scsi+set}" = set; then
33468   echo $ECHO_N "(cached) $ECHO_C" >&6
33469 else
33470   cat >conftest.$ac_ext <<_ACEOF
33471 /* confdefs.h.  */
33472 _ACEOF
33473 cat confdefs.h >>conftest.$ac_ext
33474 cat >>conftest.$ac_ext <<_ACEOF
33475 /* end confdefs.h.  */
33476
33477 #include <sys/types.h>
33478 #include <sys/dsreq.h>
33479 #include <sys/mtio.h>
33480
33481 int
33482 main ()
33483 {
33484
33485         int device=1;
33486         char Command;
33487         ioctl(device, DS_ENTER, &Command);
33488
33489   ;
33490   return 0;
33491 }
33492 _ACEOF
33493 rm -f conftest.$ac_objext
33494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33495   (eval $ac_compile) 2>conftest.er1
33496   ac_status=$?
33497   grep -v '^ *+' conftest.er1 >conftest.err
33498   rm -f conftest.er1
33499   cat conftest.err >&5
33500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33501   (exit $ac_status); } &&
33502          { ac_try='test -z "$ac_c_werror_flag"
33503                          || test ! -s conftest.err'
33504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33505   (eval $ac_try) 2>&5
33506   ac_status=$?
33507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33508   (exit $ac_status); }; } &&
33509          { ac_try='test -s conftest.$ac_objext'
33510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33511   (eval $ac_try) 2>&5
33512   ac_status=$?
33513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514   (exit $ac_status); }; }; then
33515   amanda_cv_irix_scsi=yes
33516 else
33517   echo "$as_me: failed program was:" >&5
33518 sed 's/^/| /' conftest.$ac_ext >&5
33519
33520 amanda_cv_irix_scsi=no
33521 fi
33522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33523 fi
33524 echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
33525 echo "${ECHO_T}$amanda_cv_irix_scsi" >&6
33526         if test x"$amanda_cv_irix_scsi" = x"yes";then
33527
33528 cat >>confdefs.h <<\_ACEOF
33529 #define HAVE_IRIX_LIKE_SCSI 1
33530 _ACEOF
33531
33532                 NO_SCSI_CHANGER_MODE=false
33533         fi
33534 fi
33535
33536 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33537    test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
33538         echo "$as_me:$LINENO: checking for Solaris-like scsi support" >&5
33539 echo $ECHO_N "checking for Solaris-like scsi support... $ECHO_C" >&6
33540 if test "${amanda_cv_solaris_scsi+set}" = set; then
33541   echo $ECHO_N "(cached) $ECHO_C" >&6
33542 else
33543   cat >conftest.$ac_ext <<_ACEOF
33544 /* confdefs.h.  */
33545 _ACEOF
33546 cat confdefs.h >>conftest.$ac_ext
33547 cat >>conftest.$ac_ext <<_ACEOF
33548 /* end confdefs.h.  */
33549
33550 #include <sys/types.h>
33551 #include <sys/scsi/impl/uscsi.h>
33552 #include <sys/mtio.h>
33553
33554 int
33555 main ()
33556 {
33557
33558         int device;
33559         char *Command;
33560         ioctl(device, USCSICMD, Command);
33561
33562   ;
33563   return 0;
33564 }
33565 _ACEOF
33566 rm -f conftest.$ac_objext
33567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33568   (eval $ac_compile) 2>conftest.er1
33569   ac_status=$?
33570   grep -v '^ *+' conftest.er1 >conftest.err
33571   rm -f conftest.er1
33572   cat conftest.err >&5
33573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33574   (exit $ac_status); } &&
33575          { ac_try='test -z "$ac_c_werror_flag"
33576                          || test ! -s conftest.err'
33577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33578   (eval $ac_try) 2>&5
33579   ac_status=$?
33580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581   (exit $ac_status); }; } &&
33582          { ac_try='test -s conftest.$ac_objext'
33583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33584   (eval $ac_try) 2>&5
33585   ac_status=$?
33586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587   (exit $ac_status); }; }; then
33588   amanda_cv_solaris_scsi=yes
33589 else
33590   echo "$as_me: failed program was:" >&5
33591 sed 's/^/| /' conftest.$ac_ext >&5
33592
33593 amanda_cv_solaris_scsi=no
33594 fi
33595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33596 fi
33597 echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
33598 echo "${ECHO_T}$amanda_cv_solaris_scsi" >&6
33599         if test x"$amanda_cv_solaris_scsi" = x"yes";then
33600
33601 cat >>confdefs.h <<\_ACEOF
33602 #define HAVE_SOLARIS_LIKE_SCSI 1
33603 _ACEOF
33604
33605                 NO_SCSI_CHANGER_MODE=false
33606         fi
33607 fi
33608
33609 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
33610    test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
33611    test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
33612         echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
33613 echo $ECHO_N "checking for AIX like scsi support... $ECHO_C" >&6
33614 if test "${amanda_cv_aix_scsi+set}" = set; then
33615   echo $ECHO_N "(cached) $ECHO_C" >&6
33616 else
33617   cat >conftest.$ac_ext <<_ACEOF
33618 /* confdefs.h.  */
33619 _ACEOF
33620 cat confdefs.h >>conftest.$ac_ext
33621 cat >>conftest.$ac_ext <<_ACEOF
33622 /* end confdefs.h.  */
33623
33624 #include <sys/types.h>
33625 #include <sys/scarray.h>
33626 #include <sys/tape.h>
33627
33628 int
33629 main ()
33630 {
33631
33632         int device;
33633         char *Command;
33634         ioctl(device, STIOCMD, Command);
33635
33636   ;
33637   return 0;
33638 }
33639 _ACEOF
33640 rm -f conftest.$ac_objext
33641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33642   (eval $ac_compile) 2>conftest.er1
33643   ac_status=$?
33644   grep -v '^ *+' conftest.er1 >conftest.err
33645   rm -f conftest.er1
33646   cat conftest.err >&5
33647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648   (exit $ac_status); } &&
33649          { ac_try='test -z "$ac_c_werror_flag"
33650                          || test ! -s conftest.err'
33651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33652   (eval $ac_try) 2>&5
33653   ac_status=$?
33654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655   (exit $ac_status); }; } &&
33656          { ac_try='test -s conftest.$ac_objext'
33657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33658   (eval $ac_try) 2>&5
33659   ac_status=$?
33660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661   (exit $ac_status); }; }; then
33662   amanda_cv_aix_scsi=yes
33663 else
33664   echo "$as_me: failed program was:" >&5
33665 sed 's/^/| /' conftest.$ac_ext >&5
33666
33667 amanda_cv_aix_scsi=no
33668 fi
33669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33670 fi
33671 echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
33672 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6
33673         if test x"$amanda_cv_aix_scsi" = x"yes";then
33674
33675 cat >>confdefs.h <<\_ACEOF
33676 #define HAVE_AIX_LIKE_SCSI 1
33677 _ACEOF
33678
33679                 NO_SCSI_CHANGER_MODE=false
33680         fi
33681 fi
33682 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
33683         echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
33684 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6
33685 if test "${amanda_cv_cam_scsi+set}" = set; then
33686   echo $ECHO_N "(cached) $ECHO_C" >&6
33687 else
33688   cat >conftest.$ac_ext <<_ACEOF
33689 /* confdefs.h.  */
33690 _ACEOF
33691 cat confdefs.h >>conftest.$ac_ext
33692 cat >>conftest.$ac_ext <<_ACEOF
33693 /* end confdefs.h.  */
33694
33695 #include <stdio.h>
33696 # include <fcntl.h>
33697 # include <cam/cam.h>
33698 # include <cam/cam_ccb.h>
33699 # include <cam/scsi/scsi_message.h>
33700 # include <cam/scsi/scsi_pass.h>
33701 # include <camlib.h>
33702
33703 int
33704 main ()
33705 {
33706
33707         struct cam_device *curdev;
33708
33709         curdev = cam_open_pass("", O_RDWR, NULL);
33710
33711   ;
33712   return 0;
33713 }
33714 _ACEOF
33715 rm -f conftest.$ac_objext
33716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33717   (eval $ac_compile) 2>conftest.er1
33718   ac_status=$?
33719   grep -v '^ *+' conftest.er1 >conftest.err
33720   rm -f conftest.er1
33721   cat conftest.err >&5
33722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33723   (exit $ac_status); } &&
33724          { ac_try='test -z "$ac_c_werror_flag"
33725                          || test ! -s conftest.err'
33726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33727   (eval $ac_try) 2>&5
33728   ac_status=$?
33729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730   (exit $ac_status); }; } &&
33731          { ac_try='test -s conftest.$ac_objext'
33732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33733   (eval $ac_try) 2>&5
33734   ac_status=$?
33735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33736   (exit $ac_status); }; }; then
33737   amanda_cv_cam_scsi=yes
33738 else
33739   echo "$as_me: failed program was:" >&5
33740 sed 's/^/| /' conftest.$ac_ext >&5
33741
33742 amanda_cv_cam_scsi=no
33743 fi
33744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33745 fi
33746 echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
33747 echo "${ECHO_T}$amanda_cv_cam_scsi" >&6
33748         if test x"$amanda_cv_cam_scsi" = x"yes";then
33749
33750 cat >>confdefs.h <<\_ACEOF
33751 #define HAVE_CAM_LIKE_SCSI 1
33752 _ACEOF
33753
33754                 NO_SCSI_CHANGER_MODE=false
33755
33756 echo "$as_me:$LINENO: checking for main in -lcam" >&5
33757 echo $ECHO_N "checking for main in -lcam... $ECHO_C" >&6
33758 if test "${ac_cv_lib_cam_main+set}" = set; then
33759   echo $ECHO_N "(cached) $ECHO_C" >&6
33760 else
33761   ac_check_lib_save_LIBS=$LIBS
33762 LIBS="-lcam  $LIBS"
33763 cat >conftest.$ac_ext <<_ACEOF
33764 /* confdefs.h.  */
33765 _ACEOF
33766 cat confdefs.h >>conftest.$ac_ext
33767 cat >>conftest.$ac_ext <<_ACEOF
33768 /* end confdefs.h.  */
33769
33770
33771 int
33772 main ()
33773 {
33774 main ();
33775   ;
33776   return 0;
33777 }
33778 _ACEOF
33779 rm -f conftest.$ac_objext conftest$ac_exeext
33780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33781   (eval $ac_link) 2>conftest.er1
33782   ac_status=$?
33783   grep -v '^ *+' conftest.er1 >conftest.err
33784   rm -f conftest.er1
33785   cat conftest.err >&5
33786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33787   (exit $ac_status); } &&
33788          { ac_try='test -z "$ac_c_werror_flag"
33789                          || test ! -s conftest.err'
33790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33791   (eval $ac_try) 2>&5
33792   ac_status=$?
33793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794   (exit $ac_status); }; } &&
33795          { ac_try='test -s conftest$ac_exeext'
33796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33797   (eval $ac_try) 2>&5
33798   ac_status=$?
33799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800   (exit $ac_status); }; }; then
33801   ac_cv_lib_cam_main=yes
33802 else
33803   echo "$as_me: failed program was:" >&5
33804 sed 's/^/| /' conftest.$ac_ext >&5
33805
33806 ac_cv_lib_cam_main=no
33807 fi
33808 rm -f conftest.err conftest.$ac_objext \
33809       conftest$ac_exeext conftest.$ac_ext
33810 LIBS=$ac_check_lib_save_LIBS
33811 fi
33812 echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
33813 echo "${ECHO_T}$ac_cv_lib_cam_main" >&6
33814 if test $ac_cv_lib_cam_main = yes; then
33815   cat >>confdefs.h <<_ACEOF
33816 #define HAVE_LIBCAM 1
33817 _ACEOF
33818
33819   LIBS="-lcam $LIBS"
33820
33821 fi
33822
33823         fi
33824 fi
33825
33826
33827 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33828    test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
33829     echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
33830 echo $ECHO_N "checking for BSD like scsi support... $ECHO_C" >&6
33831 if test "${amanda_cv_bsd_scsi+set}" = set; then
33832   echo $ECHO_N "(cached) $ECHO_C" >&6
33833 else
33834   cat >conftest.$ac_ext <<_ACEOF
33835 /* confdefs.h.  */
33836 _ACEOF
33837 cat confdefs.h >>conftest.$ac_ext
33838 cat >>conftest.$ac_ext <<_ACEOF
33839 /* end confdefs.h.  */
33840
33841 #include <sys/types.h>
33842 #include <sys/scsiio.h>
33843 #include <sys/mtio.h>
33844
33845 int
33846 main ()
33847 {
33848
33849     int device=1;
33850     char Command;
33851     ioctl(device, SCIOCCOMMAND, &Command);
33852
33853   ;
33854   return 0;
33855 }
33856 _ACEOF
33857 rm -f conftest.$ac_objext
33858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33859   (eval $ac_compile) 2>conftest.er1
33860   ac_status=$?
33861   grep -v '^ *+' conftest.er1 >conftest.err
33862   rm -f conftest.er1
33863   cat conftest.err >&5
33864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865   (exit $ac_status); } &&
33866          { ac_try='test -z "$ac_c_werror_flag"
33867                          || test ! -s conftest.err'
33868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33869   (eval $ac_try) 2>&5
33870   ac_status=$?
33871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872   (exit $ac_status); }; } &&
33873          { ac_try='test -s conftest.$ac_objext'
33874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33875   (eval $ac_try) 2>&5
33876   ac_status=$?
33877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878   (exit $ac_status); }; }; then
33879   amanda_cv_bsd_scsi=yes
33880 else
33881   echo "$as_me: failed program was:" >&5
33882 sed 's/^/| /' conftest.$ac_ext >&5
33883
33884 amanda_cv_bsd_scsi=no
33885 fi
33886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33887 fi
33888 echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
33889 echo "${ECHO_T}$amanda_cv_bsd_scsi" >&6
33890     if test x"$amanda_cv_bsd_scsi" = x"yes";then
33891
33892 cat >>confdefs.h <<\_ACEOF
33893 #define HAVE_BSD_LIKE_SCSI 1
33894 _ACEOF
33895
33896        NO_SCSI_CHANGER_MODE=false
33897     fi
33898 fi
33899
33900 if test x"$ac_cv_header_chio_h" = x"yes" ||
33901    test x"$ac_cv_header_sys_chio_h" = x"yes"; then
33902          if test x"$ac_cv_header_camlib_h" != x"yes"; then
33903      if $NO_SCSI_CHANGER_MODE; then
33904        NO_SCSI_CHANGER_MODE=false
33905      else
33906        NO_CHIO_CHANGER_MODE=false
33907      fi
33908    fi
33909 fi
33910
33911
33912 echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
33913 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6
33914 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
33915   echo $ECHO_N "(cached) $ECHO_C" >&6
33916 else
33917   ac_check_lib_save_LIBS=$LIBS
33918 LIBS="-lcur_colr  $LIBS"
33919 cat >conftest.$ac_ext <<_ACEOF
33920 /* confdefs.h.  */
33921 _ACEOF
33922 cat confdefs.h >>conftest.$ac_ext
33923 cat >>conftest.$ac_ext <<_ACEOF
33924 /* end confdefs.h.  */
33925
33926
33927 int
33928 main ()
33929 {
33930 main ();
33931   ;
33932   return 0;
33933 }
33934 _ACEOF
33935 rm -f conftest.$ac_objext conftest$ac_exeext
33936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33937   (eval $ac_link) 2>conftest.er1
33938   ac_status=$?
33939   grep -v '^ *+' conftest.er1 >conftest.err
33940   rm -f conftest.er1
33941   cat conftest.err >&5
33942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943   (exit $ac_status); } &&
33944          { ac_try='test -z "$ac_c_werror_flag"
33945                          || test ! -s conftest.err'
33946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33947   (eval $ac_try) 2>&5
33948   ac_status=$?
33949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33950   (exit $ac_status); }; } &&
33951          { ac_try='test -s conftest$ac_exeext'
33952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33953   (eval $ac_try) 2>&5
33954   ac_status=$?
33955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33956   (exit $ac_status); }; }; then
33957   ac_cv_lib_cur_colr_main=yes
33958 else
33959   echo "$as_me: failed program was:" >&5
33960 sed 's/^/| /' conftest.$ac_ext >&5
33961
33962 ac_cv_lib_cur_colr_main=no
33963 fi
33964 rm -f conftest.err conftest.$ac_objext \
33965       conftest$ac_exeext conftest.$ac_ext
33966 LIBS=$ac_check_lib_save_LIBS
33967 fi
33968 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
33969 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6
33970 if test $ac_cv_lib_cur_colr_main = yes; then
33971   cat >>confdefs.h <<_ACEOF
33972 #define HAVE_LIBCUR_COLR 1
33973 _ACEOF
33974
33975   LIBS="-lcur_colr $LIBS"
33976
33977 fi
33978
33979
33980
33981 echo "$as_me:$LINENO: checking for main in -lintl" >&5
33982 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
33983 if test "${ac_cv_lib_intl_main+set}" = set; then
33984   echo $ECHO_N "(cached) $ECHO_C" >&6
33985 else
33986   ac_check_lib_save_LIBS=$LIBS
33987 LIBS="-lintl  $LIBS"
33988 cat >conftest.$ac_ext <<_ACEOF
33989 /* confdefs.h.  */
33990 _ACEOF
33991 cat confdefs.h >>conftest.$ac_ext
33992 cat >>conftest.$ac_ext <<_ACEOF
33993 /* end confdefs.h.  */
33994
33995
33996 int
33997 main ()
33998 {
33999 main ();
34000   ;
34001   return 0;
34002 }
34003 _ACEOF
34004 rm -f conftest.$ac_objext conftest$ac_exeext
34005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34006   (eval $ac_link) 2>conftest.er1
34007   ac_status=$?
34008   grep -v '^ *+' conftest.er1 >conftest.err
34009   rm -f conftest.er1
34010   cat conftest.err >&5
34011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34012   (exit $ac_status); } &&
34013          { ac_try='test -z "$ac_c_werror_flag"
34014                          || test ! -s conftest.err'
34015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34016   (eval $ac_try) 2>&5
34017   ac_status=$?
34018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019   (exit $ac_status); }; } &&
34020          { ac_try='test -s conftest$ac_exeext'
34021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34022   (eval $ac_try) 2>&5
34023   ac_status=$?
34024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025   (exit $ac_status); }; }; then
34026   ac_cv_lib_intl_main=yes
34027 else
34028   echo "$as_me: failed program was:" >&5
34029 sed 's/^/| /' conftest.$ac_ext >&5
34030
34031 ac_cv_lib_intl_main=no
34032 fi
34033 rm -f conftest.err conftest.$ac_objext \
34034       conftest$ac_exeext conftest.$ac_ext
34035 LIBS=$ac_check_lib_save_LIBS
34036 fi
34037 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
34038 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
34039 if test $ac_cv_lib_intl_main = yes; then
34040   cat >>confdefs.h <<_ACEOF
34041 #define HAVE_LIBINTL 1
34042 _ACEOF
34043
34044   LIBS="-lintl $LIBS"
34045
34046 fi
34047
34048
34049 case "$target" in
34050     *sgi-irix*)
34051
34052 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
34053 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
34054 if test "${ac_cv_lib_socket_main+set}" = set; then
34055   echo $ECHO_N "(cached) $ECHO_C" >&6
34056 else
34057   ac_check_lib_save_LIBS=$LIBS
34058 LIBS="-lsocket  $LIBS"
34059 cat >conftest.$ac_ext <<_ACEOF
34060 /* confdefs.h.  */
34061 _ACEOF
34062 cat confdefs.h >>conftest.$ac_ext
34063 cat >>conftest.$ac_ext <<_ACEOF
34064 /* end confdefs.h.  */
34065
34066
34067 int
34068 main ()
34069 {
34070 main ();
34071   ;
34072   return 0;
34073 }
34074 _ACEOF
34075 rm -f conftest.$ac_objext conftest$ac_exeext
34076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34077   (eval $ac_link) 2>conftest.er1
34078   ac_status=$?
34079   grep -v '^ *+' conftest.er1 >conftest.err
34080   rm -f conftest.er1
34081   cat conftest.err >&5
34082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083   (exit $ac_status); } &&
34084          { ac_try='test -z "$ac_c_werror_flag"
34085                          || test ! -s conftest.err'
34086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34087   (eval $ac_try) 2>&5
34088   ac_status=$?
34089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34090   (exit $ac_status); }; } &&
34091          { ac_try='test -s conftest$ac_exeext'
34092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34093   (eval $ac_try) 2>&5
34094   ac_status=$?
34095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34096   (exit $ac_status); }; }; then
34097   ac_cv_lib_socket_main=yes
34098 else
34099   echo "$as_me: failed program was:" >&5
34100 sed 's/^/| /' conftest.$ac_ext >&5
34101
34102 ac_cv_lib_socket_main=no
34103 fi
34104 rm -f conftest.err conftest.$ac_objext \
34105       conftest$ac_exeext conftest.$ac_ext
34106 LIBS=$ac_check_lib_save_LIBS
34107 fi
34108 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
34109 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
34110 if test $ac_cv_lib_socket_main = yes; then
34111   cat >>confdefs.h <<_ACEOF
34112 #define HAVE_LIBSOCKET 1
34113 _ACEOF
34114
34115   LIBS="-lsocket $LIBS"
34116
34117 fi
34118
34119                         ;;
34120     *)
34121
34122 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
34123 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
34124 if test "${ac_cv_lib_resolv_main+set}" = set; then
34125   echo $ECHO_N "(cached) $ECHO_C" >&6
34126 else
34127   ac_check_lib_save_LIBS=$LIBS
34128 LIBS="-lresolv  $LIBS"
34129 cat >conftest.$ac_ext <<_ACEOF
34130 /* confdefs.h.  */
34131 _ACEOF
34132 cat confdefs.h >>conftest.$ac_ext
34133 cat >>conftest.$ac_ext <<_ACEOF
34134 /* end confdefs.h.  */
34135
34136
34137 int
34138 main ()
34139 {
34140 main ();
34141   ;
34142   return 0;
34143 }
34144 _ACEOF
34145 rm -f conftest.$ac_objext conftest$ac_exeext
34146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34147   (eval $ac_link) 2>conftest.er1
34148   ac_status=$?
34149   grep -v '^ *+' conftest.er1 >conftest.err
34150   rm -f conftest.er1
34151   cat conftest.err >&5
34152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153   (exit $ac_status); } &&
34154          { ac_try='test -z "$ac_c_werror_flag"
34155                          || test ! -s conftest.err'
34156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34157   (eval $ac_try) 2>&5
34158   ac_status=$?
34159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160   (exit $ac_status); }; } &&
34161          { ac_try='test -s conftest$ac_exeext'
34162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34163   (eval $ac_try) 2>&5
34164   ac_status=$?
34165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34166   (exit $ac_status); }; }; then
34167   ac_cv_lib_resolv_main=yes
34168 else
34169   echo "$as_me: failed program was:" >&5
34170 sed 's/^/| /' conftest.$ac_ext >&5
34171
34172 ac_cv_lib_resolv_main=no
34173 fi
34174 rm -f conftest.err conftest.$ac_objext \
34175       conftest$ac_exeext conftest.$ac_ext
34176 LIBS=$ac_check_lib_save_LIBS
34177 fi
34178 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
34179 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
34180 if test $ac_cv_lib_resolv_main = yes; then
34181   cat >>confdefs.h <<_ACEOF
34182 #define HAVE_LIBRESOLV 1
34183 _ACEOF
34184
34185   LIBS="-lresolv $LIBS"
34186
34187 fi
34188
34189
34190 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
34191 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
34192 if test "${ac_cv_lib_nsl_main+set}" = set; then
34193   echo $ECHO_N "(cached) $ECHO_C" >&6
34194 else
34195   ac_check_lib_save_LIBS=$LIBS
34196 LIBS="-lnsl  $LIBS"
34197 cat >conftest.$ac_ext <<_ACEOF
34198 /* confdefs.h.  */
34199 _ACEOF
34200 cat confdefs.h >>conftest.$ac_ext
34201 cat >>conftest.$ac_ext <<_ACEOF
34202 /* end confdefs.h.  */
34203
34204
34205 int
34206 main ()
34207 {
34208 main ();
34209   ;
34210   return 0;
34211 }
34212 _ACEOF
34213 rm -f conftest.$ac_objext conftest$ac_exeext
34214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34215   (eval $ac_link) 2>conftest.er1
34216   ac_status=$?
34217   grep -v '^ *+' conftest.er1 >conftest.err
34218   rm -f conftest.er1
34219   cat conftest.err >&5
34220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221   (exit $ac_status); } &&
34222          { ac_try='test -z "$ac_c_werror_flag"
34223                          || test ! -s conftest.err'
34224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34225   (eval $ac_try) 2>&5
34226   ac_status=$?
34227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228   (exit $ac_status); }; } &&
34229          { ac_try='test -s conftest$ac_exeext'
34230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34231   (eval $ac_try) 2>&5
34232   ac_status=$?
34233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34234   (exit $ac_status); }; }; then
34235   ac_cv_lib_nsl_main=yes
34236 else
34237   echo "$as_me: failed program was:" >&5
34238 sed 's/^/| /' conftest.$ac_ext >&5
34239
34240 ac_cv_lib_nsl_main=no
34241 fi
34242 rm -f conftest.err conftest.$ac_objext \
34243       conftest$ac_exeext conftest.$ac_ext
34244 LIBS=$ac_check_lib_save_LIBS
34245 fi
34246 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
34247 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
34248 if test $ac_cv_lib_nsl_main = yes; then
34249   cat >>confdefs.h <<_ACEOF
34250 #define HAVE_LIBNSL 1
34251 _ACEOF
34252
34253   LIBS="-lnsl $LIBS"
34254
34255 fi
34256
34257
34258 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
34259 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
34260 if test "${ac_cv_lib_socket_main+set}" = set; then
34261   echo $ECHO_N "(cached) $ECHO_C" >&6
34262 else
34263   ac_check_lib_save_LIBS=$LIBS
34264 LIBS="-lsocket  $LIBS"
34265 cat >conftest.$ac_ext <<_ACEOF
34266 /* confdefs.h.  */
34267 _ACEOF
34268 cat confdefs.h >>conftest.$ac_ext
34269 cat >>conftest.$ac_ext <<_ACEOF
34270 /* end confdefs.h.  */
34271
34272
34273 int
34274 main ()
34275 {
34276 main ();
34277   ;
34278   return 0;
34279 }
34280 _ACEOF
34281 rm -f conftest.$ac_objext conftest$ac_exeext
34282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34283   (eval $ac_link) 2>conftest.er1
34284   ac_status=$?
34285   grep -v '^ *+' conftest.er1 >conftest.err
34286   rm -f conftest.er1
34287   cat conftest.err >&5
34288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34289   (exit $ac_status); } &&
34290          { ac_try='test -z "$ac_c_werror_flag"
34291                          || test ! -s conftest.err'
34292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34293   (eval $ac_try) 2>&5
34294   ac_status=$?
34295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34296   (exit $ac_status); }; } &&
34297          { ac_try='test -s conftest$ac_exeext'
34298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34299   (eval $ac_try) 2>&5
34300   ac_status=$?
34301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302   (exit $ac_status); }; }; then
34303   ac_cv_lib_socket_main=yes
34304 else
34305   echo "$as_me: failed program was:" >&5
34306 sed 's/^/| /' conftest.$ac_ext >&5
34307
34308 ac_cv_lib_socket_main=no
34309 fi
34310 rm -f conftest.err conftest.$ac_objext \
34311       conftest$ac_exeext conftest.$ac_ext
34312 LIBS=$ac_check_lib_save_LIBS
34313 fi
34314 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
34315 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
34316 if test $ac_cv_lib_socket_main = yes; then
34317   cat >>confdefs.h <<_ACEOF
34318 #define HAVE_LIBSOCKET 1
34319 _ACEOF
34320
34321   LIBS="-lsocket $LIBS"
34322
34323 fi
34324
34325
34326 echo "$as_me:$LINENO: checking for main in -lsun" >&5
34327 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6
34328 if test "${ac_cv_lib_sun_main+set}" = set; then
34329   echo $ECHO_N "(cached) $ECHO_C" >&6
34330 else
34331   ac_check_lib_save_LIBS=$LIBS
34332 LIBS="-lsun  $LIBS"
34333 cat >conftest.$ac_ext <<_ACEOF
34334 /* confdefs.h.  */
34335 _ACEOF
34336 cat confdefs.h >>conftest.$ac_ext
34337 cat >>conftest.$ac_ext <<_ACEOF
34338 /* end confdefs.h.  */
34339
34340
34341 int
34342 main ()
34343 {
34344 main ();
34345   ;
34346   return 0;
34347 }
34348 _ACEOF
34349 rm -f conftest.$ac_objext conftest$ac_exeext
34350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34351   (eval $ac_link) 2>conftest.er1
34352   ac_status=$?
34353   grep -v '^ *+' conftest.er1 >conftest.err
34354   rm -f conftest.er1
34355   cat conftest.err >&5
34356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34357   (exit $ac_status); } &&
34358          { ac_try='test -z "$ac_c_werror_flag"
34359                          || test ! -s conftest.err'
34360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34361   (eval $ac_try) 2>&5
34362   ac_status=$?
34363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364   (exit $ac_status); }; } &&
34365          { ac_try='test -s conftest$ac_exeext'
34366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34367   (eval $ac_try) 2>&5
34368   ac_status=$?
34369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34370   (exit $ac_status); }; }; then
34371   ac_cv_lib_sun_main=yes
34372 else
34373   echo "$as_me: failed program was:" >&5
34374 sed 's/^/| /' conftest.$ac_ext >&5
34375
34376 ac_cv_lib_sun_main=no
34377 fi
34378 rm -f conftest.err conftest.$ac_objext \
34379       conftest$ac_exeext conftest.$ac_ext
34380 LIBS=$ac_check_lib_save_LIBS
34381 fi
34382 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
34383 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6
34384 if test $ac_cv_lib_sun_main = yes; then
34385   cat >>confdefs.h <<_ACEOF
34386 #define HAVE_LIBSUN 1
34387 _ACEOF
34388
34389   LIBS="-lsun $LIBS"
34390
34391 fi
34392
34393                         ;;
34394 esac
34395
34396
34397 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
34398 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
34399 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
34400   echo $ECHO_N "(cached) $ECHO_C" >&6
34401 else
34402   ac_check_lib_save_LIBS=$LIBS
34403 LIBS="-ltermcap  $LIBS"
34404 cat >conftest.$ac_ext <<_ACEOF
34405 /* confdefs.h.  */
34406 _ACEOF
34407 cat confdefs.h >>conftest.$ac_ext
34408 cat >>conftest.$ac_ext <<_ACEOF
34409 /* end confdefs.h.  */
34410
34411 /* Override any gcc2 internal prototype to avoid an error.  */
34412 #ifdef __cplusplus
34413 extern "C"
34414 #endif
34415 /* We use char because int might match the return type of a gcc2
34416    builtin and then its argument prototype would still apply.  */
34417 char tgetent ();
34418 int
34419 main ()
34420 {
34421 tgetent ();
34422   ;
34423   return 0;
34424 }
34425 _ACEOF
34426 rm -f conftest.$ac_objext conftest$ac_exeext
34427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34428   (eval $ac_link) 2>conftest.er1
34429   ac_status=$?
34430   grep -v '^ *+' conftest.er1 >conftest.err
34431   rm -f conftest.er1
34432   cat conftest.err >&5
34433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34434   (exit $ac_status); } &&
34435          { ac_try='test -z "$ac_c_werror_flag"
34436                          || test ! -s conftest.err'
34437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34438   (eval $ac_try) 2>&5
34439   ac_status=$?
34440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34441   (exit $ac_status); }; } &&
34442          { ac_try='test -s conftest$ac_exeext'
34443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34444   (eval $ac_try) 2>&5
34445   ac_status=$?
34446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34447   (exit $ac_status); }; }; then
34448   ac_cv_lib_termcap_tgetent=yes
34449 else
34450   echo "$as_me: failed program was:" >&5
34451 sed 's/^/| /' conftest.$ac_ext >&5
34452
34453 ac_cv_lib_termcap_tgetent=no
34454 fi
34455 rm -f conftest.err conftest.$ac_objext \
34456       conftest$ac_exeext conftest.$ac_ext
34457 LIBS=$ac_check_lib_save_LIBS
34458 fi
34459 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
34460 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
34461 if test $ac_cv_lib_termcap_tgetent = yes; then
34462   cat >>confdefs.h <<_ACEOF
34463 #define HAVE_LIBTERMCAP 1
34464 _ACEOF
34465
34466   LIBS="-ltermcap $LIBS"
34467
34468 fi
34469
34470 if test "x$ac_cv_lib_termcap_tgetent" != xyes; then
34471
34472 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
34473 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
34474 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
34475   echo $ECHO_N "(cached) $ECHO_C" >&6
34476 else
34477   ac_check_lib_save_LIBS=$LIBS
34478 LIBS="-lcurses  $LIBS"
34479 cat >conftest.$ac_ext <<_ACEOF
34480 /* confdefs.h.  */
34481 _ACEOF
34482 cat confdefs.h >>conftest.$ac_ext
34483 cat >>conftest.$ac_ext <<_ACEOF
34484 /* end confdefs.h.  */
34485
34486 /* Override any gcc2 internal prototype to avoid an error.  */
34487 #ifdef __cplusplus
34488 extern "C"
34489 #endif
34490 /* We use char because int might match the return type of a gcc2
34491    builtin and then its argument prototype would still apply.  */
34492 char tgetent ();
34493 int
34494 main ()
34495 {
34496 tgetent ();
34497   ;
34498   return 0;
34499 }
34500 _ACEOF
34501 rm -f conftest.$ac_objext conftest$ac_exeext
34502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34503   (eval $ac_link) 2>conftest.er1
34504   ac_status=$?
34505   grep -v '^ *+' conftest.er1 >conftest.err
34506   rm -f conftest.er1
34507   cat conftest.err >&5
34508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34509   (exit $ac_status); } &&
34510          { ac_try='test -z "$ac_c_werror_flag"
34511                          || test ! -s conftest.err'
34512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34513   (eval $ac_try) 2>&5
34514   ac_status=$?
34515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34516   (exit $ac_status); }; } &&
34517          { ac_try='test -s conftest$ac_exeext'
34518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34519   (eval $ac_try) 2>&5
34520   ac_status=$?
34521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522   (exit $ac_status); }; }; then
34523   ac_cv_lib_curses_tgetent=yes
34524 else
34525   echo "$as_me: failed program was:" >&5
34526 sed 's/^/| /' conftest.$ac_ext >&5
34527
34528 ac_cv_lib_curses_tgetent=no
34529 fi
34530 rm -f conftest.err conftest.$ac_objext \
34531       conftest$ac_exeext conftest.$ac_ext
34532 LIBS=$ac_check_lib_save_LIBS
34533 fi
34534 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
34535 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
34536 if test $ac_cv_lib_curses_tgetent = yes; then
34537   cat >>confdefs.h <<_ACEOF
34538 #define HAVE_LIBCURSES 1
34539 _ACEOF
34540
34541   LIBS="-lcurses $LIBS"
34542
34543 fi
34544
34545     if test "x$ac_cv_lib_curses_tgetent" != xyes; then
34546
34547 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
34548 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
34549 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
34550   echo $ECHO_N "(cached) $ECHO_C" >&6
34551 else
34552   ac_check_lib_save_LIBS=$LIBS
34553 LIBS="-lncurses  $LIBS"
34554 cat >conftest.$ac_ext <<_ACEOF
34555 /* confdefs.h.  */
34556 _ACEOF
34557 cat confdefs.h >>conftest.$ac_ext
34558 cat >>conftest.$ac_ext <<_ACEOF
34559 /* end confdefs.h.  */
34560
34561 /* Override any gcc2 internal prototype to avoid an error.  */
34562 #ifdef __cplusplus
34563 extern "C"
34564 #endif
34565 /* We use char because int might match the return type of a gcc2
34566    builtin and then its argument prototype would still apply.  */
34567 char tgetent ();
34568 int
34569 main ()
34570 {
34571 tgetent ();
34572   ;
34573   return 0;
34574 }
34575 _ACEOF
34576 rm -f conftest.$ac_objext conftest$ac_exeext
34577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34578   (eval $ac_link) 2>conftest.er1
34579   ac_status=$?
34580   grep -v '^ *+' conftest.er1 >conftest.err
34581   rm -f conftest.er1
34582   cat conftest.err >&5
34583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34584   (exit $ac_status); } &&
34585          { ac_try='test -z "$ac_c_werror_flag"
34586                          || test ! -s conftest.err'
34587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34588   (eval $ac_try) 2>&5
34589   ac_status=$?
34590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34591   (exit $ac_status); }; } &&
34592          { ac_try='test -s conftest$ac_exeext'
34593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34594   (eval $ac_try) 2>&5
34595   ac_status=$?
34596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597   (exit $ac_status); }; }; then
34598   ac_cv_lib_ncurses_tgetent=yes
34599 else
34600   echo "$as_me: failed program was:" >&5
34601 sed 's/^/| /' conftest.$ac_ext >&5
34602
34603 ac_cv_lib_ncurses_tgetent=no
34604 fi
34605 rm -f conftest.err conftest.$ac_objext \
34606       conftest$ac_exeext conftest.$ac_ext
34607 LIBS=$ac_check_lib_save_LIBS
34608 fi
34609 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
34610 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
34611 if test $ac_cv_lib_ncurses_tgetent = yes; then
34612   cat >>confdefs.h <<_ACEOF
34613 #define HAVE_LIBNCURSES 1
34614 _ACEOF
34615
34616   LIBS="-lncurses $LIBS"
34617
34618 fi
34619
34620     fi
34621 fi
34622 if test "x$ac_cv_lib_termcap_tgetent" = xyes ||
34623    test "x$ac_cv_lib_curses_tgetent" = xyes ||
34624    test "x$ac_cv_lib_ncurses_tgetent" = xyes; then
34625
34626 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
34627 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
34628 if test "${ac_cv_lib_readline_readline+set}" = set; then
34629   echo $ECHO_N "(cached) $ECHO_C" >&6
34630 else
34631   ac_check_lib_save_LIBS=$LIBS
34632 LIBS="-lreadline  $LIBS"
34633 cat >conftest.$ac_ext <<_ACEOF
34634 /* confdefs.h.  */
34635 _ACEOF
34636 cat confdefs.h >>conftest.$ac_ext
34637 cat >>conftest.$ac_ext <<_ACEOF
34638 /* end confdefs.h.  */
34639
34640 /* Override any gcc2 internal prototype to avoid an error.  */
34641 #ifdef __cplusplus
34642 extern "C"
34643 #endif
34644 /* We use char because int might match the return type of a gcc2
34645    builtin and then its argument prototype would still apply.  */
34646 char readline ();
34647 int
34648 main ()
34649 {
34650 readline ();
34651   ;
34652   return 0;
34653 }
34654 _ACEOF
34655 rm -f conftest.$ac_objext conftest$ac_exeext
34656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34657   (eval $ac_link) 2>conftest.er1
34658   ac_status=$?
34659   grep -v '^ *+' conftest.er1 >conftest.err
34660   rm -f conftest.er1
34661   cat conftest.err >&5
34662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663   (exit $ac_status); } &&
34664          { ac_try='test -z "$ac_c_werror_flag"
34665                          || test ! -s conftest.err'
34666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34667   (eval $ac_try) 2>&5
34668   ac_status=$?
34669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670   (exit $ac_status); }; } &&
34671          { ac_try='test -s conftest$ac_exeext'
34672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34673   (eval $ac_try) 2>&5
34674   ac_status=$?
34675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34676   (exit $ac_status); }; }; then
34677   ac_cv_lib_readline_readline=yes
34678 else
34679   echo "$as_me: failed program was:" >&5
34680 sed 's/^/| /' conftest.$ac_ext >&5
34681
34682 ac_cv_lib_readline_readline=no
34683 fi
34684 rm -f conftest.err conftest.$ac_objext \
34685       conftest$ac_exeext conftest.$ac_ext
34686 LIBS=$ac_check_lib_save_LIBS
34687 fi
34688 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
34689 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
34690 if test $ac_cv_lib_readline_readline = yes; then
34691   cat >>confdefs.h <<_ACEOF
34692 #define HAVE_LIBREADLINE 1
34693 _ACEOF
34694
34695   LIBS="-lreadline $LIBS"
34696
34697 fi
34698
34699     if test "x$ac_cv_lib_readline_readline" = xyes; then
34700         READLINE_LIBS="-lreadline"
34701
34702     else
34703         { echo "$as_me:$LINENO: WARNING: *** No readline library, no history and command line editing in amrecover!" >&5
34704 echo "$as_me: WARNING: *** No readline library, no history and command line editing in amrecover!" >&2;}
34705     fi
34706 else
34707     { echo "$as_me:$LINENO: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&5
34708 echo "$as_me: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&2;}
34709 fi
34710
34711 if test "x$ac_cv_header_linux_zftape_h" = xyes; then
34712     if test "x$ac_cv_header_vtblc_h" = xyes; then
34713
34714 echo "$as_me:$LINENO: checking for main in -lvtblc" >&5
34715 echo $ECHO_N "checking for main in -lvtblc... $ECHO_C" >&6
34716 if test "${ac_cv_lib_vtblc_main+set}" = set; then
34717   echo $ECHO_N "(cached) $ECHO_C" >&6
34718 else
34719   ac_check_lib_save_LIBS=$LIBS
34720 LIBS="-lvtblc  $LIBS"
34721 cat >conftest.$ac_ext <<_ACEOF
34722 /* confdefs.h.  */
34723 _ACEOF
34724 cat confdefs.h >>conftest.$ac_ext
34725 cat >>conftest.$ac_ext <<_ACEOF
34726 /* end confdefs.h.  */
34727
34728
34729 int
34730 main ()
34731 {
34732 main ();
34733   ;
34734   return 0;
34735 }
34736 _ACEOF
34737 rm -f conftest.$ac_objext conftest$ac_exeext
34738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34739   (eval $ac_link) 2>conftest.er1
34740   ac_status=$?
34741   grep -v '^ *+' conftest.er1 >conftest.err
34742   rm -f conftest.er1
34743   cat conftest.err >&5
34744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745   (exit $ac_status); } &&
34746          { ac_try='test -z "$ac_c_werror_flag"
34747                          || test ! -s conftest.err'
34748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34749   (eval $ac_try) 2>&5
34750   ac_status=$?
34751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752   (exit $ac_status); }; } &&
34753          { ac_try='test -s conftest$ac_exeext'
34754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34755   (eval $ac_try) 2>&5
34756   ac_status=$?
34757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758   (exit $ac_status); }; }; then
34759   ac_cv_lib_vtblc_main=yes
34760 else
34761   echo "$as_me: failed program was:" >&5
34762 sed 's/^/| /' conftest.$ac_ext >&5
34763
34764 ac_cv_lib_vtblc_main=no
34765 fi
34766 rm -f conftest.err conftest.$ac_objext \
34767       conftest$ac_exeext conftest.$ac_ext
34768 LIBS=$ac_check_lib_save_LIBS
34769 fi
34770 echo "$as_me:$LINENO: result: $ac_cv_lib_vtblc_main" >&5
34771 echo "${ECHO_T}$ac_cv_lib_vtblc_main" >&6
34772 if test $ac_cv_lib_vtblc_main = yes; then
34773   cat >>confdefs.h <<_ACEOF
34774 #define HAVE_LIBVTBLC 1
34775 _ACEOF
34776
34777   LIBS="-lvtblc $LIBS"
34778
34779 fi
34780
34781         if test "x$ac_cv_lib_vtblc_main" != xyes; then
34782             { echo "$as_me:$LINENO: WARNING: *** vtblc library not found - no QIC volume table support!" >&5
34783 echo "$as_me: WARNING: *** vtblc library not found - no QIC volume table support!" >&2;}
34784         fi
34785     else
34786         { echo "$as_me:$LINENO: WARNING: *** vtblc headers not found - no QIC volume table support!" >&5
34787 echo "$as_me: WARNING: *** vtblc headers not found - no QIC volume table support!" >&2;}
34788     fi
34789 fi
34790
34791
34792 echo "$as_me:$LINENO: checking for modf in -lm" >&5
34793 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6
34794 if test "${ac_cv_lib_m_modf+set}" = set; then
34795   echo $ECHO_N "(cached) $ECHO_C" >&6
34796 else
34797   ac_check_lib_save_LIBS=$LIBS
34798 LIBS="-lm  $LIBS"
34799 cat >conftest.$ac_ext <<_ACEOF
34800 /* confdefs.h.  */
34801 _ACEOF
34802 cat confdefs.h >>conftest.$ac_ext
34803 cat >>conftest.$ac_ext <<_ACEOF
34804 /* end confdefs.h.  */
34805
34806 /* Override any gcc2 internal prototype to avoid an error.  */
34807 #ifdef __cplusplus
34808 extern "C"
34809 #endif
34810 /* We use char because int might match the return type of a gcc2
34811    builtin and then its argument prototype would still apply.  */
34812 char modf ();
34813 int
34814 main ()
34815 {
34816 modf ();
34817   ;
34818   return 0;
34819 }
34820 _ACEOF
34821 rm -f conftest.$ac_objext conftest$ac_exeext
34822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34823   (eval $ac_link) 2>conftest.er1
34824   ac_status=$?
34825   grep -v '^ *+' conftest.er1 >conftest.err
34826   rm -f conftest.er1
34827   cat conftest.err >&5
34828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34829   (exit $ac_status); } &&
34830          { ac_try='test -z "$ac_c_werror_flag"
34831                          || test ! -s conftest.err'
34832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34833   (eval $ac_try) 2>&5
34834   ac_status=$?
34835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836   (exit $ac_status); }; } &&
34837          { ac_try='test -s conftest$ac_exeext'
34838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34839   (eval $ac_try) 2>&5
34840   ac_status=$?
34841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34842   (exit $ac_status); }; }; then
34843   ac_cv_lib_m_modf=yes
34844 else
34845   echo "$as_me: failed program was:" >&5
34846 sed 's/^/| /' conftest.$ac_ext >&5
34847
34848 ac_cv_lib_m_modf=no
34849 fi
34850 rm -f conftest.err conftest.$ac_objext \
34851       conftest$ac_exeext conftest.$ac_ext
34852 LIBS=$ac_check_lib_save_LIBS
34853 fi
34854 echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
34855 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6
34856 if test $ac_cv_lib_m_modf = yes; then
34857   cat >>confdefs.h <<_ACEOF
34858 #define HAVE_LIBM 1
34859 _ACEOF
34860
34861   LIBS="-lm $LIBS"
34862
34863 fi
34864
34865
34866
34867 echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
34868 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6
34869 mt_flags_result="found"
34870 cat >conftest.$ac_ext <<_ACEOF
34871 /* confdefs.h.  */
34872 _ACEOF
34873 cat confdefs.h >>conftest.$ac_ext
34874 cat >>conftest.$ac_ext <<_ACEOF
34875 /* end confdefs.h.  */
34876
34877 #include <stdio.h>
34878 #include <sys/types.h>
34879 #include <sys/mtio.h>
34880
34881 int
34882 main ()
34883 {
34884
34885     struct mtget buf;
34886     long ds;
34887
34888     ds = buf.mt_flags;
34889
34890   ;
34891   return 0;
34892 }
34893 _ACEOF
34894 rm -f conftest.$ac_objext
34895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34896   (eval $ac_compile) 2>conftest.er1
34897   ac_status=$?
34898   grep -v '^ *+' conftest.er1 >conftest.err
34899   rm -f conftest.er1
34900   cat conftest.err >&5
34901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902   (exit $ac_status); } &&
34903          { ac_try='test -z "$ac_c_werror_flag"
34904                          || test ! -s conftest.err'
34905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34906   (eval $ac_try) 2>&5
34907   ac_status=$?
34908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34909   (exit $ac_status); }; } &&
34910          { ac_try='test -s conftest.$ac_objext'
34911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34912   (eval $ac_try) 2>&5
34913   ac_status=$?
34914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34915   (exit $ac_status); }; }; then
34916
34917 cat >>confdefs.h <<\_ACEOF
34918 #define HAVE_MT_FLAGS 1
34919 _ACEOF
34920
34921 else
34922   echo "$as_me: failed program was:" >&5
34923 sed 's/^/| /' conftest.$ac_ext >&5
34924
34925 mt_flags_result="not found"
34926 fi
34927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34928 echo "$as_me:$LINENO: result: $mt_flags_result" >&5
34929 echo "${ECHO_T}$mt_flags_result" >&6
34930
34931 echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
34932 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6
34933 mt_fileno_result="found"
34934 cat >conftest.$ac_ext <<_ACEOF
34935 /* confdefs.h.  */
34936 _ACEOF
34937 cat confdefs.h >>conftest.$ac_ext
34938 cat >>conftest.$ac_ext <<_ACEOF
34939 /* end confdefs.h.  */
34940
34941 #include <stdio.h>
34942 #include <sys/types.h>
34943 #include <sys/mtio.h>
34944
34945 int
34946 main ()
34947 {
34948
34949     struct mtget buf;
34950     long ds;
34951
34952     ds = buf.mt_fileno;
34953
34954   ;
34955   return 0;
34956 }
34957 _ACEOF
34958 rm -f conftest.$ac_objext
34959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34960   (eval $ac_compile) 2>conftest.er1
34961   ac_status=$?
34962   grep -v '^ *+' conftest.er1 >conftest.err
34963   rm -f conftest.er1
34964   cat conftest.err >&5
34965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966   (exit $ac_status); } &&
34967          { ac_try='test -z "$ac_c_werror_flag"
34968                          || test ! -s conftest.err'
34969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34970   (eval $ac_try) 2>&5
34971   ac_status=$?
34972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34973   (exit $ac_status); }; } &&
34974          { ac_try='test -s conftest.$ac_objext'
34975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34976   (eval $ac_try) 2>&5
34977   ac_status=$?
34978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34979   (exit $ac_status); }; }; then
34980
34981 cat >>confdefs.h <<\_ACEOF
34982 #define HAVE_MT_FILENO 1
34983 _ACEOF
34984
34985 else
34986   echo "$as_me: failed program was:" >&5
34987 sed 's/^/| /' conftest.$ac_ext >&5
34988
34989 mt_fileno_result="not found"
34990 fi
34991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34992 echo "$as_me:$LINENO: result: $mt_fileno_result" >&5
34993 echo "${ECHO_T}$mt_fileno_result" >&6
34994
34995 echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
34996 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6
34997 mt_blkno_result="found"
34998 cat >conftest.$ac_ext <<_ACEOF
34999 /* confdefs.h.  */
35000 _ACEOF
35001 cat confdefs.h >>conftest.$ac_ext
35002 cat >>conftest.$ac_ext <<_ACEOF
35003 /* end confdefs.h.  */
35004
35005 #include <stdio.h>
35006 #include <sys/types.h>
35007 #include <sys/mtio.h>
35008
35009 int
35010 main ()
35011 {
35012
35013     struct mtget buf;
35014     long ds;
35015
35016     ds = buf.mt_blkno;
35017
35018   ;
35019   return 0;
35020 }
35021 _ACEOF
35022 rm -f conftest.$ac_objext
35023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35024   (eval $ac_compile) 2>conftest.er1
35025   ac_status=$?
35026   grep -v '^ *+' conftest.er1 >conftest.err
35027   rm -f conftest.er1
35028   cat conftest.err >&5
35029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030   (exit $ac_status); } &&
35031          { ac_try='test -z "$ac_c_werror_flag"
35032                          || test ! -s conftest.err'
35033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35034   (eval $ac_try) 2>&5
35035   ac_status=$?
35036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35037   (exit $ac_status); }; } &&
35038          { ac_try='test -s conftest.$ac_objext'
35039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35040   (eval $ac_try) 2>&5
35041   ac_status=$?
35042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043   (exit $ac_status); }; }; then
35044
35045 cat >>confdefs.h <<\_ACEOF
35046 #define HAVE_MT_BLKNO 1
35047 _ACEOF
35048
35049 else
35050   echo "$as_me: failed program was:" >&5
35051 sed 's/^/| /' conftest.$ac_ext >&5
35052
35053 mt_blkno_result="not found"
35054 fi
35055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35056 echo "$as_me:$LINENO: result: $mt_blkno_result" >&5
35057 echo "${ECHO_T}$mt_blkno_result" >&6
35058
35059 echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
35060 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6
35061 mt_dsreg_result="found"
35062 cat >conftest.$ac_ext <<_ACEOF
35063 /* confdefs.h.  */
35064 _ACEOF
35065 cat confdefs.h >>conftest.$ac_ext
35066 cat >>conftest.$ac_ext <<_ACEOF
35067 /* end confdefs.h.  */
35068
35069 #include <stdio.h>
35070 #include <sys/types.h>
35071 #include <sys/mtio.h>
35072
35073 int
35074 main ()
35075 {
35076
35077     struct mtget buf;
35078     long ds;
35079
35080     ds = buf.mt_dsreg;
35081
35082   ;
35083   return 0;
35084 }
35085 _ACEOF
35086 rm -f conftest.$ac_objext
35087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35088   (eval $ac_compile) 2>conftest.er1
35089   ac_status=$?
35090   grep -v '^ *+' conftest.er1 >conftest.err
35091   rm -f conftest.er1
35092   cat conftest.err >&5
35093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094   (exit $ac_status); } &&
35095          { ac_try='test -z "$ac_c_werror_flag"
35096                          || test ! -s conftest.err'
35097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35098   (eval $ac_try) 2>&5
35099   ac_status=$?
35100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101   (exit $ac_status); }; } &&
35102          { ac_try='test -s conftest.$ac_objext'
35103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35104   (eval $ac_try) 2>&5
35105   ac_status=$?
35106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35107   (exit $ac_status); }; }; then
35108
35109 cat >>confdefs.h <<\_ACEOF
35110 #define HAVE_MT_DSREG 1
35111 _ACEOF
35112
35113 else
35114   echo "$as_me: failed program was:" >&5
35115 sed 's/^/| /' conftest.$ac_ext >&5
35116
35117 mt_dsreg_result="not found"
35118 fi
35119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35120 echo "$as_me:$LINENO: result: $mt_dsreg_result" >&5
35121 echo "${ECHO_T}$mt_dsreg_result" >&6
35122
35123 echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
35124 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6
35125 mt_erreg_result="found"
35126 cat >conftest.$ac_ext <<_ACEOF
35127 /* confdefs.h.  */
35128 _ACEOF
35129 cat confdefs.h >>conftest.$ac_ext
35130 cat >>conftest.$ac_ext <<_ACEOF
35131 /* end confdefs.h.  */
35132
35133 #include <stdio.h>
35134 #include <sys/types.h>
35135 #include <sys/mtio.h>
35136
35137 int
35138 main ()
35139 {
35140
35141     struct mtget buf;
35142     long ds;
35143
35144     ds = buf.mt_erreg;
35145
35146   ;
35147   return 0;
35148 }
35149 _ACEOF
35150 rm -f conftest.$ac_objext
35151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35152   (eval $ac_compile) 2>conftest.er1
35153   ac_status=$?
35154   grep -v '^ *+' conftest.er1 >conftest.err
35155   rm -f conftest.er1
35156   cat conftest.err >&5
35157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158   (exit $ac_status); } &&
35159          { ac_try='test -z "$ac_c_werror_flag"
35160                          || test ! -s conftest.err'
35161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35162   (eval $ac_try) 2>&5
35163   ac_status=$?
35164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165   (exit $ac_status); }; } &&
35166          { ac_try='test -s conftest.$ac_objext'
35167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35168   (eval $ac_try) 2>&5
35169   ac_status=$?
35170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171   (exit $ac_status); }; }; then
35172
35173 cat >>confdefs.h <<\_ACEOF
35174 #define HAVE_MT_ERREG 1
35175 _ACEOF
35176
35177 else
35178   echo "$as_me: failed program was:" >&5
35179 sed 's/^/| /' conftest.$ac_ext >&5
35180
35181 mt_erreg_result="not found"
35182 fi
35183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35184 echo "$as_me:$LINENO: result: $mt_erreg_result" >&5
35185 echo "${ECHO_T}$mt_erreg_result" >&6
35186
35187
35188 DB_HEADER=
35189 DB_LIB=
35190
35191 save_LIBS="$LIBS"
35192
35193 echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
35194 echo $ECHO_N "checking for dbm_open in -lc... $ECHO_C" >&6
35195 if test "${ac_cv_lib_c_dbm_open+set}" = set; then
35196   echo $ECHO_N "(cached) $ECHO_C" >&6
35197 else
35198   ac_check_lib_save_LIBS=$LIBS
35199 LIBS="-lc  $LIBS"
35200 cat >conftest.$ac_ext <<_ACEOF
35201 /* confdefs.h.  */
35202 _ACEOF
35203 cat confdefs.h >>conftest.$ac_ext
35204 cat >>conftest.$ac_ext <<_ACEOF
35205 /* end confdefs.h.  */
35206
35207 /* Override any gcc2 internal prototype to avoid an error.  */
35208 #ifdef __cplusplus
35209 extern "C"
35210 #endif
35211 /* We use char because int might match the return type of a gcc2
35212    builtin and then its argument prototype would still apply.  */
35213 char dbm_open ();
35214 int
35215 main ()
35216 {
35217 dbm_open ();
35218   ;
35219   return 0;
35220 }
35221 _ACEOF
35222 rm -f conftest.$ac_objext conftest$ac_exeext
35223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35224   (eval $ac_link) 2>conftest.er1
35225   ac_status=$?
35226   grep -v '^ *+' conftest.er1 >conftest.err
35227   rm -f conftest.er1
35228   cat conftest.err >&5
35229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35230   (exit $ac_status); } &&
35231          { ac_try='test -z "$ac_c_werror_flag"
35232                          || test ! -s conftest.err'
35233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35234   (eval $ac_try) 2>&5
35235   ac_status=$?
35236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35237   (exit $ac_status); }; } &&
35238          { ac_try='test -s conftest$ac_exeext'
35239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35240   (eval $ac_try) 2>&5
35241   ac_status=$?
35242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243   (exit $ac_status); }; }; then
35244   ac_cv_lib_c_dbm_open=yes
35245 else
35246   echo "$as_me: failed program was:" >&5
35247 sed 's/^/| /' conftest.$ac_ext >&5
35248
35249 ac_cv_lib_c_dbm_open=no
35250 fi
35251 rm -f conftest.err conftest.$ac_objext \
35252       conftest$ac_exeext conftest.$ac_ext
35253 LIBS=$ac_check_lib_save_LIBS
35254 fi
35255 echo "$as_me:$LINENO: result: $ac_cv_lib_c_dbm_open" >&5
35256 echo "${ECHO_T}$ac_cv_lib_c_dbm_open" >&6
35257 if test $ac_cv_lib_c_dbm_open = yes; then
35258   cat >>confdefs.h <<_ACEOF
35259 #define HAVE_LIBC 1
35260 _ACEOF
35261
35262   LIBS="-lc $LIBS"
35263
35264 fi
35265
35266 LIBS="$save_LIBS"
35267
35268 case "$DB_STYLE" in
35269     db)
35270         if test "x$ac_cv_header_db_h" = xyes; then
35271
35272 echo "$as_me:$LINENO: checking for main in -ldb" >&5
35273 echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
35274 if test "${ac_cv_lib_db_main+set}" = set; then
35275   echo $ECHO_N "(cached) $ECHO_C" >&6
35276 else
35277   ac_check_lib_save_LIBS=$LIBS
35278 LIBS="-ldb  $LIBS"
35279 cat >conftest.$ac_ext <<_ACEOF
35280 /* confdefs.h.  */
35281 _ACEOF
35282 cat confdefs.h >>conftest.$ac_ext
35283 cat >>conftest.$ac_ext <<_ACEOF
35284 /* end confdefs.h.  */
35285
35286
35287 int
35288 main ()
35289 {
35290 main ();
35291   ;
35292   return 0;
35293 }
35294 _ACEOF
35295 rm -f conftest.$ac_objext conftest$ac_exeext
35296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35297   (eval $ac_link) 2>conftest.er1
35298   ac_status=$?
35299   grep -v '^ *+' conftest.er1 >conftest.err
35300   rm -f conftest.er1
35301   cat conftest.err >&5
35302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35303   (exit $ac_status); } &&
35304          { ac_try='test -z "$ac_c_werror_flag"
35305                          || test ! -s conftest.err'
35306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35307   (eval $ac_try) 2>&5
35308   ac_status=$?
35309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35310   (exit $ac_status); }; } &&
35311          { ac_try='test -s conftest$ac_exeext'
35312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35313   (eval $ac_try) 2>&5
35314   ac_status=$?
35315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35316   (exit $ac_status); }; }; then
35317   ac_cv_lib_db_main=yes
35318 else
35319   echo "$as_me: failed program was:" >&5
35320 sed 's/^/| /' conftest.$ac_ext >&5
35321
35322 ac_cv_lib_db_main=no
35323 fi
35324 rm -f conftest.err conftest.$ac_objext \
35325       conftest$ac_exeext conftest.$ac_ext
35326 LIBS=$ac_check_lib_save_LIBS
35327 fi
35328 echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
35329 echo "${ECHO_T}$ac_cv_lib_db_main" >&6
35330 if test $ac_cv_lib_db_main = yes; then
35331   cat >>confdefs.h <<_ACEOF
35332 #define HAVE_LIBDB 1
35333 _ACEOF
35334
35335   LIBS="-ldb $LIBS"
35336
35337 fi
35338
35339             if test "x$ac_cv_lib_db_main" = xyes; then
35340
35341 echo "$as_me:$LINENO: checking for dbm_open in -ldb" >&5
35342 echo $ECHO_N "checking for dbm_open in -ldb... $ECHO_C" >&6
35343 if test "${ac_cv_lib_db_dbm_open+set}" = set; then
35344   echo $ECHO_N "(cached) $ECHO_C" >&6
35345 else
35346   ac_check_lib_save_LIBS=$LIBS
35347 LIBS="-ldb  $LIBS"
35348 cat >conftest.$ac_ext <<_ACEOF
35349 /* confdefs.h.  */
35350 _ACEOF
35351 cat confdefs.h >>conftest.$ac_ext
35352 cat >>conftest.$ac_ext <<_ACEOF
35353 /* end confdefs.h.  */
35354
35355 /* Override any gcc2 internal prototype to avoid an error.  */
35356 #ifdef __cplusplus
35357 extern "C"
35358 #endif
35359 /* We use char because int might match the return type of a gcc2
35360    builtin and then its argument prototype would still apply.  */
35361 char dbm_open ();
35362 int
35363 main ()
35364 {
35365 dbm_open ();
35366   ;
35367   return 0;
35368 }
35369 _ACEOF
35370 rm -f conftest.$ac_objext conftest$ac_exeext
35371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35372   (eval $ac_link) 2>conftest.er1
35373   ac_status=$?
35374   grep -v '^ *+' conftest.er1 >conftest.err
35375   rm -f conftest.er1
35376   cat conftest.err >&5
35377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378   (exit $ac_status); } &&
35379          { ac_try='test -z "$ac_c_werror_flag"
35380                          || test ! -s conftest.err'
35381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35382   (eval $ac_try) 2>&5
35383   ac_status=$?
35384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35385   (exit $ac_status); }; } &&
35386          { ac_try='test -s conftest$ac_exeext'
35387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35388   (eval $ac_try) 2>&5
35389   ac_status=$?
35390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35391   (exit $ac_status); }; }; then
35392   ac_cv_lib_db_dbm_open=yes
35393 else
35394   echo "$as_me: failed program was:" >&5
35395 sed 's/^/| /' conftest.$ac_ext >&5
35396
35397 ac_cv_lib_db_dbm_open=no
35398 fi
35399 rm -f conftest.err conftest.$ac_objext \
35400       conftest$ac_exeext conftest.$ac_ext
35401 LIBS=$ac_check_lib_save_LIBS
35402 fi
35403 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_open" >&5
35404 echo "${ECHO_T}$ac_cv_lib_db_dbm_open" >&6
35405 if test $ac_cv_lib_db_dbm_open = yes; then
35406   cat >>confdefs.h <<_ACEOF
35407 #define HAVE_LIBDB 1
35408 _ACEOF
35409
35410   LIBS="-ldb $LIBS"
35411
35412 fi
35413
35414                 if test "x$ac_cv_lib_db_dbm_open" = xyes; then
35415                     DB_HEADER=db.h
35416                     DB_LIB=db
35417                 else
35418                     DB_STYLE=
35419                     { echo "$as_me:$LINENO: WARNING: *** db database library requested but dbm_open not found in -ldb." >&5
35420 echo "$as_me: WARNING: *** db database library requested but dbm_open not found in -ldb." >&2;}
35421                 fi
35422             else
35423                 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
35424                     DB_HEADER=db.h
35425                     DB_LIB=c
35426                 else
35427                     DB_STYLE=
35428                     { echo "$as_me:$LINENO: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&5
35429 echo "$as_me: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&2;}
35430                 fi
35431             fi
35432         else
35433             DB_STYLE=
35434             { echo "$as_me:$LINENO: WARNING: *** db database library requested but db.h not found." >&5
35435 echo "$as_me: WARNING: *** db database library requested but db.h not found." >&2;}
35436         fi
35437         ;;
35438
35439     dbm)
35440         if test "x$ac_cv_header_dbm_h" = xyes; then
35441
35442 echo "$as_me:$LINENO: checking for main in -ldbm" >&5
35443 echo $ECHO_N "checking for main in -ldbm... $ECHO_C" >&6
35444 if test "${ac_cv_lib_dbm_main+set}" = set; then
35445   echo $ECHO_N "(cached) $ECHO_C" >&6
35446 else
35447   ac_check_lib_save_LIBS=$LIBS
35448 LIBS="-ldbm  $LIBS"
35449 cat >conftest.$ac_ext <<_ACEOF
35450 /* confdefs.h.  */
35451 _ACEOF
35452 cat confdefs.h >>conftest.$ac_ext
35453 cat >>conftest.$ac_ext <<_ACEOF
35454 /* end confdefs.h.  */
35455
35456
35457 int
35458 main ()
35459 {
35460 main ();
35461   ;
35462   return 0;
35463 }
35464 _ACEOF
35465 rm -f conftest.$ac_objext conftest$ac_exeext
35466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35467   (eval $ac_link) 2>conftest.er1
35468   ac_status=$?
35469   grep -v '^ *+' conftest.er1 >conftest.err
35470   rm -f conftest.er1
35471   cat conftest.err >&5
35472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35473   (exit $ac_status); } &&
35474          { ac_try='test -z "$ac_c_werror_flag"
35475                          || test ! -s conftest.err'
35476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35477   (eval $ac_try) 2>&5
35478   ac_status=$?
35479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35480   (exit $ac_status); }; } &&
35481          { ac_try='test -s conftest$ac_exeext'
35482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35483   (eval $ac_try) 2>&5
35484   ac_status=$?
35485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486   (exit $ac_status); }; }; then
35487   ac_cv_lib_dbm_main=yes
35488 else
35489   echo "$as_me: failed program was:" >&5
35490 sed 's/^/| /' conftest.$ac_ext >&5
35491
35492 ac_cv_lib_dbm_main=no
35493 fi
35494 rm -f conftest.err conftest.$ac_objext \
35495       conftest$ac_exeext conftest.$ac_ext
35496 LIBS=$ac_check_lib_save_LIBS
35497 fi
35498 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_main" >&5
35499 echo "${ECHO_T}$ac_cv_lib_dbm_main" >&6
35500 if test $ac_cv_lib_dbm_main = yes; then
35501   cat >>confdefs.h <<_ACEOF
35502 #define HAVE_LIBDBM 1
35503 _ACEOF
35504
35505   LIBS="-ldbm $LIBS"
35506
35507 fi
35508
35509             if test "x$ac_cv_lib_dbm_main" = xyes; then
35510
35511 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35512 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35513 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35514   echo $ECHO_N "(cached) $ECHO_C" >&6
35515 else
35516   ac_check_lib_save_LIBS=$LIBS
35517 LIBS="-ldbm  $LIBS"
35518 cat >conftest.$ac_ext <<_ACEOF
35519 /* confdefs.h.  */
35520 _ACEOF
35521 cat confdefs.h >>conftest.$ac_ext
35522 cat >>conftest.$ac_ext <<_ACEOF
35523 /* end confdefs.h.  */
35524
35525 /* Override any gcc2 internal prototype to avoid an error.  */
35526 #ifdef __cplusplus
35527 extern "C"
35528 #endif
35529 /* We use char because int might match the return type of a gcc2
35530    builtin and then its argument prototype would still apply.  */
35531 char dbm_open ();
35532 int
35533 main ()
35534 {
35535 dbm_open ();
35536   ;
35537   return 0;
35538 }
35539 _ACEOF
35540 rm -f conftest.$ac_objext conftest$ac_exeext
35541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35542   (eval $ac_link) 2>conftest.er1
35543   ac_status=$?
35544   grep -v '^ *+' conftest.er1 >conftest.err
35545   rm -f conftest.er1
35546   cat conftest.err >&5
35547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548   (exit $ac_status); } &&
35549          { ac_try='test -z "$ac_c_werror_flag"
35550                          || test ! -s conftest.err'
35551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35552   (eval $ac_try) 2>&5
35553   ac_status=$?
35554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35555   (exit $ac_status); }; } &&
35556          { ac_try='test -s conftest$ac_exeext'
35557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35558   (eval $ac_try) 2>&5
35559   ac_status=$?
35560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561   (exit $ac_status); }; }; then
35562   ac_cv_lib_dbm_dbm_open=yes
35563 else
35564   echo "$as_me: failed program was:" >&5
35565 sed 's/^/| /' conftest.$ac_ext >&5
35566
35567 ac_cv_lib_dbm_dbm_open=no
35568 fi
35569 rm -f conftest.err conftest.$ac_objext \
35570       conftest$ac_exeext conftest.$ac_ext
35571 LIBS=$ac_check_lib_save_LIBS
35572 fi
35573 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35574 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35575 if test $ac_cv_lib_dbm_dbm_open = yes; then
35576   cat >>confdefs.h <<_ACEOF
35577 #define HAVE_LIBDBM 1
35578 _ACEOF
35579
35580   LIBS="-ldbm $LIBS"
35581
35582 fi
35583
35584                 if test "x$ac_cv_lib_dbm_dbm_open" = xyes; then
35585                     DB_HEADER=dbm.h
35586                     DB_LIB=dbm
35587                 else
35588                     DB_STYLE=
35589                     { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&5
35590 echo "$as_me: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&2;}
35591                 fi
35592             else
35593                 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
35594                     DB_HEADER=dbm.h
35595                     DB_LIB=c
35596                 else
35597                     DB_STYLE=
35598                     { echo "$as_me:$LINENO: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&5
35599 echo "$as_me: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&2;}
35600                 fi
35601             fi
35602         else
35603             DB_STYLE=
35604             { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm.h not found." >&5
35605 echo "$as_me: WARNING: *** dbm database library requested but dbm.h not found." >&2;}
35606         fi
35607         ;;
35608
35609     gdbm)
35610         if test "x$ac_cv_header_ndbm_h" = xyes; then
35611
35612 echo "$as_me:$LINENO: checking for main in -lgdbm" >&5
35613 echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
35614 if test "${ac_cv_lib_gdbm_main+set}" = set; then
35615   echo $ECHO_N "(cached) $ECHO_C" >&6
35616 else
35617   ac_check_lib_save_LIBS=$LIBS
35618 LIBS="-lgdbm  $LIBS"
35619 cat >conftest.$ac_ext <<_ACEOF
35620 /* confdefs.h.  */
35621 _ACEOF
35622 cat confdefs.h >>conftest.$ac_ext
35623 cat >>conftest.$ac_ext <<_ACEOF
35624 /* end confdefs.h.  */
35625
35626
35627 int
35628 main ()
35629 {
35630 main ();
35631   ;
35632   return 0;
35633 }
35634 _ACEOF
35635 rm -f conftest.$ac_objext conftest$ac_exeext
35636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35637   (eval $ac_link) 2>conftest.er1
35638   ac_status=$?
35639   grep -v '^ *+' conftest.er1 >conftest.err
35640   rm -f conftest.er1
35641   cat conftest.err >&5
35642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35643   (exit $ac_status); } &&
35644          { ac_try='test -z "$ac_c_werror_flag"
35645                          || test ! -s conftest.err'
35646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35647   (eval $ac_try) 2>&5
35648   ac_status=$?
35649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35650   (exit $ac_status); }; } &&
35651          { ac_try='test -s conftest$ac_exeext'
35652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35653   (eval $ac_try) 2>&5
35654   ac_status=$?
35655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35656   (exit $ac_status); }; }; then
35657   ac_cv_lib_gdbm_main=yes
35658 else
35659   echo "$as_me: failed program was:" >&5
35660 sed 's/^/| /' conftest.$ac_ext >&5
35661
35662 ac_cv_lib_gdbm_main=no
35663 fi
35664 rm -f conftest.err conftest.$ac_objext \
35665       conftest$ac_exeext conftest.$ac_ext
35666 LIBS=$ac_check_lib_save_LIBS
35667 fi
35668 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_main" >&5
35669 echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
35670 if test $ac_cv_lib_gdbm_main = yes; then
35671   cat >>confdefs.h <<_ACEOF
35672 #define HAVE_LIBGDBM 1
35673 _ACEOF
35674
35675   LIBS="-lgdbm $LIBS"
35676
35677 fi
35678
35679             if test "x$ac_cv_lib_gdbm_main" = xyes; then
35680
35681 echo "$as_me:$LINENO: checking for dbm_open in -lgdbm" >&5
35682 echo $ECHO_N "checking for dbm_open in -lgdbm... $ECHO_C" >&6
35683 if test "${ac_cv_lib_gdbm_dbm_open+set}" = set; then
35684   echo $ECHO_N "(cached) $ECHO_C" >&6
35685 else
35686   ac_check_lib_save_LIBS=$LIBS
35687 LIBS="-lgdbm  $LIBS"
35688 cat >conftest.$ac_ext <<_ACEOF
35689 /* confdefs.h.  */
35690 _ACEOF
35691 cat confdefs.h >>conftest.$ac_ext
35692 cat >>conftest.$ac_ext <<_ACEOF
35693 /* end confdefs.h.  */
35694
35695 /* Override any gcc2 internal prototype to avoid an error.  */
35696 #ifdef __cplusplus
35697 extern "C"
35698 #endif
35699 /* We use char because int might match the return type of a gcc2
35700    builtin and then its argument prototype would still apply.  */
35701 char dbm_open ();
35702 int
35703 main ()
35704 {
35705 dbm_open ();
35706   ;
35707   return 0;
35708 }
35709 _ACEOF
35710 rm -f conftest.$ac_objext conftest$ac_exeext
35711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35712   (eval $ac_link) 2>conftest.er1
35713   ac_status=$?
35714   grep -v '^ *+' conftest.er1 >conftest.err
35715   rm -f conftest.er1
35716   cat conftest.err >&5
35717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718   (exit $ac_status); } &&
35719          { ac_try='test -z "$ac_c_werror_flag"
35720                          || test ! -s conftest.err'
35721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35722   (eval $ac_try) 2>&5
35723   ac_status=$?
35724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725   (exit $ac_status); }; } &&
35726          { ac_try='test -s conftest$ac_exeext'
35727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35728   (eval $ac_try) 2>&5
35729   ac_status=$?
35730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35731   (exit $ac_status); }; }; then
35732   ac_cv_lib_gdbm_dbm_open=yes
35733 else
35734   echo "$as_me: failed program was:" >&5
35735 sed 's/^/| /' conftest.$ac_ext >&5
35736
35737 ac_cv_lib_gdbm_dbm_open=no
35738 fi
35739 rm -f conftest.err conftest.$ac_objext \
35740       conftest$ac_exeext conftest.$ac_ext
35741 LIBS=$ac_check_lib_save_LIBS
35742 fi
35743 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_dbm_open" >&5
35744 echo "${ECHO_T}$ac_cv_lib_gdbm_dbm_open" >&6
35745 if test $ac_cv_lib_gdbm_dbm_open = yes; then
35746   cat >>confdefs.h <<_ACEOF
35747 #define HAVE_LIBGDBM 1
35748 _ACEOF
35749
35750   LIBS="-lgdbm $LIBS"
35751
35752 fi
35753
35754                 if test "x$ac_cv_lib_gdbm_dbm_open" = xyes; then
35755                     DB_HEADER=ndbm.h
35756                     DB_LIB=gdbm
35757                 else
35758                     DB_STYLE=
35759                     { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but -lgdbm not found." >&5
35760 echo "$as_me: WARNING: *** gdbm database library requested but -lgdbm not found." >&2;}
35761                 fi
35762             else
35763                 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
35764                     DB_HEADER=ndbm.h
35765                     DB_LIB=c
35766                 else
35767                     DB_STYLE=
35768                     { echo "$as_me:$LINENO: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&5
35769 echo "$as_me: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&2;}
35770                 fi
35771             fi
35772         else
35773             DB_STYLE=
35774             { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but ndbm.h not found." >&5
35775 echo "$as_me: WARNING: *** gdbm database library requested but ndbm.h not found." >&2;}
35776         fi
35777         ;;
35778
35779     ndbm)
35780         if test "x$ac_cv_header_ndbm_h" = xyes; then
35781
35782 echo "$as_me:$LINENO: checking for main in -lndbm" >&5
35783 echo $ECHO_N "checking for main in -lndbm... $ECHO_C" >&6
35784 if test "${ac_cv_lib_ndbm_main+set}" = set; then
35785   echo $ECHO_N "(cached) $ECHO_C" >&6
35786 else
35787   ac_check_lib_save_LIBS=$LIBS
35788 LIBS="-lndbm  $LIBS"
35789 cat >conftest.$ac_ext <<_ACEOF
35790 /* confdefs.h.  */
35791 _ACEOF
35792 cat confdefs.h >>conftest.$ac_ext
35793 cat >>conftest.$ac_ext <<_ACEOF
35794 /* end confdefs.h.  */
35795
35796
35797 int
35798 main ()
35799 {
35800 main ();
35801   ;
35802   return 0;
35803 }
35804 _ACEOF
35805 rm -f conftest.$ac_objext conftest$ac_exeext
35806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35807   (eval $ac_link) 2>conftest.er1
35808   ac_status=$?
35809   grep -v '^ *+' conftest.er1 >conftest.err
35810   rm -f conftest.er1
35811   cat conftest.err >&5
35812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35813   (exit $ac_status); } &&
35814          { ac_try='test -z "$ac_c_werror_flag"
35815                          || test ! -s conftest.err'
35816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35817   (eval $ac_try) 2>&5
35818   ac_status=$?
35819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35820   (exit $ac_status); }; } &&
35821          { ac_try='test -s conftest$ac_exeext'
35822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35823   (eval $ac_try) 2>&5
35824   ac_status=$?
35825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35826   (exit $ac_status); }; }; then
35827   ac_cv_lib_ndbm_main=yes
35828 else
35829   echo "$as_me: failed program was:" >&5
35830 sed 's/^/| /' conftest.$ac_ext >&5
35831
35832 ac_cv_lib_ndbm_main=no
35833 fi
35834 rm -f conftest.err conftest.$ac_objext \
35835       conftest$ac_exeext conftest.$ac_ext
35836 LIBS=$ac_check_lib_save_LIBS
35837 fi
35838 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_main" >&5
35839 echo "${ECHO_T}$ac_cv_lib_ndbm_main" >&6
35840 if test $ac_cv_lib_ndbm_main = yes; then
35841   cat >>confdefs.h <<_ACEOF
35842 #define HAVE_LIBNDBM 1
35843 _ACEOF
35844
35845   LIBS="-lndbm $LIBS"
35846
35847 fi
35848
35849             if test "x$ac_cv_lib_ndbm_main" = xyes; then
35850
35851 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35852 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35853 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35854   echo $ECHO_N "(cached) $ECHO_C" >&6
35855 else
35856   ac_check_lib_save_LIBS=$LIBS
35857 LIBS="-lndbm  $LIBS"
35858 cat >conftest.$ac_ext <<_ACEOF
35859 /* confdefs.h.  */
35860 _ACEOF
35861 cat confdefs.h >>conftest.$ac_ext
35862 cat >>conftest.$ac_ext <<_ACEOF
35863 /* end confdefs.h.  */
35864
35865 /* Override any gcc2 internal prototype to avoid an error.  */
35866 #ifdef __cplusplus
35867 extern "C"
35868 #endif
35869 /* We use char because int might match the return type of a gcc2
35870    builtin and then its argument prototype would still apply.  */
35871 char dbm_open ();
35872 int
35873 main ()
35874 {
35875 dbm_open ();
35876   ;
35877   return 0;
35878 }
35879 _ACEOF
35880 rm -f conftest.$ac_objext conftest$ac_exeext
35881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35882   (eval $ac_link) 2>conftest.er1
35883   ac_status=$?
35884   grep -v '^ *+' conftest.er1 >conftest.err
35885   rm -f conftest.er1
35886   cat conftest.err >&5
35887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35888   (exit $ac_status); } &&
35889          { ac_try='test -z "$ac_c_werror_flag"
35890                          || test ! -s conftest.err'
35891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35892   (eval $ac_try) 2>&5
35893   ac_status=$?
35894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35895   (exit $ac_status); }; } &&
35896          { ac_try='test -s conftest$ac_exeext'
35897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35898   (eval $ac_try) 2>&5
35899   ac_status=$?
35900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35901   (exit $ac_status); }; }; then
35902   ac_cv_lib_ndbm_dbm_open=yes
35903 else
35904   echo "$as_me: failed program was:" >&5
35905 sed 's/^/| /' conftest.$ac_ext >&5
35906
35907 ac_cv_lib_ndbm_dbm_open=no
35908 fi
35909 rm -f conftest.err conftest.$ac_objext \
35910       conftest$ac_exeext conftest.$ac_ext
35911 LIBS=$ac_check_lib_save_LIBS
35912 fi
35913 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35914 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35915 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35916   cat >>confdefs.h <<_ACEOF
35917 #define HAVE_LIBNDBM 1
35918 _ACEOF
35919
35920   LIBS="-lndbm $LIBS"
35921
35922 fi
35923
35924                 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then
35925                     DB_HEADER=ndbm.h
35926                     DB_LIB=ndbm
35927                 else
35928                     DB_STYLE=
35929                     { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but -lndbm not found." >&5
35930 echo "$as_me: WARNING: *** ndbm database library requested but -lndbm not found." >&2;}
35931                 fi
35932             else
35933                 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
35934                     DB_HEADER=ndbm.h
35935                     DB_LIB=c
35936                 else
35937                     DB_STYLE=
35938                     { echo "$as_me:$LINENO: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&5
35939 echo "$as_me: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&2;}
35940                 fi
35941             fi
35942         else
35943             DB_STYLE=
35944             { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but ndbm.h not found." >&5
35945 echo "$as_me: WARNING: *** ndbm database library requested but ndbm.h not found." >&2;}
35946         fi
35947         ;;
35948     text)
35949         DB_HEADER=
35950         DB_LIB=
35951         ;;
35952 esac
35953
35954
35955 if test -z "$DB_STYLE"; then
35956     DB_STYLE=text
35957     DB_HEADER=
35958     DB_LIB=
35959 fi
35960
35961
35962 if test "x$DB_STYLE" = xtext; then
35963
35964 cat >>confdefs.h <<\_ACEOF
35965 #define TEXTDB 1
35966 _ACEOF
35967
35968 else
35969     echo "$as_me:$LINENO: checking for database" >&5
35970 echo $ECHO_N "checking for database... $ECHO_C" >&6
35971     echo "$as_me:$LINENO: result: header is $DB_HEADER, linking against -l$DB_LIB" >&5
35972 echo "${ECHO_T}header is $DB_HEADER, linking against -l$DB_LIB" >&6
35973     case "$DB_STYLE" in
35974         db)
35975 cat >>confdefs.h <<\_ACEOF
35976 #define USE_DB_H 1
35977 _ACEOF
35978    ;;
35979         dbm)
35980 cat >>confdefs.h <<\_ACEOF
35981 #define USE_DBM_H 1
35982 _ACEOF
35983   ;;
35984         gdbm)
35985 cat >>confdefs.h <<\_ACEOF
35986 #define USE_GDBM_H 1
35987 _ACEOF
35988  ;;
35989         ndbm)
35990 cat >>confdefs.h <<\_ACEOF
35991 #define USE_NDBM_H 1
35992 _ACEOF
35993  ;;
35994     esac
35995
35996     echo "$as_me:$LINENO: checking for struct datum declared in header files" >&5
35997 echo $ECHO_N "checking for struct datum declared in header files... $ECHO_C" >&6
35998 if test "${amanda_cv_struct_datum+set}" = set; then
35999   echo $ECHO_N "(cached) $ECHO_C" >&6
36000 else
36001
36002             cat >conftest.$ac_ext <<_ACEOF
36003 /* confdefs.h.  */
36004 _ACEOF
36005 cat confdefs.h >>conftest.$ac_ext
36006 cat >>conftest.$ac_ext <<_ACEOF
36007 /* end confdefs.h.  */
36008
36009 #if defined(USE_DB_H)
36010 #  include <db.h>
36011 #else
36012 #  if defined(USE_DBM_H)
36013 #    include <dbm.h>
36014 #  else
36015 #    if defined(USE_NDBM_H)
36016 #      include <ndbm.h>
36017 #    endif
36018 #  endif
36019 #endif
36020
36021 int
36022 main ()
36023 {
36024
36025                     datum a;
36026
36027   ;
36028   return 0;
36029 }
36030 _ACEOF
36031 rm -f conftest.$ac_objext
36032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36033   (eval $ac_compile) 2>conftest.er1
36034   ac_status=$?
36035   grep -v '^ *+' conftest.er1 >conftest.err
36036   rm -f conftest.er1
36037   cat conftest.err >&5
36038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36039   (exit $ac_status); } &&
36040          { ac_try='test -z "$ac_c_werror_flag"
36041                          || test ! -s conftest.err'
36042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36043   (eval $ac_try) 2>&5
36044   ac_status=$?
36045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36046   (exit $ac_status); }; } &&
36047          { ac_try='test -s conftest.$ac_objext'
36048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36049   (eval $ac_try) 2>&5
36050   ac_status=$?
36051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36052   (exit $ac_status); }; }; then
36053   amanda_cv_struct_datum=yes
36054 else
36055   echo "$as_me: failed program was:" >&5
36056 sed 's/^/| /' conftest.$ac_ext >&5
36057
36058 amanda_cv_struct_datum=no
36059
36060 fi
36061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36062
36063 fi
36064 echo "$as_me:$LINENO: result: $amanda_cv_struct_datum" >&5
36065 echo "${ECHO_T}$amanda_cv_struct_datum" >&6
36066     if test "x$amanda_cv_struct_datum" = xyes; then
36067
36068 cat >>confdefs.h <<\_ACEOF
36069 #define HAVE_STRUCT_DATUM 1
36070 _ACEOF
36071
36072     fi
36073 fi
36074
36075 case "$DB_STYLE" in
36076     db) DB_EXT=.db;;
36077     gdbm) DB_EXT='""';;
36078     dbm | ndbm) DB_EXT=".dir .pag";;
36079     text) DB_EXT='""';;
36080     *) DB_EXT=;;
36081 esac
36082
36083
36084 echo "$as_me:$LINENO: checking whether _POSIX2_RE_DUP_MAX is defined" >&5
36085 echo $ECHO_N "checking whether _POSIX2_RE_DUP_MAX is defined... $ECHO_C" >&6
36086 if test "${amanda_cv_have__posix2_re_dup_max+set}" = set; then
36087   echo $ECHO_N "(cached) $ECHO_C" >&6
36088 else
36089   cat >conftest.$ac_ext <<_ACEOF
36090 /* confdefs.h.  */
36091 _ACEOF
36092 cat confdefs.h >>conftest.$ac_ext
36093 cat >>conftest.$ac_ext <<_ACEOF
36094 /* end confdefs.h.  */
36095
36096 #include <limits.h>
36097 #ifdef _POSIX2_RE_DUP_MAX
36098   yes
36099 #endif
36100
36101 _ACEOF
36102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36103   $EGREP "yes" >/dev/null 2>&1; then
36104   amanda_cv_have__posix2_re_dup_max=yes
36105 else
36106   amanda_cv_have__posix2_re_dup_max=no
36107 fi
36108 rm -f conftest*
36109
36110 fi
36111 echo "$as_me:$LINENO: result: $amanda_cv_have__posix2_re_dup_max" >&5
36112 echo "${ECHO_T}$amanda_cv_have__posix2_re_dup_max" >&6
36113 if test "x$amanda_cv_have__posix2_re_dup_max" = xyes; then
36114
36115 cat >>confdefs.h <<\_ACEOF
36116 #define HAVE__POSIX2_RE_DUP_MAX 1
36117 _ACEOF
36118
36119 fi
36120
36121 echo "$as_me:$LINENO: checking whether CHAR_MIN is defined" >&5
36122 echo $ECHO_N "checking whether CHAR_MIN is defined... $ECHO_C" >&6
36123 if test "${amanda_cv_have_char_min+set}" = set; then
36124   echo $ECHO_N "(cached) $ECHO_C" >&6
36125 else
36126   cat >conftest.$ac_ext <<_ACEOF
36127 /* confdefs.h.  */
36128 _ACEOF
36129 cat confdefs.h >>conftest.$ac_ext
36130 cat >>conftest.$ac_ext <<_ACEOF
36131 /* end confdefs.h.  */
36132
36133 #include <limits.h>
36134 #ifdef CHAR_MIN
36135   yes
36136 #endif
36137
36138 _ACEOF
36139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36140   $EGREP "yes" >/dev/null 2>&1; then
36141   amanda_cv_have_char_min=yes
36142 else
36143   amanda_cv_have_char_min=no
36144 fi
36145 rm -f conftest*
36146
36147 fi
36148 echo "$as_me:$LINENO: result: $amanda_cv_have_char_min" >&5
36149 echo "${ECHO_T}$amanda_cv_have_char_min" >&6
36150 if test "x$amanda_cv_have_char_min" = xyes; then
36151
36152 cat >>confdefs.h <<\_ACEOF
36153 #define HAVE_CHAR_MIN 1
36154 _ACEOF
36155
36156 fi
36157
36158 echo "$as_me:$LINENO: checking whether CHAR_MAX is defined" >&5
36159 echo $ECHO_N "checking whether CHAR_MAX is defined... $ECHO_C" >&6
36160 if test "${amanda_cv_have_char_max+set}" = set; then
36161   echo $ECHO_N "(cached) $ECHO_C" >&6
36162 else
36163   cat >conftest.$ac_ext <<_ACEOF
36164 /* confdefs.h.  */
36165 _ACEOF
36166 cat confdefs.h >>conftest.$ac_ext
36167 cat >>conftest.$ac_ext <<_ACEOF
36168 /* end confdefs.h.  */
36169
36170 #include <limits.h>
36171 #ifdef CHAR_MAX
36172   yes
36173 #endif
36174
36175 _ACEOF
36176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36177   $EGREP "yes" >/dev/null 2>&1; then
36178   amanda_cv_have_char_max=yes
36179 else
36180   amanda_cv_have_char_max=no
36181 fi
36182 rm -f conftest*
36183
36184 fi
36185 echo "$as_me:$LINENO: result: $amanda_cv_have_char_max" >&5
36186 echo "${ECHO_T}$amanda_cv_have_char_max" >&6
36187 if test "x$amanda_cv_have_char_max" = xyes; then
36188
36189 cat >>confdefs.h <<\_ACEOF
36190 #define HAVE_CHAR_MAX 1
36191 _ACEOF
36192
36193 fi
36194
36195 echo "$as_me:$LINENO: checking whether CHAR_BIT is defined" >&5
36196 echo $ECHO_N "checking whether CHAR_BIT is defined... $ECHO_C" >&6
36197 if test "${amanda_cv_have_char_bit+set}" = set; then
36198   echo $ECHO_N "(cached) $ECHO_C" >&6
36199 else
36200   cat >conftest.$ac_ext <<_ACEOF
36201 /* confdefs.h.  */
36202 _ACEOF
36203 cat confdefs.h >>conftest.$ac_ext
36204 cat >>conftest.$ac_ext <<_ACEOF
36205 /* end confdefs.h.  */
36206
36207 #include <limits.h>
36208 #ifdef CHAR_BIT
36209   yes
36210 #endif
36211
36212 _ACEOF
36213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36214   $EGREP "yes" >/dev/null 2>&1; then
36215   amanda_cv_have_char_bit=yes
36216 else
36217   amanda_cv_have_char_bit=no
36218 fi
36219 rm -f conftest*
36220
36221 fi
36222 echo "$as_me:$LINENO: result: $amanda_cv_have_char_bit" >&5
36223 echo "${ECHO_T}$amanda_cv_have_char_bit" >&6
36224 if test "x$amanda_cv_have_char_bit" = xyes; then
36225
36226 cat >>confdefs.h <<\_ACEOF
36227 #define HAVE_CHAR_BIT 1
36228 _ACEOF
36229
36230 fi
36231
36232
36233 ice_have_accept=no
36234
36235 for ac_func in accept
36236 do
36237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36238 echo "$as_me:$LINENO: checking for $ac_func" >&5
36239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36240 if eval "test \"\${$as_ac_var+set}\" = set"; then
36241   echo $ECHO_N "(cached) $ECHO_C" >&6
36242 else
36243   cat >conftest.$ac_ext <<_ACEOF
36244 /* confdefs.h.  */
36245 _ACEOF
36246 cat confdefs.h >>conftest.$ac_ext
36247 cat >>conftest.$ac_ext <<_ACEOF
36248 /* end confdefs.h.  */
36249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36251 #define $ac_func innocuous_$ac_func
36252
36253 /* System header to define __stub macros and hopefully few prototypes,
36254     which can conflict with char $ac_func (); below.
36255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36256     <limits.h> exists even on freestanding compilers.  */
36257
36258 #ifdef __STDC__
36259 # include <limits.h>
36260 #else
36261 # include <assert.h>
36262 #endif
36263
36264 #undef $ac_func
36265
36266 /* Override any gcc2 internal prototype to avoid an error.  */
36267 #ifdef __cplusplus
36268 extern "C"
36269 {
36270 #endif
36271 /* We use char because int might match the return type of a gcc2
36272    builtin and then its argument prototype would still apply.  */
36273 char $ac_func ();
36274 /* The GNU C library defines this for functions which it implements
36275     to always fail with ENOSYS.  Some functions are actually named
36276     something starting with __ and the normal name is an alias.  */
36277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36278 choke me
36279 #else
36280 char (*f) () = $ac_func;
36281 #endif
36282 #ifdef __cplusplus
36283 }
36284 #endif
36285
36286 int
36287 main ()
36288 {
36289 return f != $ac_func;
36290   ;
36291   return 0;
36292 }
36293 _ACEOF
36294 rm -f conftest.$ac_objext conftest$ac_exeext
36295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36296   (eval $ac_link) 2>conftest.er1
36297   ac_status=$?
36298   grep -v '^ *+' conftest.er1 >conftest.err
36299   rm -f conftest.er1
36300   cat conftest.err >&5
36301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302   (exit $ac_status); } &&
36303          { ac_try='test -z "$ac_c_werror_flag"
36304                          || test ! -s conftest.err'
36305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36306   (eval $ac_try) 2>&5
36307   ac_status=$?
36308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36309   (exit $ac_status); }; } &&
36310          { ac_try='test -s conftest$ac_exeext'
36311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36312   (eval $ac_try) 2>&5
36313   ac_status=$?
36314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315   (exit $ac_status); }; }; then
36316   eval "$as_ac_var=yes"
36317 else
36318   echo "$as_me: failed program was:" >&5
36319 sed 's/^/| /' conftest.$ac_ext >&5
36320
36321 eval "$as_ac_var=no"
36322 fi
36323 rm -f conftest.err conftest.$ac_objext \
36324       conftest$ac_exeext conftest.$ac_ext
36325 fi
36326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36328 if test `eval echo '${'$as_ac_var'}'` = yes; then
36329   cat >>confdefs.h <<_ACEOF
36330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36331 _ACEOF
36332  ice_have_accept=yes
36333 fi
36334 done
36335
36336 if test "${ice_have_accept}" = yes; then
36337 echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
36338 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
36339 if test "${ice_cv_have_accept_decl+set}" = set; then
36340   echo $ECHO_N "(cached) $ECHO_C" >&6
36341 else
36342
36343 ice_cv_have_accept_decl=no
36344 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36345 ice_re_word='(^|[^a-zA-Z0-9_])'
36346 for header in sys/types.h sys/socket.h; do
36347 # Check for ordinary declaration
36348 cat >conftest.$ac_ext <<_ACEOF
36349 /* confdefs.h.  */
36350 _ACEOF
36351 cat confdefs.h >>conftest.$ac_ext
36352 cat >>conftest.$ac_ext <<_ACEOF
36353 /* end confdefs.h.  */
36354 #include <$header>
36355
36356 _ACEOF
36357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36358   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
36359   ice_cv_have_accept_decl=yes
36360 fi
36361 rm -f conftest*
36362
36363 if test "$ice_cv_have_accept_decl" = yes; then
36364         break
36365 fi
36366 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36367 cat >conftest.$ac_ext <<_ACEOF
36368 /* confdefs.h.  */
36369 _ACEOF
36370 cat confdefs.h >>conftest.$ac_ext
36371 cat >>conftest.$ac_ext <<_ACEOF
36372 /* end confdefs.h.  */
36373 #include <$header>
36374
36375 _ACEOF
36376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36377   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36378   ice_cv_have_accept_decl=yes
36379 fi
36380 rm -f conftest*
36381
36382 if test "$ice_cv_have_accept_decl" = yes; then
36383         break
36384 fi
36385 done
36386
36387 fi
36388
36389 echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
36390 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6
36391 if test "$ice_cv_have_accept_decl" = yes; then
36392
36393 cat >>confdefs.h <<_ACEOF
36394 #define HAVE_ACCEPT_DECL 1
36395 _ACEOF
36396
36397 fi
36398 fi
36399
36400 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
36401 # for constant arguments.  Useless!
36402 echo "$as_me:$LINENO: checking for working alloca.h" >&5
36403 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
36404 if test "${ac_cv_working_alloca_h+set}" = set; then
36405   echo $ECHO_N "(cached) $ECHO_C" >&6
36406 else
36407   cat >conftest.$ac_ext <<_ACEOF
36408 /* confdefs.h.  */
36409 _ACEOF
36410 cat confdefs.h >>conftest.$ac_ext
36411 cat >>conftest.$ac_ext <<_ACEOF
36412 /* end confdefs.h.  */
36413 #include <alloca.h>
36414 int
36415 main ()
36416 {
36417 char *p = (char *) alloca (2 * sizeof (int));
36418   ;
36419   return 0;
36420 }
36421 _ACEOF
36422 rm -f conftest.$ac_objext conftest$ac_exeext
36423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36424   (eval $ac_link) 2>conftest.er1
36425   ac_status=$?
36426   grep -v '^ *+' conftest.er1 >conftest.err
36427   rm -f conftest.er1
36428   cat conftest.err >&5
36429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36430   (exit $ac_status); } &&
36431          { ac_try='test -z "$ac_c_werror_flag"
36432                          || test ! -s conftest.err'
36433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36434   (eval $ac_try) 2>&5
36435   ac_status=$?
36436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36437   (exit $ac_status); }; } &&
36438          { ac_try='test -s conftest$ac_exeext'
36439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36440   (eval $ac_try) 2>&5
36441   ac_status=$?
36442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36443   (exit $ac_status); }; }; then
36444   ac_cv_working_alloca_h=yes
36445 else
36446   echo "$as_me: failed program was:" >&5
36447 sed 's/^/| /' conftest.$ac_ext >&5
36448
36449 ac_cv_working_alloca_h=no
36450 fi
36451 rm -f conftest.err conftest.$ac_objext \
36452       conftest$ac_exeext conftest.$ac_ext
36453 fi
36454 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
36455 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
36456 if test $ac_cv_working_alloca_h = yes; then
36457
36458 cat >>confdefs.h <<\_ACEOF
36459 #define HAVE_ALLOCA_H 1
36460 _ACEOF
36461
36462 fi
36463
36464 echo "$as_me:$LINENO: checking for alloca" >&5
36465 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
36466 if test "${ac_cv_func_alloca_works+set}" = set; then
36467   echo $ECHO_N "(cached) $ECHO_C" >&6
36468 else
36469   cat >conftest.$ac_ext <<_ACEOF
36470 /* confdefs.h.  */
36471 _ACEOF
36472 cat confdefs.h >>conftest.$ac_ext
36473 cat >>conftest.$ac_ext <<_ACEOF
36474 /* end confdefs.h.  */
36475 #ifdef __GNUC__
36476 # define alloca __builtin_alloca
36477 #else
36478 # ifdef _MSC_VER
36479 #  include <malloc.h>
36480 #  define alloca _alloca
36481 # else
36482 #  if HAVE_ALLOCA_H
36483 #   include <alloca.h>
36484 #  else
36485 #   ifdef _AIX
36486  #pragma alloca
36487 #   else
36488 #    ifndef alloca /* predefined by HP cc +Olibcalls */
36489 char *alloca ();
36490 #    endif
36491 #   endif
36492 #  endif
36493 # endif
36494 #endif
36495
36496 int
36497 main ()
36498 {
36499 char *p = (char *) alloca (1);
36500   ;
36501   return 0;
36502 }
36503 _ACEOF
36504 rm -f conftest.$ac_objext conftest$ac_exeext
36505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36506   (eval $ac_link) 2>conftest.er1
36507   ac_status=$?
36508   grep -v '^ *+' conftest.er1 >conftest.err
36509   rm -f conftest.er1
36510   cat conftest.err >&5
36511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36512   (exit $ac_status); } &&
36513          { ac_try='test -z "$ac_c_werror_flag"
36514                          || test ! -s conftest.err'
36515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36516   (eval $ac_try) 2>&5
36517   ac_status=$?
36518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519   (exit $ac_status); }; } &&
36520          { ac_try='test -s conftest$ac_exeext'
36521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36522   (eval $ac_try) 2>&5
36523   ac_status=$?
36524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36525   (exit $ac_status); }; }; then
36526   ac_cv_func_alloca_works=yes
36527 else
36528   echo "$as_me: failed program was:" >&5
36529 sed 's/^/| /' conftest.$ac_ext >&5
36530
36531 ac_cv_func_alloca_works=no
36532 fi
36533 rm -f conftest.err conftest.$ac_objext \
36534       conftest$ac_exeext conftest.$ac_ext
36535 fi
36536 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
36537 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
36538
36539 if test $ac_cv_func_alloca_works = yes; then
36540
36541 cat >>confdefs.h <<\_ACEOF
36542 #define HAVE_ALLOCA 1
36543 _ACEOF
36544
36545 else
36546   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
36547 # that cause trouble.  Some versions do not even contain alloca or
36548 # contain a buggy version.  If you still want to use their alloca,
36549 # use ar to extract alloca.o from them instead of compiling alloca.c.
36550
36551 ALLOCA=alloca.$ac_objext
36552
36553 cat >>confdefs.h <<\_ACEOF
36554 #define C_ALLOCA 1
36555 _ACEOF
36556
36557
36558 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
36559 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
36560 if test "${ac_cv_os_cray+set}" = set; then
36561   echo $ECHO_N "(cached) $ECHO_C" >&6
36562 else
36563   cat >conftest.$ac_ext <<_ACEOF
36564 /* confdefs.h.  */
36565 _ACEOF
36566 cat confdefs.h >>conftest.$ac_ext
36567 cat >>conftest.$ac_ext <<_ACEOF
36568 /* end confdefs.h.  */
36569 #if defined(CRAY) && ! defined(CRAY2)
36570 webecray
36571 #else
36572 wenotbecray
36573 #endif
36574
36575 _ACEOF
36576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36577   $EGREP "webecray" >/dev/null 2>&1; then
36578   ac_cv_os_cray=yes
36579 else
36580   ac_cv_os_cray=no
36581 fi
36582 rm -f conftest*
36583
36584 fi
36585 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
36586 echo "${ECHO_T}$ac_cv_os_cray" >&6
36587 if test $ac_cv_os_cray = yes; then
36588   for ac_func in _getb67 GETB67 getb67; do
36589     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36590 echo "$as_me:$LINENO: checking for $ac_func" >&5
36591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36592 if eval "test \"\${$as_ac_var+set}\" = set"; then
36593   echo $ECHO_N "(cached) $ECHO_C" >&6
36594 else
36595   cat >conftest.$ac_ext <<_ACEOF
36596 /* confdefs.h.  */
36597 _ACEOF
36598 cat confdefs.h >>conftest.$ac_ext
36599 cat >>conftest.$ac_ext <<_ACEOF
36600 /* end confdefs.h.  */
36601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36603 #define $ac_func innocuous_$ac_func
36604
36605 /* System header to define __stub macros and hopefully few prototypes,
36606     which can conflict with char $ac_func (); below.
36607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36608     <limits.h> exists even on freestanding compilers.  */
36609
36610 #ifdef __STDC__
36611 # include <limits.h>
36612 #else
36613 # include <assert.h>
36614 #endif
36615
36616 #undef $ac_func
36617
36618 /* Override any gcc2 internal prototype to avoid an error.  */
36619 #ifdef __cplusplus
36620 extern "C"
36621 {
36622 #endif
36623 /* We use char because int might match the return type of a gcc2
36624    builtin and then its argument prototype would still apply.  */
36625 char $ac_func ();
36626 /* The GNU C library defines this for functions which it implements
36627     to always fail with ENOSYS.  Some functions are actually named
36628     something starting with __ and the normal name is an alias.  */
36629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36630 choke me
36631 #else
36632 char (*f) () = $ac_func;
36633 #endif
36634 #ifdef __cplusplus
36635 }
36636 #endif
36637
36638 int
36639 main ()
36640 {
36641 return f != $ac_func;
36642   ;
36643   return 0;
36644 }
36645 _ACEOF
36646 rm -f conftest.$ac_objext conftest$ac_exeext
36647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36648   (eval $ac_link) 2>conftest.er1
36649   ac_status=$?
36650   grep -v '^ *+' conftest.er1 >conftest.err
36651   rm -f conftest.er1
36652   cat conftest.err >&5
36653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36654   (exit $ac_status); } &&
36655          { ac_try='test -z "$ac_c_werror_flag"
36656                          || test ! -s conftest.err'
36657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36658   (eval $ac_try) 2>&5
36659   ac_status=$?
36660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661   (exit $ac_status); }; } &&
36662          { ac_try='test -s conftest$ac_exeext'
36663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36664   (eval $ac_try) 2>&5
36665   ac_status=$?
36666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36667   (exit $ac_status); }; }; then
36668   eval "$as_ac_var=yes"
36669 else
36670   echo "$as_me: failed program was:" >&5
36671 sed 's/^/| /' conftest.$ac_ext >&5
36672
36673 eval "$as_ac_var=no"
36674 fi
36675 rm -f conftest.err conftest.$ac_objext \
36676       conftest$ac_exeext conftest.$ac_ext
36677 fi
36678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36680 if test `eval echo '${'$as_ac_var'}'` = yes; then
36681
36682 cat >>confdefs.h <<_ACEOF
36683 #define CRAY_STACKSEG_END $ac_func
36684 _ACEOF
36685
36686     break
36687 fi
36688
36689   done
36690 fi
36691
36692 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
36693 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
36694 if test "${ac_cv_c_stack_direction+set}" = set; then
36695   echo $ECHO_N "(cached) $ECHO_C" >&6
36696 else
36697   if test "$cross_compiling" = yes; then
36698   ac_cv_c_stack_direction=0
36699 else
36700   cat >conftest.$ac_ext <<_ACEOF
36701 /* confdefs.h.  */
36702 _ACEOF
36703 cat confdefs.h >>conftest.$ac_ext
36704 cat >>conftest.$ac_ext <<_ACEOF
36705 /* end confdefs.h.  */
36706 int
36707 find_stack_direction ()
36708 {
36709   static char *addr = 0;
36710   auto char dummy;
36711   if (addr == 0)
36712     {
36713       addr = &dummy;
36714       return find_stack_direction ();
36715     }
36716   else
36717     return (&dummy > addr) ? 1 : -1;
36718 }
36719
36720 int
36721 main ()
36722 {
36723   exit (find_stack_direction () < 0);
36724 }
36725 _ACEOF
36726 rm -f conftest$ac_exeext
36727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36728   (eval $ac_link) 2>&5
36729   ac_status=$?
36730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36733   (eval $ac_try) 2>&5
36734   ac_status=$?
36735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36736   (exit $ac_status); }; }; then
36737   ac_cv_c_stack_direction=1
36738 else
36739   echo "$as_me: program exited with status $ac_status" >&5
36740 echo "$as_me: failed program was:" >&5
36741 sed 's/^/| /' conftest.$ac_ext >&5
36742
36743 ( exit $ac_status )
36744 ac_cv_c_stack_direction=-1
36745 fi
36746 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36747 fi
36748 fi
36749 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
36750 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
36751
36752 cat >>confdefs.h <<_ACEOF
36753 #define STACK_DIRECTION $ac_cv_c_stack_direction
36754 _ACEOF
36755
36756
36757 fi
36758
36759
36760 for ac_func in atexit
36761 do
36762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36763 echo "$as_me:$LINENO: checking for $ac_func" >&5
36764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36765 if eval "test \"\${$as_ac_var+set}\" = set"; then
36766   echo $ECHO_N "(cached) $ECHO_C" >&6
36767 else
36768   cat >conftest.$ac_ext <<_ACEOF
36769 /* confdefs.h.  */
36770 _ACEOF
36771 cat confdefs.h >>conftest.$ac_ext
36772 cat >>conftest.$ac_ext <<_ACEOF
36773 /* end confdefs.h.  */
36774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36776 #define $ac_func innocuous_$ac_func
36777
36778 /* System header to define __stub macros and hopefully few prototypes,
36779     which can conflict with char $ac_func (); below.
36780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36781     <limits.h> exists even on freestanding compilers.  */
36782
36783 #ifdef __STDC__
36784 # include <limits.h>
36785 #else
36786 # include <assert.h>
36787 #endif
36788
36789 #undef $ac_func
36790
36791 /* Override any gcc2 internal prototype to avoid an error.  */
36792 #ifdef __cplusplus
36793 extern "C"
36794 {
36795 #endif
36796 /* We use char because int might match the return type of a gcc2
36797    builtin and then its argument prototype would still apply.  */
36798 char $ac_func ();
36799 /* The GNU C library defines this for functions which it implements
36800     to always fail with ENOSYS.  Some functions are actually named
36801     something starting with __ and the normal name is an alias.  */
36802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36803 choke me
36804 #else
36805 char (*f) () = $ac_func;
36806 #endif
36807 #ifdef __cplusplus
36808 }
36809 #endif
36810
36811 int
36812 main ()
36813 {
36814 return f != $ac_func;
36815   ;
36816   return 0;
36817 }
36818 _ACEOF
36819 rm -f conftest.$ac_objext conftest$ac_exeext
36820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36821   (eval $ac_link) 2>conftest.er1
36822   ac_status=$?
36823   grep -v '^ *+' conftest.er1 >conftest.err
36824   rm -f conftest.er1
36825   cat conftest.err >&5
36826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36827   (exit $ac_status); } &&
36828          { ac_try='test -z "$ac_c_werror_flag"
36829                          || test ! -s conftest.err'
36830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36831   (eval $ac_try) 2>&5
36832   ac_status=$?
36833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36834   (exit $ac_status); }; } &&
36835          { ac_try='test -s conftest$ac_exeext'
36836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36837   (eval $ac_try) 2>&5
36838   ac_status=$?
36839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36840   (exit $ac_status); }; }; then
36841   eval "$as_ac_var=yes"
36842 else
36843   echo "$as_me: failed program was:" >&5
36844 sed 's/^/| /' conftest.$ac_ext >&5
36845
36846 eval "$as_ac_var=no"
36847 fi
36848 rm -f conftest.err conftest.$ac_objext \
36849       conftest$ac_exeext conftest.$ac_ext
36850 fi
36851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36853 if test `eval echo '${'$as_ac_var'}'` = yes; then
36854   cat >>confdefs.h <<_ACEOF
36855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36856 _ACEOF
36857
36858 fi
36859 done
36860
36861
36862 ice_have_atof=no
36863
36864 for ac_func in atof
36865 do
36866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36867 echo "$as_me:$LINENO: checking for $ac_func" >&5
36868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36869 if eval "test \"\${$as_ac_var+set}\" = set"; then
36870   echo $ECHO_N "(cached) $ECHO_C" >&6
36871 else
36872   cat >conftest.$ac_ext <<_ACEOF
36873 /* confdefs.h.  */
36874 _ACEOF
36875 cat confdefs.h >>conftest.$ac_ext
36876 cat >>conftest.$ac_ext <<_ACEOF
36877 /* end confdefs.h.  */
36878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36880 #define $ac_func innocuous_$ac_func
36881
36882 /* System header to define __stub macros and hopefully few prototypes,
36883     which can conflict with char $ac_func (); below.
36884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36885     <limits.h> exists even on freestanding compilers.  */
36886
36887 #ifdef __STDC__
36888 # include <limits.h>
36889 #else
36890 # include <assert.h>
36891 #endif
36892
36893 #undef $ac_func
36894
36895 /* Override any gcc2 internal prototype to avoid an error.  */
36896 #ifdef __cplusplus
36897 extern "C"
36898 {
36899 #endif
36900 /* We use char because int might match the return type of a gcc2
36901    builtin and then its argument prototype would still apply.  */
36902 char $ac_func ();
36903 /* The GNU C library defines this for functions which it implements
36904     to always fail with ENOSYS.  Some functions are actually named
36905     something starting with __ and the normal name is an alias.  */
36906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36907 choke me
36908 #else
36909 char (*f) () = $ac_func;
36910 #endif
36911 #ifdef __cplusplus
36912 }
36913 #endif
36914
36915 int
36916 main ()
36917 {
36918 return f != $ac_func;
36919   ;
36920   return 0;
36921 }
36922 _ACEOF
36923 rm -f conftest.$ac_objext conftest$ac_exeext
36924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36925   (eval $ac_link) 2>conftest.er1
36926   ac_status=$?
36927   grep -v '^ *+' conftest.er1 >conftest.err
36928   rm -f conftest.er1
36929   cat conftest.err >&5
36930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36931   (exit $ac_status); } &&
36932          { ac_try='test -z "$ac_c_werror_flag"
36933                          || test ! -s conftest.err'
36934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36935   (eval $ac_try) 2>&5
36936   ac_status=$?
36937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36938   (exit $ac_status); }; } &&
36939          { ac_try='test -s conftest$ac_exeext'
36940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36941   (eval $ac_try) 2>&5
36942   ac_status=$?
36943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944   (exit $ac_status); }; }; then
36945   eval "$as_ac_var=yes"
36946 else
36947   echo "$as_me: failed program was:" >&5
36948 sed 's/^/| /' conftest.$ac_ext >&5
36949
36950 eval "$as_ac_var=no"
36951 fi
36952 rm -f conftest.err conftest.$ac_objext \
36953       conftest$ac_exeext conftest.$ac_ext
36954 fi
36955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36957 if test `eval echo '${'$as_ac_var'}'` = yes; then
36958   cat >>confdefs.h <<_ACEOF
36959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36960 _ACEOF
36961  ice_have_atof=yes
36962 fi
36963 done
36964
36965 if test "${ice_have_atof}" = yes; then
36966 echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
36967 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6
36968 if test "${ice_cv_have_atof_decl+set}" = set; then
36969   echo $ECHO_N "(cached) $ECHO_C" >&6
36970 else
36971
36972 ice_cv_have_atof_decl=no
36973 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36974 ice_re_word='(^|[^a-zA-Z0-9_])'
36975 for header in stdlib.h; do
36976 # Check for ordinary declaration
36977 cat >conftest.$ac_ext <<_ACEOF
36978 /* confdefs.h.  */
36979 _ACEOF
36980 cat confdefs.h >>conftest.$ac_ext
36981 cat >>conftest.$ac_ext <<_ACEOF
36982 /* end confdefs.h.  */
36983 #include <$header>
36984
36985 _ACEOF
36986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36987   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
36988   ice_cv_have_atof_decl=yes
36989 fi
36990 rm -f conftest*
36991
36992 if test "$ice_cv_have_atof_decl" = yes; then
36993         break
36994 fi
36995 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36996 cat >conftest.$ac_ext <<_ACEOF
36997 /* confdefs.h.  */
36998 _ACEOF
36999 cat confdefs.h >>conftest.$ac_ext
37000 cat >>conftest.$ac_ext <<_ACEOF
37001 /* end confdefs.h.  */
37002 #include <$header>
37003
37004 _ACEOF
37005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37006   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37007   ice_cv_have_atof_decl=yes
37008 fi
37009 rm -f conftest*
37010
37011 if test "$ice_cv_have_atof_decl" = yes; then
37012         break
37013 fi
37014 done
37015
37016 fi
37017
37018 echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
37019 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6
37020 if test "$ice_cv_have_atof_decl" = yes; then
37021
37022 cat >>confdefs.h <<_ACEOF
37023 #define HAVE_ATOF_DECL 1
37024 _ACEOF
37025
37026 fi
37027 fi
37028
37029
37030 ice_have_atoi=no
37031
37032 for ac_func in atoi
37033 do
37034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37035 echo "$as_me:$LINENO: checking for $ac_func" >&5
37036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37037 if eval "test \"\${$as_ac_var+set}\" = set"; then
37038   echo $ECHO_N "(cached) $ECHO_C" >&6
37039 else
37040   cat >conftest.$ac_ext <<_ACEOF
37041 /* confdefs.h.  */
37042 _ACEOF
37043 cat confdefs.h >>conftest.$ac_ext
37044 cat >>conftest.$ac_ext <<_ACEOF
37045 /* end confdefs.h.  */
37046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37048 #define $ac_func innocuous_$ac_func
37049
37050 /* System header to define __stub macros and hopefully few prototypes,
37051     which can conflict with char $ac_func (); below.
37052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37053     <limits.h> exists even on freestanding compilers.  */
37054
37055 #ifdef __STDC__
37056 # include <limits.h>
37057 #else
37058 # include <assert.h>
37059 #endif
37060
37061 #undef $ac_func
37062
37063 /* Override any gcc2 internal prototype to avoid an error.  */
37064 #ifdef __cplusplus
37065 extern "C"
37066 {
37067 #endif
37068 /* We use char because int might match the return type of a gcc2
37069    builtin and then its argument prototype would still apply.  */
37070 char $ac_func ();
37071 /* The GNU C library defines this for functions which it implements
37072     to always fail with ENOSYS.  Some functions are actually named
37073     something starting with __ and the normal name is an alias.  */
37074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37075 choke me
37076 #else
37077 char (*f) () = $ac_func;
37078 #endif
37079 #ifdef __cplusplus
37080 }
37081 #endif
37082
37083 int
37084 main ()
37085 {
37086 return f != $ac_func;
37087   ;
37088   return 0;
37089 }
37090 _ACEOF
37091 rm -f conftest.$ac_objext conftest$ac_exeext
37092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37093   (eval $ac_link) 2>conftest.er1
37094   ac_status=$?
37095   grep -v '^ *+' conftest.er1 >conftest.err
37096   rm -f conftest.er1
37097   cat conftest.err >&5
37098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099   (exit $ac_status); } &&
37100          { ac_try='test -z "$ac_c_werror_flag"
37101                          || test ! -s conftest.err'
37102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37103   (eval $ac_try) 2>&5
37104   ac_status=$?
37105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37106   (exit $ac_status); }; } &&
37107          { ac_try='test -s conftest$ac_exeext'
37108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37109   (eval $ac_try) 2>&5
37110   ac_status=$?
37111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37112   (exit $ac_status); }; }; then
37113   eval "$as_ac_var=yes"
37114 else
37115   echo "$as_me: failed program was:" >&5
37116 sed 's/^/| /' conftest.$ac_ext >&5
37117
37118 eval "$as_ac_var=no"
37119 fi
37120 rm -f conftest.err conftest.$ac_objext \
37121       conftest$ac_exeext conftest.$ac_ext
37122 fi
37123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37125 if test `eval echo '${'$as_ac_var'}'` = yes; then
37126   cat >>confdefs.h <<_ACEOF
37127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37128 _ACEOF
37129  ice_have_atoi=yes
37130 fi
37131 done
37132
37133 if test "${ice_have_atoi}" = yes; then
37134 echo "$as_me:$LINENO: checking for atoi declaration in stdlib.h" >&5
37135 echo $ECHO_N "checking for atoi declaration in stdlib.h... $ECHO_C" >&6
37136 if test "${ice_cv_have_atoi_decl+set}" = set; then
37137   echo $ECHO_N "(cached) $ECHO_C" >&6
37138 else
37139
37140 ice_cv_have_atoi_decl=no
37141 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37142 ice_re_word='(^|[^a-zA-Z0-9_])'
37143 for header in stdlib.h; do
37144 # Check for ordinary declaration
37145 cat >conftest.$ac_ext <<_ACEOF
37146 /* confdefs.h.  */
37147 _ACEOF
37148 cat confdefs.h >>conftest.$ac_ext
37149 cat >>conftest.$ac_ext <<_ACEOF
37150 /* end confdefs.h.  */
37151 #include <$header>
37152
37153 _ACEOF
37154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37155   $EGREP "${ice_re_word}atoi[   ]*\(" >/dev/null 2>&1; then
37156   ice_cv_have_atoi_decl=yes
37157 fi
37158 rm -f conftest*
37159
37160 if test "$ice_cv_have_atoi_decl" = yes; then
37161         break
37162 fi
37163 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37164 cat >conftest.$ac_ext <<_ACEOF
37165 /* confdefs.h.  */
37166 _ACEOF
37167 cat confdefs.h >>conftest.$ac_ext
37168 cat >>conftest.$ac_ext <<_ACEOF
37169 /* end confdefs.h.  */
37170 #include <$header>
37171
37172 _ACEOF
37173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37174   $EGREP "${ice_re_word}atoi[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37175   ice_cv_have_atoi_decl=yes
37176 fi
37177 rm -f conftest*
37178
37179 if test "$ice_cv_have_atoi_decl" = yes; then
37180         break
37181 fi
37182 done
37183
37184 fi
37185
37186 echo "$as_me:$LINENO: result: $ice_cv_have_atoi_decl" >&5
37187 echo "${ECHO_T}$ice_cv_have_atoi_decl" >&6
37188 if test "$ice_cv_have_atoi_decl" = yes; then
37189
37190 cat >>confdefs.h <<_ACEOF
37191 #define HAVE_ATOI_DECL 1
37192 _ACEOF
37193
37194 fi
37195 fi
37196
37197
37198 ice_have_atol=no
37199
37200 for ac_func in atol
37201 do
37202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37203 echo "$as_me:$LINENO: checking for $ac_func" >&5
37204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37205 if eval "test \"\${$as_ac_var+set}\" = set"; then
37206   echo $ECHO_N "(cached) $ECHO_C" >&6
37207 else
37208   cat >conftest.$ac_ext <<_ACEOF
37209 /* confdefs.h.  */
37210 _ACEOF
37211 cat confdefs.h >>conftest.$ac_ext
37212 cat >>conftest.$ac_ext <<_ACEOF
37213 /* end confdefs.h.  */
37214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37216 #define $ac_func innocuous_$ac_func
37217
37218 /* System header to define __stub macros and hopefully few prototypes,
37219     which can conflict with char $ac_func (); below.
37220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37221     <limits.h> exists even on freestanding compilers.  */
37222
37223 #ifdef __STDC__
37224 # include <limits.h>
37225 #else
37226 # include <assert.h>
37227 #endif
37228
37229 #undef $ac_func
37230
37231 /* Override any gcc2 internal prototype to avoid an error.  */
37232 #ifdef __cplusplus
37233 extern "C"
37234 {
37235 #endif
37236 /* We use char because int might match the return type of a gcc2
37237    builtin and then its argument prototype would still apply.  */
37238 char $ac_func ();
37239 /* The GNU C library defines this for functions which it implements
37240     to always fail with ENOSYS.  Some functions are actually named
37241     something starting with __ and the normal name is an alias.  */
37242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37243 choke me
37244 #else
37245 char (*f) () = $ac_func;
37246 #endif
37247 #ifdef __cplusplus
37248 }
37249 #endif
37250
37251 int
37252 main ()
37253 {
37254 return f != $ac_func;
37255   ;
37256   return 0;
37257 }
37258 _ACEOF
37259 rm -f conftest.$ac_objext conftest$ac_exeext
37260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37261   (eval $ac_link) 2>conftest.er1
37262   ac_status=$?
37263   grep -v '^ *+' conftest.er1 >conftest.err
37264   rm -f conftest.er1
37265   cat conftest.err >&5
37266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37267   (exit $ac_status); } &&
37268          { ac_try='test -z "$ac_c_werror_flag"
37269                          || test ! -s conftest.err'
37270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37271   (eval $ac_try) 2>&5
37272   ac_status=$?
37273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274   (exit $ac_status); }; } &&
37275          { ac_try='test -s conftest$ac_exeext'
37276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37277   (eval $ac_try) 2>&5
37278   ac_status=$?
37279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280   (exit $ac_status); }; }; then
37281   eval "$as_ac_var=yes"
37282 else
37283   echo "$as_me: failed program was:" >&5
37284 sed 's/^/| /' conftest.$ac_ext >&5
37285
37286 eval "$as_ac_var=no"
37287 fi
37288 rm -f conftest.err conftest.$ac_objext \
37289       conftest$ac_exeext conftest.$ac_ext
37290 fi
37291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37293 if test `eval echo '${'$as_ac_var'}'` = yes; then
37294   cat >>confdefs.h <<_ACEOF
37295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37296 _ACEOF
37297  ice_have_atol=yes
37298 fi
37299 done
37300
37301 if test "${ice_have_atol}" = yes; then
37302 echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
37303 echo $ECHO_N "checking for atol declaration in stdlib.h... $ECHO_C" >&6
37304 if test "${ice_cv_have_atol_decl+set}" = set; then
37305   echo $ECHO_N "(cached) $ECHO_C" >&6
37306 else
37307
37308 ice_cv_have_atol_decl=no
37309 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37310 ice_re_word='(^|[^a-zA-Z0-9_])'
37311 for header in stdlib.h; do
37312 # Check for ordinary declaration
37313 cat >conftest.$ac_ext <<_ACEOF
37314 /* confdefs.h.  */
37315 _ACEOF
37316 cat confdefs.h >>conftest.$ac_ext
37317 cat >>conftest.$ac_ext <<_ACEOF
37318 /* end confdefs.h.  */
37319 #include <$header>
37320
37321 _ACEOF
37322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37323   $EGREP "${ice_re_word}atol[   ]*\(" >/dev/null 2>&1; then
37324   ice_cv_have_atol_decl=yes
37325 fi
37326 rm -f conftest*
37327
37328 if test "$ice_cv_have_atol_decl" = yes; then
37329         break
37330 fi
37331 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37332 cat >conftest.$ac_ext <<_ACEOF
37333 /* confdefs.h.  */
37334 _ACEOF
37335 cat confdefs.h >>conftest.$ac_ext
37336 cat >>conftest.$ac_ext <<_ACEOF
37337 /* end confdefs.h.  */
37338 #include <$header>
37339
37340 _ACEOF
37341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37342   $EGREP "${ice_re_word}atol[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37343   ice_cv_have_atol_decl=yes
37344 fi
37345 rm -f conftest*
37346
37347 if test "$ice_cv_have_atol_decl" = yes; then
37348         break
37349 fi
37350 done
37351
37352 fi
37353
37354 echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
37355 echo "${ECHO_T}$ice_cv_have_atol_decl" >&6
37356 if test "$ice_cv_have_atol_decl" = yes; then
37357
37358 cat >>confdefs.h <<_ACEOF
37359 #define HAVE_ATOL_DECL 1
37360 _ACEOF
37361
37362 fi
37363 fi
37364
37365
37366 ice_have_atoll=no
37367
37368 for ac_func in atoll
37369 do
37370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37371 echo "$as_me:$LINENO: checking for $ac_func" >&5
37372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37373 if eval "test \"\${$as_ac_var+set}\" = set"; then
37374   echo $ECHO_N "(cached) $ECHO_C" >&6
37375 else
37376   cat >conftest.$ac_ext <<_ACEOF
37377 /* confdefs.h.  */
37378 _ACEOF
37379 cat confdefs.h >>conftest.$ac_ext
37380 cat >>conftest.$ac_ext <<_ACEOF
37381 /* end confdefs.h.  */
37382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37384 #define $ac_func innocuous_$ac_func
37385
37386 /* System header to define __stub macros and hopefully few prototypes,
37387     which can conflict with char $ac_func (); below.
37388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37389     <limits.h> exists even on freestanding compilers.  */
37390
37391 #ifdef __STDC__
37392 # include <limits.h>
37393 #else
37394 # include <assert.h>
37395 #endif
37396
37397 #undef $ac_func
37398
37399 /* Override any gcc2 internal prototype to avoid an error.  */
37400 #ifdef __cplusplus
37401 extern "C"
37402 {
37403 #endif
37404 /* We use char because int might match the return type of a gcc2
37405    builtin and then its argument prototype would still apply.  */
37406 char $ac_func ();
37407 /* The GNU C library defines this for functions which it implements
37408     to always fail with ENOSYS.  Some functions are actually named
37409     something starting with __ and the normal name is an alias.  */
37410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37411 choke me
37412 #else
37413 char (*f) () = $ac_func;
37414 #endif
37415 #ifdef __cplusplus
37416 }
37417 #endif
37418
37419 int
37420 main ()
37421 {
37422 return f != $ac_func;
37423   ;
37424   return 0;
37425 }
37426 _ACEOF
37427 rm -f conftest.$ac_objext conftest$ac_exeext
37428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37429   (eval $ac_link) 2>conftest.er1
37430   ac_status=$?
37431   grep -v '^ *+' conftest.er1 >conftest.err
37432   rm -f conftest.er1
37433   cat conftest.err >&5
37434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37435   (exit $ac_status); } &&
37436          { ac_try='test -z "$ac_c_werror_flag"
37437                          || test ! -s conftest.err'
37438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37439   (eval $ac_try) 2>&5
37440   ac_status=$?
37441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442   (exit $ac_status); }; } &&
37443          { ac_try='test -s conftest$ac_exeext'
37444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37445   (eval $ac_try) 2>&5
37446   ac_status=$?
37447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37448   (exit $ac_status); }; }; then
37449   eval "$as_ac_var=yes"
37450 else
37451   echo "$as_me: failed program was:" >&5
37452 sed 's/^/| /' conftest.$ac_ext >&5
37453
37454 eval "$as_ac_var=no"
37455 fi
37456 rm -f conftest.err conftest.$ac_objext \
37457       conftest$ac_exeext conftest.$ac_ext
37458 fi
37459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37461 if test `eval echo '${'$as_ac_var'}'` = yes; then
37462   cat >>confdefs.h <<_ACEOF
37463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37464 _ACEOF
37465  ice_have_atoll=yes
37466 fi
37467 done
37468
37469 if test "${ice_have_atoll}" = yes; then
37470 echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
37471 echo $ECHO_N "checking for atoll declaration in stdlib.h... $ECHO_C" >&6
37472 if test "${ice_cv_have_atoll_decl+set}" = set; then
37473   echo $ECHO_N "(cached) $ECHO_C" >&6
37474 else
37475
37476 ice_cv_have_atoll_decl=no
37477 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37478 ice_re_word='(^|[^a-zA-Z0-9_])'
37479 for header in stdlib.h; do
37480 # Check for ordinary declaration
37481 cat >conftest.$ac_ext <<_ACEOF
37482 /* confdefs.h.  */
37483 _ACEOF
37484 cat confdefs.h >>conftest.$ac_ext
37485 cat >>conftest.$ac_ext <<_ACEOF
37486 /* end confdefs.h.  */
37487 #include <$header>
37488
37489 _ACEOF
37490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37491   $EGREP "${ice_re_word}atoll[  ]*\(" >/dev/null 2>&1; then
37492   ice_cv_have_atoll_decl=yes
37493 fi
37494 rm -f conftest*
37495
37496 if test "$ice_cv_have_atoll_decl" = yes; then
37497         break
37498 fi
37499 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37500 cat >conftest.$ac_ext <<_ACEOF
37501 /* confdefs.h.  */
37502 _ACEOF
37503 cat confdefs.h >>conftest.$ac_ext
37504 cat >>conftest.$ac_ext <<_ACEOF
37505 /* end confdefs.h.  */
37506 #include <$header>
37507
37508 _ACEOF
37509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37510   $EGREP "${ice_re_word}atoll[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37511   ice_cv_have_atoll_decl=yes
37512 fi
37513 rm -f conftest*
37514
37515 if test "$ice_cv_have_atoll_decl" = yes; then
37516         break
37517 fi
37518 done
37519
37520 fi
37521
37522 echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
37523 echo "${ECHO_T}$ice_cv_have_atoll_decl" >&6
37524 if test "$ice_cv_have_atoll_decl" = yes; then
37525
37526 cat >>confdefs.h <<_ACEOF
37527 #define HAVE_ATOLL_DECL 1
37528 _ACEOF
37529
37530 fi
37531 fi
37532
37533
37534 for ac_func in basename
37535 do
37536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37537 echo "$as_me:$LINENO: checking for $ac_func" >&5
37538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37539 if eval "test \"\${$as_ac_var+set}\" = set"; then
37540   echo $ECHO_N "(cached) $ECHO_C" >&6
37541 else
37542   cat >conftest.$ac_ext <<_ACEOF
37543 /* confdefs.h.  */
37544 _ACEOF
37545 cat confdefs.h >>conftest.$ac_ext
37546 cat >>conftest.$ac_ext <<_ACEOF
37547 /* end confdefs.h.  */
37548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37550 #define $ac_func innocuous_$ac_func
37551
37552 /* System header to define __stub macros and hopefully few prototypes,
37553     which can conflict with char $ac_func (); below.
37554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37555     <limits.h> exists even on freestanding compilers.  */
37556
37557 #ifdef __STDC__
37558 # include <limits.h>
37559 #else
37560 # include <assert.h>
37561 #endif
37562
37563 #undef $ac_func
37564
37565 /* Override any gcc2 internal prototype to avoid an error.  */
37566 #ifdef __cplusplus
37567 extern "C"
37568 {
37569 #endif
37570 /* We use char because int might match the return type of a gcc2
37571    builtin and then its argument prototype would still apply.  */
37572 char $ac_func ();
37573 /* The GNU C library defines this for functions which it implements
37574     to always fail with ENOSYS.  Some functions are actually named
37575     something starting with __ and the normal name is an alias.  */
37576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37577 choke me
37578 #else
37579 char (*f) () = $ac_func;
37580 #endif
37581 #ifdef __cplusplus
37582 }
37583 #endif
37584
37585 int
37586 main ()
37587 {
37588 return f != $ac_func;
37589   ;
37590   return 0;
37591 }
37592 _ACEOF
37593 rm -f conftest.$ac_objext conftest$ac_exeext
37594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37595   (eval $ac_link) 2>conftest.er1
37596   ac_status=$?
37597   grep -v '^ *+' conftest.er1 >conftest.err
37598   rm -f conftest.er1
37599   cat conftest.err >&5
37600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37601   (exit $ac_status); } &&
37602          { ac_try='test -z "$ac_c_werror_flag"
37603                          || test ! -s conftest.err'
37604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37605   (eval $ac_try) 2>&5
37606   ac_status=$?
37607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37608   (exit $ac_status); }; } &&
37609          { ac_try='test -s conftest$ac_exeext'
37610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37611   (eval $ac_try) 2>&5
37612   ac_status=$?
37613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37614   (exit $ac_status); }; }; then
37615   eval "$as_ac_var=yes"
37616 else
37617   echo "$as_me: failed program was:" >&5
37618 sed 's/^/| /' conftest.$ac_ext >&5
37619
37620 eval "$as_ac_var=no"
37621 fi
37622 rm -f conftest.err conftest.$ac_objext \
37623       conftest$ac_exeext conftest.$ac_ext
37624 fi
37625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37627 if test `eval echo '${'$as_ac_var'}'` = yes; then
37628   cat >>confdefs.h <<_ACEOF
37629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37630 _ACEOF
37631
37632 fi
37633 done
37634
37635
37636 ice_have_bind=no
37637
37638 for ac_func in bind
37639 do
37640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37641 echo "$as_me:$LINENO: checking for $ac_func" >&5
37642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37643 if eval "test \"\${$as_ac_var+set}\" = set"; then
37644   echo $ECHO_N "(cached) $ECHO_C" >&6
37645 else
37646   cat >conftest.$ac_ext <<_ACEOF
37647 /* confdefs.h.  */
37648 _ACEOF
37649 cat confdefs.h >>conftest.$ac_ext
37650 cat >>conftest.$ac_ext <<_ACEOF
37651 /* end confdefs.h.  */
37652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37654 #define $ac_func innocuous_$ac_func
37655
37656 /* System header to define __stub macros and hopefully few prototypes,
37657     which can conflict with char $ac_func (); below.
37658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37659     <limits.h> exists even on freestanding compilers.  */
37660
37661 #ifdef __STDC__
37662 # include <limits.h>
37663 #else
37664 # include <assert.h>
37665 #endif
37666
37667 #undef $ac_func
37668
37669 /* Override any gcc2 internal prototype to avoid an error.  */
37670 #ifdef __cplusplus
37671 extern "C"
37672 {
37673 #endif
37674 /* We use char because int might match the return type of a gcc2
37675    builtin and then its argument prototype would still apply.  */
37676 char $ac_func ();
37677 /* The GNU C library defines this for functions which it implements
37678     to always fail with ENOSYS.  Some functions are actually named
37679     something starting with __ and the normal name is an alias.  */
37680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37681 choke me
37682 #else
37683 char (*f) () = $ac_func;
37684 #endif
37685 #ifdef __cplusplus
37686 }
37687 #endif
37688
37689 int
37690 main ()
37691 {
37692 return f != $ac_func;
37693   ;
37694   return 0;
37695 }
37696 _ACEOF
37697 rm -f conftest.$ac_objext conftest$ac_exeext
37698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37699   (eval $ac_link) 2>conftest.er1
37700   ac_status=$?
37701   grep -v '^ *+' conftest.er1 >conftest.err
37702   rm -f conftest.er1
37703   cat conftest.err >&5
37704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37705   (exit $ac_status); } &&
37706          { ac_try='test -z "$ac_c_werror_flag"
37707                          || test ! -s conftest.err'
37708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37709   (eval $ac_try) 2>&5
37710   ac_status=$?
37711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37712   (exit $ac_status); }; } &&
37713          { ac_try='test -s conftest$ac_exeext'
37714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37715   (eval $ac_try) 2>&5
37716   ac_status=$?
37717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37718   (exit $ac_status); }; }; then
37719   eval "$as_ac_var=yes"
37720 else
37721   echo "$as_me: failed program was:" >&5
37722 sed 's/^/| /' conftest.$ac_ext >&5
37723
37724 eval "$as_ac_var=no"
37725 fi
37726 rm -f conftest.err conftest.$ac_objext \
37727       conftest$ac_exeext conftest.$ac_ext
37728 fi
37729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37731 if test `eval echo '${'$as_ac_var'}'` = yes; then
37732   cat >>confdefs.h <<_ACEOF
37733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37734 _ACEOF
37735  ice_have_bind=yes
37736 fi
37737 done
37738
37739 if test "${ice_have_bind}" = yes; then
37740 echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
37741 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
37742 if test "${ice_cv_have_bind_decl+set}" = set; then
37743   echo $ECHO_N "(cached) $ECHO_C" >&6
37744 else
37745
37746 ice_cv_have_bind_decl=no
37747 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37748 ice_re_word='(^|[^a-zA-Z0-9_])'
37749 for header in sys/types.h sys/socket.h; do
37750 # Check for ordinary declaration
37751 cat >conftest.$ac_ext <<_ACEOF
37752 /* confdefs.h.  */
37753 _ACEOF
37754 cat confdefs.h >>conftest.$ac_ext
37755 cat >>conftest.$ac_ext <<_ACEOF
37756 /* end confdefs.h.  */
37757 #include <$header>
37758
37759 _ACEOF
37760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37761   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
37762   ice_cv_have_bind_decl=yes
37763 fi
37764 rm -f conftest*
37765
37766 if test "$ice_cv_have_bind_decl" = yes; then
37767         break
37768 fi
37769 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37770 cat >conftest.$ac_ext <<_ACEOF
37771 /* confdefs.h.  */
37772 _ACEOF
37773 cat confdefs.h >>conftest.$ac_ext
37774 cat >>conftest.$ac_ext <<_ACEOF
37775 /* end confdefs.h.  */
37776 #include <$header>
37777
37778 _ACEOF
37779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37780   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37781   ice_cv_have_bind_decl=yes
37782 fi
37783 rm -f conftest*
37784
37785 if test "$ice_cv_have_bind_decl" = yes; then
37786         break
37787 fi
37788 done
37789
37790 fi
37791
37792 echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
37793 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6
37794 if test "$ice_cv_have_bind_decl" = yes; then
37795
37796 cat >>confdefs.h <<_ACEOF
37797 #define HAVE_BIND_DECL 1
37798 _ACEOF
37799
37800 fi
37801 fi
37802
37803
37804 ice_have_bcopy=no
37805
37806 for ac_func in bcopy
37807 do
37808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37809 echo "$as_me:$LINENO: checking for $ac_func" >&5
37810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37811 if eval "test \"\${$as_ac_var+set}\" = set"; then
37812   echo $ECHO_N "(cached) $ECHO_C" >&6
37813 else
37814   cat >conftest.$ac_ext <<_ACEOF
37815 /* confdefs.h.  */
37816 _ACEOF
37817 cat confdefs.h >>conftest.$ac_ext
37818 cat >>conftest.$ac_ext <<_ACEOF
37819 /* end confdefs.h.  */
37820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37822 #define $ac_func innocuous_$ac_func
37823
37824 /* System header to define __stub macros and hopefully few prototypes,
37825     which can conflict with char $ac_func (); below.
37826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37827     <limits.h> exists even on freestanding compilers.  */
37828
37829 #ifdef __STDC__
37830 # include <limits.h>
37831 #else
37832 # include <assert.h>
37833 #endif
37834
37835 #undef $ac_func
37836
37837 /* Override any gcc2 internal prototype to avoid an error.  */
37838 #ifdef __cplusplus
37839 extern "C"
37840 {
37841 #endif
37842 /* We use char because int might match the return type of a gcc2
37843    builtin and then its argument prototype would still apply.  */
37844 char $ac_func ();
37845 /* The GNU C library defines this for functions which it implements
37846     to always fail with ENOSYS.  Some functions are actually named
37847     something starting with __ and the normal name is an alias.  */
37848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37849 choke me
37850 #else
37851 char (*f) () = $ac_func;
37852 #endif
37853 #ifdef __cplusplus
37854 }
37855 #endif
37856
37857 int
37858 main ()
37859 {
37860 return f != $ac_func;
37861   ;
37862   return 0;
37863 }
37864 _ACEOF
37865 rm -f conftest.$ac_objext conftest$ac_exeext
37866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37867   (eval $ac_link) 2>conftest.er1
37868   ac_status=$?
37869   grep -v '^ *+' conftest.er1 >conftest.err
37870   rm -f conftest.er1
37871   cat conftest.err >&5
37872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37873   (exit $ac_status); } &&
37874          { ac_try='test -z "$ac_c_werror_flag"
37875                          || test ! -s conftest.err'
37876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37877   (eval $ac_try) 2>&5
37878   ac_status=$?
37879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37880   (exit $ac_status); }; } &&
37881          { ac_try='test -s conftest$ac_exeext'
37882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37883   (eval $ac_try) 2>&5
37884   ac_status=$?
37885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886   (exit $ac_status); }; }; then
37887   eval "$as_ac_var=yes"
37888 else
37889   echo "$as_me: failed program was:" >&5
37890 sed 's/^/| /' conftest.$ac_ext >&5
37891
37892 eval "$as_ac_var=no"
37893 fi
37894 rm -f conftest.err conftest.$ac_objext \
37895       conftest$ac_exeext conftest.$ac_ext
37896 fi
37897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37899 if test `eval echo '${'$as_ac_var'}'` = yes; then
37900   cat >>confdefs.h <<_ACEOF
37901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37902 _ACEOF
37903  ice_have_bcopy=yes
37904 fi
37905 done
37906
37907 if test "${ice_have_bcopy}" = yes; then
37908 echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
37909 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
37910 if test "${ice_cv_have_bcopy_decl+set}" = set; then
37911   echo $ECHO_N "(cached) $ECHO_C" >&6
37912 else
37913
37914 ice_cv_have_bcopy_decl=no
37915 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37916 ice_re_word='(^|[^a-zA-Z0-9_])'
37917 for header in string.h strings.h stdlib.h; do
37918 # Check for ordinary declaration
37919 cat >conftest.$ac_ext <<_ACEOF
37920 /* confdefs.h.  */
37921 _ACEOF
37922 cat confdefs.h >>conftest.$ac_ext
37923 cat >>conftest.$ac_ext <<_ACEOF
37924 /* end confdefs.h.  */
37925 #include <$header>
37926
37927 _ACEOF
37928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37929   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
37930   ice_cv_have_bcopy_decl=yes
37931 fi
37932 rm -f conftest*
37933
37934 if test "$ice_cv_have_bcopy_decl" = yes; then
37935         break
37936 fi
37937 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37938 cat >conftest.$ac_ext <<_ACEOF
37939 /* confdefs.h.  */
37940 _ACEOF
37941 cat confdefs.h >>conftest.$ac_ext
37942 cat >>conftest.$ac_ext <<_ACEOF
37943 /* end confdefs.h.  */
37944 #include <$header>
37945
37946 _ACEOF
37947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37948   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37949   ice_cv_have_bcopy_decl=yes
37950 fi
37951 rm -f conftest*
37952
37953 if test "$ice_cv_have_bcopy_decl" = yes; then
37954         break
37955 fi
37956 done
37957
37958 fi
37959
37960 echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
37961 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6
37962 if test "$ice_cv_have_bcopy_decl" = yes; then
37963
37964 cat >>confdefs.h <<_ACEOF
37965 #define HAVE_BCOPY_DECL 1
37966 _ACEOF
37967
37968 fi
37969 fi
37970
37971
37972 ice_have_bzero=no
37973
37974 for ac_func in bzero
37975 do
37976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37977 echo "$as_me:$LINENO: checking for $ac_func" >&5
37978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37979 if eval "test \"\${$as_ac_var+set}\" = set"; then
37980   echo $ECHO_N "(cached) $ECHO_C" >&6
37981 else
37982   cat >conftest.$ac_ext <<_ACEOF
37983 /* confdefs.h.  */
37984 _ACEOF
37985 cat confdefs.h >>conftest.$ac_ext
37986 cat >>conftest.$ac_ext <<_ACEOF
37987 /* end confdefs.h.  */
37988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37990 #define $ac_func innocuous_$ac_func
37991
37992 /* System header to define __stub macros and hopefully few prototypes,
37993     which can conflict with char $ac_func (); below.
37994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37995     <limits.h> exists even on freestanding compilers.  */
37996
37997 #ifdef __STDC__
37998 # include <limits.h>
37999 #else
38000 # include <assert.h>
38001 #endif
38002
38003 #undef $ac_func
38004
38005 /* Override any gcc2 internal prototype to avoid an error.  */
38006 #ifdef __cplusplus
38007 extern "C"
38008 {
38009 #endif
38010 /* We use char because int might match the return type of a gcc2
38011    builtin and then its argument prototype would still apply.  */
38012 char $ac_func ();
38013 /* The GNU C library defines this for functions which it implements
38014     to always fail with ENOSYS.  Some functions are actually named
38015     something starting with __ and the normal name is an alias.  */
38016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38017 choke me
38018 #else
38019 char (*f) () = $ac_func;
38020 #endif
38021 #ifdef __cplusplus
38022 }
38023 #endif
38024
38025 int
38026 main ()
38027 {
38028 return f != $ac_func;
38029   ;
38030   return 0;
38031 }
38032 _ACEOF
38033 rm -f conftest.$ac_objext conftest$ac_exeext
38034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38035   (eval $ac_link) 2>conftest.er1
38036   ac_status=$?
38037   grep -v '^ *+' conftest.er1 >conftest.err
38038   rm -f conftest.er1
38039   cat conftest.err >&5
38040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041   (exit $ac_status); } &&
38042          { ac_try='test -z "$ac_c_werror_flag"
38043                          || test ! -s conftest.err'
38044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38045   (eval $ac_try) 2>&5
38046   ac_status=$?
38047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048   (exit $ac_status); }; } &&
38049          { ac_try='test -s conftest$ac_exeext'
38050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38051   (eval $ac_try) 2>&5
38052   ac_status=$?
38053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38054   (exit $ac_status); }; }; then
38055   eval "$as_ac_var=yes"
38056 else
38057   echo "$as_me: failed program was:" >&5
38058 sed 's/^/| /' conftest.$ac_ext >&5
38059
38060 eval "$as_ac_var=no"
38061 fi
38062 rm -f conftest.err conftest.$ac_objext \
38063       conftest$ac_exeext conftest.$ac_ext
38064 fi
38065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38067 if test `eval echo '${'$as_ac_var'}'` = yes; then
38068   cat >>confdefs.h <<_ACEOF
38069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38070 _ACEOF
38071  ice_have_bzero=yes
38072 fi
38073 done
38074
38075 if test "${ice_have_bzero}" = yes; then
38076 echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
38077 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
38078 if test "${ice_cv_have_bzero_decl+set}" = set; then
38079   echo $ECHO_N "(cached) $ECHO_C" >&6
38080 else
38081
38082 ice_cv_have_bzero_decl=no
38083 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38084 ice_re_word='(^|[^a-zA-Z0-9_])'
38085 for header in string.h strings.h stdlib.h; do
38086 # Check for ordinary declaration
38087 cat >conftest.$ac_ext <<_ACEOF
38088 /* confdefs.h.  */
38089 _ACEOF
38090 cat confdefs.h >>conftest.$ac_ext
38091 cat >>conftest.$ac_ext <<_ACEOF
38092 /* end confdefs.h.  */
38093 #include <$header>
38094
38095 _ACEOF
38096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38097   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
38098   ice_cv_have_bzero_decl=yes
38099 fi
38100 rm -f conftest*
38101
38102 if test "$ice_cv_have_bzero_decl" = yes; then
38103         break
38104 fi
38105 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38106 cat >conftest.$ac_ext <<_ACEOF
38107 /* confdefs.h.  */
38108 _ACEOF
38109 cat confdefs.h >>conftest.$ac_ext
38110 cat >>conftest.$ac_ext <<_ACEOF
38111 /* end confdefs.h.  */
38112 #include <$header>
38113
38114 _ACEOF
38115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38116   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38117   ice_cv_have_bzero_decl=yes
38118 fi
38119 rm -f conftest*
38120
38121 if test "$ice_cv_have_bzero_decl" = yes; then
38122         break
38123 fi
38124 done
38125
38126 fi
38127
38128 echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
38129 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6
38130 if test "$ice_cv_have_bzero_decl" = yes; then
38131
38132 cat >>confdefs.h <<_ACEOF
38133 #define HAVE_BZERO_DECL 1
38134 _ACEOF
38135
38136 fi
38137 fi
38138
38139 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
38140 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
38141 if test "${ac_cv_func_closedir_void+set}" = set; then
38142   echo $ECHO_N "(cached) $ECHO_C" >&6
38143 else
38144   if test "$cross_compiling" = yes; then
38145   ac_cv_func_closedir_void=yes
38146 else
38147   cat >conftest.$ac_ext <<_ACEOF
38148 /* confdefs.h.  */
38149 _ACEOF
38150 cat confdefs.h >>conftest.$ac_ext
38151 cat >>conftest.$ac_ext <<_ACEOF
38152 /* end confdefs.h.  */
38153 $ac_includes_default
38154 #include <$ac_header_dirent>
38155 #ifndef __cplusplus
38156 int closedir ();
38157 #endif
38158
38159 int
38160 main ()
38161 {
38162 exit (closedir (opendir (".")) != 0);
38163   ;
38164   return 0;
38165 }
38166 _ACEOF
38167 rm -f conftest$ac_exeext
38168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38169   (eval $ac_link) 2>&5
38170   ac_status=$?
38171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38174   (eval $ac_try) 2>&5
38175   ac_status=$?
38176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38177   (exit $ac_status); }; }; then
38178   ac_cv_func_closedir_void=no
38179 else
38180   echo "$as_me: program exited with status $ac_status" >&5
38181 echo "$as_me: failed program was:" >&5
38182 sed 's/^/| /' conftest.$ac_ext >&5
38183
38184 ( exit $ac_status )
38185 ac_cv_func_closedir_void=yes
38186 fi
38187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38188 fi
38189 fi
38190 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
38191 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
38192 if test $ac_cv_func_closedir_void = yes; then
38193
38194 cat >>confdefs.h <<\_ACEOF
38195 #define CLOSEDIR_VOID 1
38196 _ACEOF
38197
38198 fi
38199
38200
38201 ice_have_closelog=no
38202
38203 for ac_func in closelog
38204 do
38205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38206 echo "$as_me:$LINENO: checking for $ac_func" >&5
38207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38208 if eval "test \"\${$as_ac_var+set}\" = set"; then
38209   echo $ECHO_N "(cached) $ECHO_C" >&6
38210 else
38211   cat >conftest.$ac_ext <<_ACEOF
38212 /* confdefs.h.  */
38213 _ACEOF
38214 cat confdefs.h >>conftest.$ac_ext
38215 cat >>conftest.$ac_ext <<_ACEOF
38216 /* end confdefs.h.  */
38217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38219 #define $ac_func innocuous_$ac_func
38220
38221 /* System header to define __stub macros and hopefully few prototypes,
38222     which can conflict with char $ac_func (); below.
38223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38224     <limits.h> exists even on freestanding compilers.  */
38225
38226 #ifdef __STDC__
38227 # include <limits.h>
38228 #else
38229 # include <assert.h>
38230 #endif
38231
38232 #undef $ac_func
38233
38234 /* Override any gcc2 internal prototype to avoid an error.  */
38235 #ifdef __cplusplus
38236 extern "C"
38237 {
38238 #endif
38239 /* We use char because int might match the return type of a gcc2
38240    builtin and then its argument prototype would still apply.  */
38241 char $ac_func ();
38242 /* The GNU C library defines this for functions which it implements
38243     to always fail with ENOSYS.  Some functions are actually named
38244     something starting with __ and the normal name is an alias.  */
38245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38246 choke me
38247 #else
38248 char (*f) () = $ac_func;
38249 #endif
38250 #ifdef __cplusplus
38251 }
38252 #endif
38253
38254 int
38255 main ()
38256 {
38257 return f != $ac_func;
38258   ;
38259   return 0;
38260 }
38261 _ACEOF
38262 rm -f conftest.$ac_objext conftest$ac_exeext
38263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38264   (eval $ac_link) 2>conftest.er1
38265   ac_status=$?
38266   grep -v '^ *+' conftest.er1 >conftest.err
38267   rm -f conftest.er1
38268   cat conftest.err >&5
38269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38270   (exit $ac_status); } &&
38271          { ac_try='test -z "$ac_c_werror_flag"
38272                          || test ! -s conftest.err'
38273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38274   (eval $ac_try) 2>&5
38275   ac_status=$?
38276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38277   (exit $ac_status); }; } &&
38278          { ac_try='test -s conftest$ac_exeext'
38279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38280   (eval $ac_try) 2>&5
38281   ac_status=$?
38282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38283   (exit $ac_status); }; }; then
38284   eval "$as_ac_var=yes"
38285 else
38286   echo "$as_me: failed program was:" >&5
38287 sed 's/^/| /' conftest.$ac_ext >&5
38288
38289 eval "$as_ac_var=no"
38290 fi
38291 rm -f conftest.err conftest.$ac_objext \
38292       conftest$ac_exeext conftest.$ac_ext
38293 fi
38294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38296 if test `eval echo '${'$as_ac_var'}'` = yes; then
38297   cat >>confdefs.h <<_ACEOF
38298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38299 _ACEOF
38300  ice_have_closelog=yes
38301 fi
38302 done
38303
38304 if test "${ice_have_closelog}" = yes; then
38305 echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
38306 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6
38307 if test "${ice_cv_have_closelog_decl+set}" = set; then
38308   echo $ECHO_N "(cached) $ECHO_C" >&6
38309 else
38310
38311 ice_cv_have_closelog_decl=no
38312 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38313 ice_re_word='(^|[^a-zA-Z0-9_])'
38314 for header in syslog.h; do
38315 # Check for ordinary declaration
38316 cat >conftest.$ac_ext <<_ACEOF
38317 /* confdefs.h.  */
38318 _ACEOF
38319 cat confdefs.h >>conftest.$ac_ext
38320 cat >>conftest.$ac_ext <<_ACEOF
38321 /* end confdefs.h.  */
38322 #include <$header>
38323
38324 _ACEOF
38325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38326   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
38327   ice_cv_have_closelog_decl=yes
38328 fi
38329 rm -f conftest*
38330
38331 if test "$ice_cv_have_closelog_decl" = yes; then
38332         break
38333 fi
38334 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38335 cat >conftest.$ac_ext <<_ACEOF
38336 /* confdefs.h.  */
38337 _ACEOF
38338 cat confdefs.h >>conftest.$ac_ext
38339 cat >>conftest.$ac_ext <<_ACEOF
38340 /* end confdefs.h.  */
38341 #include <$header>
38342
38343 _ACEOF
38344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38345   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38346   ice_cv_have_closelog_decl=yes
38347 fi
38348 rm -f conftest*
38349
38350 if test "$ice_cv_have_closelog_decl" = yes; then
38351         break
38352 fi
38353 done
38354
38355 fi
38356
38357 echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
38358 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6
38359 if test "$ice_cv_have_closelog_decl" = yes; then
38360
38361 cat >>confdefs.h <<_ACEOF
38362 #define HAVE_CLOSELOG_DECL 1
38363 _ACEOF
38364
38365 fi
38366 fi
38367
38368
38369 ice_have_connect=no
38370
38371 for ac_func in connect
38372 do
38373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38374 echo "$as_me:$LINENO: checking for $ac_func" >&5
38375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38376 if eval "test \"\${$as_ac_var+set}\" = set"; then
38377   echo $ECHO_N "(cached) $ECHO_C" >&6
38378 else
38379   cat >conftest.$ac_ext <<_ACEOF
38380 /* confdefs.h.  */
38381 _ACEOF
38382 cat confdefs.h >>conftest.$ac_ext
38383 cat >>conftest.$ac_ext <<_ACEOF
38384 /* end confdefs.h.  */
38385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38387 #define $ac_func innocuous_$ac_func
38388
38389 /* System header to define __stub macros and hopefully few prototypes,
38390     which can conflict with char $ac_func (); below.
38391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38392     <limits.h> exists even on freestanding compilers.  */
38393
38394 #ifdef __STDC__
38395 # include <limits.h>
38396 #else
38397 # include <assert.h>
38398 #endif
38399
38400 #undef $ac_func
38401
38402 /* Override any gcc2 internal prototype to avoid an error.  */
38403 #ifdef __cplusplus
38404 extern "C"
38405 {
38406 #endif
38407 /* We use char because int might match the return type of a gcc2
38408    builtin and then its argument prototype would still apply.  */
38409 char $ac_func ();
38410 /* The GNU C library defines this for functions which it implements
38411     to always fail with ENOSYS.  Some functions are actually named
38412     something starting with __ and the normal name is an alias.  */
38413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38414 choke me
38415 #else
38416 char (*f) () = $ac_func;
38417 #endif
38418 #ifdef __cplusplus
38419 }
38420 #endif
38421
38422 int
38423 main ()
38424 {
38425 return f != $ac_func;
38426   ;
38427   return 0;
38428 }
38429 _ACEOF
38430 rm -f conftest.$ac_objext conftest$ac_exeext
38431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38432   (eval $ac_link) 2>conftest.er1
38433   ac_status=$?
38434   grep -v '^ *+' conftest.er1 >conftest.err
38435   rm -f conftest.er1
38436   cat conftest.err >&5
38437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38438   (exit $ac_status); } &&
38439          { ac_try='test -z "$ac_c_werror_flag"
38440                          || test ! -s conftest.err'
38441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38442   (eval $ac_try) 2>&5
38443   ac_status=$?
38444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38445   (exit $ac_status); }; } &&
38446          { ac_try='test -s conftest$ac_exeext'
38447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38448   (eval $ac_try) 2>&5
38449   ac_status=$?
38450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38451   (exit $ac_status); }; }; then
38452   eval "$as_ac_var=yes"
38453 else
38454   echo "$as_me: failed program was:" >&5
38455 sed 's/^/| /' conftest.$ac_ext >&5
38456
38457 eval "$as_ac_var=no"
38458 fi
38459 rm -f conftest.err conftest.$ac_objext \
38460       conftest$ac_exeext conftest.$ac_ext
38461 fi
38462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38464 if test `eval echo '${'$as_ac_var'}'` = yes; then
38465   cat >>confdefs.h <<_ACEOF
38466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38467 _ACEOF
38468  ice_have_connect=yes
38469 fi
38470 done
38471
38472 if test "${ice_have_connect}" = yes; then
38473 echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
38474 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
38475 if test "${ice_cv_have_connect_decl+set}" = set; then
38476   echo $ECHO_N "(cached) $ECHO_C" >&6
38477 else
38478
38479 ice_cv_have_connect_decl=no
38480 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38481 ice_re_word='(^|[^a-zA-Z0-9_])'
38482 for header in sys/types.h sys/socket.h; do
38483 # Check for ordinary declaration
38484 cat >conftest.$ac_ext <<_ACEOF
38485 /* confdefs.h.  */
38486 _ACEOF
38487 cat confdefs.h >>conftest.$ac_ext
38488 cat >>conftest.$ac_ext <<_ACEOF
38489 /* end confdefs.h.  */
38490 #include <$header>
38491
38492 _ACEOF
38493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38494   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
38495   ice_cv_have_connect_decl=yes
38496 fi
38497 rm -f conftest*
38498
38499 if test "$ice_cv_have_connect_decl" = yes; then
38500         break
38501 fi
38502 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38503 cat >conftest.$ac_ext <<_ACEOF
38504 /* confdefs.h.  */
38505 _ACEOF
38506 cat confdefs.h >>conftest.$ac_ext
38507 cat >>conftest.$ac_ext <<_ACEOF
38508 /* end confdefs.h.  */
38509 #include <$header>
38510
38511 _ACEOF
38512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38513   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38514   ice_cv_have_connect_decl=yes
38515 fi
38516 rm -f conftest*
38517
38518 if test "$ice_cv_have_connect_decl" = yes; then
38519         break
38520 fi
38521 done
38522
38523 fi
38524
38525 echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
38526 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6
38527 if test "$ice_cv_have_connect_decl" = yes; then
38528
38529 cat >>confdefs.h <<_ACEOF
38530 #define HAVE_CONNECT_DECL 1
38531 _ACEOF
38532
38533 fi
38534 fi
38535
38536
38537 ice_have_dbm_open=no
38538
38539 for ac_func in dbm_open
38540 do
38541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38542 echo "$as_me:$LINENO: checking for $ac_func" >&5
38543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38544 if eval "test \"\${$as_ac_var+set}\" = set"; then
38545   echo $ECHO_N "(cached) $ECHO_C" >&6
38546 else
38547   cat >conftest.$ac_ext <<_ACEOF
38548 /* confdefs.h.  */
38549 _ACEOF
38550 cat confdefs.h >>conftest.$ac_ext
38551 cat >>conftest.$ac_ext <<_ACEOF
38552 /* end confdefs.h.  */
38553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38555 #define $ac_func innocuous_$ac_func
38556
38557 /* System header to define __stub macros and hopefully few prototypes,
38558     which can conflict with char $ac_func (); below.
38559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38560     <limits.h> exists even on freestanding compilers.  */
38561
38562 #ifdef __STDC__
38563 # include <limits.h>
38564 #else
38565 # include <assert.h>
38566 #endif
38567
38568 #undef $ac_func
38569
38570 /* Override any gcc2 internal prototype to avoid an error.  */
38571 #ifdef __cplusplus
38572 extern "C"
38573 {
38574 #endif
38575 /* We use char because int might match the return type of a gcc2
38576    builtin and then its argument prototype would still apply.  */
38577 char $ac_func ();
38578 /* The GNU C library defines this for functions which it implements
38579     to always fail with ENOSYS.  Some functions are actually named
38580     something starting with __ and the normal name is an alias.  */
38581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38582 choke me
38583 #else
38584 char (*f) () = $ac_func;
38585 #endif
38586 #ifdef __cplusplus
38587 }
38588 #endif
38589
38590 int
38591 main ()
38592 {
38593 return f != $ac_func;
38594   ;
38595   return 0;
38596 }
38597 _ACEOF
38598 rm -f conftest.$ac_objext conftest$ac_exeext
38599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38600   (eval $ac_link) 2>conftest.er1
38601   ac_status=$?
38602   grep -v '^ *+' conftest.er1 >conftest.err
38603   rm -f conftest.er1
38604   cat conftest.err >&5
38605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38606   (exit $ac_status); } &&
38607          { ac_try='test -z "$ac_c_werror_flag"
38608                          || test ! -s conftest.err'
38609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38610   (eval $ac_try) 2>&5
38611   ac_status=$?
38612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38613   (exit $ac_status); }; } &&
38614          { ac_try='test -s conftest$ac_exeext'
38615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38616   (eval $ac_try) 2>&5
38617   ac_status=$?
38618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38619   (exit $ac_status); }; }; then
38620   eval "$as_ac_var=yes"
38621 else
38622   echo "$as_me: failed program was:" >&5
38623 sed 's/^/| /' conftest.$ac_ext >&5
38624
38625 eval "$as_ac_var=no"
38626 fi
38627 rm -f conftest.err conftest.$ac_objext \
38628       conftest$ac_exeext conftest.$ac_ext
38629 fi
38630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38632 if test `eval echo '${'$as_ac_var'}'` = yes; then
38633   cat >>confdefs.h <<_ACEOF
38634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38635 _ACEOF
38636  ice_have_dbm_open=yes
38637 fi
38638 done
38639
38640 if test "${ice_have_dbm_open}" = yes; then
38641 echo "$as_me:$LINENO: checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}" >&5
38642 echo $ECHO_N "checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}... $ECHO_C" >&6
38643 if test "${ice_cv_have_dbm_open_decl+set}" = set; then
38644   echo $ECHO_N "(cached) $ECHO_C" >&6
38645 else
38646
38647 ice_cv_have_dbm_open_decl=no
38648 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38649 ice_re_word='(^|[^a-zA-Z0-9_])'
38650 for header in ${DB_HEADER-no/db/header/file}; do
38651 # Check for ordinary declaration
38652 cat >conftest.$ac_ext <<_ACEOF
38653 /* confdefs.h.  */
38654 _ACEOF
38655 cat confdefs.h >>conftest.$ac_ext
38656 cat >>conftest.$ac_ext <<_ACEOF
38657 /* end confdefs.h.  */
38658 #include <$header>
38659
38660 _ACEOF
38661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38662   $EGREP "${ice_re_word}dbm_open[       ]*\(" >/dev/null 2>&1; then
38663   ice_cv_have_dbm_open_decl=yes
38664 fi
38665 rm -f conftest*
38666
38667 if test "$ice_cv_have_dbm_open_decl" = yes; then
38668         break
38669 fi
38670 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38671 cat >conftest.$ac_ext <<_ACEOF
38672 /* confdefs.h.  */
38673 _ACEOF
38674 cat confdefs.h >>conftest.$ac_ext
38675 cat >>conftest.$ac_ext <<_ACEOF
38676 /* end confdefs.h.  */
38677 #include <$header>
38678
38679 _ACEOF
38680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38681   $EGREP "${ice_re_word}dbm_open[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38682   ice_cv_have_dbm_open_decl=yes
38683 fi
38684 rm -f conftest*
38685
38686 if test "$ice_cv_have_dbm_open_decl" = yes; then
38687         break
38688 fi
38689 done
38690
38691 fi
38692
38693 echo "$as_me:$LINENO: result: $ice_cv_have_dbm_open_decl" >&5
38694 echo "${ECHO_T}$ice_cv_have_dbm_open_decl" >&6
38695 if test "$ice_cv_have_dbm_open_decl" = yes; then
38696
38697 cat >>confdefs.h <<_ACEOF
38698 #define HAVE_DBM_OPEN_DECL 1
38699 _ACEOF
38700
38701 fi
38702 fi
38703
38704
38705 for ac_func in endmntent
38706 do
38707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38708 echo "$as_me:$LINENO: checking for $ac_func" >&5
38709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38710 if eval "test \"\${$as_ac_var+set}\" = set"; then
38711   echo $ECHO_N "(cached) $ECHO_C" >&6
38712 else
38713   cat >conftest.$ac_ext <<_ACEOF
38714 /* confdefs.h.  */
38715 _ACEOF
38716 cat confdefs.h >>conftest.$ac_ext
38717 cat >>conftest.$ac_ext <<_ACEOF
38718 /* end confdefs.h.  */
38719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38721 #define $ac_func innocuous_$ac_func
38722
38723 /* System header to define __stub macros and hopefully few prototypes,
38724     which can conflict with char $ac_func (); below.
38725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38726     <limits.h> exists even on freestanding compilers.  */
38727
38728 #ifdef __STDC__
38729 # include <limits.h>
38730 #else
38731 # include <assert.h>
38732 #endif
38733
38734 #undef $ac_func
38735
38736 /* Override any gcc2 internal prototype to avoid an error.  */
38737 #ifdef __cplusplus
38738 extern "C"
38739 {
38740 #endif
38741 /* We use char because int might match the return type of a gcc2
38742    builtin and then its argument prototype would still apply.  */
38743 char $ac_func ();
38744 /* The GNU C library defines this for functions which it implements
38745     to always fail with ENOSYS.  Some functions are actually named
38746     something starting with __ and the normal name is an alias.  */
38747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38748 choke me
38749 #else
38750 char (*f) () = $ac_func;
38751 #endif
38752 #ifdef __cplusplus
38753 }
38754 #endif
38755
38756 int
38757 main ()
38758 {
38759 return f != $ac_func;
38760   ;
38761   return 0;
38762 }
38763 _ACEOF
38764 rm -f conftest.$ac_objext conftest$ac_exeext
38765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38766   (eval $ac_link) 2>conftest.er1
38767   ac_status=$?
38768   grep -v '^ *+' conftest.er1 >conftest.err
38769   rm -f conftest.er1
38770   cat conftest.err >&5
38771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38772   (exit $ac_status); } &&
38773          { ac_try='test -z "$ac_c_werror_flag"
38774                          || test ! -s conftest.err'
38775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38776   (eval $ac_try) 2>&5
38777   ac_status=$?
38778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38779   (exit $ac_status); }; } &&
38780          { ac_try='test -s conftest$ac_exeext'
38781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38782   (eval $ac_try) 2>&5
38783   ac_status=$?
38784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38785   (exit $ac_status); }; }; then
38786   eval "$as_ac_var=yes"
38787 else
38788   echo "$as_me: failed program was:" >&5
38789 sed 's/^/| /' conftest.$ac_ext >&5
38790
38791 eval "$as_ac_var=no"
38792 fi
38793 rm -f conftest.err conftest.$ac_objext \
38794       conftest$ac_exeext conftest.$ac_ext
38795 fi
38796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38798 if test `eval echo '${'$as_ac_var'}'` = yes; then
38799   cat >>confdefs.h <<_ACEOF
38800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38801 _ACEOF
38802
38803 fi
38804 done
38805
38806
38807 ice_have_fclose=no
38808
38809 for ac_func in fclose
38810 do
38811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38812 echo "$as_me:$LINENO: checking for $ac_func" >&5
38813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38814 if eval "test \"\${$as_ac_var+set}\" = set"; then
38815   echo $ECHO_N "(cached) $ECHO_C" >&6
38816 else
38817   cat >conftest.$ac_ext <<_ACEOF
38818 /* confdefs.h.  */
38819 _ACEOF
38820 cat confdefs.h >>conftest.$ac_ext
38821 cat >>conftest.$ac_ext <<_ACEOF
38822 /* end confdefs.h.  */
38823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38825 #define $ac_func innocuous_$ac_func
38826
38827 /* System header to define __stub macros and hopefully few prototypes,
38828     which can conflict with char $ac_func (); below.
38829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38830     <limits.h> exists even on freestanding compilers.  */
38831
38832 #ifdef __STDC__
38833 # include <limits.h>
38834 #else
38835 # include <assert.h>
38836 #endif
38837
38838 #undef $ac_func
38839
38840 /* Override any gcc2 internal prototype to avoid an error.  */
38841 #ifdef __cplusplus
38842 extern "C"
38843 {
38844 #endif
38845 /* We use char because int might match the return type of a gcc2
38846    builtin and then its argument prototype would still apply.  */
38847 char $ac_func ();
38848 /* The GNU C library defines this for functions which it implements
38849     to always fail with ENOSYS.  Some functions are actually named
38850     something starting with __ and the normal name is an alias.  */
38851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38852 choke me
38853 #else
38854 char (*f) () = $ac_func;
38855 #endif
38856 #ifdef __cplusplus
38857 }
38858 #endif
38859
38860 int
38861 main ()
38862 {
38863 return f != $ac_func;
38864   ;
38865   return 0;
38866 }
38867 _ACEOF
38868 rm -f conftest.$ac_objext conftest$ac_exeext
38869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38870   (eval $ac_link) 2>conftest.er1
38871   ac_status=$?
38872   grep -v '^ *+' conftest.er1 >conftest.err
38873   rm -f conftest.er1
38874   cat conftest.err >&5
38875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38876   (exit $ac_status); } &&
38877          { ac_try='test -z "$ac_c_werror_flag"
38878                          || test ! -s conftest.err'
38879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38880   (eval $ac_try) 2>&5
38881   ac_status=$?
38882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38883   (exit $ac_status); }; } &&
38884          { ac_try='test -s conftest$ac_exeext'
38885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38886   (eval $ac_try) 2>&5
38887   ac_status=$?
38888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38889   (exit $ac_status); }; }; then
38890   eval "$as_ac_var=yes"
38891 else
38892   echo "$as_me: failed program was:" >&5
38893 sed 's/^/| /' conftest.$ac_ext >&5
38894
38895 eval "$as_ac_var=no"
38896 fi
38897 rm -f conftest.err conftest.$ac_objext \
38898       conftest$ac_exeext conftest.$ac_ext
38899 fi
38900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38902 if test `eval echo '${'$as_ac_var'}'` = yes; then
38903   cat >>confdefs.h <<_ACEOF
38904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38905 _ACEOF
38906  ice_have_fclose=yes
38907 fi
38908 done
38909
38910 if test "${ice_have_fclose}" = yes; then
38911 echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
38912 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6
38913 if test "${ice_cv_have_fclose_decl+set}" = set; then
38914   echo $ECHO_N "(cached) $ECHO_C" >&6
38915 else
38916
38917 ice_cv_have_fclose_decl=no
38918 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38919 ice_re_word='(^|[^a-zA-Z0-9_])'
38920 for header in stdio.h; do
38921 # Check for ordinary declaration
38922 cat >conftest.$ac_ext <<_ACEOF
38923 /* confdefs.h.  */
38924 _ACEOF
38925 cat confdefs.h >>conftest.$ac_ext
38926 cat >>conftest.$ac_ext <<_ACEOF
38927 /* end confdefs.h.  */
38928 #include <$header>
38929
38930 _ACEOF
38931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38932   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
38933   ice_cv_have_fclose_decl=yes
38934 fi
38935 rm -f conftest*
38936
38937 if test "$ice_cv_have_fclose_decl" = yes; then
38938         break
38939 fi
38940 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38941 cat >conftest.$ac_ext <<_ACEOF
38942 /* confdefs.h.  */
38943 _ACEOF
38944 cat confdefs.h >>conftest.$ac_ext
38945 cat >>conftest.$ac_ext <<_ACEOF
38946 /* end confdefs.h.  */
38947 #include <$header>
38948
38949 _ACEOF
38950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38951   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38952   ice_cv_have_fclose_decl=yes
38953 fi
38954 rm -f conftest*
38955
38956 if test "$ice_cv_have_fclose_decl" = yes; then
38957         break
38958 fi
38959 done
38960
38961 fi
38962
38963 echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
38964 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6
38965 if test "$ice_cv_have_fclose_decl" = yes; then
38966
38967 cat >>confdefs.h <<_ACEOF
38968 #define HAVE_FCLOSE_DECL 1
38969 _ACEOF
38970
38971 fi
38972 fi
38973
38974
38975 ice_have_fflush=no
38976
38977 for ac_func in fflush
38978 do
38979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38980 echo "$as_me:$LINENO: checking for $ac_func" >&5
38981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38982 if eval "test \"\${$as_ac_var+set}\" = set"; then
38983   echo $ECHO_N "(cached) $ECHO_C" >&6
38984 else
38985   cat >conftest.$ac_ext <<_ACEOF
38986 /* confdefs.h.  */
38987 _ACEOF
38988 cat confdefs.h >>conftest.$ac_ext
38989 cat >>conftest.$ac_ext <<_ACEOF
38990 /* end confdefs.h.  */
38991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38993 #define $ac_func innocuous_$ac_func
38994
38995 /* System header to define __stub macros and hopefully few prototypes,
38996     which can conflict with char $ac_func (); below.
38997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38998     <limits.h> exists even on freestanding compilers.  */
38999
39000 #ifdef __STDC__
39001 # include <limits.h>
39002 #else
39003 # include <assert.h>
39004 #endif
39005
39006 #undef $ac_func
39007
39008 /* Override any gcc2 internal prototype to avoid an error.  */
39009 #ifdef __cplusplus
39010 extern "C"
39011 {
39012 #endif
39013 /* We use char because int might match the return type of a gcc2
39014    builtin and then its argument prototype would still apply.  */
39015 char $ac_func ();
39016 /* The GNU C library defines this for functions which it implements
39017     to always fail with ENOSYS.  Some functions are actually named
39018     something starting with __ and the normal name is an alias.  */
39019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39020 choke me
39021 #else
39022 char (*f) () = $ac_func;
39023 #endif
39024 #ifdef __cplusplus
39025 }
39026 #endif
39027
39028 int
39029 main ()
39030 {
39031 return f != $ac_func;
39032   ;
39033   return 0;
39034 }
39035 _ACEOF
39036 rm -f conftest.$ac_objext conftest$ac_exeext
39037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39038   (eval $ac_link) 2>conftest.er1
39039   ac_status=$?
39040   grep -v '^ *+' conftest.er1 >conftest.err
39041   rm -f conftest.er1
39042   cat conftest.err >&5
39043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39044   (exit $ac_status); } &&
39045          { ac_try='test -z "$ac_c_werror_flag"
39046                          || test ! -s conftest.err'
39047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39048   (eval $ac_try) 2>&5
39049   ac_status=$?
39050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39051   (exit $ac_status); }; } &&
39052          { ac_try='test -s conftest$ac_exeext'
39053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39054   (eval $ac_try) 2>&5
39055   ac_status=$?
39056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39057   (exit $ac_status); }; }; then
39058   eval "$as_ac_var=yes"
39059 else
39060   echo "$as_me: failed program was:" >&5
39061 sed 's/^/| /' conftest.$ac_ext >&5
39062
39063 eval "$as_ac_var=no"
39064 fi
39065 rm -f conftest.err conftest.$ac_objext \
39066       conftest$ac_exeext conftest.$ac_ext
39067 fi
39068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39070 if test `eval echo '${'$as_ac_var'}'` = yes; then
39071   cat >>confdefs.h <<_ACEOF
39072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39073 _ACEOF
39074  ice_have_fflush=yes
39075 fi
39076 done
39077
39078 if test "${ice_have_fflush}" = yes; then
39079 echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
39080 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6
39081 if test "${ice_cv_have_fflush_decl+set}" = set; then
39082   echo $ECHO_N "(cached) $ECHO_C" >&6
39083 else
39084
39085 ice_cv_have_fflush_decl=no
39086 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39087 ice_re_word='(^|[^a-zA-Z0-9_])'
39088 for header in stdio.h; do
39089 # Check for ordinary declaration
39090 cat >conftest.$ac_ext <<_ACEOF
39091 /* confdefs.h.  */
39092 _ACEOF
39093 cat confdefs.h >>conftest.$ac_ext
39094 cat >>conftest.$ac_ext <<_ACEOF
39095 /* end confdefs.h.  */
39096 #include <$header>
39097
39098 _ACEOF
39099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39100   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then
39101   ice_cv_have_fflush_decl=yes
39102 fi
39103 rm -f conftest*
39104
39105 if test "$ice_cv_have_fflush_decl" = yes; then
39106         break
39107 fi
39108 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39109 cat >conftest.$ac_ext <<_ACEOF
39110 /* confdefs.h.  */
39111 _ACEOF
39112 cat confdefs.h >>conftest.$ac_ext
39113 cat >>conftest.$ac_ext <<_ACEOF
39114 /* end confdefs.h.  */
39115 #include <$header>
39116
39117 _ACEOF
39118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39119   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39120   ice_cv_have_fflush_decl=yes
39121 fi
39122 rm -f conftest*
39123
39124 if test "$ice_cv_have_fflush_decl" = yes; then
39125         break
39126 fi
39127 done
39128
39129 fi
39130
39131 echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
39132 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6
39133 if test "$ice_cv_have_fflush_decl" = yes; then
39134
39135 cat >>confdefs.h <<_ACEOF
39136 #define HAVE_FFLUSH_DECL 1
39137 _ACEOF
39138
39139 fi
39140 fi
39141
39142
39143 ice_have_flock=no
39144
39145 for ac_func in flock
39146 do
39147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39148 echo "$as_me:$LINENO: checking for $ac_func" >&5
39149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39150 if eval "test \"\${$as_ac_var+set}\" = set"; then
39151   echo $ECHO_N "(cached) $ECHO_C" >&6
39152 else
39153   cat >conftest.$ac_ext <<_ACEOF
39154 /* confdefs.h.  */
39155 _ACEOF
39156 cat confdefs.h >>conftest.$ac_ext
39157 cat >>conftest.$ac_ext <<_ACEOF
39158 /* end confdefs.h.  */
39159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39161 #define $ac_func innocuous_$ac_func
39162
39163 /* System header to define __stub macros and hopefully few prototypes,
39164     which can conflict with char $ac_func (); below.
39165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39166     <limits.h> exists even on freestanding compilers.  */
39167
39168 #ifdef __STDC__
39169 # include <limits.h>
39170 #else
39171 # include <assert.h>
39172 #endif
39173
39174 #undef $ac_func
39175
39176 /* Override any gcc2 internal prototype to avoid an error.  */
39177 #ifdef __cplusplus
39178 extern "C"
39179 {
39180 #endif
39181 /* We use char because int might match the return type of a gcc2
39182    builtin and then its argument prototype would still apply.  */
39183 char $ac_func ();
39184 /* The GNU C library defines this for functions which it implements
39185     to always fail with ENOSYS.  Some functions are actually named
39186     something starting with __ and the normal name is an alias.  */
39187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39188 choke me
39189 #else
39190 char (*f) () = $ac_func;
39191 #endif
39192 #ifdef __cplusplus
39193 }
39194 #endif
39195
39196 int
39197 main ()
39198 {
39199 return f != $ac_func;
39200   ;
39201   return 0;
39202 }
39203 _ACEOF
39204 rm -f conftest.$ac_objext conftest$ac_exeext
39205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39206   (eval $ac_link) 2>conftest.er1
39207   ac_status=$?
39208   grep -v '^ *+' conftest.er1 >conftest.err
39209   rm -f conftest.er1
39210   cat conftest.err >&5
39211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39212   (exit $ac_status); } &&
39213          { ac_try='test -z "$ac_c_werror_flag"
39214                          || test ! -s conftest.err'
39215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39216   (eval $ac_try) 2>&5
39217   ac_status=$?
39218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219   (exit $ac_status); }; } &&
39220          { ac_try='test -s conftest$ac_exeext'
39221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39222   (eval $ac_try) 2>&5
39223   ac_status=$?
39224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225   (exit $ac_status); }; }; then
39226   eval "$as_ac_var=yes"
39227 else
39228   echo "$as_me: failed program was:" >&5
39229 sed 's/^/| /' conftest.$ac_ext >&5
39230
39231 eval "$as_ac_var=no"
39232 fi
39233 rm -f conftest.err conftest.$ac_objext \
39234       conftest$ac_exeext conftest.$ac_ext
39235 fi
39236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39238 if test `eval echo '${'$as_ac_var'}'` = yes; then
39239   cat >>confdefs.h <<_ACEOF
39240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39241 _ACEOF
39242  ice_have_flock=yes
39243 fi
39244 done
39245
39246 if test "${ice_have_flock}" = yes; then
39247 echo "$as_me:$LINENO: checking for flock declaration in sys/file.h" >&5
39248 echo $ECHO_N "checking for flock declaration in sys/file.h... $ECHO_C" >&6
39249 if test "${ice_cv_have_flock_decl+set}" = set; then
39250   echo $ECHO_N "(cached) $ECHO_C" >&6
39251 else
39252
39253 ice_cv_have_flock_decl=no
39254 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39255 ice_re_word='(^|[^a-zA-Z0-9_])'
39256 for header in sys/file.h; do
39257 # Check for ordinary declaration
39258 cat >conftest.$ac_ext <<_ACEOF
39259 /* confdefs.h.  */
39260 _ACEOF
39261 cat confdefs.h >>conftest.$ac_ext
39262 cat >>conftest.$ac_ext <<_ACEOF
39263 /* end confdefs.h.  */
39264 #include <$header>
39265
39266 _ACEOF
39267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39268   $EGREP "${ice_re_word}flock[  ]*\(" >/dev/null 2>&1; then
39269   ice_cv_have_flock_decl=yes
39270 fi
39271 rm -f conftest*
39272
39273 if test "$ice_cv_have_flock_decl" = yes; then
39274         break
39275 fi
39276 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39277 cat >conftest.$ac_ext <<_ACEOF
39278 /* confdefs.h.  */
39279 _ACEOF
39280 cat confdefs.h >>conftest.$ac_ext
39281 cat >>conftest.$ac_ext <<_ACEOF
39282 /* end confdefs.h.  */
39283 #include <$header>
39284
39285 _ACEOF
39286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39287   $EGREP "${ice_re_word}flock[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39288   ice_cv_have_flock_decl=yes
39289 fi
39290 rm -f conftest*
39291
39292 if test "$ice_cv_have_flock_decl" = yes; then
39293         break
39294 fi
39295 done
39296
39297 fi
39298
39299 echo "$as_me:$LINENO: result: $ice_cv_have_flock_decl" >&5
39300 echo "${ECHO_T}$ice_cv_have_flock_decl" >&6
39301 if test "$ice_cv_have_flock_decl" = yes; then
39302
39303 cat >>confdefs.h <<_ACEOF
39304 #define HAVE_FLOCK_DECL 1
39305 _ACEOF
39306
39307 fi
39308 fi
39309
39310
39311 ice_have_fprintf=no
39312
39313 for ac_func in fprintf
39314 do
39315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39316 echo "$as_me:$LINENO: checking for $ac_func" >&5
39317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39318 if eval "test \"\${$as_ac_var+set}\" = set"; then
39319   echo $ECHO_N "(cached) $ECHO_C" >&6
39320 else
39321   cat >conftest.$ac_ext <<_ACEOF
39322 /* confdefs.h.  */
39323 _ACEOF
39324 cat confdefs.h >>conftest.$ac_ext
39325 cat >>conftest.$ac_ext <<_ACEOF
39326 /* end confdefs.h.  */
39327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39329 #define $ac_func innocuous_$ac_func
39330
39331 /* System header to define __stub macros and hopefully few prototypes,
39332     which can conflict with char $ac_func (); below.
39333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39334     <limits.h> exists even on freestanding compilers.  */
39335
39336 #ifdef __STDC__
39337 # include <limits.h>
39338 #else
39339 # include <assert.h>
39340 #endif
39341
39342 #undef $ac_func
39343
39344 /* Override any gcc2 internal prototype to avoid an error.  */
39345 #ifdef __cplusplus
39346 extern "C"
39347 {
39348 #endif
39349 /* We use char because int might match the return type of a gcc2
39350    builtin and then its argument prototype would still apply.  */
39351 char $ac_func ();
39352 /* The GNU C library defines this for functions which it implements
39353     to always fail with ENOSYS.  Some functions are actually named
39354     something starting with __ and the normal name is an alias.  */
39355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39356 choke me
39357 #else
39358 char (*f) () = $ac_func;
39359 #endif
39360 #ifdef __cplusplus
39361 }
39362 #endif
39363
39364 int
39365 main ()
39366 {
39367 return f != $ac_func;
39368   ;
39369   return 0;
39370 }
39371 _ACEOF
39372 rm -f conftest.$ac_objext conftest$ac_exeext
39373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39374   (eval $ac_link) 2>conftest.er1
39375   ac_status=$?
39376   grep -v '^ *+' conftest.er1 >conftest.err
39377   rm -f conftest.er1
39378   cat conftest.err >&5
39379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39380   (exit $ac_status); } &&
39381          { ac_try='test -z "$ac_c_werror_flag"
39382                          || test ! -s conftest.err'
39383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39384   (eval $ac_try) 2>&5
39385   ac_status=$?
39386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39387   (exit $ac_status); }; } &&
39388          { ac_try='test -s conftest$ac_exeext'
39389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39390   (eval $ac_try) 2>&5
39391   ac_status=$?
39392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39393   (exit $ac_status); }; }; then
39394   eval "$as_ac_var=yes"
39395 else
39396   echo "$as_me: failed program was:" >&5
39397 sed 's/^/| /' conftest.$ac_ext >&5
39398
39399 eval "$as_ac_var=no"
39400 fi
39401 rm -f conftest.err conftest.$ac_objext \
39402       conftest$ac_exeext conftest.$ac_ext
39403 fi
39404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39406 if test `eval echo '${'$as_ac_var'}'` = yes; then
39407   cat >>confdefs.h <<_ACEOF
39408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39409 _ACEOF
39410  ice_have_fprintf=yes
39411 fi
39412 done
39413
39414 if test "${ice_have_fprintf}" = yes; then
39415 echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
39416 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6
39417 if test "${ice_cv_have_fprintf_decl+set}" = set; then
39418   echo $ECHO_N "(cached) $ECHO_C" >&6
39419 else
39420
39421 ice_cv_have_fprintf_decl=no
39422 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39423 ice_re_word='(^|[^a-zA-Z0-9_])'
39424 for header in stdio.h; do
39425 # Check for ordinary declaration
39426 cat >conftest.$ac_ext <<_ACEOF
39427 /* confdefs.h.  */
39428 _ACEOF
39429 cat confdefs.h >>conftest.$ac_ext
39430 cat >>conftest.$ac_ext <<_ACEOF
39431 /* end confdefs.h.  */
39432 #include <$header>
39433
39434 _ACEOF
39435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39436   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
39437   ice_cv_have_fprintf_decl=yes
39438 fi
39439 rm -f conftest*
39440
39441 if test "$ice_cv_have_fprintf_decl" = yes; then
39442         break
39443 fi
39444 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39445 cat >conftest.$ac_ext <<_ACEOF
39446 /* confdefs.h.  */
39447 _ACEOF
39448 cat confdefs.h >>conftest.$ac_ext
39449 cat >>conftest.$ac_ext <<_ACEOF
39450 /* end confdefs.h.  */
39451 #include <$header>
39452
39453 _ACEOF
39454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39455   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39456   ice_cv_have_fprintf_decl=yes
39457 fi
39458 rm -f conftest*
39459
39460 if test "$ice_cv_have_fprintf_decl" = yes; then
39461         break
39462 fi
39463 done
39464
39465 fi
39466
39467 echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
39468 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6
39469 if test "$ice_cv_have_fprintf_decl" = yes; then
39470
39471 cat >>confdefs.h <<_ACEOF
39472 #define HAVE_FPRINTF_DECL 1
39473 _ACEOF
39474
39475 fi
39476 fi
39477
39478
39479 ice_have_fputc=no
39480
39481 for ac_func in fputc
39482 do
39483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39484 echo "$as_me:$LINENO: checking for $ac_func" >&5
39485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39486 if eval "test \"\${$as_ac_var+set}\" = set"; then
39487   echo $ECHO_N "(cached) $ECHO_C" >&6
39488 else
39489   cat >conftest.$ac_ext <<_ACEOF
39490 /* confdefs.h.  */
39491 _ACEOF
39492 cat confdefs.h >>conftest.$ac_ext
39493 cat >>conftest.$ac_ext <<_ACEOF
39494 /* end confdefs.h.  */
39495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39497 #define $ac_func innocuous_$ac_func
39498
39499 /* System header to define __stub macros and hopefully few prototypes,
39500     which can conflict with char $ac_func (); below.
39501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39502     <limits.h> exists even on freestanding compilers.  */
39503
39504 #ifdef __STDC__
39505 # include <limits.h>
39506 #else
39507 # include <assert.h>
39508 #endif
39509
39510 #undef $ac_func
39511
39512 /* Override any gcc2 internal prototype to avoid an error.  */
39513 #ifdef __cplusplus
39514 extern "C"
39515 {
39516 #endif
39517 /* We use char because int might match the return type of a gcc2
39518    builtin and then its argument prototype would still apply.  */
39519 char $ac_func ();
39520 /* The GNU C library defines this for functions which it implements
39521     to always fail with ENOSYS.  Some functions are actually named
39522     something starting with __ and the normal name is an alias.  */
39523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39524 choke me
39525 #else
39526 char (*f) () = $ac_func;
39527 #endif
39528 #ifdef __cplusplus
39529 }
39530 #endif
39531
39532 int
39533 main ()
39534 {
39535 return f != $ac_func;
39536   ;
39537   return 0;
39538 }
39539 _ACEOF
39540 rm -f conftest.$ac_objext conftest$ac_exeext
39541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39542   (eval $ac_link) 2>conftest.er1
39543   ac_status=$?
39544   grep -v '^ *+' conftest.er1 >conftest.err
39545   rm -f conftest.er1
39546   cat conftest.err >&5
39547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39548   (exit $ac_status); } &&
39549          { ac_try='test -z "$ac_c_werror_flag"
39550                          || test ! -s conftest.err'
39551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39552   (eval $ac_try) 2>&5
39553   ac_status=$?
39554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39555   (exit $ac_status); }; } &&
39556          { ac_try='test -s conftest$ac_exeext'
39557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39558   (eval $ac_try) 2>&5
39559   ac_status=$?
39560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39561   (exit $ac_status); }; }; then
39562   eval "$as_ac_var=yes"
39563 else
39564   echo "$as_me: failed program was:" >&5
39565 sed 's/^/| /' conftest.$ac_ext >&5
39566
39567 eval "$as_ac_var=no"
39568 fi
39569 rm -f conftest.err conftest.$ac_objext \
39570       conftest$ac_exeext conftest.$ac_ext
39571 fi
39572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39574 if test `eval echo '${'$as_ac_var'}'` = yes; then
39575   cat >>confdefs.h <<_ACEOF
39576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39577 _ACEOF
39578  ice_have_fputc=yes
39579 fi
39580 done
39581
39582 if test "${ice_have_fputc}" = yes; then
39583 echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
39584 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6
39585 if test "${ice_cv_have_fputc_decl+set}" = set; then
39586   echo $ECHO_N "(cached) $ECHO_C" >&6
39587 else
39588
39589 ice_cv_have_fputc_decl=no
39590 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39591 ice_re_word='(^|[^a-zA-Z0-9_])'
39592 for header in stdio.h; do
39593 # Check for ordinary declaration
39594 cat >conftest.$ac_ext <<_ACEOF
39595 /* confdefs.h.  */
39596 _ACEOF
39597 cat confdefs.h >>conftest.$ac_ext
39598 cat >>conftest.$ac_ext <<_ACEOF
39599 /* end confdefs.h.  */
39600 #include <$header>
39601
39602 _ACEOF
39603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39604   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
39605   ice_cv_have_fputc_decl=yes
39606 fi
39607 rm -f conftest*
39608
39609 if test "$ice_cv_have_fputc_decl" = yes; then
39610         break
39611 fi
39612 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39613 cat >conftest.$ac_ext <<_ACEOF
39614 /* confdefs.h.  */
39615 _ACEOF
39616 cat confdefs.h >>conftest.$ac_ext
39617 cat >>conftest.$ac_ext <<_ACEOF
39618 /* end confdefs.h.  */
39619 #include <$header>
39620
39621 _ACEOF
39622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39623   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39624   ice_cv_have_fputc_decl=yes
39625 fi
39626 rm -f conftest*
39627
39628 if test "$ice_cv_have_fputc_decl" = yes; then
39629         break
39630 fi
39631 done
39632
39633 fi
39634
39635 echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
39636 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6
39637 if test "$ice_cv_have_fputc_decl" = yes; then
39638
39639 cat >>confdefs.h <<_ACEOF
39640 #define HAVE_FPUTC_DECL 1
39641 _ACEOF
39642
39643 fi
39644 fi
39645
39646
39647 ice_have_fputs=no
39648
39649 for ac_func in fputs
39650 do
39651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39652 echo "$as_me:$LINENO: checking for $ac_func" >&5
39653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39654 if eval "test \"\${$as_ac_var+set}\" = set"; then
39655   echo $ECHO_N "(cached) $ECHO_C" >&6
39656 else
39657   cat >conftest.$ac_ext <<_ACEOF
39658 /* confdefs.h.  */
39659 _ACEOF
39660 cat confdefs.h >>conftest.$ac_ext
39661 cat >>conftest.$ac_ext <<_ACEOF
39662 /* end confdefs.h.  */
39663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39665 #define $ac_func innocuous_$ac_func
39666
39667 /* System header to define __stub macros and hopefully few prototypes,
39668     which can conflict with char $ac_func (); below.
39669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39670     <limits.h> exists even on freestanding compilers.  */
39671
39672 #ifdef __STDC__
39673 # include <limits.h>
39674 #else
39675 # include <assert.h>
39676 #endif
39677
39678 #undef $ac_func
39679
39680 /* Override any gcc2 internal prototype to avoid an error.  */
39681 #ifdef __cplusplus
39682 extern "C"
39683 {
39684 #endif
39685 /* We use char because int might match the return type of a gcc2
39686    builtin and then its argument prototype would still apply.  */
39687 char $ac_func ();
39688 /* The GNU C library defines this for functions which it implements
39689     to always fail with ENOSYS.  Some functions are actually named
39690     something starting with __ and the normal name is an alias.  */
39691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39692 choke me
39693 #else
39694 char (*f) () = $ac_func;
39695 #endif
39696 #ifdef __cplusplus
39697 }
39698 #endif
39699
39700 int
39701 main ()
39702 {
39703 return f != $ac_func;
39704   ;
39705   return 0;
39706 }
39707 _ACEOF
39708 rm -f conftest.$ac_objext conftest$ac_exeext
39709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39710   (eval $ac_link) 2>conftest.er1
39711   ac_status=$?
39712   grep -v '^ *+' conftest.er1 >conftest.err
39713   rm -f conftest.er1
39714   cat conftest.err >&5
39715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39716   (exit $ac_status); } &&
39717          { ac_try='test -z "$ac_c_werror_flag"
39718                          || test ! -s conftest.err'
39719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39720   (eval $ac_try) 2>&5
39721   ac_status=$?
39722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39723   (exit $ac_status); }; } &&
39724          { ac_try='test -s conftest$ac_exeext'
39725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39726   (eval $ac_try) 2>&5
39727   ac_status=$?
39728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39729   (exit $ac_status); }; }; then
39730   eval "$as_ac_var=yes"
39731 else
39732   echo "$as_me: failed program was:" >&5
39733 sed 's/^/| /' conftest.$ac_ext >&5
39734
39735 eval "$as_ac_var=no"
39736 fi
39737 rm -f conftest.err conftest.$ac_objext \
39738       conftest$ac_exeext conftest.$ac_ext
39739 fi
39740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39742 if test `eval echo '${'$as_ac_var'}'` = yes; then
39743   cat >>confdefs.h <<_ACEOF
39744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39745 _ACEOF
39746  ice_have_fputs=yes
39747 fi
39748 done
39749
39750 if test "${ice_have_fputs}" = yes; then
39751 echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
39752 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6
39753 if test "${ice_cv_have_fputs_decl+set}" = set; then
39754   echo $ECHO_N "(cached) $ECHO_C" >&6
39755 else
39756
39757 ice_cv_have_fputs_decl=no
39758 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39759 ice_re_word='(^|[^a-zA-Z0-9_])'
39760 for header in stdio.h; do
39761 # Check for ordinary declaration
39762 cat >conftest.$ac_ext <<_ACEOF
39763 /* confdefs.h.  */
39764 _ACEOF
39765 cat confdefs.h >>conftest.$ac_ext
39766 cat >>conftest.$ac_ext <<_ACEOF
39767 /* end confdefs.h.  */
39768 #include <$header>
39769
39770 _ACEOF
39771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39772   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
39773   ice_cv_have_fputs_decl=yes
39774 fi
39775 rm -f conftest*
39776
39777 if test "$ice_cv_have_fputs_decl" = yes; then
39778         break
39779 fi
39780 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39781 cat >conftest.$ac_ext <<_ACEOF
39782 /* confdefs.h.  */
39783 _ACEOF
39784 cat confdefs.h >>conftest.$ac_ext
39785 cat >>conftest.$ac_ext <<_ACEOF
39786 /* end confdefs.h.  */
39787 #include <$header>
39788
39789 _ACEOF
39790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39791   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39792   ice_cv_have_fputs_decl=yes
39793 fi
39794 rm -f conftest*
39795
39796 if test "$ice_cv_have_fputs_decl" = yes; then
39797         break
39798 fi
39799 done
39800
39801 fi
39802
39803 echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
39804 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6
39805 if test "$ice_cv_have_fputs_decl" = yes; then
39806
39807 cat >>confdefs.h <<_ACEOF
39808 #define HAVE_FPUTS_DECL 1
39809 _ACEOF
39810
39811 fi
39812 fi
39813
39814
39815 ice_have_fread=no
39816
39817 for ac_func in fread
39818 do
39819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39820 echo "$as_me:$LINENO: checking for $ac_func" >&5
39821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39822 if eval "test \"\${$as_ac_var+set}\" = set"; then
39823   echo $ECHO_N "(cached) $ECHO_C" >&6
39824 else
39825   cat >conftest.$ac_ext <<_ACEOF
39826 /* confdefs.h.  */
39827 _ACEOF
39828 cat confdefs.h >>conftest.$ac_ext
39829 cat >>conftest.$ac_ext <<_ACEOF
39830 /* end confdefs.h.  */
39831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39833 #define $ac_func innocuous_$ac_func
39834
39835 /* System header to define __stub macros and hopefully few prototypes,
39836     which can conflict with char $ac_func (); below.
39837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39838     <limits.h> exists even on freestanding compilers.  */
39839
39840 #ifdef __STDC__
39841 # include <limits.h>
39842 #else
39843 # include <assert.h>
39844 #endif
39845
39846 #undef $ac_func
39847
39848 /* Override any gcc2 internal prototype to avoid an error.  */
39849 #ifdef __cplusplus
39850 extern "C"
39851 {
39852 #endif
39853 /* We use char because int might match the return type of a gcc2
39854    builtin and then its argument prototype would still apply.  */
39855 char $ac_func ();
39856 /* The GNU C library defines this for functions which it implements
39857     to always fail with ENOSYS.  Some functions are actually named
39858     something starting with __ and the normal name is an alias.  */
39859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39860 choke me
39861 #else
39862 char (*f) () = $ac_func;
39863 #endif
39864 #ifdef __cplusplus
39865 }
39866 #endif
39867
39868 int
39869 main ()
39870 {
39871 return f != $ac_func;
39872   ;
39873   return 0;
39874 }
39875 _ACEOF
39876 rm -f conftest.$ac_objext conftest$ac_exeext
39877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39878   (eval $ac_link) 2>conftest.er1
39879   ac_status=$?
39880   grep -v '^ *+' conftest.er1 >conftest.err
39881   rm -f conftest.er1
39882   cat conftest.err >&5
39883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39884   (exit $ac_status); } &&
39885          { ac_try='test -z "$ac_c_werror_flag"
39886                          || test ! -s conftest.err'
39887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39888   (eval $ac_try) 2>&5
39889   ac_status=$?
39890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891   (exit $ac_status); }; } &&
39892          { ac_try='test -s conftest$ac_exeext'
39893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39894   (eval $ac_try) 2>&5
39895   ac_status=$?
39896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39897   (exit $ac_status); }; }; then
39898   eval "$as_ac_var=yes"
39899 else
39900   echo "$as_me: failed program was:" >&5
39901 sed 's/^/| /' conftest.$ac_ext >&5
39902
39903 eval "$as_ac_var=no"
39904 fi
39905 rm -f conftest.err conftest.$ac_objext \
39906       conftest$ac_exeext conftest.$ac_ext
39907 fi
39908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39910 if test `eval echo '${'$as_ac_var'}'` = yes; then
39911   cat >>confdefs.h <<_ACEOF
39912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39913 _ACEOF
39914  ice_have_fread=yes
39915 fi
39916 done
39917
39918 if test "${ice_have_fread}" = yes; then
39919 echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
39920 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6
39921 if test "${ice_cv_have_fread_decl+set}" = set; then
39922   echo $ECHO_N "(cached) $ECHO_C" >&6
39923 else
39924
39925 ice_cv_have_fread_decl=no
39926 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39927 ice_re_word='(^|[^a-zA-Z0-9_])'
39928 for header in stdio.h stdlib.h; do
39929 # Check for ordinary declaration
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 #include <$header>
39937
39938 _ACEOF
39939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39940   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
39941   ice_cv_have_fread_decl=yes
39942 fi
39943 rm -f conftest*
39944
39945 if test "$ice_cv_have_fread_decl" = yes; then
39946         break
39947 fi
39948 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39949 cat >conftest.$ac_ext <<_ACEOF
39950 /* confdefs.h.  */
39951 _ACEOF
39952 cat confdefs.h >>conftest.$ac_ext
39953 cat >>conftest.$ac_ext <<_ACEOF
39954 /* end confdefs.h.  */
39955 #include <$header>
39956
39957 _ACEOF
39958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39959   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39960   ice_cv_have_fread_decl=yes
39961 fi
39962 rm -f conftest*
39963
39964 if test "$ice_cv_have_fread_decl" = yes; then
39965         break
39966 fi
39967 done
39968
39969 fi
39970
39971 echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
39972 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6
39973 if test "$ice_cv_have_fread_decl" = yes; then
39974
39975 cat >>confdefs.h <<_ACEOF
39976 #define HAVE_FREAD_DECL 1
39977 _ACEOF
39978
39979 fi
39980 fi
39981
39982
39983 ice_have_fseek=no
39984
39985 for ac_func in fseek
39986 do
39987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39988 echo "$as_me:$LINENO: checking for $ac_func" >&5
39989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39990 if eval "test \"\${$as_ac_var+set}\" = set"; then
39991   echo $ECHO_N "(cached) $ECHO_C" >&6
39992 else
39993   cat >conftest.$ac_ext <<_ACEOF
39994 /* confdefs.h.  */
39995 _ACEOF
39996 cat confdefs.h >>conftest.$ac_ext
39997 cat >>conftest.$ac_ext <<_ACEOF
39998 /* end confdefs.h.  */
39999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40001 #define $ac_func innocuous_$ac_func
40002
40003 /* System header to define __stub macros and hopefully few prototypes,
40004     which can conflict with char $ac_func (); below.
40005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40006     <limits.h> exists even on freestanding compilers.  */
40007
40008 #ifdef __STDC__
40009 # include <limits.h>
40010 #else
40011 # include <assert.h>
40012 #endif
40013
40014 #undef $ac_func
40015
40016 /* Override any gcc2 internal prototype to avoid an error.  */
40017 #ifdef __cplusplus
40018 extern "C"
40019 {
40020 #endif
40021 /* We use char because int might match the return type of a gcc2
40022    builtin and then its argument prototype would still apply.  */
40023 char $ac_func ();
40024 /* The GNU C library defines this for functions which it implements
40025     to always fail with ENOSYS.  Some functions are actually named
40026     something starting with __ and the normal name is an alias.  */
40027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40028 choke me
40029 #else
40030 char (*f) () = $ac_func;
40031 #endif
40032 #ifdef __cplusplus
40033 }
40034 #endif
40035
40036 int
40037 main ()
40038 {
40039 return f != $ac_func;
40040   ;
40041   return 0;
40042 }
40043 _ACEOF
40044 rm -f conftest.$ac_objext conftest$ac_exeext
40045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40046   (eval $ac_link) 2>conftest.er1
40047   ac_status=$?
40048   grep -v '^ *+' conftest.er1 >conftest.err
40049   rm -f conftest.er1
40050   cat conftest.err >&5
40051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40052   (exit $ac_status); } &&
40053          { ac_try='test -z "$ac_c_werror_flag"
40054                          || test ! -s conftest.err'
40055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40056   (eval $ac_try) 2>&5
40057   ac_status=$?
40058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40059   (exit $ac_status); }; } &&
40060          { ac_try='test -s conftest$ac_exeext'
40061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40062   (eval $ac_try) 2>&5
40063   ac_status=$?
40064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40065   (exit $ac_status); }; }; then
40066   eval "$as_ac_var=yes"
40067 else
40068   echo "$as_me: failed program was:" >&5
40069 sed 's/^/| /' conftest.$ac_ext >&5
40070
40071 eval "$as_ac_var=no"
40072 fi
40073 rm -f conftest.err conftest.$ac_objext \
40074       conftest$ac_exeext conftest.$ac_ext
40075 fi
40076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40078 if test `eval echo '${'$as_ac_var'}'` = yes; then
40079   cat >>confdefs.h <<_ACEOF
40080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40081 _ACEOF
40082  ice_have_fseek=yes
40083 fi
40084 done
40085
40086 if test "${ice_have_fseek}" = yes; then
40087 echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
40088 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6
40089 if test "${ice_cv_have_fseek_decl+set}" = set; then
40090   echo $ECHO_N "(cached) $ECHO_C" >&6
40091 else
40092
40093 ice_cv_have_fseek_decl=no
40094 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40095 ice_re_word='(^|[^a-zA-Z0-9_])'
40096 for header in stdio.h; do
40097 # Check for ordinary declaration
40098 cat >conftest.$ac_ext <<_ACEOF
40099 /* confdefs.h.  */
40100 _ACEOF
40101 cat confdefs.h >>conftest.$ac_ext
40102 cat >>conftest.$ac_ext <<_ACEOF
40103 /* end confdefs.h.  */
40104 #include <$header>
40105
40106 _ACEOF
40107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40108   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
40109   ice_cv_have_fseek_decl=yes
40110 fi
40111 rm -f conftest*
40112
40113 if test "$ice_cv_have_fseek_decl" = yes; then
40114         break
40115 fi
40116 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40117 cat >conftest.$ac_ext <<_ACEOF
40118 /* confdefs.h.  */
40119 _ACEOF
40120 cat confdefs.h >>conftest.$ac_ext
40121 cat >>conftest.$ac_ext <<_ACEOF
40122 /* end confdefs.h.  */
40123 #include <$header>
40124
40125 _ACEOF
40126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40127   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40128   ice_cv_have_fseek_decl=yes
40129 fi
40130 rm -f conftest*
40131
40132 if test "$ice_cv_have_fseek_decl" = yes; then
40133         break
40134 fi
40135 done
40136
40137 fi
40138
40139 echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
40140 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6
40141 if test "$ice_cv_have_fseek_decl" = yes; then
40142
40143 cat >>confdefs.h <<_ACEOF
40144 #define HAVE_FSEEK_DECL 1
40145 _ACEOF
40146
40147 fi
40148 fi
40149
40150
40151 ice_have_fwrite=no
40152
40153 for ac_func in fwrite
40154 do
40155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40156 echo "$as_me:$LINENO: checking for $ac_func" >&5
40157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40158 if eval "test \"\${$as_ac_var+set}\" = set"; then
40159   echo $ECHO_N "(cached) $ECHO_C" >&6
40160 else
40161   cat >conftest.$ac_ext <<_ACEOF
40162 /* confdefs.h.  */
40163 _ACEOF
40164 cat confdefs.h >>conftest.$ac_ext
40165 cat >>conftest.$ac_ext <<_ACEOF
40166 /* end confdefs.h.  */
40167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40168    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40169 #define $ac_func innocuous_$ac_func
40170
40171 /* System header to define __stub macros and hopefully few prototypes,
40172     which can conflict with char $ac_func (); below.
40173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40174     <limits.h> exists even on freestanding compilers.  */
40175
40176 #ifdef __STDC__
40177 # include <limits.h>
40178 #else
40179 # include <assert.h>
40180 #endif
40181
40182 #undef $ac_func
40183
40184 /* Override any gcc2 internal prototype to avoid an error.  */
40185 #ifdef __cplusplus
40186 extern "C"
40187 {
40188 #endif
40189 /* We use char because int might match the return type of a gcc2
40190    builtin and then its argument prototype would still apply.  */
40191 char $ac_func ();
40192 /* The GNU C library defines this for functions which it implements
40193     to always fail with ENOSYS.  Some functions are actually named
40194     something starting with __ and the normal name is an alias.  */
40195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40196 choke me
40197 #else
40198 char (*f) () = $ac_func;
40199 #endif
40200 #ifdef __cplusplus
40201 }
40202 #endif
40203
40204 int
40205 main ()
40206 {
40207 return f != $ac_func;
40208   ;
40209   return 0;
40210 }
40211 _ACEOF
40212 rm -f conftest.$ac_objext conftest$ac_exeext
40213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40214   (eval $ac_link) 2>conftest.er1
40215   ac_status=$?
40216   grep -v '^ *+' conftest.er1 >conftest.err
40217   rm -f conftest.er1
40218   cat conftest.err >&5
40219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40220   (exit $ac_status); } &&
40221          { ac_try='test -z "$ac_c_werror_flag"
40222                          || test ! -s conftest.err'
40223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40224   (eval $ac_try) 2>&5
40225   ac_status=$?
40226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40227   (exit $ac_status); }; } &&
40228          { ac_try='test -s conftest$ac_exeext'
40229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40230   (eval $ac_try) 2>&5
40231   ac_status=$?
40232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40233   (exit $ac_status); }; }; then
40234   eval "$as_ac_var=yes"
40235 else
40236   echo "$as_me: failed program was:" >&5
40237 sed 's/^/| /' conftest.$ac_ext >&5
40238
40239 eval "$as_ac_var=no"
40240 fi
40241 rm -f conftest.err conftest.$ac_objext \
40242       conftest$ac_exeext conftest.$ac_ext
40243 fi
40244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40246 if test `eval echo '${'$as_ac_var'}'` = yes; then
40247   cat >>confdefs.h <<_ACEOF
40248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40249 _ACEOF
40250  ice_have_fwrite=yes
40251 fi
40252 done
40253
40254 if test "${ice_have_fwrite}" = yes; then
40255 echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
40256 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6
40257 if test "${ice_cv_have_fwrite_decl+set}" = set; then
40258   echo $ECHO_N "(cached) $ECHO_C" >&6
40259 else
40260
40261 ice_cv_have_fwrite_decl=no
40262 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40263 ice_re_word='(^|[^a-zA-Z0-9_])'
40264 for header in stdio.h stdlib.h; do
40265 # Check for ordinary declaration
40266 cat >conftest.$ac_ext <<_ACEOF
40267 /* confdefs.h.  */
40268 _ACEOF
40269 cat confdefs.h >>conftest.$ac_ext
40270 cat >>conftest.$ac_ext <<_ACEOF
40271 /* end confdefs.h.  */
40272 #include <$header>
40273
40274 _ACEOF
40275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40276   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
40277   ice_cv_have_fwrite_decl=yes
40278 fi
40279 rm -f conftest*
40280
40281 if test "$ice_cv_have_fwrite_decl" = yes; then
40282         break
40283 fi
40284 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40285 cat >conftest.$ac_ext <<_ACEOF
40286 /* confdefs.h.  */
40287 _ACEOF
40288 cat confdefs.h >>conftest.$ac_ext
40289 cat >>conftest.$ac_ext <<_ACEOF
40290 /* end confdefs.h.  */
40291 #include <$header>
40292
40293 _ACEOF
40294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40295   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40296   ice_cv_have_fwrite_decl=yes
40297 fi
40298 rm -f conftest*
40299
40300 if test "$ice_cv_have_fwrite_decl" = yes; then
40301         break
40302 fi
40303 done
40304
40305 fi
40306
40307 echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
40308 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6
40309 if test "$ice_cv_have_fwrite_decl" = yes; then
40310
40311 cat >>confdefs.h <<_ACEOF
40312 #define HAVE_FWRITE_DECL 1
40313 _ACEOF
40314
40315 fi
40316 fi
40317
40318
40319 for ac_func in getcwd
40320 do
40321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40322 echo "$as_me:$LINENO: checking for $ac_func" >&5
40323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40324 if eval "test \"\${$as_ac_var+set}\" = set"; then
40325   echo $ECHO_N "(cached) $ECHO_C" >&6
40326 else
40327   cat >conftest.$ac_ext <<_ACEOF
40328 /* confdefs.h.  */
40329 _ACEOF
40330 cat confdefs.h >>conftest.$ac_ext
40331 cat >>conftest.$ac_ext <<_ACEOF
40332 /* end confdefs.h.  */
40333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40335 #define $ac_func innocuous_$ac_func
40336
40337 /* System header to define __stub macros and hopefully few prototypes,
40338     which can conflict with char $ac_func (); below.
40339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40340     <limits.h> exists even on freestanding compilers.  */
40341
40342 #ifdef __STDC__
40343 # include <limits.h>
40344 #else
40345 # include <assert.h>
40346 #endif
40347
40348 #undef $ac_func
40349
40350 /* Override any gcc2 internal prototype to avoid an error.  */
40351 #ifdef __cplusplus
40352 extern "C"
40353 {
40354 #endif
40355 /* We use char because int might match the return type of a gcc2
40356    builtin and then its argument prototype would still apply.  */
40357 char $ac_func ();
40358 /* The GNU C library defines this for functions which it implements
40359     to always fail with ENOSYS.  Some functions are actually named
40360     something starting with __ and the normal name is an alias.  */
40361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40362 choke me
40363 #else
40364 char (*f) () = $ac_func;
40365 #endif
40366 #ifdef __cplusplus
40367 }
40368 #endif
40369
40370 int
40371 main ()
40372 {
40373 return f != $ac_func;
40374   ;
40375   return 0;
40376 }
40377 _ACEOF
40378 rm -f conftest.$ac_objext conftest$ac_exeext
40379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40380   (eval $ac_link) 2>conftest.er1
40381   ac_status=$?
40382   grep -v '^ *+' conftest.er1 >conftest.err
40383   rm -f conftest.er1
40384   cat conftest.err >&5
40385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40386   (exit $ac_status); } &&
40387          { ac_try='test -z "$ac_c_werror_flag"
40388                          || test ! -s conftest.err'
40389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40390   (eval $ac_try) 2>&5
40391   ac_status=$?
40392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40393   (exit $ac_status); }; } &&
40394          { ac_try='test -s conftest$ac_exeext'
40395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40396   (eval $ac_try) 2>&5
40397   ac_status=$?
40398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40399   (exit $ac_status); }; }; then
40400   eval "$as_ac_var=yes"
40401 else
40402   echo "$as_me: failed program was:" >&5
40403 sed 's/^/| /' conftest.$ac_ext >&5
40404
40405 eval "$as_ac_var=no"
40406 fi
40407 rm -f conftest.err conftest.$ac_objext \
40408       conftest$ac_exeext conftest.$ac_ext
40409 fi
40410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40412 if test `eval echo '${'$as_ac_var'}'` = yes; then
40413   cat >>confdefs.h <<_ACEOF
40414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40415 _ACEOF
40416
40417 else
40418   case $LIBOBJS in
40419     "$ac_func.$ac_objext"   | \
40420   *" $ac_func.$ac_objext"   | \
40421     "$ac_func.$ac_objext "* | \
40422   *" $ac_func.$ac_objext "* ) ;;
40423   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
40424 esac
40425
40426 fi
40427 done
40428
40429
40430
40431 for ac_func in getfsent
40432 do
40433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40434 echo "$as_me:$LINENO: checking for $ac_func" >&5
40435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40436 if eval "test \"\${$as_ac_var+set}\" = set"; then
40437   echo $ECHO_N "(cached) $ECHO_C" >&6
40438 else
40439   cat >conftest.$ac_ext <<_ACEOF
40440 /* confdefs.h.  */
40441 _ACEOF
40442 cat confdefs.h >>conftest.$ac_ext
40443 cat >>conftest.$ac_ext <<_ACEOF
40444 /* end confdefs.h.  */
40445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40447 #define $ac_func innocuous_$ac_func
40448
40449 /* System header to define __stub macros and hopefully few prototypes,
40450     which can conflict with char $ac_func (); below.
40451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40452     <limits.h> exists even on freestanding compilers.  */
40453
40454 #ifdef __STDC__
40455 # include <limits.h>
40456 #else
40457 # include <assert.h>
40458 #endif
40459
40460 #undef $ac_func
40461
40462 /* Override any gcc2 internal prototype to avoid an error.  */
40463 #ifdef __cplusplus
40464 extern "C"
40465 {
40466 #endif
40467 /* We use char because int might match the return type of a gcc2
40468    builtin and then its argument prototype would still apply.  */
40469 char $ac_func ();
40470 /* The GNU C library defines this for functions which it implements
40471     to always fail with ENOSYS.  Some functions are actually named
40472     something starting with __ and the normal name is an alias.  */
40473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40474 choke me
40475 #else
40476 char (*f) () = $ac_func;
40477 #endif
40478 #ifdef __cplusplus
40479 }
40480 #endif
40481
40482 int
40483 main ()
40484 {
40485 return f != $ac_func;
40486   ;
40487   return 0;
40488 }
40489 _ACEOF
40490 rm -f conftest.$ac_objext conftest$ac_exeext
40491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40492   (eval $ac_link) 2>conftest.er1
40493   ac_status=$?
40494   grep -v '^ *+' conftest.er1 >conftest.err
40495   rm -f conftest.er1
40496   cat conftest.err >&5
40497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40498   (exit $ac_status); } &&
40499          { ac_try='test -z "$ac_c_werror_flag"
40500                          || test ! -s conftest.err'
40501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40502   (eval $ac_try) 2>&5
40503   ac_status=$?
40504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40505   (exit $ac_status); }; } &&
40506          { ac_try='test -s conftest$ac_exeext'
40507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40508   (eval $ac_try) 2>&5
40509   ac_status=$?
40510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40511   (exit $ac_status); }; }; then
40512   eval "$as_ac_var=yes"
40513 else
40514   echo "$as_me: failed program was:" >&5
40515 sed 's/^/| /' conftest.$ac_ext >&5
40516
40517 eval "$as_ac_var=no"
40518 fi
40519 rm -f conftest.err conftest.$ac_objext \
40520       conftest$ac_exeext conftest.$ac_ext
40521 fi
40522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40524 if test `eval echo '${'$as_ac_var'}'` = yes; then
40525   cat >>confdefs.h <<_ACEOF
40526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40527 _ACEOF
40528
40529 fi
40530 done
40531
40532
40533 ice_have_gethostname=no
40534
40535 for ac_func in gethostname
40536 do
40537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40538 echo "$as_me:$LINENO: checking for $ac_func" >&5
40539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40540 if eval "test \"\${$as_ac_var+set}\" = set"; then
40541   echo $ECHO_N "(cached) $ECHO_C" >&6
40542 else
40543   cat >conftest.$ac_ext <<_ACEOF
40544 /* confdefs.h.  */
40545 _ACEOF
40546 cat confdefs.h >>conftest.$ac_ext
40547 cat >>conftest.$ac_ext <<_ACEOF
40548 /* end confdefs.h.  */
40549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40551 #define $ac_func innocuous_$ac_func
40552
40553 /* System header to define __stub macros and hopefully few prototypes,
40554     which can conflict with char $ac_func (); below.
40555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40556     <limits.h> exists even on freestanding compilers.  */
40557
40558 #ifdef __STDC__
40559 # include <limits.h>
40560 #else
40561 # include <assert.h>
40562 #endif
40563
40564 #undef $ac_func
40565
40566 /* Override any gcc2 internal prototype to avoid an error.  */
40567 #ifdef __cplusplus
40568 extern "C"
40569 {
40570 #endif
40571 /* We use char because int might match the return type of a gcc2
40572    builtin and then its argument prototype would still apply.  */
40573 char $ac_func ();
40574 /* The GNU C library defines this for functions which it implements
40575     to always fail with ENOSYS.  Some functions are actually named
40576     something starting with __ and the normal name is an alias.  */
40577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40578 choke me
40579 #else
40580 char (*f) () = $ac_func;
40581 #endif
40582 #ifdef __cplusplus
40583 }
40584 #endif
40585
40586 int
40587 main ()
40588 {
40589 return f != $ac_func;
40590   ;
40591   return 0;
40592 }
40593 _ACEOF
40594 rm -f conftest.$ac_objext conftest$ac_exeext
40595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40596   (eval $ac_link) 2>conftest.er1
40597   ac_status=$?
40598   grep -v '^ *+' conftest.er1 >conftest.err
40599   rm -f conftest.er1
40600   cat conftest.err >&5
40601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40602   (exit $ac_status); } &&
40603          { ac_try='test -z "$ac_c_werror_flag"
40604                          || test ! -s conftest.err'
40605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40606   (eval $ac_try) 2>&5
40607   ac_status=$?
40608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40609   (exit $ac_status); }; } &&
40610          { ac_try='test -s conftest$ac_exeext'
40611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40612   (eval $ac_try) 2>&5
40613   ac_status=$?
40614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40615   (exit $ac_status); }; }; then
40616   eval "$as_ac_var=yes"
40617 else
40618   echo "$as_me: failed program was:" >&5
40619 sed 's/^/| /' conftest.$ac_ext >&5
40620
40621 eval "$as_ac_var=no"
40622 fi
40623 rm -f conftest.err conftest.$ac_objext \
40624       conftest$ac_exeext conftest.$ac_ext
40625 fi
40626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40628 if test `eval echo '${'$as_ac_var'}'` = yes; then
40629   cat >>confdefs.h <<_ACEOF
40630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40631 _ACEOF
40632  ice_have_gethostname=yes
40633 fi
40634 done
40635
40636 if test "${ice_have_gethostname}" = yes; then
40637 echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
40638 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6
40639 if test "${ice_cv_have_gethostname_decl+set}" = set; then
40640   echo $ECHO_N "(cached) $ECHO_C" >&6
40641 else
40642
40643 ice_cv_have_gethostname_decl=no
40644 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40645 ice_re_word='(^|[^a-zA-Z0-9_])'
40646 for header in unistd.h; do
40647 # Check for ordinary declaration
40648 cat >conftest.$ac_ext <<_ACEOF
40649 /* confdefs.h.  */
40650 _ACEOF
40651 cat confdefs.h >>conftest.$ac_ext
40652 cat >>conftest.$ac_ext <<_ACEOF
40653 /* end confdefs.h.  */
40654 #include <$header>
40655
40656 _ACEOF
40657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40658   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
40659   ice_cv_have_gethostname_decl=yes
40660 fi
40661 rm -f conftest*
40662
40663 if test "$ice_cv_have_gethostname_decl" = yes; then
40664         break
40665 fi
40666 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40667 cat >conftest.$ac_ext <<_ACEOF
40668 /* confdefs.h.  */
40669 _ACEOF
40670 cat confdefs.h >>conftest.$ac_ext
40671 cat >>conftest.$ac_ext <<_ACEOF
40672 /* end confdefs.h.  */
40673 #include <$header>
40674
40675 _ACEOF
40676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40677   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40678   ice_cv_have_gethostname_decl=yes
40679 fi
40680 rm -f conftest*
40681
40682 if test "$ice_cv_have_gethostname_decl" = yes; then
40683         break
40684 fi
40685 done
40686
40687 fi
40688
40689 echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
40690 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6
40691 if test "$ice_cv_have_gethostname_decl" = yes; then
40692
40693 cat >>confdefs.h <<_ACEOF
40694 #define HAVE_GETHOSTNAME_DECL 1
40695 _ACEOF
40696
40697 fi
40698 fi
40699
40700 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
40701 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
40702 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
40703 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
40704   echo $ECHO_N "(cached) $ECHO_C" >&6
40705 else
40706   ac_check_lib_save_LIBS=$LIBS
40707 LIBS="-lsun  $LIBS"
40708 cat >conftest.$ac_ext <<_ACEOF
40709 /* confdefs.h.  */
40710 _ACEOF
40711 cat confdefs.h >>conftest.$ac_ext
40712 cat >>conftest.$ac_ext <<_ACEOF
40713 /* end confdefs.h.  */
40714
40715 /* Override any gcc2 internal prototype to avoid an error.  */
40716 #ifdef __cplusplus
40717 extern "C"
40718 #endif
40719 /* We use char because int might match the return type of a gcc2
40720    builtin and then its argument prototype would still apply.  */
40721 char getmntent ();
40722 int
40723 main ()
40724 {
40725 getmntent ();
40726   ;
40727   return 0;
40728 }
40729 _ACEOF
40730 rm -f conftest.$ac_objext conftest$ac_exeext
40731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40732   (eval $ac_link) 2>conftest.er1
40733   ac_status=$?
40734   grep -v '^ *+' conftest.er1 >conftest.err
40735   rm -f conftest.er1
40736   cat conftest.err >&5
40737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40738   (exit $ac_status); } &&
40739          { ac_try='test -z "$ac_c_werror_flag"
40740                          || test ! -s conftest.err'
40741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40742   (eval $ac_try) 2>&5
40743   ac_status=$?
40744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40745   (exit $ac_status); }; } &&
40746          { ac_try='test -s conftest$ac_exeext'
40747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40748   (eval $ac_try) 2>&5
40749   ac_status=$?
40750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40751   (exit $ac_status); }; }; then
40752   ac_cv_lib_sun_getmntent=yes
40753 else
40754   echo "$as_me: failed program was:" >&5
40755 sed 's/^/| /' conftest.$ac_ext >&5
40756
40757 ac_cv_lib_sun_getmntent=no
40758 fi
40759 rm -f conftest.err conftest.$ac_objext \
40760       conftest$ac_exeext conftest.$ac_ext
40761 LIBS=$ac_check_lib_save_LIBS
40762 fi
40763 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
40764 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
40765 if test $ac_cv_lib_sun_getmntent = yes; then
40766   LIBS="-lsun $LIBS"
40767 else
40768   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
40769 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
40770 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
40771   echo $ECHO_N "(cached) $ECHO_C" >&6
40772 else
40773   ac_check_lib_save_LIBS=$LIBS
40774 LIBS="-lseq  $LIBS"
40775 cat >conftest.$ac_ext <<_ACEOF
40776 /* confdefs.h.  */
40777 _ACEOF
40778 cat confdefs.h >>conftest.$ac_ext
40779 cat >>conftest.$ac_ext <<_ACEOF
40780 /* end confdefs.h.  */
40781
40782 /* Override any gcc2 internal prototype to avoid an error.  */
40783 #ifdef __cplusplus
40784 extern "C"
40785 #endif
40786 /* We use char because int might match the return type of a gcc2
40787    builtin and then its argument prototype would still apply.  */
40788 char getmntent ();
40789 int
40790 main ()
40791 {
40792 getmntent ();
40793   ;
40794   return 0;
40795 }
40796 _ACEOF
40797 rm -f conftest.$ac_objext conftest$ac_exeext
40798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40799   (eval $ac_link) 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_exeext'
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_cv_lib_seq_getmntent=yes
40820 else
40821   echo "$as_me: failed program was:" >&5
40822 sed 's/^/| /' conftest.$ac_ext >&5
40823
40824 ac_cv_lib_seq_getmntent=no
40825 fi
40826 rm -f conftest.err conftest.$ac_objext \
40827       conftest$ac_exeext conftest.$ac_ext
40828 LIBS=$ac_check_lib_save_LIBS
40829 fi
40830 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
40831 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
40832 if test $ac_cv_lib_seq_getmntent = yes; then
40833   LIBS="-lseq $LIBS"
40834 else
40835   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
40836 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
40837 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
40838   echo $ECHO_N "(cached) $ECHO_C" >&6
40839 else
40840   ac_check_lib_save_LIBS=$LIBS
40841 LIBS="-lgen  $LIBS"
40842 cat >conftest.$ac_ext <<_ACEOF
40843 /* confdefs.h.  */
40844 _ACEOF
40845 cat confdefs.h >>conftest.$ac_ext
40846 cat >>conftest.$ac_ext <<_ACEOF
40847 /* end confdefs.h.  */
40848
40849 /* Override any gcc2 internal prototype to avoid an error.  */
40850 #ifdef __cplusplus
40851 extern "C"
40852 #endif
40853 /* We use char because int might match the return type of a gcc2
40854    builtin and then its argument prototype would still apply.  */
40855 char getmntent ();
40856 int
40857 main ()
40858 {
40859 getmntent ();
40860   ;
40861   return 0;
40862 }
40863 _ACEOF
40864 rm -f conftest.$ac_objext conftest$ac_exeext
40865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40866   (eval $ac_link) 2>conftest.er1
40867   ac_status=$?
40868   grep -v '^ *+' conftest.er1 >conftest.err
40869   rm -f conftest.er1
40870   cat conftest.err >&5
40871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40872   (exit $ac_status); } &&
40873          { ac_try='test -z "$ac_c_werror_flag"
40874                          || test ! -s conftest.err'
40875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40876   (eval $ac_try) 2>&5
40877   ac_status=$?
40878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40879   (exit $ac_status); }; } &&
40880          { ac_try='test -s conftest$ac_exeext'
40881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40882   (eval $ac_try) 2>&5
40883   ac_status=$?
40884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40885   (exit $ac_status); }; }; then
40886   ac_cv_lib_gen_getmntent=yes
40887 else
40888   echo "$as_me: failed program was:" >&5
40889 sed 's/^/| /' conftest.$ac_ext >&5
40890
40891 ac_cv_lib_gen_getmntent=no
40892 fi
40893 rm -f conftest.err conftest.$ac_objext \
40894       conftest$ac_exeext conftest.$ac_ext
40895 LIBS=$ac_check_lib_save_LIBS
40896 fi
40897 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
40898 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
40899 if test $ac_cv_lib_gen_getmntent = yes; then
40900   LIBS="-lgen $LIBS"
40901 fi
40902
40903 fi
40904
40905 fi
40906
40907
40908 for ac_func in getmntent
40909 do
40910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40911 echo "$as_me:$LINENO: checking for $ac_func" >&5
40912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40913 if eval "test \"\${$as_ac_var+set}\" = set"; then
40914   echo $ECHO_N "(cached) $ECHO_C" >&6
40915 else
40916   cat >conftest.$ac_ext <<_ACEOF
40917 /* confdefs.h.  */
40918 _ACEOF
40919 cat confdefs.h >>conftest.$ac_ext
40920 cat >>conftest.$ac_ext <<_ACEOF
40921 /* end confdefs.h.  */
40922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40924 #define $ac_func innocuous_$ac_func
40925
40926 /* System header to define __stub macros and hopefully few prototypes,
40927     which can conflict with char $ac_func (); below.
40928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40929     <limits.h> exists even on freestanding compilers.  */
40930
40931 #ifdef __STDC__
40932 # include <limits.h>
40933 #else
40934 # include <assert.h>
40935 #endif
40936
40937 #undef $ac_func
40938
40939 /* Override any gcc2 internal prototype to avoid an error.  */
40940 #ifdef __cplusplus
40941 extern "C"
40942 {
40943 #endif
40944 /* We use char because int might match the return type of a gcc2
40945    builtin and then its argument prototype would still apply.  */
40946 char $ac_func ();
40947 /* The GNU C library defines this for functions which it implements
40948     to always fail with ENOSYS.  Some functions are actually named
40949     something starting with __ and the normal name is an alias.  */
40950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40951 choke me
40952 #else
40953 char (*f) () = $ac_func;
40954 #endif
40955 #ifdef __cplusplus
40956 }
40957 #endif
40958
40959 int
40960 main ()
40961 {
40962 return f != $ac_func;
40963   ;
40964   return 0;
40965 }
40966 _ACEOF
40967 rm -f conftest.$ac_objext conftest$ac_exeext
40968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40969   (eval $ac_link) 2>conftest.er1
40970   ac_status=$?
40971   grep -v '^ *+' conftest.er1 >conftest.err
40972   rm -f conftest.er1
40973   cat conftest.err >&5
40974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40975   (exit $ac_status); } &&
40976          { ac_try='test -z "$ac_c_werror_flag"
40977                          || test ! -s conftest.err'
40978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40979   (eval $ac_try) 2>&5
40980   ac_status=$?
40981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40982   (exit $ac_status); }; } &&
40983          { ac_try='test -s conftest$ac_exeext'
40984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40985   (eval $ac_try) 2>&5
40986   ac_status=$?
40987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40988   (exit $ac_status); }; }; then
40989   eval "$as_ac_var=yes"
40990 else
40991   echo "$as_me: failed program was:" >&5
40992 sed 's/^/| /' conftest.$ac_ext >&5
40993
40994 eval "$as_ac_var=no"
40995 fi
40996 rm -f conftest.err conftest.$ac_objext \
40997       conftest$ac_exeext conftest.$ac_ext
40998 fi
40999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41001 if test `eval echo '${'$as_ac_var'}'` = yes; then
41002   cat >>confdefs.h <<_ACEOF
41003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41004 _ACEOF
41005
41006 fi
41007 done
41008
41009
41010
41011 ice_have_getopt=no
41012
41013 for ac_func in getopt
41014 do
41015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41016 echo "$as_me:$LINENO: checking for $ac_func" >&5
41017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41018 if eval "test \"\${$as_ac_var+set}\" = set"; then
41019   echo $ECHO_N "(cached) $ECHO_C" >&6
41020 else
41021   cat >conftest.$ac_ext <<_ACEOF
41022 /* confdefs.h.  */
41023 _ACEOF
41024 cat confdefs.h >>conftest.$ac_ext
41025 cat >>conftest.$ac_ext <<_ACEOF
41026 /* end confdefs.h.  */
41027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41029 #define $ac_func innocuous_$ac_func
41030
41031 /* System header to define __stub macros and hopefully few prototypes,
41032     which can conflict with char $ac_func (); below.
41033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41034     <limits.h> exists even on freestanding compilers.  */
41035
41036 #ifdef __STDC__
41037 # include <limits.h>
41038 #else
41039 # include <assert.h>
41040 #endif
41041
41042 #undef $ac_func
41043
41044 /* Override any gcc2 internal prototype to avoid an error.  */
41045 #ifdef __cplusplus
41046 extern "C"
41047 {
41048 #endif
41049 /* We use char because int might match the return type of a gcc2
41050    builtin and then its argument prototype would still apply.  */
41051 char $ac_func ();
41052 /* The GNU C library defines this for functions which it implements
41053     to always fail with ENOSYS.  Some functions are actually named
41054     something starting with __ and the normal name is an alias.  */
41055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41056 choke me
41057 #else
41058 char (*f) () = $ac_func;
41059 #endif
41060 #ifdef __cplusplus
41061 }
41062 #endif
41063
41064 int
41065 main ()
41066 {
41067 return f != $ac_func;
41068   ;
41069   return 0;
41070 }
41071 _ACEOF
41072 rm -f conftest.$ac_objext conftest$ac_exeext
41073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41074   (eval $ac_link) 2>conftest.er1
41075   ac_status=$?
41076   grep -v '^ *+' conftest.er1 >conftest.err
41077   rm -f conftest.er1
41078   cat conftest.err >&5
41079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41080   (exit $ac_status); } &&
41081          { ac_try='test -z "$ac_c_werror_flag"
41082                          || test ! -s conftest.err'
41083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41084   (eval $ac_try) 2>&5
41085   ac_status=$?
41086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41087   (exit $ac_status); }; } &&
41088          { ac_try='test -s conftest$ac_exeext'
41089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41090   (eval $ac_try) 2>&5
41091   ac_status=$?
41092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41093   (exit $ac_status); }; }; then
41094   eval "$as_ac_var=yes"
41095 else
41096   echo "$as_me: failed program was:" >&5
41097 sed 's/^/| /' conftest.$ac_ext >&5
41098
41099 eval "$as_ac_var=no"
41100 fi
41101 rm -f conftest.err conftest.$ac_objext \
41102       conftest$ac_exeext conftest.$ac_ext
41103 fi
41104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41106 if test `eval echo '${'$as_ac_var'}'` = yes; then
41107   cat >>confdefs.h <<_ACEOF
41108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41109 _ACEOF
41110  ice_have_getopt=yes
41111 fi
41112 done
41113
41114 if test "${ice_have_getopt}" = yes; then
41115 echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
41116 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6
41117 if test "${ice_cv_have_getopt_decl+set}" = set; then
41118   echo $ECHO_N "(cached) $ECHO_C" >&6
41119 else
41120
41121 ice_cv_have_getopt_decl=no
41122 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41123 ice_re_word='(^|[^a-zA-Z0-9_])'
41124 for header in stdlib.h unistd.h libc.h; do
41125 # Check for ordinary declaration
41126 cat >conftest.$ac_ext <<_ACEOF
41127 /* confdefs.h.  */
41128 _ACEOF
41129 cat confdefs.h >>conftest.$ac_ext
41130 cat >>conftest.$ac_ext <<_ACEOF
41131 /* end confdefs.h.  */
41132 #include <$header>
41133
41134 _ACEOF
41135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41136   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
41137   ice_cv_have_getopt_decl=yes
41138 fi
41139 rm -f conftest*
41140
41141 if test "$ice_cv_have_getopt_decl" = yes; then
41142         break
41143 fi
41144 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41145 cat >conftest.$ac_ext <<_ACEOF
41146 /* confdefs.h.  */
41147 _ACEOF
41148 cat confdefs.h >>conftest.$ac_ext
41149 cat >>conftest.$ac_ext <<_ACEOF
41150 /* end confdefs.h.  */
41151 #include <$header>
41152
41153 _ACEOF
41154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41155   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41156   ice_cv_have_getopt_decl=yes
41157 fi
41158 rm -f conftest*
41159
41160 if test "$ice_cv_have_getopt_decl" = yes; then
41161         break
41162 fi
41163 done
41164
41165 fi
41166
41167 echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
41168 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6
41169 if test "$ice_cv_have_getopt_decl" = yes; then
41170
41171 cat >>confdefs.h <<_ACEOF
41172 #define HAVE_GETOPT_DECL 1
41173 _ACEOF
41174
41175 fi
41176 fi
41177
41178
41179 ice_have_getpeername=no
41180
41181 for ac_func in getpeername
41182 do
41183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41184 echo "$as_me:$LINENO: checking for $ac_func" >&5
41185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41186 if eval "test \"\${$as_ac_var+set}\" = set"; then
41187   echo $ECHO_N "(cached) $ECHO_C" >&6
41188 else
41189   cat >conftest.$ac_ext <<_ACEOF
41190 /* confdefs.h.  */
41191 _ACEOF
41192 cat confdefs.h >>conftest.$ac_ext
41193 cat >>conftest.$ac_ext <<_ACEOF
41194 /* end confdefs.h.  */
41195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41197 #define $ac_func innocuous_$ac_func
41198
41199 /* System header to define __stub macros and hopefully few prototypes,
41200     which can conflict with char $ac_func (); below.
41201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41202     <limits.h> exists even on freestanding compilers.  */
41203
41204 #ifdef __STDC__
41205 # include <limits.h>
41206 #else
41207 # include <assert.h>
41208 #endif
41209
41210 #undef $ac_func
41211
41212 /* Override any gcc2 internal prototype to avoid an error.  */
41213 #ifdef __cplusplus
41214 extern "C"
41215 {
41216 #endif
41217 /* We use char because int might match the return type of a gcc2
41218    builtin and then its argument prototype would still apply.  */
41219 char $ac_func ();
41220 /* The GNU C library defines this for functions which it implements
41221     to always fail with ENOSYS.  Some functions are actually named
41222     something starting with __ and the normal name is an alias.  */
41223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41224 choke me
41225 #else
41226 char (*f) () = $ac_func;
41227 #endif
41228 #ifdef __cplusplus
41229 }
41230 #endif
41231
41232 int
41233 main ()
41234 {
41235 return f != $ac_func;
41236   ;
41237   return 0;
41238 }
41239 _ACEOF
41240 rm -f conftest.$ac_objext conftest$ac_exeext
41241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41242   (eval $ac_link) 2>conftest.er1
41243   ac_status=$?
41244   grep -v '^ *+' conftest.er1 >conftest.err
41245   rm -f conftest.er1
41246   cat conftest.err >&5
41247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41248   (exit $ac_status); } &&
41249          { ac_try='test -z "$ac_c_werror_flag"
41250                          || test ! -s conftest.err'
41251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41252   (eval $ac_try) 2>&5
41253   ac_status=$?
41254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41255   (exit $ac_status); }; } &&
41256          { ac_try='test -s conftest$ac_exeext'
41257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41258   (eval $ac_try) 2>&5
41259   ac_status=$?
41260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41261   (exit $ac_status); }; }; then
41262   eval "$as_ac_var=yes"
41263 else
41264   echo "$as_me: failed program was:" >&5
41265 sed 's/^/| /' conftest.$ac_ext >&5
41266
41267 eval "$as_ac_var=no"
41268 fi
41269 rm -f conftest.err conftest.$ac_objext \
41270       conftest$ac_exeext conftest.$ac_ext
41271 fi
41272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41274 if test `eval echo '${'$as_ac_var'}'` = yes; then
41275   cat >>confdefs.h <<_ACEOF
41276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41277 _ACEOF
41278  ice_have_getpeername=yes
41279 fi
41280 done
41281
41282 if test "${ice_have_getpeername}" = yes; then
41283 echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
41284 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
41285 if test "${ice_cv_have_getpeername_decl+set}" = set; then
41286   echo $ECHO_N "(cached) $ECHO_C" >&6
41287 else
41288
41289 ice_cv_have_getpeername_decl=no
41290 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41291 ice_re_word='(^|[^a-zA-Z0-9_])'
41292 for header in sys/types.h sys/socket.h; do
41293 # Check for ordinary declaration
41294 cat >conftest.$ac_ext <<_ACEOF
41295 /* confdefs.h.  */
41296 _ACEOF
41297 cat confdefs.h >>conftest.$ac_ext
41298 cat >>conftest.$ac_ext <<_ACEOF
41299 /* end confdefs.h.  */
41300 #include <$header>
41301
41302 _ACEOF
41303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41304   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
41305   ice_cv_have_getpeername_decl=yes
41306 fi
41307 rm -f conftest*
41308
41309 if test "$ice_cv_have_getpeername_decl" = yes; then
41310         break
41311 fi
41312 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41313 cat >conftest.$ac_ext <<_ACEOF
41314 /* confdefs.h.  */
41315 _ACEOF
41316 cat confdefs.h >>conftest.$ac_ext
41317 cat >>conftest.$ac_ext <<_ACEOF
41318 /* end confdefs.h.  */
41319 #include <$header>
41320
41321 _ACEOF
41322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41323   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41324   ice_cv_have_getpeername_decl=yes
41325 fi
41326 rm -f conftest*
41327
41328 if test "$ice_cv_have_getpeername_decl" = yes; then
41329         break
41330 fi
41331 done
41332
41333 fi
41334
41335 echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
41336 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6
41337 if test "$ice_cv_have_getpeername_decl" = yes; then
41338
41339 cat >>confdefs.h <<_ACEOF
41340 #define HAVE_GETPEERNAME_DECL 1
41341 _ACEOF
41342
41343 fi
41344 fi
41345
41346
41347 for ac_func in getpgrp
41348 do
41349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41350 echo "$as_me:$LINENO: checking for $ac_func" >&5
41351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41352 if eval "test \"\${$as_ac_var+set}\" = set"; then
41353   echo $ECHO_N "(cached) $ECHO_C" >&6
41354 else
41355   cat >conftest.$ac_ext <<_ACEOF
41356 /* confdefs.h.  */
41357 _ACEOF
41358 cat confdefs.h >>conftest.$ac_ext
41359 cat >>conftest.$ac_ext <<_ACEOF
41360 /* end confdefs.h.  */
41361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41363 #define $ac_func innocuous_$ac_func
41364
41365 /* System header to define __stub macros and hopefully few prototypes,
41366     which can conflict with char $ac_func (); below.
41367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41368     <limits.h> exists even on freestanding compilers.  */
41369
41370 #ifdef __STDC__
41371 # include <limits.h>
41372 #else
41373 # include <assert.h>
41374 #endif
41375
41376 #undef $ac_func
41377
41378 /* Override any gcc2 internal prototype to avoid an error.  */
41379 #ifdef __cplusplus
41380 extern "C"
41381 {
41382 #endif
41383 /* We use char because int might match the return type of a gcc2
41384    builtin and then its argument prototype would still apply.  */
41385 char $ac_func ();
41386 /* The GNU C library defines this for functions which it implements
41387     to always fail with ENOSYS.  Some functions are actually named
41388     something starting with __ and the normal name is an alias.  */
41389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41390 choke me
41391 #else
41392 char (*f) () = $ac_func;
41393 #endif
41394 #ifdef __cplusplus
41395 }
41396 #endif
41397
41398 int
41399 main ()
41400 {
41401 return f != $ac_func;
41402   ;
41403   return 0;
41404 }
41405 _ACEOF
41406 rm -f conftest.$ac_objext conftest$ac_exeext
41407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41408   (eval $ac_link) 2>conftest.er1
41409   ac_status=$?
41410   grep -v '^ *+' conftest.er1 >conftest.err
41411   rm -f conftest.er1
41412   cat conftest.err >&5
41413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41414   (exit $ac_status); } &&
41415          { ac_try='test -z "$ac_c_werror_flag"
41416                          || test ! -s conftest.err'
41417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41418   (eval $ac_try) 2>&5
41419   ac_status=$?
41420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41421   (exit $ac_status); }; } &&
41422          { ac_try='test -s conftest$ac_exeext'
41423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41424   (eval $ac_try) 2>&5
41425   ac_status=$?
41426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41427   (exit $ac_status); }; }; then
41428   eval "$as_ac_var=yes"
41429 else
41430   echo "$as_me: failed program was:" >&5
41431 sed 's/^/| /' conftest.$ac_ext >&5
41432
41433 eval "$as_ac_var=no"
41434 fi
41435 rm -f conftest.err conftest.$ac_objext \
41436       conftest$ac_exeext conftest.$ac_ext
41437 fi
41438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41440 if test `eval echo '${'$as_ac_var'}'` = yes; then
41441   cat >>confdefs.h <<_ACEOF
41442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41443 _ACEOF
41444
41445 fi
41446 done
41447
41448 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
41449 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
41450 if test "${ac_cv_func_getpgrp_void+set}" = set; then
41451   echo $ECHO_N "(cached) $ECHO_C" >&6
41452 else
41453   # Use it with a single arg.
41454 cat >conftest.$ac_ext <<_ACEOF
41455 /* confdefs.h.  */
41456 _ACEOF
41457 cat confdefs.h >>conftest.$ac_ext
41458 cat >>conftest.$ac_ext <<_ACEOF
41459 /* end confdefs.h.  */
41460 $ac_includes_default
41461 int
41462 main ()
41463 {
41464 getpgrp (0);
41465   ;
41466   return 0;
41467 }
41468 _ACEOF
41469 rm -f conftest.$ac_objext
41470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41471   (eval $ac_compile) 2>conftest.er1
41472   ac_status=$?
41473   grep -v '^ *+' conftest.er1 >conftest.err
41474   rm -f conftest.er1
41475   cat conftest.err >&5
41476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41477   (exit $ac_status); } &&
41478          { ac_try='test -z "$ac_c_werror_flag"
41479                          || test ! -s conftest.err'
41480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41481   (eval $ac_try) 2>&5
41482   ac_status=$?
41483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41484   (exit $ac_status); }; } &&
41485          { ac_try='test -s conftest.$ac_objext'
41486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41487   (eval $ac_try) 2>&5
41488   ac_status=$?
41489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41490   (exit $ac_status); }; }; then
41491   ac_cv_func_getpgrp_void=no
41492 else
41493   echo "$as_me: failed program was:" >&5
41494 sed 's/^/| /' conftest.$ac_ext >&5
41495
41496 ac_cv_func_getpgrp_void=yes
41497 fi
41498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41499
41500 fi
41501 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
41502 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
41503 if test $ac_cv_func_getpgrp_void = yes; then
41504
41505 cat >>confdefs.h <<\_ACEOF
41506 #define GETPGRP_VOID 1
41507 _ACEOF
41508
41509 fi
41510
41511
41512 ice_have_getsockname=no
41513
41514 for ac_func in getsockname
41515 do
41516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41517 echo "$as_me:$LINENO: checking for $ac_func" >&5
41518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41519 if eval "test \"\${$as_ac_var+set}\" = set"; then
41520   echo $ECHO_N "(cached) $ECHO_C" >&6
41521 else
41522   cat >conftest.$ac_ext <<_ACEOF
41523 /* confdefs.h.  */
41524 _ACEOF
41525 cat confdefs.h >>conftest.$ac_ext
41526 cat >>conftest.$ac_ext <<_ACEOF
41527 /* end confdefs.h.  */
41528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41530 #define $ac_func innocuous_$ac_func
41531
41532 /* System header to define __stub macros and hopefully few prototypes,
41533     which can conflict with char $ac_func (); below.
41534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41535     <limits.h> exists even on freestanding compilers.  */
41536
41537 #ifdef __STDC__
41538 # include <limits.h>
41539 #else
41540 # include <assert.h>
41541 #endif
41542
41543 #undef $ac_func
41544
41545 /* Override any gcc2 internal prototype to avoid an error.  */
41546 #ifdef __cplusplus
41547 extern "C"
41548 {
41549 #endif
41550 /* We use char because int might match the return type of a gcc2
41551    builtin and then its argument prototype would still apply.  */
41552 char $ac_func ();
41553 /* The GNU C library defines this for functions which it implements
41554     to always fail with ENOSYS.  Some functions are actually named
41555     something starting with __ and the normal name is an alias.  */
41556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41557 choke me
41558 #else
41559 char (*f) () = $ac_func;
41560 #endif
41561 #ifdef __cplusplus
41562 }
41563 #endif
41564
41565 int
41566 main ()
41567 {
41568 return f != $ac_func;
41569   ;
41570   return 0;
41571 }
41572 _ACEOF
41573 rm -f conftest.$ac_objext conftest$ac_exeext
41574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41575   (eval $ac_link) 2>conftest.er1
41576   ac_status=$?
41577   grep -v '^ *+' conftest.er1 >conftest.err
41578   rm -f conftest.er1
41579   cat conftest.err >&5
41580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41581   (exit $ac_status); } &&
41582          { ac_try='test -z "$ac_c_werror_flag"
41583                          || test ! -s conftest.err'
41584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41585   (eval $ac_try) 2>&5
41586   ac_status=$?
41587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41588   (exit $ac_status); }; } &&
41589          { ac_try='test -s conftest$ac_exeext'
41590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41591   (eval $ac_try) 2>&5
41592   ac_status=$?
41593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41594   (exit $ac_status); }; }; then
41595   eval "$as_ac_var=yes"
41596 else
41597   echo "$as_me: failed program was:" >&5
41598 sed 's/^/| /' conftest.$ac_ext >&5
41599
41600 eval "$as_ac_var=no"
41601 fi
41602 rm -f conftest.err conftest.$ac_objext \
41603       conftest$ac_exeext conftest.$ac_ext
41604 fi
41605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41607 if test `eval echo '${'$as_ac_var'}'` = yes; then
41608   cat >>confdefs.h <<_ACEOF
41609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41610 _ACEOF
41611  ice_have_getsockname=yes
41612 fi
41613 done
41614
41615 if test "${ice_have_getsockname}" = yes; then
41616 echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
41617 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
41618 if test "${ice_cv_have_getsockname_decl+set}" = set; then
41619   echo $ECHO_N "(cached) $ECHO_C" >&6
41620 else
41621
41622 ice_cv_have_getsockname_decl=no
41623 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41624 ice_re_word='(^|[^a-zA-Z0-9_])'
41625 for header in sys/types.h sys/socket.h; do
41626 # Check for ordinary declaration
41627 cat >conftest.$ac_ext <<_ACEOF
41628 /* confdefs.h.  */
41629 _ACEOF
41630 cat confdefs.h >>conftest.$ac_ext
41631 cat >>conftest.$ac_ext <<_ACEOF
41632 /* end confdefs.h.  */
41633 #include <$header>
41634
41635 _ACEOF
41636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41637   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
41638   ice_cv_have_getsockname_decl=yes
41639 fi
41640 rm -f conftest*
41641
41642 if test "$ice_cv_have_getsockname_decl" = yes; then
41643         break
41644 fi
41645 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41646 cat >conftest.$ac_ext <<_ACEOF
41647 /* confdefs.h.  */
41648 _ACEOF
41649 cat confdefs.h >>conftest.$ac_ext
41650 cat >>conftest.$ac_ext <<_ACEOF
41651 /* end confdefs.h.  */
41652 #include <$header>
41653
41654 _ACEOF
41655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41656   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41657   ice_cv_have_getsockname_decl=yes
41658 fi
41659 rm -f conftest*
41660
41661 if test "$ice_cv_have_getsockname_decl" = yes; then
41662         break
41663 fi
41664 done
41665
41666 fi
41667
41668 echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
41669 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6
41670 if test "$ice_cv_have_getsockname_decl" = yes; then
41671
41672 cat >>confdefs.h <<_ACEOF
41673 #define HAVE_GETSOCKNAME_DECL 1
41674 _ACEOF
41675
41676 fi
41677 fi
41678
41679
41680 ice_have_getsockopt=no
41681
41682 for ac_func in getsockopt
41683 do
41684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41685 echo "$as_me:$LINENO: checking for $ac_func" >&5
41686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41687 if eval "test \"\${$as_ac_var+set}\" = set"; then
41688   echo $ECHO_N "(cached) $ECHO_C" >&6
41689 else
41690   cat >conftest.$ac_ext <<_ACEOF
41691 /* confdefs.h.  */
41692 _ACEOF
41693 cat confdefs.h >>conftest.$ac_ext
41694 cat >>conftest.$ac_ext <<_ACEOF
41695 /* end confdefs.h.  */
41696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41698 #define $ac_func innocuous_$ac_func
41699
41700 /* System header to define __stub macros and hopefully few prototypes,
41701     which can conflict with char $ac_func (); below.
41702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41703     <limits.h> exists even on freestanding compilers.  */
41704
41705 #ifdef __STDC__
41706 # include <limits.h>
41707 #else
41708 # include <assert.h>
41709 #endif
41710
41711 #undef $ac_func
41712
41713 /* Override any gcc2 internal prototype to avoid an error.  */
41714 #ifdef __cplusplus
41715 extern "C"
41716 {
41717 #endif
41718 /* We use char because int might match the return type of a gcc2
41719    builtin and then its argument prototype would still apply.  */
41720 char $ac_func ();
41721 /* The GNU C library defines this for functions which it implements
41722     to always fail with ENOSYS.  Some functions are actually named
41723     something starting with __ and the normal name is an alias.  */
41724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41725 choke me
41726 #else
41727 char (*f) () = $ac_func;
41728 #endif
41729 #ifdef __cplusplus
41730 }
41731 #endif
41732
41733 int
41734 main ()
41735 {
41736 return f != $ac_func;
41737   ;
41738   return 0;
41739 }
41740 _ACEOF
41741 rm -f conftest.$ac_objext conftest$ac_exeext
41742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41743   (eval $ac_link) 2>conftest.er1
41744   ac_status=$?
41745   grep -v '^ *+' conftest.er1 >conftest.err
41746   rm -f conftest.er1
41747   cat conftest.err >&5
41748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41749   (exit $ac_status); } &&
41750          { ac_try='test -z "$ac_c_werror_flag"
41751                          || test ! -s conftest.err'
41752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41753   (eval $ac_try) 2>&5
41754   ac_status=$?
41755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41756   (exit $ac_status); }; } &&
41757          { ac_try='test -s conftest$ac_exeext'
41758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41759   (eval $ac_try) 2>&5
41760   ac_status=$?
41761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41762   (exit $ac_status); }; }; then
41763   eval "$as_ac_var=yes"
41764 else
41765   echo "$as_me: failed program was:" >&5
41766 sed 's/^/| /' conftest.$ac_ext >&5
41767
41768 eval "$as_ac_var=no"
41769 fi
41770 rm -f conftest.err conftest.$ac_objext \
41771       conftest$ac_exeext conftest.$ac_ext
41772 fi
41773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41775 if test `eval echo '${'$as_ac_var'}'` = yes; then
41776   cat >>confdefs.h <<_ACEOF
41777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41778 _ACEOF
41779  ice_have_getsockopt=yes
41780 fi
41781 done
41782
41783 if test "${ice_have_getsockopt}" = yes; then
41784 echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
41785 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
41786 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
41787   echo $ECHO_N "(cached) $ECHO_C" >&6
41788 else
41789
41790 ice_cv_have_getsockopt_decl=no
41791 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41792 ice_re_word='(^|[^a-zA-Z0-9_])'
41793 for header in sys/types.h sys/socket.h; do
41794 # Check for ordinary declaration
41795 cat >conftest.$ac_ext <<_ACEOF
41796 /* confdefs.h.  */
41797 _ACEOF
41798 cat confdefs.h >>conftest.$ac_ext
41799 cat >>conftest.$ac_ext <<_ACEOF
41800 /* end confdefs.h.  */
41801 #include <$header>
41802
41803 _ACEOF
41804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41805   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
41806   ice_cv_have_getsockopt_decl=yes
41807 fi
41808 rm -f conftest*
41809
41810 if test "$ice_cv_have_getsockopt_decl" = yes; then
41811         break
41812 fi
41813 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41814 cat >conftest.$ac_ext <<_ACEOF
41815 /* confdefs.h.  */
41816 _ACEOF
41817 cat confdefs.h >>conftest.$ac_ext
41818 cat >>conftest.$ac_ext <<_ACEOF
41819 /* end confdefs.h.  */
41820 #include <$header>
41821
41822 _ACEOF
41823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41824   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41825   ice_cv_have_getsockopt_decl=yes
41826 fi
41827 rm -f conftest*
41828
41829 if test "$ice_cv_have_getsockopt_decl" = yes; then
41830         break
41831 fi
41832 done
41833
41834 fi
41835
41836 echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
41837 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6
41838 if test "$ice_cv_have_getsockopt_decl" = yes; then
41839
41840 cat >>confdefs.h <<_ACEOF
41841 #define HAVE_GETSOCKOPT_DECL 1
41842 _ACEOF
41843
41844 fi
41845 fi
41846
41847
41848 ice_have_gettimeofday=no
41849
41850 for ac_func in gettimeofday
41851 do
41852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41853 echo "$as_me:$LINENO: checking for $ac_func" >&5
41854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41855 if eval "test \"\${$as_ac_var+set}\" = set"; then
41856   echo $ECHO_N "(cached) $ECHO_C" >&6
41857 else
41858   cat >conftest.$ac_ext <<_ACEOF
41859 /* confdefs.h.  */
41860 _ACEOF
41861 cat confdefs.h >>conftest.$ac_ext
41862 cat >>conftest.$ac_ext <<_ACEOF
41863 /* end confdefs.h.  */
41864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41866 #define $ac_func innocuous_$ac_func
41867
41868 /* System header to define __stub macros and hopefully few prototypes,
41869     which can conflict with char $ac_func (); below.
41870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41871     <limits.h> exists even on freestanding compilers.  */
41872
41873 #ifdef __STDC__
41874 # include <limits.h>
41875 #else
41876 # include <assert.h>
41877 #endif
41878
41879 #undef $ac_func
41880
41881 /* Override any gcc2 internal prototype to avoid an error.  */
41882 #ifdef __cplusplus
41883 extern "C"
41884 {
41885 #endif
41886 /* We use char because int might match the return type of a gcc2
41887    builtin and then its argument prototype would still apply.  */
41888 char $ac_func ();
41889 /* The GNU C library defines this for functions which it implements
41890     to always fail with ENOSYS.  Some functions are actually named
41891     something starting with __ and the normal name is an alias.  */
41892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41893 choke me
41894 #else
41895 char (*f) () = $ac_func;
41896 #endif
41897 #ifdef __cplusplus
41898 }
41899 #endif
41900
41901 int
41902 main ()
41903 {
41904 return f != $ac_func;
41905   ;
41906   return 0;
41907 }
41908 _ACEOF
41909 rm -f conftest.$ac_objext conftest$ac_exeext
41910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41911   (eval $ac_link) 2>conftest.er1
41912   ac_status=$?
41913   grep -v '^ *+' conftest.er1 >conftest.err
41914   rm -f conftest.er1
41915   cat conftest.err >&5
41916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41917   (exit $ac_status); } &&
41918          { ac_try='test -z "$ac_c_werror_flag"
41919                          || test ! -s conftest.err'
41920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41921   (eval $ac_try) 2>&5
41922   ac_status=$?
41923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41924   (exit $ac_status); }; } &&
41925          { ac_try='test -s conftest$ac_exeext'
41926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41927   (eval $ac_try) 2>&5
41928   ac_status=$?
41929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41930   (exit $ac_status); }; }; then
41931   eval "$as_ac_var=yes"
41932 else
41933   echo "$as_me: failed program was:" >&5
41934 sed 's/^/| /' conftest.$ac_ext >&5
41935
41936 eval "$as_ac_var=no"
41937 fi
41938 rm -f conftest.err conftest.$ac_objext \
41939       conftest$ac_exeext conftest.$ac_ext
41940 fi
41941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41943 if test `eval echo '${'$as_ac_var'}'` = yes; then
41944   cat >>confdefs.h <<_ACEOF
41945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41946 _ACEOF
41947  ice_have_gettimeofday=yes
41948 fi
41949 done
41950
41951 if test "${ice_have_gettimeofday}" = yes; then
41952 echo "$as_me:$LINENO: checking for gettimeofday declaration in time.h sys/time.h" >&5
41953 echo $ECHO_N "checking for gettimeofday declaration in time.h sys/time.h... $ECHO_C" >&6
41954 if test "${ice_cv_have_gettimeofday_decl+set}" = set; then
41955   echo $ECHO_N "(cached) $ECHO_C" >&6
41956 else
41957
41958 ice_cv_have_gettimeofday_decl=no
41959 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41960 ice_re_word='(^|[^a-zA-Z0-9_])'
41961 for header in time.h sys/time.h; do
41962 # Check for ordinary declaration
41963 cat >conftest.$ac_ext <<_ACEOF
41964 /* confdefs.h.  */
41965 _ACEOF
41966 cat confdefs.h >>conftest.$ac_ext
41967 cat >>conftest.$ac_ext <<_ACEOF
41968 /* end confdefs.h.  */
41969 #include <$header>
41970
41971 _ACEOF
41972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41973   $EGREP "${ice_re_word}gettimeofday[   ]*\(" >/dev/null 2>&1; then
41974   ice_cv_have_gettimeofday_decl=yes
41975 fi
41976 rm -f conftest*
41977
41978 if test "$ice_cv_have_gettimeofday_decl" = yes; then
41979         break
41980 fi
41981 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41982 cat >conftest.$ac_ext <<_ACEOF
41983 /* confdefs.h.  */
41984 _ACEOF
41985 cat confdefs.h >>conftest.$ac_ext
41986 cat >>conftest.$ac_ext <<_ACEOF
41987 /* end confdefs.h.  */
41988 #include <$header>
41989
41990 _ACEOF
41991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41992   $EGREP "${ice_re_word}gettimeofday[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41993   ice_cv_have_gettimeofday_decl=yes
41994 fi
41995 rm -f conftest*
41996
41997 if test "$ice_cv_have_gettimeofday_decl" = yes; then
41998         break
41999 fi
42000 done
42001
42002 fi
42003
42004 echo "$as_me:$LINENO: result: $ice_cv_have_gettimeofday_decl" >&5
42005 echo "${ECHO_T}$ice_cv_have_gettimeofday_decl" >&6
42006 if test "$ice_cv_have_gettimeofday_decl" = yes; then
42007
42008 cat >>confdefs.h <<_ACEOF
42009 #define HAVE_GETTIMEOFDAY_DECL 1
42010 _ACEOF
42011
42012 fi
42013 fi
42014
42015
42016
42017         echo "$as_me:$LINENO: checking for gettimeofday number of arguments" >&5
42018 echo $ECHO_N "checking for gettimeofday number of arguments... $ECHO_C" >&6
42019 if test "${amanda_cv_gettimeofday_args+set}" = set; then
42020   echo $ECHO_N "(cached) $ECHO_C" >&6
42021 else
42022
42023                 cat >conftest.$ac_ext <<_ACEOF
42024 /* confdefs.h.  */
42025 _ACEOF
42026 cat confdefs.h >>conftest.$ac_ext
42027 cat >>conftest.$ac_ext <<_ACEOF
42028 /* end confdefs.h.  */
42029
42030 #ifdef TIME_WITH_SYS_TIME
42031 #  include <sys/time.h>
42032 #  include <time.h>
42033 #else
42034 #  ifdef HAVE_SYS_TIME_H
42035 #    include <sys/time.h>
42036 #  else
42037 #    include <time.h>
42038 #  endif
42039 #endif
42040
42041 int
42042 main ()
42043 {
42044
42045                         struct timeval val;
42046                         struct timezone zone;
42047                         gettimeofday(&val, &zone);
42048
42049   ;
42050   return 0;
42051 }
42052 _ACEOF
42053 rm -f conftest.$ac_objext
42054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42055   (eval $ac_compile) 2>conftest.er1
42056   ac_status=$?
42057   grep -v '^ *+' conftest.er1 >conftest.err
42058   rm -f conftest.er1
42059   cat conftest.err >&5
42060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42061   (exit $ac_status); } &&
42062          { ac_try='test -z "$ac_c_werror_flag"
42063                          || test ! -s conftest.err'
42064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42065   (eval $ac_try) 2>&5
42066   ac_status=$?
42067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42068   (exit $ac_status); }; } &&
42069          { ac_try='test -s conftest.$ac_objext'
42070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42071   (eval $ac_try) 2>&5
42072   ac_status=$?
42073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42074   (exit $ac_status); }; }; then
42075   amanda_cv_gettimeofday_args=2
42076 else
42077   echo "$as_me: failed program was:" >&5
42078 sed 's/^/| /' conftest.$ac_ext >&5
42079
42080 amanda_cv_gettimeofday_args=1
42081
42082 fi
42083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42084
42085
42086 fi
42087 echo "$as_me:$LINENO: result: $amanda_cv_gettimeofday_args" >&5
42088 echo "${ECHO_T}$amanda_cv_gettimeofday_args" >&6
42089         if test "$amanda_cv_gettimeofday_args" = 2; then
42090
42091 cat >>confdefs.h <<\_ACEOF
42092 #define HAVE_TWO_ARG_GETTIMEOFDAY 1
42093 _ACEOF
42094
42095         fi
42096
42097
42098
42099
42100
42101 for ac_func in getvfsent initgroups isascii
42102 do
42103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42104 echo "$as_me:$LINENO: checking for $ac_func" >&5
42105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42106 if eval "test \"\${$as_ac_var+set}\" = set"; then
42107   echo $ECHO_N "(cached) $ECHO_C" >&6
42108 else
42109   cat >conftest.$ac_ext <<_ACEOF
42110 /* confdefs.h.  */
42111 _ACEOF
42112 cat confdefs.h >>conftest.$ac_ext
42113 cat >>conftest.$ac_ext <<_ACEOF
42114 /* end confdefs.h.  */
42115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42117 #define $ac_func innocuous_$ac_func
42118
42119 /* System header to define __stub macros and hopefully few prototypes,
42120     which can conflict with char $ac_func (); below.
42121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42122     <limits.h> exists even on freestanding compilers.  */
42123
42124 #ifdef __STDC__
42125 # include <limits.h>
42126 #else
42127 # include <assert.h>
42128 #endif
42129
42130 #undef $ac_func
42131
42132 /* Override any gcc2 internal prototype to avoid an error.  */
42133 #ifdef __cplusplus
42134 extern "C"
42135 {
42136 #endif
42137 /* We use char because int might match the return type of a gcc2
42138    builtin and then its argument prototype would still apply.  */
42139 char $ac_func ();
42140 /* The GNU C library defines this for functions which it implements
42141     to always fail with ENOSYS.  Some functions are actually named
42142     something starting with __ and the normal name is an alias.  */
42143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42144 choke me
42145 #else
42146 char (*f) () = $ac_func;
42147 #endif
42148 #ifdef __cplusplus
42149 }
42150 #endif
42151
42152 int
42153 main ()
42154 {
42155 return f != $ac_func;
42156   ;
42157   return 0;
42158 }
42159 _ACEOF
42160 rm -f conftest.$ac_objext conftest$ac_exeext
42161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42162   (eval $ac_link) 2>conftest.er1
42163   ac_status=$?
42164   grep -v '^ *+' conftest.er1 >conftest.err
42165   rm -f conftest.er1
42166   cat conftest.err >&5
42167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42168   (exit $ac_status); } &&
42169          { ac_try='test -z "$ac_c_werror_flag"
42170                          || test ! -s conftest.err'
42171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42172   (eval $ac_try) 2>&5
42173   ac_status=$?
42174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42175   (exit $ac_status); }; } &&
42176          { ac_try='test -s conftest$ac_exeext'
42177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42178   (eval $ac_try) 2>&5
42179   ac_status=$?
42180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42181   (exit $ac_status); }; }; then
42182   eval "$as_ac_var=yes"
42183 else
42184   echo "$as_me: failed program was:" >&5
42185 sed 's/^/| /' conftest.$ac_ext >&5
42186
42187 eval "$as_ac_var=no"
42188 fi
42189 rm -f conftest.err conftest.$ac_objext \
42190       conftest$ac_exeext conftest.$ac_ext
42191 fi
42192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42194 if test `eval echo '${'$as_ac_var'}'` = yes; then
42195   cat >>confdefs.h <<_ACEOF
42196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42197 _ACEOF
42198
42199 fi
42200 done
42201
42202
42203 ice_have_initgroups=no
42204
42205 for ac_func in initgroups
42206 do
42207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42208 echo "$as_me:$LINENO: checking for $ac_func" >&5
42209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42210 if eval "test \"\${$as_ac_var+set}\" = set"; then
42211   echo $ECHO_N "(cached) $ECHO_C" >&6
42212 else
42213   cat >conftest.$ac_ext <<_ACEOF
42214 /* confdefs.h.  */
42215 _ACEOF
42216 cat confdefs.h >>conftest.$ac_ext
42217 cat >>conftest.$ac_ext <<_ACEOF
42218 /* end confdefs.h.  */
42219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42221 #define $ac_func innocuous_$ac_func
42222
42223 /* System header to define __stub macros and hopefully few prototypes,
42224     which can conflict with char $ac_func (); below.
42225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42226     <limits.h> exists even on freestanding compilers.  */
42227
42228 #ifdef __STDC__
42229 # include <limits.h>
42230 #else
42231 # include <assert.h>
42232 #endif
42233
42234 #undef $ac_func
42235
42236 /* Override any gcc2 internal prototype to avoid an error.  */
42237 #ifdef __cplusplus
42238 extern "C"
42239 {
42240 #endif
42241 /* We use char because int might match the return type of a gcc2
42242    builtin and then its argument prototype would still apply.  */
42243 char $ac_func ();
42244 /* The GNU C library defines this for functions which it implements
42245     to always fail with ENOSYS.  Some functions are actually named
42246     something starting with __ and the normal name is an alias.  */
42247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42248 choke me
42249 #else
42250 char (*f) () = $ac_func;
42251 #endif
42252 #ifdef __cplusplus
42253 }
42254 #endif
42255
42256 int
42257 main ()
42258 {
42259 return f != $ac_func;
42260   ;
42261   return 0;
42262 }
42263 _ACEOF
42264 rm -f conftest.$ac_objext conftest$ac_exeext
42265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42266   (eval $ac_link) 2>conftest.er1
42267   ac_status=$?
42268   grep -v '^ *+' conftest.er1 >conftest.err
42269   rm -f conftest.er1
42270   cat conftest.err >&5
42271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42272   (exit $ac_status); } &&
42273          { ac_try='test -z "$ac_c_werror_flag"
42274                          || test ! -s conftest.err'
42275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42276   (eval $ac_try) 2>&5
42277   ac_status=$?
42278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42279   (exit $ac_status); }; } &&
42280          { ac_try='test -s conftest$ac_exeext'
42281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42282   (eval $ac_try) 2>&5
42283   ac_status=$?
42284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42285   (exit $ac_status); }; }; then
42286   eval "$as_ac_var=yes"
42287 else
42288   echo "$as_me: failed program was:" >&5
42289 sed 's/^/| /' conftest.$ac_ext >&5
42290
42291 eval "$as_ac_var=no"
42292 fi
42293 rm -f conftest.err conftest.$ac_objext \
42294       conftest$ac_exeext conftest.$ac_ext
42295 fi
42296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42298 if test `eval echo '${'$as_ac_var'}'` = yes; then
42299   cat >>confdefs.h <<_ACEOF
42300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42301 _ACEOF
42302  ice_have_initgroups=yes
42303 fi
42304 done
42305
42306 if test "${ice_have_initgroups}" = yes; then
42307 echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
42308 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6
42309 if test "${ice_cv_have_initgroups_decl+set}" = set; then
42310   echo $ECHO_N "(cached) $ECHO_C" >&6
42311 else
42312
42313 ice_cv_have_initgroups_decl=no
42314 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42315 ice_re_word='(^|[^a-zA-Z0-9_])'
42316 for header in grp.h sys/types.h unistd.h libc.h; do
42317 # Check for ordinary declaration
42318 cat >conftest.$ac_ext <<_ACEOF
42319 /* confdefs.h.  */
42320 _ACEOF
42321 cat confdefs.h >>conftest.$ac_ext
42322 cat >>conftest.$ac_ext <<_ACEOF
42323 /* end confdefs.h.  */
42324 #include <$header>
42325
42326 _ACEOF
42327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42328   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
42329   ice_cv_have_initgroups_decl=yes
42330 fi
42331 rm -f conftest*
42332
42333 if test "$ice_cv_have_initgroups_decl" = yes; then
42334         break
42335 fi
42336 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42337 cat >conftest.$ac_ext <<_ACEOF
42338 /* confdefs.h.  */
42339 _ACEOF
42340 cat confdefs.h >>conftest.$ac_ext
42341 cat >>conftest.$ac_ext <<_ACEOF
42342 /* end confdefs.h.  */
42343 #include <$header>
42344
42345 _ACEOF
42346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42347   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42348   ice_cv_have_initgroups_decl=yes
42349 fi
42350 rm -f conftest*
42351
42352 if test "$ice_cv_have_initgroups_decl" = yes; then
42353         break
42354 fi
42355 done
42356
42357 fi
42358
42359 echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
42360 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6
42361 if test "$ice_cv_have_initgroups_decl" = yes; then
42362
42363 cat >>confdefs.h <<_ACEOF
42364 #define HAVE_INITGROUPS_DECL 1
42365 _ACEOF
42366
42367 fi
42368 fi
42369
42370
42371 ice_have_ioctl=no
42372
42373 for ac_func in ioctl
42374 do
42375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42376 echo "$as_me:$LINENO: checking for $ac_func" >&5
42377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42378 if eval "test \"\${$as_ac_var+set}\" = set"; then
42379   echo $ECHO_N "(cached) $ECHO_C" >&6
42380 else
42381   cat >conftest.$ac_ext <<_ACEOF
42382 /* confdefs.h.  */
42383 _ACEOF
42384 cat confdefs.h >>conftest.$ac_ext
42385 cat >>conftest.$ac_ext <<_ACEOF
42386 /* end confdefs.h.  */
42387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42388    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42389 #define $ac_func innocuous_$ac_func
42390
42391 /* System header to define __stub macros and hopefully few prototypes,
42392     which can conflict with char $ac_func (); below.
42393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42394     <limits.h> exists even on freestanding compilers.  */
42395
42396 #ifdef __STDC__
42397 # include <limits.h>
42398 #else
42399 # include <assert.h>
42400 #endif
42401
42402 #undef $ac_func
42403
42404 /* Override any gcc2 internal prototype to avoid an error.  */
42405 #ifdef __cplusplus
42406 extern "C"
42407 {
42408 #endif
42409 /* We use char because int might match the return type of a gcc2
42410    builtin and then its argument prototype would still apply.  */
42411 char $ac_func ();
42412 /* The GNU C library defines this for functions which it implements
42413     to always fail with ENOSYS.  Some functions are actually named
42414     something starting with __ and the normal name is an alias.  */
42415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42416 choke me
42417 #else
42418 char (*f) () = $ac_func;
42419 #endif
42420 #ifdef __cplusplus
42421 }
42422 #endif
42423
42424 int
42425 main ()
42426 {
42427 return f != $ac_func;
42428   ;
42429   return 0;
42430 }
42431 _ACEOF
42432 rm -f conftest.$ac_objext conftest$ac_exeext
42433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42434   (eval $ac_link) 2>conftest.er1
42435   ac_status=$?
42436   grep -v '^ *+' conftest.er1 >conftest.err
42437   rm -f conftest.er1
42438   cat conftest.err >&5
42439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42440   (exit $ac_status); } &&
42441          { ac_try='test -z "$ac_c_werror_flag"
42442                          || test ! -s conftest.err'
42443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42444   (eval $ac_try) 2>&5
42445   ac_status=$?
42446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42447   (exit $ac_status); }; } &&
42448          { ac_try='test -s conftest$ac_exeext'
42449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42450   (eval $ac_try) 2>&5
42451   ac_status=$?
42452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42453   (exit $ac_status); }; }; then
42454   eval "$as_ac_var=yes"
42455 else
42456   echo "$as_me: failed program was:" >&5
42457 sed 's/^/| /' conftest.$ac_ext >&5
42458
42459 eval "$as_ac_var=no"
42460 fi
42461 rm -f conftest.err conftest.$ac_objext \
42462       conftest$ac_exeext conftest.$ac_ext
42463 fi
42464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42466 if test `eval echo '${'$as_ac_var'}'` = yes; then
42467   cat >>confdefs.h <<_ACEOF
42468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42469 _ACEOF
42470  ice_have_ioctl=yes
42471 fi
42472 done
42473
42474 if test "${ice_have_ioctl}" = yes; then
42475 echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
42476 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6
42477 if test "${ice_cv_have_ioctl_decl+set}" = set; then
42478   echo $ECHO_N "(cached) $ECHO_C" >&6
42479 else
42480
42481 ice_cv_have_ioctl_decl=no
42482 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42483 ice_re_word='(^|[^a-zA-Z0-9_])'
42484 for header in sys/ioctl.h unistd.h libc.h; do
42485 # Check for ordinary declaration
42486 cat >conftest.$ac_ext <<_ACEOF
42487 /* confdefs.h.  */
42488 _ACEOF
42489 cat confdefs.h >>conftest.$ac_ext
42490 cat >>conftest.$ac_ext <<_ACEOF
42491 /* end confdefs.h.  */
42492 #include <$header>
42493
42494 _ACEOF
42495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42496   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
42497   ice_cv_have_ioctl_decl=yes
42498 fi
42499 rm -f conftest*
42500
42501 if test "$ice_cv_have_ioctl_decl" = yes; then
42502         break
42503 fi
42504 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42505 cat >conftest.$ac_ext <<_ACEOF
42506 /* confdefs.h.  */
42507 _ACEOF
42508 cat confdefs.h >>conftest.$ac_ext
42509 cat >>conftest.$ac_ext <<_ACEOF
42510 /* end confdefs.h.  */
42511 #include <$header>
42512
42513 _ACEOF
42514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42515   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42516   ice_cv_have_ioctl_decl=yes
42517 fi
42518 rm -f conftest*
42519
42520 if test "$ice_cv_have_ioctl_decl" = yes; then
42521         break
42522 fi
42523 done
42524
42525 fi
42526
42527 echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
42528 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6
42529 if test "$ice_cv_have_ioctl_decl" = yes; then
42530
42531 cat >>confdefs.h <<_ACEOF
42532 #define HAVE_IOCTL_DECL 1
42533 _ACEOF
42534
42535 fi
42536 fi
42537
42538
42539 ice_have_isnormal=no
42540
42541 for ac_func in isnormal
42542 do
42543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42544 echo "$as_me:$LINENO: checking for $ac_func" >&5
42545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42546 if eval "test \"\${$as_ac_var+set}\" = set"; then
42547   echo $ECHO_N "(cached) $ECHO_C" >&6
42548 else
42549   cat >conftest.$ac_ext <<_ACEOF
42550 /* confdefs.h.  */
42551 _ACEOF
42552 cat confdefs.h >>conftest.$ac_ext
42553 cat >>conftest.$ac_ext <<_ACEOF
42554 /* end confdefs.h.  */
42555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42557 #define $ac_func innocuous_$ac_func
42558
42559 /* System header to define __stub macros and hopefully few prototypes,
42560     which can conflict with char $ac_func (); below.
42561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42562     <limits.h> exists even on freestanding compilers.  */
42563
42564 #ifdef __STDC__
42565 # include <limits.h>
42566 #else
42567 # include <assert.h>
42568 #endif
42569
42570 #undef $ac_func
42571
42572 /* Override any gcc2 internal prototype to avoid an error.  */
42573 #ifdef __cplusplus
42574 extern "C"
42575 {
42576 #endif
42577 /* We use char because int might match the return type of a gcc2
42578    builtin and then its argument prototype would still apply.  */
42579 char $ac_func ();
42580 /* The GNU C library defines this for functions which it implements
42581     to always fail with ENOSYS.  Some functions are actually named
42582     something starting with __ and the normal name is an alias.  */
42583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42584 choke me
42585 #else
42586 char (*f) () = $ac_func;
42587 #endif
42588 #ifdef __cplusplus
42589 }
42590 #endif
42591
42592 int
42593 main ()
42594 {
42595 return f != $ac_func;
42596   ;
42597   return 0;
42598 }
42599 _ACEOF
42600 rm -f conftest.$ac_objext conftest$ac_exeext
42601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42602   (eval $ac_link) 2>conftest.er1
42603   ac_status=$?
42604   grep -v '^ *+' conftest.er1 >conftest.err
42605   rm -f conftest.er1
42606   cat conftest.err >&5
42607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42608   (exit $ac_status); } &&
42609          { ac_try='test -z "$ac_c_werror_flag"
42610                          || test ! -s conftest.err'
42611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42612   (eval $ac_try) 2>&5
42613   ac_status=$?
42614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42615   (exit $ac_status); }; } &&
42616          { ac_try='test -s conftest$ac_exeext'
42617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42618   (eval $ac_try) 2>&5
42619   ac_status=$?
42620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42621   (exit $ac_status); }; }; then
42622   eval "$as_ac_var=yes"
42623 else
42624   echo "$as_me: failed program was:" >&5
42625 sed 's/^/| /' conftest.$ac_ext >&5
42626
42627 eval "$as_ac_var=no"
42628 fi
42629 rm -f conftest.err conftest.$ac_objext \
42630       conftest$ac_exeext conftest.$ac_ext
42631 fi
42632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42634 if test `eval echo '${'$as_ac_var'}'` = yes; then
42635   cat >>confdefs.h <<_ACEOF
42636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42637 _ACEOF
42638  ice_have_isnormal=yes
42639 fi
42640 done
42641
42642 if test "${ice_have_isnormal}" = yes; then
42643 echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
42644 echo $ECHO_N "checking for isnormal declaration in math.h... $ECHO_C" >&6
42645 if test "${ice_cv_have_isnormal_decl+set}" = set; then
42646   echo $ECHO_N "(cached) $ECHO_C" >&6
42647 else
42648
42649 ice_cv_have_isnormal_decl=no
42650 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42651 ice_re_word='(^|[^a-zA-Z0-9_])'
42652 for header in math.h; do
42653 # Check for ordinary declaration
42654 cat >conftest.$ac_ext <<_ACEOF
42655 /* confdefs.h.  */
42656 _ACEOF
42657 cat confdefs.h >>conftest.$ac_ext
42658 cat >>conftest.$ac_ext <<_ACEOF
42659 /* end confdefs.h.  */
42660 #include <$header>
42661
42662 _ACEOF
42663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42664   $EGREP "${ice_re_word}isnormal[       ]*\(" >/dev/null 2>&1; then
42665   ice_cv_have_isnormal_decl=yes
42666 fi
42667 rm -f conftest*
42668
42669 if test "$ice_cv_have_isnormal_decl" = yes; then
42670         break
42671 fi
42672 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42673 cat >conftest.$ac_ext <<_ACEOF
42674 /* confdefs.h.  */
42675 _ACEOF
42676 cat confdefs.h >>conftest.$ac_ext
42677 cat >>conftest.$ac_ext <<_ACEOF
42678 /* end confdefs.h.  */
42679 #include <$header>
42680
42681 _ACEOF
42682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42683   $EGREP "${ice_re_word}isnormal[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42684   ice_cv_have_isnormal_decl=yes
42685 fi
42686 rm -f conftest*
42687
42688 if test "$ice_cv_have_isnormal_decl" = yes; then
42689         break
42690 fi
42691 done
42692
42693 fi
42694
42695 echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
42696 echo "${ECHO_T}$ice_cv_have_isnormal_decl" >&6
42697 if test "$ice_cv_have_isnormal_decl" = yes; then
42698
42699 cat >>confdefs.h <<_ACEOF
42700 #define HAVE_ISNORMAL_DECL 1
42701 _ACEOF
42702
42703 fi
42704 fi
42705
42706
42707 ice_have_listen=no
42708
42709 for ac_func in listen
42710 do
42711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42712 echo "$as_me:$LINENO: checking for $ac_func" >&5
42713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42714 if eval "test \"\${$as_ac_var+set}\" = set"; then
42715   echo $ECHO_N "(cached) $ECHO_C" >&6
42716 else
42717   cat >conftest.$ac_ext <<_ACEOF
42718 /* confdefs.h.  */
42719 _ACEOF
42720 cat confdefs.h >>conftest.$ac_ext
42721 cat >>conftest.$ac_ext <<_ACEOF
42722 /* end confdefs.h.  */
42723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42725 #define $ac_func innocuous_$ac_func
42726
42727 /* System header to define __stub macros and hopefully few prototypes,
42728     which can conflict with char $ac_func (); below.
42729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42730     <limits.h> exists even on freestanding compilers.  */
42731
42732 #ifdef __STDC__
42733 # include <limits.h>
42734 #else
42735 # include <assert.h>
42736 #endif
42737
42738 #undef $ac_func
42739
42740 /* Override any gcc2 internal prototype to avoid an error.  */
42741 #ifdef __cplusplus
42742 extern "C"
42743 {
42744 #endif
42745 /* We use char because int might match the return type of a gcc2
42746    builtin and then its argument prototype would still apply.  */
42747 char $ac_func ();
42748 /* The GNU C library defines this for functions which it implements
42749     to always fail with ENOSYS.  Some functions are actually named
42750     something starting with __ and the normal name is an alias.  */
42751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42752 choke me
42753 #else
42754 char (*f) () = $ac_func;
42755 #endif
42756 #ifdef __cplusplus
42757 }
42758 #endif
42759
42760 int
42761 main ()
42762 {
42763 return f != $ac_func;
42764   ;
42765   return 0;
42766 }
42767 _ACEOF
42768 rm -f conftest.$ac_objext conftest$ac_exeext
42769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42770   (eval $ac_link) 2>conftest.er1
42771   ac_status=$?
42772   grep -v '^ *+' conftest.er1 >conftest.err
42773   rm -f conftest.er1
42774   cat conftest.err >&5
42775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42776   (exit $ac_status); } &&
42777          { ac_try='test -z "$ac_c_werror_flag"
42778                          || test ! -s conftest.err'
42779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42780   (eval $ac_try) 2>&5
42781   ac_status=$?
42782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42783   (exit $ac_status); }; } &&
42784          { ac_try='test -s conftest$ac_exeext'
42785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42786   (eval $ac_try) 2>&5
42787   ac_status=$?
42788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42789   (exit $ac_status); }; }; then
42790   eval "$as_ac_var=yes"
42791 else
42792   echo "$as_me: failed program was:" >&5
42793 sed 's/^/| /' conftest.$ac_ext >&5
42794
42795 eval "$as_ac_var=no"
42796 fi
42797 rm -f conftest.err conftest.$ac_objext \
42798       conftest$ac_exeext conftest.$ac_ext
42799 fi
42800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42802 if test `eval echo '${'$as_ac_var'}'` = yes; then
42803   cat >>confdefs.h <<_ACEOF
42804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42805 _ACEOF
42806  ice_have_listen=yes
42807 fi
42808 done
42809
42810 if test "${ice_have_listen}" = yes; then
42811 echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
42812 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
42813 if test "${ice_cv_have_listen_decl+set}" = set; then
42814   echo $ECHO_N "(cached) $ECHO_C" >&6
42815 else
42816
42817 ice_cv_have_listen_decl=no
42818 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42819 ice_re_word='(^|[^a-zA-Z0-9_])'
42820 for header in sys/types.h sys/socket.h; do
42821 # Check for ordinary declaration
42822 cat >conftest.$ac_ext <<_ACEOF
42823 /* confdefs.h.  */
42824 _ACEOF
42825 cat confdefs.h >>conftest.$ac_ext
42826 cat >>conftest.$ac_ext <<_ACEOF
42827 /* end confdefs.h.  */
42828 #include <$header>
42829
42830 _ACEOF
42831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42832   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
42833   ice_cv_have_listen_decl=yes
42834 fi
42835 rm -f conftest*
42836
42837 if test "$ice_cv_have_listen_decl" = yes; then
42838         break
42839 fi
42840 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42841 cat >conftest.$ac_ext <<_ACEOF
42842 /* confdefs.h.  */
42843 _ACEOF
42844 cat confdefs.h >>conftest.$ac_ext
42845 cat >>conftest.$ac_ext <<_ACEOF
42846 /* end confdefs.h.  */
42847 #include <$header>
42848
42849 _ACEOF
42850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42851   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42852   ice_cv_have_listen_decl=yes
42853 fi
42854 rm -f conftest*
42855
42856 if test "$ice_cv_have_listen_decl" = yes; then
42857         break
42858 fi
42859 done
42860
42861 fi
42862
42863 echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
42864 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6
42865 if test "$ice_cv_have_listen_decl" = yes; then
42866
42867 cat >>confdefs.h <<_ACEOF
42868 #define HAVE_LISTEN_DECL 1
42869 _ACEOF
42870
42871 fi
42872 fi
42873
42874
42875 ice_have_lstat=no
42876
42877 for ac_func in lstat
42878 do
42879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42880 echo "$as_me:$LINENO: checking for $ac_func" >&5
42881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42882 if eval "test \"\${$as_ac_var+set}\" = set"; then
42883   echo $ECHO_N "(cached) $ECHO_C" >&6
42884 else
42885   cat >conftest.$ac_ext <<_ACEOF
42886 /* confdefs.h.  */
42887 _ACEOF
42888 cat confdefs.h >>conftest.$ac_ext
42889 cat >>conftest.$ac_ext <<_ACEOF
42890 /* end confdefs.h.  */
42891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42893 #define $ac_func innocuous_$ac_func
42894
42895 /* System header to define __stub macros and hopefully few prototypes,
42896     which can conflict with char $ac_func (); below.
42897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42898     <limits.h> exists even on freestanding compilers.  */
42899
42900 #ifdef __STDC__
42901 # include <limits.h>
42902 #else
42903 # include <assert.h>
42904 #endif
42905
42906 #undef $ac_func
42907
42908 /* Override any gcc2 internal prototype to avoid an error.  */
42909 #ifdef __cplusplus
42910 extern "C"
42911 {
42912 #endif
42913 /* We use char because int might match the return type of a gcc2
42914    builtin and then its argument prototype would still apply.  */
42915 char $ac_func ();
42916 /* The GNU C library defines this for functions which it implements
42917     to always fail with ENOSYS.  Some functions are actually named
42918     something starting with __ and the normal name is an alias.  */
42919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42920 choke me
42921 #else
42922 char (*f) () = $ac_func;
42923 #endif
42924 #ifdef __cplusplus
42925 }
42926 #endif
42927
42928 int
42929 main ()
42930 {
42931 return f != $ac_func;
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   eval "$as_ac_var=yes"
42959 else
42960   echo "$as_me: failed program was:" >&5
42961 sed 's/^/| /' conftest.$ac_ext >&5
42962
42963 eval "$as_ac_var=no"
42964 fi
42965 rm -f conftest.err conftest.$ac_objext \
42966       conftest$ac_exeext conftest.$ac_ext
42967 fi
42968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42970 if test `eval echo '${'$as_ac_var'}'` = yes; then
42971   cat >>confdefs.h <<_ACEOF
42972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42973 _ACEOF
42974  ice_have_lstat=yes
42975 fi
42976 done
42977
42978 if test "${ice_have_lstat}" = yes; then
42979 echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
42980 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6
42981 if test "${ice_cv_have_lstat_decl+set}" = set; then
42982   echo $ECHO_N "(cached) $ECHO_C" >&6
42983 else
42984
42985 ice_cv_have_lstat_decl=no
42986 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42987 ice_re_word='(^|[^a-zA-Z0-9_])'
42988 for header in sys/types.h sys/stat.h; do
42989 # Check for ordinary declaration
42990 cat >conftest.$ac_ext <<_ACEOF
42991 /* confdefs.h.  */
42992 _ACEOF
42993 cat confdefs.h >>conftest.$ac_ext
42994 cat >>conftest.$ac_ext <<_ACEOF
42995 /* end confdefs.h.  */
42996 #include <$header>
42997
42998 _ACEOF
42999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43000   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
43001   ice_cv_have_lstat_decl=yes
43002 fi
43003 rm -f conftest*
43004
43005 if test "$ice_cv_have_lstat_decl" = yes; then
43006         break
43007 fi
43008 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43009 cat >conftest.$ac_ext <<_ACEOF
43010 /* confdefs.h.  */
43011 _ACEOF
43012 cat confdefs.h >>conftest.$ac_ext
43013 cat >>conftest.$ac_ext <<_ACEOF
43014 /* end confdefs.h.  */
43015 #include <$header>
43016
43017 _ACEOF
43018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43019   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43020   ice_cv_have_lstat_decl=yes
43021 fi
43022 rm -f conftest*
43023
43024 if test "$ice_cv_have_lstat_decl" = yes; then
43025         break
43026 fi
43027 done
43028
43029 fi
43030
43031 echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
43032 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6
43033 if test "$ice_cv_have_lstat_decl" = yes; then
43034
43035 cat >>confdefs.h <<_ACEOF
43036 #define HAVE_LSTAT_DECL 1
43037 _ACEOF
43038
43039 fi
43040 fi
43041
43042
43043 ice_have_malloc=no
43044
43045 for ac_func in malloc
43046 do
43047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43048 echo "$as_me:$LINENO: checking for $ac_func" >&5
43049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43050 if eval "test \"\${$as_ac_var+set}\" = set"; then
43051   echo $ECHO_N "(cached) $ECHO_C" >&6
43052 else
43053   cat >conftest.$ac_ext <<_ACEOF
43054 /* confdefs.h.  */
43055 _ACEOF
43056 cat confdefs.h >>conftest.$ac_ext
43057 cat >>conftest.$ac_ext <<_ACEOF
43058 /* end confdefs.h.  */
43059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43061 #define $ac_func innocuous_$ac_func
43062
43063 /* System header to define __stub macros and hopefully few prototypes,
43064     which can conflict with char $ac_func (); below.
43065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43066     <limits.h> exists even on freestanding compilers.  */
43067
43068 #ifdef __STDC__
43069 # include <limits.h>
43070 #else
43071 # include <assert.h>
43072 #endif
43073
43074 #undef $ac_func
43075
43076 /* Override any gcc2 internal prototype to avoid an error.  */
43077 #ifdef __cplusplus
43078 extern "C"
43079 {
43080 #endif
43081 /* We use char because int might match the return type of a gcc2
43082    builtin and then its argument prototype would still apply.  */
43083 char $ac_func ();
43084 /* The GNU C library defines this for functions which it implements
43085     to always fail with ENOSYS.  Some functions are actually named
43086     something starting with __ and the normal name is an alias.  */
43087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43088 choke me
43089 #else
43090 char (*f) () = $ac_func;
43091 #endif
43092 #ifdef __cplusplus
43093 }
43094 #endif
43095
43096 int
43097 main ()
43098 {
43099 return f != $ac_func;
43100   ;
43101   return 0;
43102 }
43103 _ACEOF
43104 rm -f conftest.$ac_objext conftest$ac_exeext
43105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43106   (eval $ac_link) 2>conftest.er1
43107   ac_status=$?
43108   grep -v '^ *+' conftest.er1 >conftest.err
43109   rm -f conftest.er1
43110   cat conftest.err >&5
43111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43112   (exit $ac_status); } &&
43113          { ac_try='test -z "$ac_c_werror_flag"
43114                          || test ! -s conftest.err'
43115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43116   (eval $ac_try) 2>&5
43117   ac_status=$?
43118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43119   (exit $ac_status); }; } &&
43120          { ac_try='test -s conftest$ac_exeext'
43121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43122   (eval $ac_try) 2>&5
43123   ac_status=$?
43124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43125   (exit $ac_status); }; }; then
43126   eval "$as_ac_var=yes"
43127 else
43128   echo "$as_me: failed program was:" >&5
43129 sed 's/^/| /' conftest.$ac_ext >&5
43130
43131 eval "$as_ac_var=no"
43132 fi
43133 rm -f conftest.err conftest.$ac_objext \
43134       conftest$ac_exeext conftest.$ac_ext
43135 fi
43136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43138 if test `eval echo '${'$as_ac_var'}'` = yes; then
43139   cat >>confdefs.h <<_ACEOF
43140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43141 _ACEOF
43142  ice_have_malloc=yes
43143 fi
43144 done
43145
43146 if test "${ice_have_malloc}" = yes; then
43147 echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
43148 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6
43149 if test "${ice_cv_have_malloc_decl+set}" = set; then
43150   echo $ECHO_N "(cached) $ECHO_C" >&6
43151 else
43152
43153 ice_cv_have_malloc_decl=no
43154 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43155 ice_re_word='(^|[^a-zA-Z0-9_])'
43156 for header in stdlib.h; do
43157 # Check for ordinary declaration
43158 cat >conftest.$ac_ext <<_ACEOF
43159 /* confdefs.h.  */
43160 _ACEOF
43161 cat confdefs.h >>conftest.$ac_ext
43162 cat >>conftest.$ac_ext <<_ACEOF
43163 /* end confdefs.h.  */
43164 #include <$header>
43165
43166 _ACEOF
43167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43168   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
43169   ice_cv_have_malloc_decl=yes
43170 fi
43171 rm -f conftest*
43172
43173 if test "$ice_cv_have_malloc_decl" = yes; then
43174         break
43175 fi
43176 # Check for "fixed" declaration like "getpid _PARAMS((int))"
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 #include <$header>
43184
43185 _ACEOF
43186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43187   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43188   ice_cv_have_malloc_decl=yes
43189 fi
43190 rm -f conftest*
43191
43192 if test "$ice_cv_have_malloc_decl" = yes; then
43193         break
43194 fi
43195 done
43196
43197 fi
43198
43199 echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
43200 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6
43201 if test "$ice_cv_have_malloc_decl" = yes; then
43202
43203 cat >>confdefs.h <<_ACEOF
43204 #define HAVE_MALLOC_DECL 1
43205 _ACEOF
43206
43207 fi
43208 fi
43209
43210
43211 for ac_func in memmove
43212 do
43213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43214 echo "$as_me:$LINENO: checking for $ac_func" >&5
43215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43216 if eval "test \"\${$as_ac_var+set}\" = set"; then
43217   echo $ECHO_N "(cached) $ECHO_C" >&6
43218 else
43219   cat >conftest.$ac_ext <<_ACEOF
43220 /* confdefs.h.  */
43221 _ACEOF
43222 cat confdefs.h >>conftest.$ac_ext
43223 cat >>conftest.$ac_ext <<_ACEOF
43224 /* end confdefs.h.  */
43225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43227 #define $ac_func innocuous_$ac_func
43228
43229 /* System header to define __stub macros and hopefully few prototypes,
43230     which can conflict with char $ac_func (); below.
43231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43232     <limits.h> exists even on freestanding compilers.  */
43233
43234 #ifdef __STDC__
43235 # include <limits.h>
43236 #else
43237 # include <assert.h>
43238 #endif
43239
43240 #undef $ac_func
43241
43242 /* Override any gcc2 internal prototype to avoid an error.  */
43243 #ifdef __cplusplus
43244 extern "C"
43245 {
43246 #endif
43247 /* We use char because int might match the return type of a gcc2
43248    builtin and then its argument prototype would still apply.  */
43249 char $ac_func ();
43250 /* The GNU C library defines this for functions which it implements
43251     to always fail with ENOSYS.  Some functions are actually named
43252     something starting with __ and the normal name is an alias.  */
43253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43254 choke me
43255 #else
43256 char (*f) () = $ac_func;
43257 #endif
43258 #ifdef __cplusplus
43259 }
43260 #endif
43261
43262 int
43263 main ()
43264 {
43265 return f != $ac_func;
43266   ;
43267   return 0;
43268 }
43269 _ACEOF
43270 rm -f conftest.$ac_objext conftest$ac_exeext
43271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43272   (eval $ac_link) 2>conftest.er1
43273   ac_status=$?
43274   grep -v '^ *+' conftest.er1 >conftest.err
43275   rm -f conftest.er1
43276   cat conftest.err >&5
43277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43278   (exit $ac_status); } &&
43279          { ac_try='test -z "$ac_c_werror_flag"
43280                          || test ! -s conftest.err'
43281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43282   (eval $ac_try) 2>&5
43283   ac_status=$?
43284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43285   (exit $ac_status); }; } &&
43286          { ac_try='test -s conftest$ac_exeext'
43287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43288   (eval $ac_try) 2>&5
43289   ac_status=$?
43290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43291   (exit $ac_status); }; }; then
43292   eval "$as_ac_var=yes"
43293 else
43294   echo "$as_me: failed program was:" >&5
43295 sed 's/^/| /' conftest.$ac_ext >&5
43296
43297 eval "$as_ac_var=no"
43298 fi
43299 rm -f conftest.err conftest.$ac_objext \
43300       conftest$ac_exeext conftest.$ac_ext
43301 fi
43302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43304 if test `eval echo '${'$as_ac_var'}'` = yes; then
43305   cat >>confdefs.h <<_ACEOF
43306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43307 _ACEOF
43308
43309 else
43310   case $LIBOBJS in
43311     "$ac_func.$ac_objext"   | \
43312   *" $ac_func.$ac_objext"   | \
43313     "$ac_func.$ac_objext "* | \
43314   *" $ac_func.$ac_objext "* ) ;;
43315   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43316 esac
43317
43318 fi
43319 done
43320
43321
43322
43323 ice_have_memmove=no
43324
43325 for ac_func in memmove
43326 do
43327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43328 echo "$as_me:$LINENO: checking for $ac_func" >&5
43329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43330 if eval "test \"\${$as_ac_var+set}\" = set"; then
43331   echo $ECHO_N "(cached) $ECHO_C" >&6
43332 else
43333   cat >conftest.$ac_ext <<_ACEOF
43334 /* confdefs.h.  */
43335 _ACEOF
43336 cat confdefs.h >>conftest.$ac_ext
43337 cat >>conftest.$ac_ext <<_ACEOF
43338 /* end confdefs.h.  */
43339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43341 #define $ac_func innocuous_$ac_func
43342
43343 /* System header to define __stub macros and hopefully few prototypes,
43344     which can conflict with char $ac_func (); below.
43345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43346     <limits.h> exists even on freestanding compilers.  */
43347
43348 #ifdef __STDC__
43349 # include <limits.h>
43350 #else
43351 # include <assert.h>
43352 #endif
43353
43354 #undef $ac_func
43355
43356 /* Override any gcc2 internal prototype to avoid an error.  */
43357 #ifdef __cplusplus
43358 extern "C"
43359 {
43360 #endif
43361 /* We use char because int might match the return type of a gcc2
43362    builtin and then its argument prototype would still apply.  */
43363 char $ac_func ();
43364 /* The GNU C library defines this for functions which it implements
43365     to always fail with ENOSYS.  Some functions are actually named
43366     something starting with __ and the normal name is an alias.  */
43367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43368 choke me
43369 #else
43370 char (*f) () = $ac_func;
43371 #endif
43372 #ifdef __cplusplus
43373 }
43374 #endif
43375
43376 int
43377 main ()
43378 {
43379 return f != $ac_func;
43380   ;
43381   return 0;
43382 }
43383 _ACEOF
43384 rm -f conftest.$ac_objext conftest$ac_exeext
43385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43386   (eval $ac_link) 2>conftest.er1
43387   ac_status=$?
43388   grep -v '^ *+' conftest.er1 >conftest.err
43389   rm -f conftest.er1
43390   cat conftest.err >&5
43391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43392   (exit $ac_status); } &&
43393          { ac_try='test -z "$ac_c_werror_flag"
43394                          || test ! -s conftest.err'
43395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43396   (eval $ac_try) 2>&5
43397   ac_status=$?
43398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43399   (exit $ac_status); }; } &&
43400          { ac_try='test -s conftest$ac_exeext'
43401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43402   (eval $ac_try) 2>&5
43403   ac_status=$?
43404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43405   (exit $ac_status); }; }; then
43406   eval "$as_ac_var=yes"
43407 else
43408   echo "$as_me: failed program was:" >&5
43409 sed 's/^/| /' conftest.$ac_ext >&5
43410
43411 eval "$as_ac_var=no"
43412 fi
43413 rm -f conftest.err conftest.$ac_objext \
43414       conftest$ac_exeext conftest.$ac_ext
43415 fi
43416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43418 if test `eval echo '${'$as_ac_var'}'` = yes; then
43419   cat >>confdefs.h <<_ACEOF
43420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43421 _ACEOF
43422  ice_have_memmove=yes
43423 fi
43424 done
43425
43426 if test "${ice_have_memmove}" = yes; then
43427 echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
43428 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6
43429 if test "${ice_cv_have_memmove_decl+set}" = set; then
43430   echo $ECHO_N "(cached) $ECHO_C" >&6
43431 else
43432
43433 ice_cv_have_memmove_decl=no
43434 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43435 ice_re_word='(^|[^a-zA-Z0-9_])'
43436 for header in string.h strings.h; do
43437 # Check for ordinary declaration
43438 cat >conftest.$ac_ext <<_ACEOF
43439 /* confdefs.h.  */
43440 _ACEOF
43441 cat confdefs.h >>conftest.$ac_ext
43442 cat >>conftest.$ac_ext <<_ACEOF
43443 /* end confdefs.h.  */
43444 #include <$header>
43445
43446 _ACEOF
43447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43448   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
43449   ice_cv_have_memmove_decl=yes
43450 fi
43451 rm -f conftest*
43452
43453 if test "$ice_cv_have_memmove_decl" = yes; then
43454         break
43455 fi
43456 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43457 cat >conftest.$ac_ext <<_ACEOF
43458 /* confdefs.h.  */
43459 _ACEOF
43460 cat confdefs.h >>conftest.$ac_ext
43461 cat >>conftest.$ac_ext <<_ACEOF
43462 /* end confdefs.h.  */
43463 #include <$header>
43464
43465 _ACEOF
43466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43467   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43468   ice_cv_have_memmove_decl=yes
43469 fi
43470 rm -f conftest*
43471
43472 if test "$ice_cv_have_memmove_decl" = yes; then
43473         break
43474 fi
43475 done
43476
43477 fi
43478
43479 echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
43480 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6
43481 if test "$ice_cv_have_memmove_decl" = yes; then
43482
43483 cat >>confdefs.h <<_ACEOF
43484 #define HAVE_MEMMOVE_DECL 1
43485 _ACEOF
43486
43487 fi
43488 fi
43489
43490
43491 ice_have_memset=no
43492
43493 for ac_func in memset
43494 do
43495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43496 echo "$as_me:$LINENO: checking for $ac_func" >&5
43497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43498 if eval "test \"\${$as_ac_var+set}\" = set"; then
43499   echo $ECHO_N "(cached) $ECHO_C" >&6
43500 else
43501   cat >conftest.$ac_ext <<_ACEOF
43502 /* confdefs.h.  */
43503 _ACEOF
43504 cat confdefs.h >>conftest.$ac_ext
43505 cat >>conftest.$ac_ext <<_ACEOF
43506 /* end confdefs.h.  */
43507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43509 #define $ac_func innocuous_$ac_func
43510
43511 /* System header to define __stub macros and hopefully few prototypes,
43512     which can conflict with char $ac_func (); below.
43513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43514     <limits.h> exists even on freestanding compilers.  */
43515
43516 #ifdef __STDC__
43517 # include <limits.h>
43518 #else
43519 # include <assert.h>
43520 #endif
43521
43522 #undef $ac_func
43523
43524 /* Override any gcc2 internal prototype to avoid an error.  */
43525 #ifdef __cplusplus
43526 extern "C"
43527 {
43528 #endif
43529 /* We use char because int might match the return type of a gcc2
43530    builtin and then its argument prototype would still apply.  */
43531 char $ac_func ();
43532 /* The GNU C library defines this for functions which it implements
43533     to always fail with ENOSYS.  Some functions are actually named
43534     something starting with __ and the normal name is an alias.  */
43535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43536 choke me
43537 #else
43538 char (*f) () = $ac_func;
43539 #endif
43540 #ifdef __cplusplus
43541 }
43542 #endif
43543
43544 int
43545 main ()
43546 {
43547 return f != $ac_func;
43548   ;
43549   return 0;
43550 }
43551 _ACEOF
43552 rm -f conftest.$ac_objext conftest$ac_exeext
43553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43554   (eval $ac_link) 2>conftest.er1
43555   ac_status=$?
43556   grep -v '^ *+' conftest.er1 >conftest.err
43557   rm -f conftest.er1
43558   cat conftest.err >&5
43559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43560   (exit $ac_status); } &&
43561          { ac_try='test -z "$ac_c_werror_flag"
43562                          || test ! -s conftest.err'
43563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43564   (eval $ac_try) 2>&5
43565   ac_status=$?
43566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43567   (exit $ac_status); }; } &&
43568          { ac_try='test -s conftest$ac_exeext'
43569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43570   (eval $ac_try) 2>&5
43571   ac_status=$?
43572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43573   (exit $ac_status); }; }; then
43574   eval "$as_ac_var=yes"
43575 else
43576   echo "$as_me: failed program was:" >&5
43577 sed 's/^/| /' conftest.$ac_ext >&5
43578
43579 eval "$as_ac_var=no"
43580 fi
43581 rm -f conftest.err conftest.$ac_objext \
43582       conftest$ac_exeext conftest.$ac_ext
43583 fi
43584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43586 if test `eval echo '${'$as_ac_var'}'` = yes; then
43587   cat >>confdefs.h <<_ACEOF
43588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43589 _ACEOF
43590  ice_have_memset=yes
43591 fi
43592 done
43593
43594 if test "${ice_have_memset}" = yes; then
43595 echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
43596 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6
43597 if test "${ice_cv_have_memset_decl+set}" = set; then
43598   echo $ECHO_N "(cached) $ECHO_C" >&6
43599 else
43600
43601 ice_cv_have_memset_decl=no
43602 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43603 ice_re_word='(^|[^a-zA-Z0-9_])'
43604 for header in string.h strings.h; do
43605 # Check for ordinary declaration
43606 cat >conftest.$ac_ext <<_ACEOF
43607 /* confdefs.h.  */
43608 _ACEOF
43609 cat confdefs.h >>conftest.$ac_ext
43610 cat >>conftest.$ac_ext <<_ACEOF
43611 /* end confdefs.h.  */
43612 #include <$header>
43613
43614 _ACEOF
43615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43616   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
43617   ice_cv_have_memset_decl=yes
43618 fi
43619 rm -f conftest*
43620
43621 if test "$ice_cv_have_memset_decl" = yes; then
43622         break
43623 fi
43624 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43625 cat >conftest.$ac_ext <<_ACEOF
43626 /* confdefs.h.  */
43627 _ACEOF
43628 cat confdefs.h >>conftest.$ac_ext
43629 cat >>conftest.$ac_ext <<_ACEOF
43630 /* end confdefs.h.  */
43631 #include <$header>
43632
43633 _ACEOF
43634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43635   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43636   ice_cv_have_memset_decl=yes
43637 fi
43638 rm -f conftest*
43639
43640 if test "$ice_cv_have_memset_decl" = yes; then
43641         break
43642 fi
43643 done
43644
43645 fi
43646
43647 echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
43648 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6
43649 if test "$ice_cv_have_memset_decl" = yes; then
43650
43651 cat >>confdefs.h <<_ACEOF
43652 #define HAVE_MEMSET_DECL 1
43653 _ACEOF
43654
43655 fi
43656 fi
43657
43658
43659 for ac_func in mkdir
43660 do
43661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43662 echo "$as_me:$LINENO: checking for $ac_func" >&5
43663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43664 if eval "test \"\${$as_ac_var+set}\" = set"; then
43665   echo $ECHO_N "(cached) $ECHO_C" >&6
43666 else
43667   cat >conftest.$ac_ext <<_ACEOF
43668 /* confdefs.h.  */
43669 _ACEOF
43670 cat confdefs.h >>conftest.$ac_ext
43671 cat >>conftest.$ac_ext <<_ACEOF
43672 /* end confdefs.h.  */
43673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43675 #define $ac_func innocuous_$ac_func
43676
43677 /* System header to define __stub macros and hopefully few prototypes,
43678     which can conflict with char $ac_func (); below.
43679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43680     <limits.h> exists even on freestanding compilers.  */
43681
43682 #ifdef __STDC__
43683 # include <limits.h>
43684 #else
43685 # include <assert.h>
43686 #endif
43687
43688 #undef $ac_func
43689
43690 /* Override any gcc2 internal prototype to avoid an error.  */
43691 #ifdef __cplusplus
43692 extern "C"
43693 {
43694 #endif
43695 /* We use char because int might match the return type of a gcc2
43696    builtin and then its argument prototype would still apply.  */
43697 char $ac_func ();
43698 /* The GNU C library defines this for functions which it implements
43699     to always fail with ENOSYS.  Some functions are actually named
43700     something starting with __ and the normal name is an alias.  */
43701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43702 choke me
43703 #else
43704 char (*f) () = $ac_func;
43705 #endif
43706 #ifdef __cplusplus
43707 }
43708 #endif
43709
43710 int
43711 main ()
43712 {
43713 return f != $ac_func;
43714   ;
43715   return 0;
43716 }
43717 _ACEOF
43718 rm -f conftest.$ac_objext conftest$ac_exeext
43719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43720   (eval $ac_link) 2>conftest.er1
43721   ac_status=$?
43722   grep -v '^ *+' conftest.er1 >conftest.err
43723   rm -f conftest.er1
43724   cat conftest.err >&5
43725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43726   (exit $ac_status); } &&
43727          { ac_try='test -z "$ac_c_werror_flag"
43728                          || test ! -s conftest.err'
43729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43730   (eval $ac_try) 2>&5
43731   ac_status=$?
43732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43733   (exit $ac_status); }; } &&
43734          { ac_try='test -s conftest$ac_exeext'
43735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43736   (eval $ac_try) 2>&5
43737   ac_status=$?
43738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43739   (exit $ac_status); }; }; then
43740   eval "$as_ac_var=yes"
43741 else
43742   echo "$as_me: failed program was:" >&5
43743 sed 's/^/| /' conftest.$ac_ext >&5
43744
43745 eval "$as_ac_var=no"
43746 fi
43747 rm -f conftest.err conftest.$ac_objext \
43748       conftest$ac_exeext conftest.$ac_ext
43749 fi
43750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43752 if test `eval echo '${'$as_ac_var'}'` = yes; then
43753   cat >>confdefs.h <<_ACEOF
43754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43755 _ACEOF
43756
43757 fi
43758 done
43759
43760
43761 ice_have_mkstemp=no
43762
43763 for ac_func in mkstemp
43764 do
43765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43766 echo "$as_me:$LINENO: checking for $ac_func" >&5
43767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43768 if eval "test \"\${$as_ac_var+set}\" = set"; then
43769   echo $ECHO_N "(cached) $ECHO_C" >&6
43770 else
43771   cat >conftest.$ac_ext <<_ACEOF
43772 /* confdefs.h.  */
43773 _ACEOF
43774 cat confdefs.h >>conftest.$ac_ext
43775 cat >>conftest.$ac_ext <<_ACEOF
43776 /* end confdefs.h.  */
43777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43779 #define $ac_func innocuous_$ac_func
43780
43781 /* System header to define __stub macros and hopefully few prototypes,
43782     which can conflict with char $ac_func (); below.
43783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43784     <limits.h> exists even on freestanding compilers.  */
43785
43786 #ifdef __STDC__
43787 # include <limits.h>
43788 #else
43789 # include <assert.h>
43790 #endif
43791
43792 #undef $ac_func
43793
43794 /* Override any gcc2 internal prototype to avoid an error.  */
43795 #ifdef __cplusplus
43796 extern "C"
43797 {
43798 #endif
43799 /* We use char because int might match the return type of a gcc2
43800    builtin and then its argument prototype would still apply.  */
43801 char $ac_func ();
43802 /* The GNU C library defines this for functions which it implements
43803     to always fail with ENOSYS.  Some functions are actually named
43804     something starting with __ and the normal name is an alias.  */
43805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43806 choke me
43807 #else
43808 char (*f) () = $ac_func;
43809 #endif
43810 #ifdef __cplusplus
43811 }
43812 #endif
43813
43814 int
43815 main ()
43816 {
43817 return f != $ac_func;
43818   ;
43819   return 0;
43820 }
43821 _ACEOF
43822 rm -f conftest.$ac_objext conftest$ac_exeext
43823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43824   (eval $ac_link) 2>conftest.er1
43825   ac_status=$?
43826   grep -v '^ *+' conftest.er1 >conftest.err
43827   rm -f conftest.er1
43828   cat conftest.err >&5
43829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43830   (exit $ac_status); } &&
43831          { ac_try='test -z "$ac_c_werror_flag"
43832                          || test ! -s conftest.err'
43833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43834   (eval $ac_try) 2>&5
43835   ac_status=$?
43836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43837   (exit $ac_status); }; } &&
43838          { ac_try='test -s conftest$ac_exeext'
43839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43840   (eval $ac_try) 2>&5
43841   ac_status=$?
43842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43843   (exit $ac_status); }; }; then
43844   eval "$as_ac_var=yes"
43845 else
43846   echo "$as_me: failed program was:" >&5
43847 sed 's/^/| /' conftest.$ac_ext >&5
43848
43849 eval "$as_ac_var=no"
43850 fi
43851 rm -f conftest.err conftest.$ac_objext \
43852       conftest$ac_exeext conftest.$ac_ext
43853 fi
43854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43856 if test `eval echo '${'$as_ac_var'}'` = yes; then
43857   cat >>confdefs.h <<_ACEOF
43858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43859 _ACEOF
43860  ice_have_mkstemp=yes
43861 fi
43862 done
43863
43864 if test "${ice_have_mkstemp}" = yes; then
43865 echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
43866 echo $ECHO_N "checking for mkstemp declaration in stdlib.h... $ECHO_C" >&6
43867 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
43868   echo $ECHO_N "(cached) $ECHO_C" >&6
43869 else
43870
43871 ice_cv_have_mkstemp_decl=no
43872 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43873 ice_re_word='(^|[^a-zA-Z0-9_])'
43874 for header in stdlib.h; do
43875 # Check for ordinary declaration
43876 cat >conftest.$ac_ext <<_ACEOF
43877 /* confdefs.h.  */
43878 _ACEOF
43879 cat confdefs.h >>conftest.$ac_ext
43880 cat >>conftest.$ac_ext <<_ACEOF
43881 /* end confdefs.h.  */
43882 #include <$header>
43883
43884 _ACEOF
43885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43886   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then
43887   ice_cv_have_mkstemp_decl=yes
43888 fi
43889 rm -f conftest*
43890
43891 if test "$ice_cv_have_mkstemp_decl" = yes; then
43892         break
43893 fi
43894 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43895 cat >conftest.$ac_ext <<_ACEOF
43896 /* confdefs.h.  */
43897 _ACEOF
43898 cat confdefs.h >>conftest.$ac_ext
43899 cat >>conftest.$ac_ext <<_ACEOF
43900 /* end confdefs.h.  */
43901 #include <$header>
43902
43903 _ACEOF
43904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43905   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43906   ice_cv_have_mkstemp_decl=yes
43907 fi
43908 rm -f conftest*
43909
43910 if test "$ice_cv_have_mkstemp_decl" = yes; then
43911         break
43912 fi
43913 done
43914
43915 fi
43916
43917 echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
43918 echo "${ECHO_T}$ice_cv_have_mkstemp_decl" >&6
43919 if test "$ice_cv_have_mkstemp_decl" = yes; then
43920
43921 cat >>confdefs.h <<_ACEOF
43922 #define HAVE_MKSTEMP_DECL 1
43923 _ACEOF
43924
43925 fi
43926 fi
43927
43928
43929 ice_have_mktemp=no
43930
43931 for ac_func in mktemp
43932 do
43933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43934 echo "$as_me:$LINENO: checking for $ac_func" >&5
43935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43936 if eval "test \"\${$as_ac_var+set}\" = set"; then
43937   echo $ECHO_N "(cached) $ECHO_C" >&6
43938 else
43939   cat >conftest.$ac_ext <<_ACEOF
43940 /* confdefs.h.  */
43941 _ACEOF
43942 cat confdefs.h >>conftest.$ac_ext
43943 cat >>conftest.$ac_ext <<_ACEOF
43944 /* end confdefs.h.  */
43945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43947 #define $ac_func innocuous_$ac_func
43948
43949 /* System header to define __stub macros and hopefully few prototypes,
43950     which can conflict with char $ac_func (); below.
43951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43952     <limits.h> exists even on freestanding compilers.  */
43953
43954 #ifdef __STDC__
43955 # include <limits.h>
43956 #else
43957 # include <assert.h>
43958 #endif
43959
43960 #undef $ac_func
43961
43962 /* Override any gcc2 internal prototype to avoid an error.  */
43963 #ifdef __cplusplus
43964 extern "C"
43965 {
43966 #endif
43967 /* We use char because int might match the return type of a gcc2
43968    builtin and then its argument prototype would still apply.  */
43969 char $ac_func ();
43970 /* The GNU C library defines this for functions which it implements
43971     to always fail with ENOSYS.  Some functions are actually named
43972     something starting with __ and the normal name is an alias.  */
43973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43974 choke me
43975 #else
43976 char (*f) () = $ac_func;
43977 #endif
43978 #ifdef __cplusplus
43979 }
43980 #endif
43981
43982 int
43983 main ()
43984 {
43985 return f != $ac_func;
43986   ;
43987   return 0;
43988 }
43989 _ACEOF
43990 rm -f conftest.$ac_objext conftest$ac_exeext
43991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43992   (eval $ac_link) 2>conftest.er1
43993   ac_status=$?
43994   grep -v '^ *+' conftest.er1 >conftest.err
43995   rm -f conftest.er1
43996   cat conftest.err >&5
43997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43998   (exit $ac_status); } &&
43999          { ac_try='test -z "$ac_c_werror_flag"
44000                          || test ! -s conftest.err'
44001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44002   (eval $ac_try) 2>&5
44003   ac_status=$?
44004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44005   (exit $ac_status); }; } &&
44006          { ac_try='test -s conftest$ac_exeext'
44007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44008   (eval $ac_try) 2>&5
44009   ac_status=$?
44010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44011   (exit $ac_status); }; }; then
44012   eval "$as_ac_var=yes"
44013 else
44014   echo "$as_me: failed program was:" >&5
44015 sed 's/^/| /' conftest.$ac_ext >&5
44016
44017 eval "$as_ac_var=no"
44018 fi
44019 rm -f conftest.err conftest.$ac_objext \
44020       conftest$ac_exeext conftest.$ac_ext
44021 fi
44022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44024 if test `eval echo '${'$as_ac_var'}'` = yes; then
44025   cat >>confdefs.h <<_ACEOF
44026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44027 _ACEOF
44028  ice_have_mktemp=yes
44029 fi
44030 done
44031
44032 if test "${ice_have_mktemp}" = yes; then
44033 echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
44034 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6
44035 if test "${ice_cv_have_mktemp_decl+set}" = set; then
44036   echo $ECHO_N "(cached) $ECHO_C" >&6
44037 else
44038
44039 ice_cv_have_mktemp_decl=no
44040 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44041 ice_re_word='(^|[^a-zA-Z0-9_])'
44042 for header in stdlib.h; do
44043 # Check for ordinary declaration
44044 cat >conftest.$ac_ext <<_ACEOF
44045 /* confdefs.h.  */
44046 _ACEOF
44047 cat confdefs.h >>conftest.$ac_ext
44048 cat >>conftest.$ac_ext <<_ACEOF
44049 /* end confdefs.h.  */
44050 #include <$header>
44051
44052 _ACEOF
44053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44054   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
44055   ice_cv_have_mktemp_decl=yes
44056 fi
44057 rm -f conftest*
44058
44059 if test "$ice_cv_have_mktemp_decl" = yes; then
44060         break
44061 fi
44062 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44063 cat >conftest.$ac_ext <<_ACEOF
44064 /* confdefs.h.  */
44065 _ACEOF
44066 cat confdefs.h >>conftest.$ac_ext
44067 cat >>conftest.$ac_ext <<_ACEOF
44068 /* end confdefs.h.  */
44069 #include <$header>
44070
44071 _ACEOF
44072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44073   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44074   ice_cv_have_mktemp_decl=yes
44075 fi
44076 rm -f conftest*
44077
44078 if test "$ice_cv_have_mktemp_decl" = yes; then
44079         break
44080 fi
44081 done
44082
44083 fi
44084
44085 echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
44086 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6
44087 if test "$ice_cv_have_mktemp_decl" = yes; then
44088
44089 cat >>confdefs.h <<_ACEOF
44090 #define HAVE_MKTEMP_DECL 1
44091 _ACEOF
44092
44093 fi
44094 fi
44095
44096
44097 for ac_func in mktime
44098 do
44099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44100 echo "$as_me:$LINENO: checking for $ac_func" >&5
44101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44102 if eval "test \"\${$as_ac_var+set}\" = set"; then
44103   echo $ECHO_N "(cached) $ECHO_C" >&6
44104 else
44105   cat >conftest.$ac_ext <<_ACEOF
44106 /* confdefs.h.  */
44107 _ACEOF
44108 cat confdefs.h >>conftest.$ac_ext
44109 cat >>conftest.$ac_ext <<_ACEOF
44110 /* end confdefs.h.  */
44111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44112    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44113 #define $ac_func innocuous_$ac_func
44114
44115 /* System header to define __stub macros and hopefully few prototypes,
44116     which can conflict with char $ac_func (); below.
44117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44118     <limits.h> exists even on freestanding compilers.  */
44119
44120 #ifdef __STDC__
44121 # include <limits.h>
44122 #else
44123 # include <assert.h>
44124 #endif
44125
44126 #undef $ac_func
44127
44128 /* Override any gcc2 internal prototype to avoid an error.  */
44129 #ifdef __cplusplus
44130 extern "C"
44131 {
44132 #endif
44133 /* We use char because int might match the return type of a gcc2
44134    builtin and then its argument prototype would still apply.  */
44135 char $ac_func ();
44136 /* The GNU C library defines this for functions which it implements
44137     to always fail with ENOSYS.  Some functions are actually named
44138     something starting with __ and the normal name is an alias.  */
44139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44140 choke me
44141 #else
44142 char (*f) () = $ac_func;
44143 #endif
44144 #ifdef __cplusplus
44145 }
44146 #endif
44147
44148 int
44149 main ()
44150 {
44151 return f != $ac_func;
44152   ;
44153   return 0;
44154 }
44155 _ACEOF
44156 rm -f conftest.$ac_objext conftest$ac_exeext
44157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44158   (eval $ac_link) 2>conftest.er1
44159   ac_status=$?
44160   grep -v '^ *+' conftest.er1 >conftest.err
44161   rm -f conftest.er1
44162   cat conftest.err >&5
44163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44164   (exit $ac_status); } &&
44165          { ac_try='test -z "$ac_c_werror_flag"
44166                          || test ! -s conftest.err'
44167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44168   (eval $ac_try) 2>&5
44169   ac_status=$?
44170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44171   (exit $ac_status); }; } &&
44172          { ac_try='test -s conftest$ac_exeext'
44173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44174   (eval $ac_try) 2>&5
44175   ac_status=$?
44176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44177   (exit $ac_status); }; }; then
44178   eval "$as_ac_var=yes"
44179 else
44180   echo "$as_me: failed program was:" >&5
44181 sed 's/^/| /' conftest.$ac_ext >&5
44182
44183 eval "$as_ac_var=no"
44184 fi
44185 rm -f conftest.err conftest.$ac_objext \
44186       conftest$ac_exeext conftest.$ac_ext
44187 fi
44188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44190 if test `eval echo '${'$as_ac_var'}'` = yes; then
44191   cat >>confdefs.h <<_ACEOF
44192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44193 _ACEOF
44194
44195 else
44196   case $LIBOBJS in
44197     "$ac_func.$ac_objext"   | \
44198   *" $ac_func.$ac_objext"   | \
44199     "$ac_func.$ac_objext "* | \
44200   *" $ac_func.$ac_objext "* ) ;;
44201   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
44202 esac
44203
44204 fi
44205 done
44206
44207
44208
44209 ice_have_mktime=no
44210
44211 for ac_func in mktime
44212 do
44213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44214 echo "$as_me:$LINENO: checking for $ac_func" >&5
44215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44216 if eval "test \"\${$as_ac_var+set}\" = set"; then
44217   echo $ECHO_N "(cached) $ECHO_C" >&6
44218 else
44219   cat >conftest.$ac_ext <<_ACEOF
44220 /* confdefs.h.  */
44221 _ACEOF
44222 cat confdefs.h >>conftest.$ac_ext
44223 cat >>conftest.$ac_ext <<_ACEOF
44224 /* end confdefs.h.  */
44225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44227 #define $ac_func innocuous_$ac_func
44228
44229 /* System header to define __stub macros and hopefully few prototypes,
44230     which can conflict with char $ac_func (); below.
44231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44232     <limits.h> exists even on freestanding compilers.  */
44233
44234 #ifdef __STDC__
44235 # include <limits.h>
44236 #else
44237 # include <assert.h>
44238 #endif
44239
44240 #undef $ac_func
44241
44242 /* Override any gcc2 internal prototype to avoid an error.  */
44243 #ifdef __cplusplus
44244 extern "C"
44245 {
44246 #endif
44247 /* We use char because int might match the return type of a gcc2
44248    builtin and then its argument prototype would still apply.  */
44249 char $ac_func ();
44250 /* The GNU C library defines this for functions which it implements
44251     to always fail with ENOSYS.  Some functions are actually named
44252     something starting with __ and the normal name is an alias.  */
44253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44254 choke me
44255 #else
44256 char (*f) () = $ac_func;
44257 #endif
44258 #ifdef __cplusplus
44259 }
44260 #endif
44261
44262 int
44263 main ()
44264 {
44265 return f != $ac_func;
44266   ;
44267   return 0;
44268 }
44269 _ACEOF
44270 rm -f conftest.$ac_objext conftest$ac_exeext
44271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44272   (eval $ac_link) 2>conftest.er1
44273   ac_status=$?
44274   grep -v '^ *+' conftest.er1 >conftest.err
44275   rm -f conftest.er1
44276   cat conftest.err >&5
44277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44278   (exit $ac_status); } &&
44279          { ac_try='test -z "$ac_c_werror_flag"
44280                          || test ! -s conftest.err'
44281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44282   (eval $ac_try) 2>&5
44283   ac_status=$?
44284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44285   (exit $ac_status); }; } &&
44286          { ac_try='test -s conftest$ac_exeext'
44287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44288   (eval $ac_try) 2>&5
44289   ac_status=$?
44290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44291   (exit $ac_status); }; }; then
44292   eval "$as_ac_var=yes"
44293 else
44294   echo "$as_me: failed program was:" >&5
44295 sed 's/^/| /' conftest.$ac_ext >&5
44296
44297 eval "$as_ac_var=no"
44298 fi
44299 rm -f conftest.err conftest.$ac_objext \
44300       conftest$ac_exeext conftest.$ac_ext
44301 fi
44302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44304 if test `eval echo '${'$as_ac_var'}'` = yes; then
44305   cat >>confdefs.h <<_ACEOF
44306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44307 _ACEOF
44308  ice_have_mktime=yes
44309 fi
44310 done
44311
44312 if test "${ice_have_mktime}" = yes; then
44313 echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
44314 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6
44315 if test "${ice_cv_have_mktime_decl+set}" = set; then
44316   echo $ECHO_N "(cached) $ECHO_C" >&6
44317 else
44318
44319 ice_cv_have_mktime_decl=no
44320 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44321 ice_re_word='(^|[^a-zA-Z0-9_])'
44322 for header in time.h sys/time.h; do
44323 # Check for ordinary declaration
44324 cat >conftest.$ac_ext <<_ACEOF
44325 /* confdefs.h.  */
44326 _ACEOF
44327 cat confdefs.h >>conftest.$ac_ext
44328 cat >>conftest.$ac_ext <<_ACEOF
44329 /* end confdefs.h.  */
44330 #include <$header>
44331
44332 _ACEOF
44333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44334   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
44335   ice_cv_have_mktime_decl=yes
44336 fi
44337 rm -f conftest*
44338
44339 if test "$ice_cv_have_mktime_decl" = yes; then
44340         break
44341 fi
44342 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44343 cat >conftest.$ac_ext <<_ACEOF
44344 /* confdefs.h.  */
44345 _ACEOF
44346 cat confdefs.h >>conftest.$ac_ext
44347 cat >>conftest.$ac_ext <<_ACEOF
44348 /* end confdefs.h.  */
44349 #include <$header>
44350
44351 _ACEOF
44352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44353   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44354   ice_cv_have_mktime_decl=yes
44355 fi
44356 rm -f conftest*
44357
44358 if test "$ice_cv_have_mktime_decl" = yes; then
44359         break
44360 fi
44361 done
44362
44363 fi
44364
44365 echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
44366 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6
44367 if test "$ice_cv_have_mktime_decl" = yes; then
44368
44369 cat >>confdefs.h <<_ACEOF
44370 #define HAVE_MKTIME_DECL 1
44371 _ACEOF
44372
44373 fi
44374 fi
44375
44376
44377
44378 for ac_header in stdlib.h unistd.h
44379 do
44380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44382   echo "$as_me:$LINENO: checking for $ac_header" >&5
44383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44385   echo $ECHO_N "(cached) $ECHO_C" >&6
44386 fi
44387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44389 else
44390   # Is the header compilable?
44391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44393 cat >conftest.$ac_ext <<_ACEOF
44394 /* confdefs.h.  */
44395 _ACEOF
44396 cat confdefs.h >>conftest.$ac_ext
44397 cat >>conftest.$ac_ext <<_ACEOF
44398 /* end confdefs.h.  */
44399 $ac_includes_default
44400 #include <$ac_header>
44401 _ACEOF
44402 rm -f conftest.$ac_objext
44403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44404   (eval $ac_compile) 2>conftest.er1
44405   ac_status=$?
44406   grep -v '^ *+' conftest.er1 >conftest.err
44407   rm -f conftest.er1
44408   cat conftest.err >&5
44409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44410   (exit $ac_status); } &&
44411          { ac_try='test -z "$ac_c_werror_flag"
44412                          || test ! -s conftest.err'
44413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44414   (eval $ac_try) 2>&5
44415   ac_status=$?
44416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44417   (exit $ac_status); }; } &&
44418          { ac_try='test -s conftest.$ac_objext'
44419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44420   (eval $ac_try) 2>&5
44421   ac_status=$?
44422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44423   (exit $ac_status); }; }; then
44424   ac_header_compiler=yes
44425 else
44426   echo "$as_me: failed program was:" >&5
44427 sed 's/^/| /' conftest.$ac_ext >&5
44428
44429 ac_header_compiler=no
44430 fi
44431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44433 echo "${ECHO_T}$ac_header_compiler" >&6
44434
44435 # Is the header present?
44436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44438 cat >conftest.$ac_ext <<_ACEOF
44439 /* confdefs.h.  */
44440 _ACEOF
44441 cat confdefs.h >>conftest.$ac_ext
44442 cat >>conftest.$ac_ext <<_ACEOF
44443 /* end confdefs.h.  */
44444 #include <$ac_header>
44445 _ACEOF
44446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44447   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44448   ac_status=$?
44449   grep -v '^ *+' conftest.er1 >conftest.err
44450   rm -f conftest.er1
44451   cat conftest.err >&5
44452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44453   (exit $ac_status); } >/dev/null; then
44454   if test -s conftest.err; then
44455     ac_cpp_err=$ac_c_preproc_warn_flag
44456     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44457   else
44458     ac_cpp_err=
44459   fi
44460 else
44461   ac_cpp_err=yes
44462 fi
44463 if test -z "$ac_cpp_err"; then
44464   ac_header_preproc=yes
44465 else
44466   echo "$as_me: failed program was:" >&5
44467 sed 's/^/| /' conftest.$ac_ext >&5
44468
44469   ac_header_preproc=no
44470 fi
44471 rm -f conftest.err conftest.$ac_ext
44472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44473 echo "${ECHO_T}$ac_header_preproc" >&6
44474
44475 # So?  What about this header?
44476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44477   yes:no: )
44478     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44482     ac_header_preproc=yes
44483     ;;
44484   no:yes:* )
44485     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44487     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44488 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44489     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44491     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44492 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44495     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44497     (
44498       cat <<\_ASBOX
44499 ## ------------------------------------------ ##
44500 ## Report this to the AC_PACKAGE_NAME lists.  ##
44501 ## ------------------------------------------ ##
44502 _ASBOX
44503     ) |
44504       sed "s/^/$as_me: WARNING:     /" >&2
44505     ;;
44506 esac
44507 echo "$as_me:$LINENO: checking for $ac_header" >&5
44508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44510   echo $ECHO_N "(cached) $ECHO_C" >&6
44511 else
44512   eval "$as_ac_Header=\$ac_header_preproc"
44513 fi
44514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44516
44517 fi
44518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44519   cat >>confdefs.h <<_ACEOF
44520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44521 _ACEOF
44522
44523 fi
44524
44525 done
44526
44527
44528 for ac_func in getpagesize
44529 do
44530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44531 echo "$as_me:$LINENO: checking for $ac_func" >&5
44532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44533 if eval "test \"\${$as_ac_var+set}\" = set"; then
44534   echo $ECHO_N "(cached) $ECHO_C" >&6
44535 else
44536   cat >conftest.$ac_ext <<_ACEOF
44537 /* confdefs.h.  */
44538 _ACEOF
44539 cat confdefs.h >>conftest.$ac_ext
44540 cat >>conftest.$ac_ext <<_ACEOF
44541 /* end confdefs.h.  */
44542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44544 #define $ac_func innocuous_$ac_func
44545
44546 /* System header to define __stub macros and hopefully few prototypes,
44547     which can conflict with char $ac_func (); below.
44548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44549     <limits.h> exists even on freestanding compilers.  */
44550
44551 #ifdef __STDC__
44552 # include <limits.h>
44553 #else
44554 # include <assert.h>
44555 #endif
44556
44557 #undef $ac_func
44558
44559 /* Override any gcc2 internal prototype to avoid an error.  */
44560 #ifdef __cplusplus
44561 extern "C"
44562 {
44563 #endif
44564 /* We use char because int might match the return type of a gcc2
44565    builtin and then its argument prototype would still apply.  */
44566 char $ac_func ();
44567 /* The GNU C library defines this for functions which it implements
44568     to always fail with ENOSYS.  Some functions are actually named
44569     something starting with __ and the normal name is an alias.  */
44570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44571 choke me
44572 #else
44573 char (*f) () = $ac_func;
44574 #endif
44575 #ifdef __cplusplus
44576 }
44577 #endif
44578
44579 int
44580 main ()
44581 {
44582 return f != $ac_func;
44583   ;
44584   return 0;
44585 }
44586 _ACEOF
44587 rm -f conftest.$ac_objext conftest$ac_exeext
44588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44589   (eval $ac_link) 2>conftest.er1
44590   ac_status=$?
44591   grep -v '^ *+' conftest.er1 >conftest.err
44592   rm -f conftest.er1
44593   cat conftest.err >&5
44594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44595   (exit $ac_status); } &&
44596          { ac_try='test -z "$ac_c_werror_flag"
44597                          || test ! -s conftest.err'
44598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44599   (eval $ac_try) 2>&5
44600   ac_status=$?
44601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44602   (exit $ac_status); }; } &&
44603          { ac_try='test -s conftest$ac_exeext'
44604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44605   (eval $ac_try) 2>&5
44606   ac_status=$?
44607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44608   (exit $ac_status); }; }; then
44609   eval "$as_ac_var=yes"
44610 else
44611   echo "$as_me: failed program was:" >&5
44612 sed 's/^/| /' conftest.$ac_ext >&5
44613
44614 eval "$as_ac_var=no"
44615 fi
44616 rm -f conftest.err conftest.$ac_objext \
44617       conftest$ac_exeext conftest.$ac_ext
44618 fi
44619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44621 if test `eval echo '${'$as_ac_var'}'` = yes; then
44622   cat >>confdefs.h <<_ACEOF
44623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44624 _ACEOF
44625
44626 fi
44627 done
44628
44629 echo "$as_me:$LINENO: checking for working mmap" >&5
44630 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
44631 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
44632   echo $ECHO_N "(cached) $ECHO_C" >&6
44633 else
44634   if test "$cross_compiling" = yes; then
44635   ac_cv_func_mmap_fixed_mapped=no
44636 else
44637   cat >conftest.$ac_ext <<_ACEOF
44638 /* confdefs.h.  */
44639 _ACEOF
44640 cat confdefs.h >>conftest.$ac_ext
44641 cat >>conftest.$ac_ext <<_ACEOF
44642 /* end confdefs.h.  */
44643 $ac_includes_default
44644 /* malloc might have been renamed as rpl_malloc. */
44645 #undef malloc
44646
44647 /* Thanks to Mike Haertel and Jim Avera for this test.
44648    Here is a matrix of mmap possibilities:
44649         mmap private not fixed
44650         mmap private fixed at somewhere currently unmapped
44651         mmap private fixed at somewhere already mapped
44652         mmap shared not fixed
44653         mmap shared fixed at somewhere currently unmapped
44654         mmap shared fixed at somewhere already mapped
44655    For private mappings, we should verify that changes cannot be read()
44656    back from the file, nor mmap's back from the file at a different
44657    address.  (There have been systems where private was not correctly
44658    implemented like the infamous i386 svr4.0, and systems where the
44659    VM page cache was not coherent with the file system buffer cache
44660    like early versions of FreeBSD and possibly contemporary NetBSD.)
44661    For shared mappings, we should conversely verify that changes get
44662    propagated back to all the places they're supposed to be.
44663
44664    Grep wants private fixed already mapped.
44665    The main things grep needs to know about mmap are:
44666    * does it exist and is it safe to write into the mmap'd area
44667    * how to use it (BSD variants)  */
44668
44669 #include <fcntl.h>
44670 #include <sys/mman.h>
44671
44672 #if !STDC_HEADERS && !HAVE_STDLIB_H
44673 char *malloc ();
44674 #endif
44675
44676 /* This mess was copied from the GNU getpagesize.h.  */
44677 #if !HAVE_GETPAGESIZE
44678 /* Assume that all systems that can run configure have sys/param.h.  */
44679 # if !HAVE_SYS_PARAM_H
44680 #  define HAVE_SYS_PARAM_H 1
44681 # endif
44682
44683 # ifdef _SC_PAGESIZE
44684 #  define getpagesize() sysconf(_SC_PAGESIZE)
44685 # else /* no _SC_PAGESIZE */
44686 #  if HAVE_SYS_PARAM_H
44687 #   include <sys/param.h>
44688 #   ifdef EXEC_PAGESIZE
44689 #    define getpagesize() EXEC_PAGESIZE
44690 #   else /* no EXEC_PAGESIZE */
44691 #    ifdef NBPG
44692 #     define getpagesize() NBPG * CLSIZE
44693 #     ifndef CLSIZE
44694 #      define CLSIZE 1
44695 #     endif /* no CLSIZE */
44696 #    else /* no NBPG */
44697 #     ifdef NBPC
44698 #      define getpagesize() NBPC
44699 #     else /* no NBPC */
44700 #      ifdef PAGESIZE
44701 #       define getpagesize() PAGESIZE
44702 #      endif /* PAGESIZE */
44703 #     endif /* no NBPC */
44704 #    endif /* no NBPG */
44705 #   endif /* no EXEC_PAGESIZE */
44706 #  else /* no HAVE_SYS_PARAM_H */
44707 #   define getpagesize() 8192   /* punt totally */
44708 #  endif /* no HAVE_SYS_PARAM_H */
44709 # endif /* no _SC_PAGESIZE */
44710
44711 #endif /* no HAVE_GETPAGESIZE */
44712
44713 int
44714 main ()
44715 {
44716   char *data, *data2, *data3;
44717   int i, pagesize;
44718   int fd;
44719
44720   pagesize = getpagesize ();
44721
44722   /* First, make a file with some known garbage in it. */
44723   data = (char *) malloc (pagesize);
44724   if (!data)
44725     exit (1);
44726   for (i = 0; i < pagesize; ++i)
44727     *(data + i) = rand ();
44728   umask (0);
44729   fd = creat ("conftest.mmap", 0600);
44730   if (fd < 0)
44731     exit (1);
44732   if (write (fd, data, pagesize) != pagesize)
44733     exit (1);
44734   close (fd);
44735
44736   /* Next, try to mmap the file at a fixed address which already has
44737      something else allocated at it.  If we can, also make sure that
44738      we see the same garbage.  */
44739   fd = open ("conftest.mmap", O_RDWR);
44740   if (fd < 0)
44741     exit (1);
44742   data2 = (char *) malloc (2 * pagesize);
44743   if (!data2)
44744     exit (1);
44745   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
44746   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
44747                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
44748     exit (1);
44749   for (i = 0; i < pagesize; ++i)
44750     if (*(data + i) != *(data2 + i))
44751       exit (1);
44752
44753   /* Finally, make sure that changes to the mapped area do not
44754      percolate back to the file as seen by read().  (This is a bug on
44755      some variants of i386 svr4.0.)  */
44756   for (i = 0; i < pagesize; ++i)
44757     *(data2 + i) = *(data2 + i) + 1;
44758   data3 = (char *) malloc (pagesize);
44759   if (!data3)
44760     exit (1);
44761   if (read (fd, data3, pagesize) != pagesize)
44762     exit (1);
44763   for (i = 0; i < pagesize; ++i)
44764     if (*(data + i) != *(data3 + i))
44765       exit (1);
44766   close (fd);
44767   exit (0);
44768 }
44769 _ACEOF
44770 rm -f conftest$ac_exeext
44771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44772   (eval $ac_link) 2>&5
44773   ac_status=$?
44774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44775   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44777   (eval $ac_try) 2>&5
44778   ac_status=$?
44779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44780   (exit $ac_status); }; }; then
44781   ac_cv_func_mmap_fixed_mapped=yes
44782 else
44783   echo "$as_me: program exited with status $ac_status" >&5
44784 echo "$as_me: failed program was:" >&5
44785 sed 's/^/| /' conftest.$ac_ext >&5
44786
44787 ( exit $ac_status )
44788 ac_cv_func_mmap_fixed_mapped=no
44789 fi
44790 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44791 fi
44792 fi
44793 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
44794 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
44795 if test $ac_cv_func_mmap_fixed_mapped = yes; then
44796
44797 cat >>confdefs.h <<\_ACEOF
44798 #define HAVE_MMAP 1
44799 _ACEOF
44800
44801 fi
44802 rm -f conftest.mmap
44803
44804
44805 for ac_func in on_exit
44806 do
44807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44808 echo "$as_me:$LINENO: checking for $ac_func" >&5
44809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44810 if eval "test \"\${$as_ac_var+set}\" = set"; then
44811   echo $ECHO_N "(cached) $ECHO_C" >&6
44812 else
44813   cat >conftest.$ac_ext <<_ACEOF
44814 /* confdefs.h.  */
44815 _ACEOF
44816 cat confdefs.h >>conftest.$ac_ext
44817 cat >>conftest.$ac_ext <<_ACEOF
44818 /* end confdefs.h.  */
44819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44820    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44821 #define $ac_func innocuous_$ac_func
44822
44823 /* System header to define __stub macros and hopefully few prototypes,
44824     which can conflict with char $ac_func (); below.
44825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44826     <limits.h> exists even on freestanding compilers.  */
44827
44828 #ifdef __STDC__
44829 # include <limits.h>
44830 #else
44831 # include <assert.h>
44832 #endif
44833
44834 #undef $ac_func
44835
44836 /* Override any gcc2 internal prototype to avoid an error.  */
44837 #ifdef __cplusplus
44838 extern "C"
44839 {
44840 #endif
44841 /* We use char because int might match the return type of a gcc2
44842    builtin and then its argument prototype would still apply.  */
44843 char $ac_func ();
44844 /* The GNU C library defines this for functions which it implements
44845     to always fail with ENOSYS.  Some functions are actually named
44846     something starting with __ and the normal name is an alias.  */
44847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44848 choke me
44849 #else
44850 char (*f) () = $ac_func;
44851 #endif
44852 #ifdef __cplusplus
44853 }
44854 #endif
44855
44856 int
44857 main ()
44858 {
44859 return f != $ac_func;
44860   ;
44861   return 0;
44862 }
44863 _ACEOF
44864 rm -f conftest.$ac_objext conftest$ac_exeext
44865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44866   (eval $ac_link) 2>conftest.er1
44867   ac_status=$?
44868   grep -v '^ *+' conftest.er1 >conftest.err
44869   rm -f conftest.er1
44870   cat conftest.err >&5
44871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44872   (exit $ac_status); } &&
44873          { ac_try='test -z "$ac_c_werror_flag"
44874                          || test ! -s conftest.err'
44875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44876   (eval $ac_try) 2>&5
44877   ac_status=$?
44878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44879   (exit $ac_status); }; } &&
44880          { ac_try='test -s conftest$ac_exeext'
44881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44882   (eval $ac_try) 2>&5
44883   ac_status=$?
44884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44885   (exit $ac_status); }; }; then
44886   eval "$as_ac_var=yes"
44887 else
44888   echo "$as_me: failed program was:" >&5
44889 sed 's/^/| /' conftest.$ac_ext >&5
44890
44891 eval "$as_ac_var=no"
44892 fi
44893 rm -f conftest.err conftest.$ac_objext \
44894       conftest$ac_exeext conftest.$ac_ext
44895 fi
44896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44898 if test `eval echo '${'$as_ac_var'}'` = yes; then
44899   cat >>confdefs.h <<_ACEOF
44900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44901 _ACEOF
44902
44903 fi
44904 done
44905
44906
44907 ice_have_openlog=no
44908
44909 for ac_func in openlog
44910 do
44911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44912 echo "$as_me:$LINENO: checking for $ac_func" >&5
44913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44914 if eval "test \"\${$as_ac_var+set}\" = set"; then
44915   echo $ECHO_N "(cached) $ECHO_C" >&6
44916 else
44917   cat >conftest.$ac_ext <<_ACEOF
44918 /* confdefs.h.  */
44919 _ACEOF
44920 cat confdefs.h >>conftest.$ac_ext
44921 cat >>conftest.$ac_ext <<_ACEOF
44922 /* end confdefs.h.  */
44923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44925 #define $ac_func innocuous_$ac_func
44926
44927 /* System header to define __stub macros and hopefully few prototypes,
44928     which can conflict with char $ac_func (); below.
44929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44930     <limits.h> exists even on freestanding compilers.  */
44931
44932 #ifdef __STDC__
44933 # include <limits.h>
44934 #else
44935 # include <assert.h>
44936 #endif
44937
44938 #undef $ac_func
44939
44940 /* Override any gcc2 internal prototype to avoid an error.  */
44941 #ifdef __cplusplus
44942 extern "C"
44943 {
44944 #endif
44945 /* We use char because int might match the return type of a gcc2
44946    builtin and then its argument prototype would still apply.  */
44947 char $ac_func ();
44948 /* The GNU C library defines this for functions which it implements
44949     to always fail with ENOSYS.  Some functions are actually named
44950     something starting with __ and the normal name is an alias.  */
44951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44952 choke me
44953 #else
44954 char (*f) () = $ac_func;
44955 #endif
44956 #ifdef __cplusplus
44957 }
44958 #endif
44959
44960 int
44961 main ()
44962 {
44963 return f != $ac_func;
44964   ;
44965   return 0;
44966 }
44967 _ACEOF
44968 rm -f conftest.$ac_objext conftest$ac_exeext
44969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44970   (eval $ac_link) 2>conftest.er1
44971   ac_status=$?
44972   grep -v '^ *+' conftest.er1 >conftest.err
44973   rm -f conftest.er1
44974   cat conftest.err >&5
44975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44976   (exit $ac_status); } &&
44977          { ac_try='test -z "$ac_c_werror_flag"
44978                          || test ! -s conftest.err'
44979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44980   (eval $ac_try) 2>&5
44981   ac_status=$?
44982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44983   (exit $ac_status); }; } &&
44984          { ac_try='test -s conftest$ac_exeext'
44985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44986   (eval $ac_try) 2>&5
44987   ac_status=$?
44988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44989   (exit $ac_status); }; }; then
44990   eval "$as_ac_var=yes"
44991 else
44992   echo "$as_me: failed program was:" >&5
44993 sed 's/^/| /' conftest.$ac_ext >&5
44994
44995 eval "$as_ac_var=no"
44996 fi
44997 rm -f conftest.err conftest.$ac_objext \
44998       conftest$ac_exeext conftest.$ac_ext
44999 fi
45000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45002 if test `eval echo '${'$as_ac_var'}'` = yes; then
45003   cat >>confdefs.h <<_ACEOF
45004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45005 _ACEOF
45006  ice_have_openlog=yes
45007 fi
45008 done
45009
45010 if test "${ice_have_openlog}" = yes; then
45011 echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
45012 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6
45013 if test "${ice_cv_have_openlog_decl+set}" = set; then
45014   echo $ECHO_N "(cached) $ECHO_C" >&6
45015 else
45016
45017 ice_cv_have_openlog_decl=no
45018 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45019 ice_re_word='(^|[^a-zA-Z0-9_])'
45020 for header in syslog.h; do
45021 # Check for ordinary declaration
45022 cat >conftest.$ac_ext <<_ACEOF
45023 /* confdefs.h.  */
45024 _ACEOF
45025 cat confdefs.h >>conftest.$ac_ext
45026 cat >>conftest.$ac_ext <<_ACEOF
45027 /* end confdefs.h.  */
45028 #include <$header>
45029
45030 _ACEOF
45031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45032   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then
45033   ice_cv_have_openlog_decl=yes
45034 fi
45035 rm -f conftest*
45036
45037 if test "$ice_cv_have_openlog_decl" = yes; then
45038         break
45039 fi
45040 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45041 cat >conftest.$ac_ext <<_ACEOF
45042 /* confdefs.h.  */
45043 _ACEOF
45044 cat confdefs.h >>conftest.$ac_ext
45045 cat >>conftest.$ac_ext <<_ACEOF
45046 /* end confdefs.h.  */
45047 #include <$header>
45048
45049 _ACEOF
45050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45051   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45052   ice_cv_have_openlog_decl=yes
45053 fi
45054 rm -f conftest*
45055
45056 if test "$ice_cv_have_openlog_decl" = yes; then
45057         break
45058 fi
45059 done
45060
45061 fi
45062
45063 echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
45064 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6
45065 if test "$ice_cv_have_openlog_decl" = yes; then
45066
45067 cat >>confdefs.h <<_ACEOF
45068 #define HAVE_OPENLOG_DECL 1
45069 _ACEOF
45070
45071 fi
45072 fi
45073
45074
45075 ice_have_pclose=no
45076
45077 for ac_func in pclose
45078 do
45079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45080 echo "$as_me:$LINENO: checking for $ac_func" >&5
45081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45082 if eval "test \"\${$as_ac_var+set}\" = set"; then
45083   echo $ECHO_N "(cached) $ECHO_C" >&6
45084 else
45085   cat >conftest.$ac_ext <<_ACEOF
45086 /* confdefs.h.  */
45087 _ACEOF
45088 cat confdefs.h >>conftest.$ac_ext
45089 cat >>conftest.$ac_ext <<_ACEOF
45090 /* end confdefs.h.  */
45091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45093 #define $ac_func innocuous_$ac_func
45094
45095 /* System header to define __stub macros and hopefully few prototypes,
45096     which can conflict with char $ac_func (); below.
45097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45098     <limits.h> exists even on freestanding compilers.  */
45099
45100 #ifdef __STDC__
45101 # include <limits.h>
45102 #else
45103 # include <assert.h>
45104 #endif
45105
45106 #undef $ac_func
45107
45108 /* Override any gcc2 internal prototype to avoid an error.  */
45109 #ifdef __cplusplus
45110 extern "C"
45111 {
45112 #endif
45113 /* We use char because int might match the return type of a gcc2
45114    builtin and then its argument prototype would still apply.  */
45115 char $ac_func ();
45116 /* The GNU C library defines this for functions which it implements
45117     to always fail with ENOSYS.  Some functions are actually named
45118     something starting with __ and the normal name is an alias.  */
45119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45120 choke me
45121 #else
45122 char (*f) () = $ac_func;
45123 #endif
45124 #ifdef __cplusplus
45125 }
45126 #endif
45127
45128 int
45129 main ()
45130 {
45131 return f != $ac_func;
45132   ;
45133   return 0;
45134 }
45135 _ACEOF
45136 rm -f conftest.$ac_objext conftest$ac_exeext
45137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45138   (eval $ac_link) 2>conftest.er1
45139   ac_status=$?
45140   grep -v '^ *+' conftest.er1 >conftest.err
45141   rm -f conftest.er1
45142   cat conftest.err >&5
45143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45144   (exit $ac_status); } &&
45145          { ac_try='test -z "$ac_c_werror_flag"
45146                          || test ! -s conftest.err'
45147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45148   (eval $ac_try) 2>&5
45149   ac_status=$?
45150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45151   (exit $ac_status); }; } &&
45152          { ac_try='test -s conftest$ac_exeext'
45153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45154   (eval $ac_try) 2>&5
45155   ac_status=$?
45156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45157   (exit $ac_status); }; }; then
45158   eval "$as_ac_var=yes"
45159 else
45160   echo "$as_me: failed program was:" >&5
45161 sed 's/^/| /' conftest.$ac_ext >&5
45162
45163 eval "$as_ac_var=no"
45164 fi
45165 rm -f conftest.err conftest.$ac_objext \
45166       conftest$ac_exeext conftest.$ac_ext
45167 fi
45168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45170 if test `eval echo '${'$as_ac_var'}'` = yes; then
45171   cat >>confdefs.h <<_ACEOF
45172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45173 _ACEOF
45174  ice_have_pclose=yes
45175 fi
45176 done
45177
45178 if test "${ice_have_pclose}" = yes; then
45179 echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
45180 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6
45181 if test "${ice_cv_have_pclose_decl+set}" = set; then
45182   echo $ECHO_N "(cached) $ECHO_C" >&6
45183 else
45184
45185 ice_cv_have_pclose_decl=no
45186 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45187 ice_re_word='(^|[^a-zA-Z0-9_])'
45188 for header in stdio.h; do
45189 # Check for ordinary declaration
45190 cat >conftest.$ac_ext <<_ACEOF
45191 /* confdefs.h.  */
45192 _ACEOF
45193 cat confdefs.h >>conftest.$ac_ext
45194 cat >>conftest.$ac_ext <<_ACEOF
45195 /* end confdefs.h.  */
45196 #include <$header>
45197
45198 _ACEOF
45199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45200   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
45201   ice_cv_have_pclose_decl=yes
45202 fi
45203 rm -f conftest*
45204
45205 if test "$ice_cv_have_pclose_decl" = yes; then
45206         break
45207 fi
45208 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45209 cat >conftest.$ac_ext <<_ACEOF
45210 /* confdefs.h.  */
45211 _ACEOF
45212 cat confdefs.h >>conftest.$ac_ext
45213 cat >>conftest.$ac_ext <<_ACEOF
45214 /* end confdefs.h.  */
45215 #include <$header>
45216
45217 _ACEOF
45218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45219   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45220   ice_cv_have_pclose_decl=yes
45221 fi
45222 rm -f conftest*
45223
45224 if test "$ice_cv_have_pclose_decl" = yes; then
45225         break
45226 fi
45227 done
45228
45229 fi
45230
45231 echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
45232 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6
45233 if test "$ice_cv_have_pclose_decl" = yes; then
45234
45235 cat >>confdefs.h <<_ACEOF
45236 #define HAVE_PCLOSE_DECL 1
45237 _ACEOF
45238
45239 fi
45240 fi
45241
45242
45243 ice_have_perror=no
45244
45245 for ac_func in perror
45246 do
45247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45248 echo "$as_me:$LINENO: checking for $ac_func" >&5
45249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45250 if eval "test \"\${$as_ac_var+set}\" = set"; then
45251   echo $ECHO_N "(cached) $ECHO_C" >&6
45252 else
45253   cat >conftest.$ac_ext <<_ACEOF
45254 /* confdefs.h.  */
45255 _ACEOF
45256 cat confdefs.h >>conftest.$ac_ext
45257 cat >>conftest.$ac_ext <<_ACEOF
45258 /* end confdefs.h.  */
45259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45261 #define $ac_func innocuous_$ac_func
45262
45263 /* System header to define __stub macros and hopefully few prototypes,
45264     which can conflict with char $ac_func (); below.
45265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45266     <limits.h> exists even on freestanding compilers.  */
45267
45268 #ifdef __STDC__
45269 # include <limits.h>
45270 #else
45271 # include <assert.h>
45272 #endif
45273
45274 #undef $ac_func
45275
45276 /* Override any gcc2 internal prototype to avoid an error.  */
45277 #ifdef __cplusplus
45278 extern "C"
45279 {
45280 #endif
45281 /* We use char because int might match the return type of a gcc2
45282    builtin and then its argument prototype would still apply.  */
45283 char $ac_func ();
45284 /* The GNU C library defines this for functions which it implements
45285     to always fail with ENOSYS.  Some functions are actually named
45286     something starting with __ and the normal name is an alias.  */
45287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45288 choke me
45289 #else
45290 char (*f) () = $ac_func;
45291 #endif
45292 #ifdef __cplusplus
45293 }
45294 #endif
45295
45296 int
45297 main ()
45298 {
45299 return f != $ac_func;
45300   ;
45301   return 0;
45302 }
45303 _ACEOF
45304 rm -f conftest.$ac_objext conftest$ac_exeext
45305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45306   (eval $ac_link) 2>conftest.er1
45307   ac_status=$?
45308   grep -v '^ *+' conftest.er1 >conftest.err
45309   rm -f conftest.er1
45310   cat conftest.err >&5
45311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45312   (exit $ac_status); } &&
45313          { ac_try='test -z "$ac_c_werror_flag"
45314                          || test ! -s conftest.err'
45315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45316   (eval $ac_try) 2>&5
45317   ac_status=$?
45318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45319   (exit $ac_status); }; } &&
45320          { ac_try='test -s conftest$ac_exeext'
45321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45322   (eval $ac_try) 2>&5
45323   ac_status=$?
45324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45325   (exit $ac_status); }; }; then
45326   eval "$as_ac_var=yes"
45327 else
45328   echo "$as_me: failed program was:" >&5
45329 sed 's/^/| /' conftest.$ac_ext >&5
45330
45331 eval "$as_ac_var=no"
45332 fi
45333 rm -f conftest.err conftest.$ac_objext \
45334       conftest$ac_exeext conftest.$ac_ext
45335 fi
45336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45338 if test `eval echo '${'$as_ac_var'}'` = yes; then
45339   cat >>confdefs.h <<_ACEOF
45340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45341 _ACEOF
45342  ice_have_perror=yes
45343 fi
45344 done
45345
45346 if test "${ice_have_perror}" = yes; then
45347 echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
45348 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6
45349 if test "${ice_cv_have_perror_decl+set}" = set; then
45350   echo $ECHO_N "(cached) $ECHO_C" >&6
45351 else
45352
45353 ice_cv_have_perror_decl=no
45354 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45355 ice_re_word='(^|[^a-zA-Z0-9_])'
45356 for header in stdio.h; do
45357 # Check for ordinary declaration
45358 cat >conftest.$ac_ext <<_ACEOF
45359 /* confdefs.h.  */
45360 _ACEOF
45361 cat confdefs.h >>conftest.$ac_ext
45362 cat >>conftest.$ac_ext <<_ACEOF
45363 /* end confdefs.h.  */
45364 #include <$header>
45365
45366 _ACEOF
45367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45368   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
45369   ice_cv_have_perror_decl=yes
45370 fi
45371 rm -f conftest*
45372
45373 if test "$ice_cv_have_perror_decl" = yes; then
45374         break
45375 fi
45376 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45377 cat >conftest.$ac_ext <<_ACEOF
45378 /* confdefs.h.  */
45379 _ACEOF
45380 cat confdefs.h >>conftest.$ac_ext
45381 cat >>conftest.$ac_ext <<_ACEOF
45382 /* end confdefs.h.  */
45383 #include <$header>
45384
45385 _ACEOF
45386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45387   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45388   ice_cv_have_perror_decl=yes
45389 fi
45390 rm -f conftest*
45391
45392 if test "$ice_cv_have_perror_decl" = yes; then
45393         break
45394 fi
45395 done
45396
45397 fi
45398
45399 echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
45400 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6
45401 if test "$ice_cv_have_perror_decl" = yes; then
45402
45403 cat >>confdefs.h <<_ACEOF
45404 #define HAVE_PERROR_DECL 1
45405 _ACEOF
45406
45407 fi
45408 fi
45409
45410
45411 ice_have_printf=no
45412
45413 for ac_func in printf
45414 do
45415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45416 echo "$as_me:$LINENO: checking for $ac_func" >&5
45417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45418 if eval "test \"\${$as_ac_var+set}\" = set"; then
45419   echo $ECHO_N "(cached) $ECHO_C" >&6
45420 else
45421   cat >conftest.$ac_ext <<_ACEOF
45422 /* confdefs.h.  */
45423 _ACEOF
45424 cat confdefs.h >>conftest.$ac_ext
45425 cat >>conftest.$ac_ext <<_ACEOF
45426 /* end confdefs.h.  */
45427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45429 #define $ac_func innocuous_$ac_func
45430
45431 /* System header to define __stub macros and hopefully few prototypes,
45432     which can conflict with char $ac_func (); below.
45433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45434     <limits.h> exists even on freestanding compilers.  */
45435
45436 #ifdef __STDC__
45437 # include <limits.h>
45438 #else
45439 # include <assert.h>
45440 #endif
45441
45442 #undef $ac_func
45443
45444 /* Override any gcc2 internal prototype to avoid an error.  */
45445 #ifdef __cplusplus
45446 extern "C"
45447 {
45448 #endif
45449 /* We use char because int might match the return type of a gcc2
45450    builtin and then its argument prototype would still apply.  */
45451 char $ac_func ();
45452 /* The GNU C library defines this for functions which it implements
45453     to always fail with ENOSYS.  Some functions are actually named
45454     something starting with __ and the normal name is an alias.  */
45455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45456 choke me
45457 #else
45458 char (*f) () = $ac_func;
45459 #endif
45460 #ifdef __cplusplus
45461 }
45462 #endif
45463
45464 int
45465 main ()
45466 {
45467 return f != $ac_func;
45468   ;
45469   return 0;
45470 }
45471 _ACEOF
45472 rm -f conftest.$ac_objext conftest$ac_exeext
45473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45474   (eval $ac_link) 2>conftest.er1
45475   ac_status=$?
45476   grep -v '^ *+' conftest.er1 >conftest.err
45477   rm -f conftest.er1
45478   cat conftest.err >&5
45479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45480   (exit $ac_status); } &&
45481          { ac_try='test -z "$ac_c_werror_flag"
45482                          || test ! -s conftest.err'
45483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45484   (eval $ac_try) 2>&5
45485   ac_status=$?
45486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45487   (exit $ac_status); }; } &&
45488          { ac_try='test -s conftest$ac_exeext'
45489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45490   (eval $ac_try) 2>&5
45491   ac_status=$?
45492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45493   (exit $ac_status); }; }; then
45494   eval "$as_ac_var=yes"
45495 else
45496   echo "$as_me: failed program was:" >&5
45497 sed 's/^/| /' conftest.$ac_ext >&5
45498
45499 eval "$as_ac_var=no"
45500 fi
45501 rm -f conftest.err conftest.$ac_objext \
45502       conftest$ac_exeext conftest.$ac_ext
45503 fi
45504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45506 if test `eval echo '${'$as_ac_var'}'` = yes; then
45507   cat >>confdefs.h <<_ACEOF
45508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45509 _ACEOF
45510  ice_have_printf=yes
45511 fi
45512 done
45513
45514 if test "${ice_have_printf}" = yes; then
45515 echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
45516 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6
45517 if test "${ice_cv_have_printf_decl+set}" = set; then
45518   echo $ECHO_N "(cached) $ECHO_C" >&6
45519 else
45520
45521 ice_cv_have_printf_decl=no
45522 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45523 ice_re_word='(^|[^a-zA-Z0-9_])'
45524 for header in stdio.h; do
45525 # Check for ordinary declaration
45526 cat >conftest.$ac_ext <<_ACEOF
45527 /* confdefs.h.  */
45528 _ACEOF
45529 cat confdefs.h >>conftest.$ac_ext
45530 cat >>conftest.$ac_ext <<_ACEOF
45531 /* end confdefs.h.  */
45532 #include <$header>
45533
45534 _ACEOF
45535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45536   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
45537   ice_cv_have_printf_decl=yes
45538 fi
45539 rm -f conftest*
45540
45541 if test "$ice_cv_have_printf_decl" = yes; then
45542         break
45543 fi
45544 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45545 cat >conftest.$ac_ext <<_ACEOF
45546 /* confdefs.h.  */
45547 _ACEOF
45548 cat confdefs.h >>conftest.$ac_ext
45549 cat >>conftest.$ac_ext <<_ACEOF
45550 /* end confdefs.h.  */
45551 #include <$header>
45552
45553 _ACEOF
45554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45555   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45556   ice_cv_have_printf_decl=yes
45557 fi
45558 rm -f conftest*
45559
45560 if test "$ice_cv_have_printf_decl" = yes; then
45561         break
45562 fi
45563 done
45564
45565 fi
45566
45567 echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
45568 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6
45569 if test "$ice_cv_have_printf_decl" = yes; then
45570
45571 cat >>confdefs.h <<_ACEOF
45572 #define HAVE_PRINTF_DECL 1
45573 _ACEOF
45574
45575 fi
45576 fi
45577
45578
45579 for ac_func in putenv
45580 do
45581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45582 echo "$as_me:$LINENO: checking for $ac_func" >&5
45583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45584 if eval "test \"\${$as_ac_var+set}\" = set"; then
45585   echo $ECHO_N "(cached) $ECHO_C" >&6
45586 else
45587   cat >conftest.$ac_ext <<_ACEOF
45588 /* confdefs.h.  */
45589 _ACEOF
45590 cat confdefs.h >>conftest.$ac_ext
45591 cat >>conftest.$ac_ext <<_ACEOF
45592 /* end confdefs.h.  */
45593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45595 #define $ac_func innocuous_$ac_func
45596
45597 /* System header to define __stub macros and hopefully few prototypes,
45598     which can conflict with char $ac_func (); below.
45599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45600     <limits.h> exists even on freestanding compilers.  */
45601
45602 #ifdef __STDC__
45603 # include <limits.h>
45604 #else
45605 # include <assert.h>
45606 #endif
45607
45608 #undef $ac_func
45609
45610 /* Override any gcc2 internal prototype to avoid an error.  */
45611 #ifdef __cplusplus
45612 extern "C"
45613 {
45614 #endif
45615 /* We use char because int might match the return type of a gcc2
45616    builtin and then its argument prototype would still apply.  */
45617 char $ac_func ();
45618 /* The GNU C library defines this for functions which it implements
45619     to always fail with ENOSYS.  Some functions are actually named
45620     something starting with __ and the normal name is an alias.  */
45621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45622 choke me
45623 #else
45624 char (*f) () = $ac_func;
45625 #endif
45626 #ifdef __cplusplus
45627 }
45628 #endif
45629
45630 int
45631 main ()
45632 {
45633 return f != $ac_func;
45634   ;
45635   return 0;
45636 }
45637 _ACEOF
45638 rm -f conftest.$ac_objext conftest$ac_exeext
45639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45640   (eval $ac_link) 2>conftest.er1
45641   ac_status=$?
45642   grep -v '^ *+' conftest.er1 >conftest.err
45643   rm -f conftest.er1
45644   cat conftest.err >&5
45645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45646   (exit $ac_status); } &&
45647          { ac_try='test -z "$ac_c_werror_flag"
45648                          || test ! -s conftest.err'
45649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45650   (eval $ac_try) 2>&5
45651   ac_status=$?
45652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45653   (exit $ac_status); }; } &&
45654          { ac_try='test -s conftest$ac_exeext'
45655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45656   (eval $ac_try) 2>&5
45657   ac_status=$?
45658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45659   (exit $ac_status); }; }; then
45660   eval "$as_ac_var=yes"
45661 else
45662   echo "$as_me: failed program was:" >&5
45663 sed 's/^/| /' conftest.$ac_ext >&5
45664
45665 eval "$as_ac_var=no"
45666 fi
45667 rm -f conftest.err conftest.$ac_objext \
45668       conftest$ac_exeext conftest.$ac_ext
45669 fi
45670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45672 if test `eval echo '${'$as_ac_var'}'` = yes; then
45673   cat >>confdefs.h <<_ACEOF
45674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45675 _ACEOF
45676
45677 fi
45678 done
45679
45680
45681 ice_have_puts=no
45682
45683 for ac_func in puts
45684 do
45685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45686 echo "$as_me:$LINENO: checking for $ac_func" >&5
45687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45688 if eval "test \"\${$as_ac_var+set}\" = set"; then
45689   echo $ECHO_N "(cached) $ECHO_C" >&6
45690 else
45691   cat >conftest.$ac_ext <<_ACEOF
45692 /* confdefs.h.  */
45693 _ACEOF
45694 cat confdefs.h >>conftest.$ac_ext
45695 cat >>conftest.$ac_ext <<_ACEOF
45696 /* end confdefs.h.  */
45697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45698    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45699 #define $ac_func innocuous_$ac_func
45700
45701 /* System header to define __stub macros and hopefully few prototypes,
45702     which can conflict with char $ac_func (); below.
45703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45704     <limits.h> exists even on freestanding compilers.  */
45705
45706 #ifdef __STDC__
45707 # include <limits.h>
45708 #else
45709 # include <assert.h>
45710 #endif
45711
45712 #undef $ac_func
45713
45714 /* Override any gcc2 internal prototype to avoid an error.  */
45715 #ifdef __cplusplus
45716 extern "C"
45717 {
45718 #endif
45719 /* We use char because int might match the return type of a gcc2
45720    builtin and then its argument prototype would still apply.  */
45721 char $ac_func ();
45722 /* The GNU C library defines this for functions which it implements
45723     to always fail with ENOSYS.  Some functions are actually named
45724     something starting with __ and the normal name is an alias.  */
45725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45726 choke me
45727 #else
45728 char (*f) () = $ac_func;
45729 #endif
45730 #ifdef __cplusplus
45731 }
45732 #endif
45733
45734 int
45735 main ()
45736 {
45737 return f != $ac_func;
45738   ;
45739   return 0;
45740 }
45741 _ACEOF
45742 rm -f conftest.$ac_objext conftest$ac_exeext
45743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45744   (eval $ac_link) 2>conftest.er1
45745   ac_status=$?
45746   grep -v '^ *+' conftest.er1 >conftest.err
45747   rm -f conftest.er1
45748   cat conftest.err >&5
45749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45750   (exit $ac_status); } &&
45751          { ac_try='test -z "$ac_c_werror_flag"
45752                          || test ! -s conftest.err'
45753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45754   (eval $ac_try) 2>&5
45755   ac_status=$?
45756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45757   (exit $ac_status); }; } &&
45758          { ac_try='test -s conftest$ac_exeext'
45759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45760   (eval $ac_try) 2>&5
45761   ac_status=$?
45762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45763   (exit $ac_status); }; }; then
45764   eval "$as_ac_var=yes"
45765 else
45766   echo "$as_me: failed program was:" >&5
45767 sed 's/^/| /' conftest.$ac_ext >&5
45768
45769 eval "$as_ac_var=no"
45770 fi
45771 rm -f conftest.err conftest.$ac_objext \
45772       conftest$ac_exeext conftest.$ac_ext
45773 fi
45774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45776 if test `eval echo '${'$as_ac_var'}'` = yes; then
45777   cat >>confdefs.h <<_ACEOF
45778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45779 _ACEOF
45780  ice_have_puts=yes
45781 fi
45782 done
45783
45784 if test "${ice_have_puts}" = yes; then
45785 echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
45786 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6
45787 if test "${ice_cv_have_puts_decl+set}" = set; then
45788   echo $ECHO_N "(cached) $ECHO_C" >&6
45789 else
45790
45791 ice_cv_have_puts_decl=no
45792 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45793 ice_re_word='(^|[^a-zA-Z0-9_])'
45794 for header in stdio.h; do
45795 # Check for ordinary declaration
45796 cat >conftest.$ac_ext <<_ACEOF
45797 /* confdefs.h.  */
45798 _ACEOF
45799 cat confdefs.h >>conftest.$ac_ext
45800 cat >>conftest.$ac_ext <<_ACEOF
45801 /* end confdefs.h.  */
45802 #include <$header>
45803
45804 _ACEOF
45805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45806   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
45807   ice_cv_have_puts_decl=yes
45808 fi
45809 rm -f conftest*
45810
45811 if test "$ice_cv_have_puts_decl" = yes; then
45812         break
45813 fi
45814 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45815 cat >conftest.$ac_ext <<_ACEOF
45816 /* confdefs.h.  */
45817 _ACEOF
45818 cat confdefs.h >>conftest.$ac_ext
45819 cat >>conftest.$ac_ext <<_ACEOF
45820 /* end confdefs.h.  */
45821 #include <$header>
45822
45823 _ACEOF
45824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45825   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45826   ice_cv_have_puts_decl=yes
45827 fi
45828 rm -f conftest*
45829
45830 if test "$ice_cv_have_puts_decl" = yes; then
45831         break
45832 fi
45833 done
45834
45835 fi
45836
45837 echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
45838 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6
45839 if test "$ice_cv_have_puts_decl" = yes; then
45840
45841 cat >>confdefs.h <<_ACEOF
45842 #define HAVE_PUTS_DECL 1
45843 _ACEOF
45844
45845 fi
45846 fi
45847
45848
45849 ice_have_realloc=no
45850
45851 for ac_func in realloc
45852 do
45853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45854 echo "$as_me:$LINENO: checking for $ac_func" >&5
45855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45856 if eval "test \"\${$as_ac_var+set}\" = set"; then
45857   echo $ECHO_N "(cached) $ECHO_C" >&6
45858 else
45859   cat >conftest.$ac_ext <<_ACEOF
45860 /* confdefs.h.  */
45861 _ACEOF
45862 cat confdefs.h >>conftest.$ac_ext
45863 cat >>conftest.$ac_ext <<_ACEOF
45864 /* end confdefs.h.  */
45865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45867 #define $ac_func innocuous_$ac_func
45868
45869 /* System header to define __stub macros and hopefully few prototypes,
45870     which can conflict with char $ac_func (); below.
45871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45872     <limits.h> exists even on freestanding compilers.  */
45873
45874 #ifdef __STDC__
45875 # include <limits.h>
45876 #else
45877 # include <assert.h>
45878 #endif
45879
45880 #undef $ac_func
45881
45882 /* Override any gcc2 internal prototype to avoid an error.  */
45883 #ifdef __cplusplus
45884 extern "C"
45885 {
45886 #endif
45887 /* We use char because int might match the return type of a gcc2
45888    builtin and then its argument prototype would still apply.  */
45889 char $ac_func ();
45890 /* The GNU C library defines this for functions which it implements
45891     to always fail with ENOSYS.  Some functions are actually named
45892     something starting with __ and the normal name is an alias.  */
45893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45894 choke me
45895 #else
45896 char (*f) () = $ac_func;
45897 #endif
45898 #ifdef __cplusplus
45899 }
45900 #endif
45901
45902 int
45903 main ()
45904 {
45905 return f != $ac_func;
45906   ;
45907   return 0;
45908 }
45909 _ACEOF
45910 rm -f conftest.$ac_objext conftest$ac_exeext
45911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45912   (eval $ac_link) 2>conftest.er1
45913   ac_status=$?
45914   grep -v '^ *+' conftest.er1 >conftest.err
45915   rm -f conftest.er1
45916   cat conftest.err >&5
45917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45918   (exit $ac_status); } &&
45919          { ac_try='test -z "$ac_c_werror_flag"
45920                          || test ! -s conftest.err'
45921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45922   (eval $ac_try) 2>&5
45923   ac_status=$?
45924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45925   (exit $ac_status); }; } &&
45926          { ac_try='test -s conftest$ac_exeext'
45927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45928   (eval $ac_try) 2>&5
45929   ac_status=$?
45930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45931   (exit $ac_status); }; }; then
45932   eval "$as_ac_var=yes"
45933 else
45934   echo "$as_me: failed program was:" >&5
45935 sed 's/^/| /' conftest.$ac_ext >&5
45936
45937 eval "$as_ac_var=no"
45938 fi
45939 rm -f conftest.err conftest.$ac_objext \
45940       conftest$ac_exeext conftest.$ac_ext
45941 fi
45942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45944 if test `eval echo '${'$as_ac_var'}'` = yes; then
45945   cat >>confdefs.h <<_ACEOF
45946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45947 _ACEOF
45948  ice_have_realloc=yes
45949 fi
45950 done
45951
45952 if test "${ice_have_realloc}" = yes; then
45953 echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
45954 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6
45955 if test "${ice_cv_have_realloc_decl+set}" = set; then
45956   echo $ECHO_N "(cached) $ECHO_C" >&6
45957 else
45958
45959 ice_cv_have_realloc_decl=no
45960 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45961 ice_re_word='(^|[^a-zA-Z0-9_])'
45962 for header in stdlib.h; do
45963 # Check for ordinary declaration
45964 cat >conftest.$ac_ext <<_ACEOF
45965 /* confdefs.h.  */
45966 _ACEOF
45967 cat confdefs.h >>conftest.$ac_ext
45968 cat >>conftest.$ac_ext <<_ACEOF
45969 /* end confdefs.h.  */
45970 #include <$header>
45971
45972 _ACEOF
45973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45974   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
45975   ice_cv_have_realloc_decl=yes
45976 fi
45977 rm -f conftest*
45978
45979 if test "$ice_cv_have_realloc_decl" = yes; then
45980         break
45981 fi
45982 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45983 cat >conftest.$ac_ext <<_ACEOF
45984 /* confdefs.h.  */
45985 _ACEOF
45986 cat confdefs.h >>conftest.$ac_ext
45987 cat >>conftest.$ac_ext <<_ACEOF
45988 /* end confdefs.h.  */
45989 #include <$header>
45990
45991 _ACEOF
45992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45993   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45994   ice_cv_have_realloc_decl=yes
45995 fi
45996 rm -f conftest*
45997
45998 if test "$ice_cv_have_realloc_decl" = yes; then
45999         break
46000 fi
46001 done
46002
46003 fi
46004
46005 echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
46006 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6
46007 if test "$ice_cv_have_realloc_decl" = yes; then
46008
46009 cat >>confdefs.h <<_ACEOF
46010 #define HAVE_REALLOC_DECL 1
46011 _ACEOF
46012
46013 fi
46014 fi
46015
46016
46017 ice_have_recvfrom=no
46018
46019 for ac_func in recvfrom
46020 do
46021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46022 echo "$as_me:$LINENO: checking for $ac_func" >&5
46023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46024 if eval "test \"\${$as_ac_var+set}\" = set"; then
46025   echo $ECHO_N "(cached) $ECHO_C" >&6
46026 else
46027   cat >conftest.$ac_ext <<_ACEOF
46028 /* confdefs.h.  */
46029 _ACEOF
46030 cat confdefs.h >>conftest.$ac_ext
46031 cat >>conftest.$ac_ext <<_ACEOF
46032 /* end confdefs.h.  */
46033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46035 #define $ac_func innocuous_$ac_func
46036
46037 /* System header to define __stub macros and hopefully few prototypes,
46038     which can conflict with char $ac_func (); below.
46039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46040     <limits.h> exists even on freestanding compilers.  */
46041
46042 #ifdef __STDC__
46043 # include <limits.h>
46044 #else
46045 # include <assert.h>
46046 #endif
46047
46048 #undef $ac_func
46049
46050 /* Override any gcc2 internal prototype to avoid an error.  */
46051 #ifdef __cplusplus
46052 extern "C"
46053 {
46054 #endif
46055 /* We use char because int might match the return type of a gcc2
46056    builtin and then its argument prototype would still apply.  */
46057 char $ac_func ();
46058 /* The GNU C library defines this for functions which it implements
46059     to always fail with ENOSYS.  Some functions are actually named
46060     something starting with __ and the normal name is an alias.  */
46061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46062 choke me
46063 #else
46064 char (*f) () = $ac_func;
46065 #endif
46066 #ifdef __cplusplus
46067 }
46068 #endif
46069
46070 int
46071 main ()
46072 {
46073 return f != $ac_func;
46074   ;
46075   return 0;
46076 }
46077 _ACEOF
46078 rm -f conftest.$ac_objext conftest$ac_exeext
46079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46080   (eval $ac_link) 2>conftest.er1
46081   ac_status=$?
46082   grep -v '^ *+' conftest.er1 >conftest.err
46083   rm -f conftest.er1
46084   cat conftest.err >&5
46085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46086   (exit $ac_status); } &&
46087          { ac_try='test -z "$ac_c_werror_flag"
46088                          || test ! -s conftest.err'
46089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46090   (eval $ac_try) 2>&5
46091   ac_status=$?
46092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46093   (exit $ac_status); }; } &&
46094          { ac_try='test -s conftest$ac_exeext'
46095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46096   (eval $ac_try) 2>&5
46097   ac_status=$?
46098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46099   (exit $ac_status); }; }; then
46100   eval "$as_ac_var=yes"
46101 else
46102   echo "$as_me: failed program was:" >&5
46103 sed 's/^/| /' conftest.$ac_ext >&5
46104
46105 eval "$as_ac_var=no"
46106 fi
46107 rm -f conftest.err conftest.$ac_objext \
46108       conftest$ac_exeext conftest.$ac_ext
46109 fi
46110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46112 if test `eval echo '${'$as_ac_var'}'` = yes; then
46113   cat >>confdefs.h <<_ACEOF
46114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46115 _ACEOF
46116  ice_have_recvfrom=yes
46117 fi
46118 done
46119
46120 if test "${ice_have_recvfrom}" = yes; then
46121 echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
46122 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
46123 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
46124   echo $ECHO_N "(cached) $ECHO_C" >&6
46125 else
46126
46127 ice_cv_have_recvfrom_decl=no
46128 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46129 ice_re_word='(^|[^a-zA-Z0-9_])'
46130 for header in sys/types.h sys/socket.h; do
46131 # Check for ordinary declaration
46132 cat >conftest.$ac_ext <<_ACEOF
46133 /* confdefs.h.  */
46134 _ACEOF
46135 cat confdefs.h >>conftest.$ac_ext
46136 cat >>conftest.$ac_ext <<_ACEOF
46137 /* end confdefs.h.  */
46138 #include <$header>
46139
46140 _ACEOF
46141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46142   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
46143   ice_cv_have_recvfrom_decl=yes
46144 fi
46145 rm -f conftest*
46146
46147 if test "$ice_cv_have_recvfrom_decl" = yes; then
46148         break
46149 fi
46150 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46151 cat >conftest.$ac_ext <<_ACEOF
46152 /* confdefs.h.  */
46153 _ACEOF
46154 cat confdefs.h >>conftest.$ac_ext
46155 cat >>conftest.$ac_ext <<_ACEOF
46156 /* end confdefs.h.  */
46157 #include <$header>
46158
46159 _ACEOF
46160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46161   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46162   ice_cv_have_recvfrom_decl=yes
46163 fi
46164 rm -f conftest*
46165
46166 if test "$ice_cv_have_recvfrom_decl" = yes; then
46167         break
46168 fi
46169 done
46170
46171 fi
46172
46173 echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
46174 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6
46175 if test "$ice_cv_have_recvfrom_decl" = yes; then
46176
46177 cat >>confdefs.h <<_ACEOF
46178 #define HAVE_RECVFROM_DECL 1
46179 _ACEOF
46180
46181 fi
46182 fi
46183
46184
46185 ice_have_remove=no
46186
46187 for ac_func in remove
46188 do
46189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46190 echo "$as_me:$LINENO: checking for $ac_func" >&5
46191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46192 if eval "test \"\${$as_ac_var+set}\" = set"; then
46193   echo $ECHO_N "(cached) $ECHO_C" >&6
46194 else
46195   cat >conftest.$ac_ext <<_ACEOF
46196 /* confdefs.h.  */
46197 _ACEOF
46198 cat confdefs.h >>conftest.$ac_ext
46199 cat >>conftest.$ac_ext <<_ACEOF
46200 /* end confdefs.h.  */
46201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46203 #define $ac_func innocuous_$ac_func
46204
46205 /* System header to define __stub macros and hopefully few prototypes,
46206     which can conflict with char $ac_func (); below.
46207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46208     <limits.h> exists even on freestanding compilers.  */
46209
46210 #ifdef __STDC__
46211 # include <limits.h>
46212 #else
46213 # include <assert.h>
46214 #endif
46215
46216 #undef $ac_func
46217
46218 /* Override any gcc2 internal prototype to avoid an error.  */
46219 #ifdef __cplusplus
46220 extern "C"
46221 {
46222 #endif
46223 /* We use char because int might match the return type of a gcc2
46224    builtin and then its argument prototype would still apply.  */
46225 char $ac_func ();
46226 /* The GNU C library defines this for functions which it implements
46227     to always fail with ENOSYS.  Some functions are actually named
46228     something starting with __ and the normal name is an alias.  */
46229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46230 choke me
46231 #else
46232 char (*f) () = $ac_func;
46233 #endif
46234 #ifdef __cplusplus
46235 }
46236 #endif
46237
46238 int
46239 main ()
46240 {
46241 return f != $ac_func;
46242   ;
46243   return 0;
46244 }
46245 _ACEOF
46246 rm -f conftest.$ac_objext conftest$ac_exeext
46247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46248   (eval $ac_link) 2>conftest.er1
46249   ac_status=$?
46250   grep -v '^ *+' conftest.er1 >conftest.err
46251   rm -f conftest.er1
46252   cat conftest.err >&5
46253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46254   (exit $ac_status); } &&
46255          { ac_try='test -z "$ac_c_werror_flag"
46256                          || test ! -s conftest.err'
46257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46258   (eval $ac_try) 2>&5
46259   ac_status=$?
46260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46261   (exit $ac_status); }; } &&
46262          { ac_try='test -s conftest$ac_exeext'
46263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46264   (eval $ac_try) 2>&5
46265   ac_status=$?
46266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46267   (exit $ac_status); }; }; then
46268   eval "$as_ac_var=yes"
46269 else
46270   echo "$as_me: failed program was:" >&5
46271 sed 's/^/| /' conftest.$ac_ext >&5
46272
46273 eval "$as_ac_var=no"
46274 fi
46275 rm -f conftest.err conftest.$ac_objext \
46276       conftest$ac_exeext conftest.$ac_ext
46277 fi
46278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46280 if test `eval echo '${'$as_ac_var'}'` = yes; then
46281   cat >>confdefs.h <<_ACEOF
46282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46283 _ACEOF
46284  ice_have_remove=yes
46285 fi
46286 done
46287
46288 if test "${ice_have_remove}" = yes; then
46289 echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
46290 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6
46291 if test "${ice_cv_have_remove_decl+set}" = set; then
46292   echo $ECHO_N "(cached) $ECHO_C" >&6
46293 else
46294
46295 ice_cv_have_remove_decl=no
46296 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46297 ice_re_word='(^|[^a-zA-Z0-9_])'
46298 for header in stdio.h; do
46299 # Check for ordinary declaration
46300 cat >conftest.$ac_ext <<_ACEOF
46301 /* confdefs.h.  */
46302 _ACEOF
46303 cat confdefs.h >>conftest.$ac_ext
46304 cat >>conftest.$ac_ext <<_ACEOF
46305 /* end confdefs.h.  */
46306 #include <$header>
46307
46308 _ACEOF
46309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46310   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
46311   ice_cv_have_remove_decl=yes
46312 fi
46313 rm -f conftest*
46314
46315 if test "$ice_cv_have_remove_decl" = yes; then
46316         break
46317 fi
46318 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46319 cat >conftest.$ac_ext <<_ACEOF
46320 /* confdefs.h.  */
46321 _ACEOF
46322 cat confdefs.h >>conftest.$ac_ext
46323 cat >>conftest.$ac_ext <<_ACEOF
46324 /* end confdefs.h.  */
46325 #include <$header>
46326
46327 _ACEOF
46328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46329   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46330   ice_cv_have_remove_decl=yes
46331 fi
46332 rm -f conftest*
46333
46334 if test "$ice_cv_have_remove_decl" = yes; then
46335         break
46336 fi
46337 done
46338
46339 fi
46340
46341 echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
46342 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6
46343 if test "$ice_cv_have_remove_decl" = yes; then
46344
46345 cat >>confdefs.h <<_ACEOF
46346 #define HAVE_REMOVE_DECL 1
46347 _ACEOF
46348
46349 fi
46350 fi
46351
46352
46353 ice_have_rename=no
46354
46355 for ac_func in rename
46356 do
46357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46358 echo "$as_me:$LINENO: checking for $ac_func" >&5
46359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46360 if eval "test \"\${$as_ac_var+set}\" = set"; then
46361   echo $ECHO_N "(cached) $ECHO_C" >&6
46362 else
46363   cat >conftest.$ac_ext <<_ACEOF
46364 /* confdefs.h.  */
46365 _ACEOF
46366 cat confdefs.h >>conftest.$ac_ext
46367 cat >>conftest.$ac_ext <<_ACEOF
46368 /* end confdefs.h.  */
46369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46371 #define $ac_func innocuous_$ac_func
46372
46373 /* System header to define __stub macros and hopefully few prototypes,
46374     which can conflict with char $ac_func (); below.
46375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46376     <limits.h> exists even on freestanding compilers.  */
46377
46378 #ifdef __STDC__
46379 # include <limits.h>
46380 #else
46381 # include <assert.h>
46382 #endif
46383
46384 #undef $ac_func
46385
46386 /* Override any gcc2 internal prototype to avoid an error.  */
46387 #ifdef __cplusplus
46388 extern "C"
46389 {
46390 #endif
46391 /* We use char because int might match the return type of a gcc2
46392    builtin and then its argument prototype would still apply.  */
46393 char $ac_func ();
46394 /* The GNU C library defines this for functions which it implements
46395     to always fail with ENOSYS.  Some functions are actually named
46396     something starting with __ and the normal name is an alias.  */
46397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46398 choke me
46399 #else
46400 char (*f) () = $ac_func;
46401 #endif
46402 #ifdef __cplusplus
46403 }
46404 #endif
46405
46406 int
46407 main ()
46408 {
46409 return f != $ac_func;
46410   ;
46411   return 0;
46412 }
46413 _ACEOF
46414 rm -f conftest.$ac_objext conftest$ac_exeext
46415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46416   (eval $ac_link) 2>conftest.er1
46417   ac_status=$?
46418   grep -v '^ *+' conftest.er1 >conftest.err
46419   rm -f conftest.er1
46420   cat conftest.err >&5
46421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46422   (exit $ac_status); } &&
46423          { ac_try='test -z "$ac_c_werror_flag"
46424                          || test ! -s conftest.err'
46425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46426   (eval $ac_try) 2>&5
46427   ac_status=$?
46428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46429   (exit $ac_status); }; } &&
46430          { ac_try='test -s conftest$ac_exeext'
46431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46432   (eval $ac_try) 2>&5
46433   ac_status=$?
46434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46435   (exit $ac_status); }; }; then
46436   eval "$as_ac_var=yes"
46437 else
46438   echo "$as_me: failed program was:" >&5
46439 sed 's/^/| /' conftest.$ac_ext >&5
46440
46441 eval "$as_ac_var=no"
46442 fi
46443 rm -f conftest.err conftest.$ac_objext \
46444       conftest$ac_exeext conftest.$ac_ext
46445 fi
46446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46448 if test `eval echo '${'$as_ac_var'}'` = yes; then
46449   cat >>confdefs.h <<_ACEOF
46450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46451 _ACEOF
46452  ice_have_rename=yes
46453 fi
46454 done
46455
46456 if test "${ice_have_rename}" = yes; then
46457 echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
46458 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6
46459 if test "${ice_cv_have_rename_decl+set}" = set; then
46460   echo $ECHO_N "(cached) $ECHO_C" >&6
46461 else
46462
46463 ice_cv_have_rename_decl=no
46464 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46465 ice_re_word='(^|[^a-zA-Z0-9_])'
46466 for header in stdio.h; do
46467 # Check for ordinary declaration
46468 cat >conftest.$ac_ext <<_ACEOF
46469 /* confdefs.h.  */
46470 _ACEOF
46471 cat confdefs.h >>conftest.$ac_ext
46472 cat >>conftest.$ac_ext <<_ACEOF
46473 /* end confdefs.h.  */
46474 #include <$header>
46475
46476 _ACEOF
46477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46478   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
46479   ice_cv_have_rename_decl=yes
46480 fi
46481 rm -f conftest*
46482
46483 if test "$ice_cv_have_rename_decl" = yes; then
46484         break
46485 fi
46486 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46487 cat >conftest.$ac_ext <<_ACEOF
46488 /* confdefs.h.  */
46489 _ACEOF
46490 cat confdefs.h >>conftest.$ac_ext
46491 cat >>conftest.$ac_ext <<_ACEOF
46492 /* end confdefs.h.  */
46493 #include <$header>
46494
46495 _ACEOF
46496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46497   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46498   ice_cv_have_rename_decl=yes
46499 fi
46500 rm -f conftest*
46501
46502 if test "$ice_cv_have_rename_decl" = yes; then
46503         break
46504 fi
46505 done
46506
46507 fi
46508
46509 echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
46510 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6
46511 if test "$ice_cv_have_rename_decl" = yes; then
46512
46513 cat >>confdefs.h <<_ACEOF
46514 #define HAVE_RENAME_DECL 1
46515 _ACEOF
46516
46517 fi
46518 fi
46519
46520
46521 ice_have_rewind=no
46522
46523 for ac_func in rewind
46524 do
46525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46526 echo "$as_me:$LINENO: checking for $ac_func" >&5
46527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46528 if eval "test \"\${$as_ac_var+set}\" = set"; then
46529   echo $ECHO_N "(cached) $ECHO_C" >&6
46530 else
46531   cat >conftest.$ac_ext <<_ACEOF
46532 /* confdefs.h.  */
46533 _ACEOF
46534 cat confdefs.h >>conftest.$ac_ext
46535 cat >>conftest.$ac_ext <<_ACEOF
46536 /* end confdefs.h.  */
46537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46539 #define $ac_func innocuous_$ac_func
46540
46541 /* System header to define __stub macros and hopefully few prototypes,
46542     which can conflict with char $ac_func (); below.
46543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46544     <limits.h> exists even on freestanding compilers.  */
46545
46546 #ifdef __STDC__
46547 # include <limits.h>
46548 #else
46549 # include <assert.h>
46550 #endif
46551
46552 #undef $ac_func
46553
46554 /* Override any gcc2 internal prototype to avoid an error.  */
46555 #ifdef __cplusplus
46556 extern "C"
46557 {
46558 #endif
46559 /* We use char because int might match the return type of a gcc2
46560    builtin and then its argument prototype would still apply.  */
46561 char $ac_func ();
46562 /* The GNU C library defines this for functions which it implements
46563     to always fail with ENOSYS.  Some functions are actually named
46564     something starting with __ and the normal name is an alias.  */
46565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46566 choke me
46567 #else
46568 char (*f) () = $ac_func;
46569 #endif
46570 #ifdef __cplusplus
46571 }
46572 #endif
46573
46574 int
46575 main ()
46576 {
46577 return f != $ac_func;
46578   ;
46579   return 0;
46580 }
46581 _ACEOF
46582 rm -f conftest.$ac_objext conftest$ac_exeext
46583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46584   (eval $ac_link) 2>conftest.er1
46585   ac_status=$?
46586   grep -v '^ *+' conftest.er1 >conftest.err
46587   rm -f conftest.er1
46588   cat conftest.err >&5
46589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46590   (exit $ac_status); } &&
46591          { ac_try='test -z "$ac_c_werror_flag"
46592                          || test ! -s conftest.err'
46593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46594   (eval $ac_try) 2>&5
46595   ac_status=$?
46596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46597   (exit $ac_status); }; } &&
46598          { ac_try='test -s conftest$ac_exeext'
46599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46600   (eval $ac_try) 2>&5
46601   ac_status=$?
46602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46603   (exit $ac_status); }; }; then
46604   eval "$as_ac_var=yes"
46605 else
46606   echo "$as_me: failed program was:" >&5
46607 sed 's/^/| /' conftest.$ac_ext >&5
46608
46609 eval "$as_ac_var=no"
46610 fi
46611 rm -f conftest.err conftest.$ac_objext \
46612       conftest$ac_exeext conftest.$ac_ext
46613 fi
46614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46616 if test `eval echo '${'$as_ac_var'}'` = yes; then
46617   cat >>confdefs.h <<_ACEOF
46618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46619 _ACEOF
46620  ice_have_rewind=yes
46621 fi
46622 done
46623
46624 if test "${ice_have_rewind}" = yes; then
46625 echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
46626 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6
46627 if test "${ice_cv_have_rewind_decl+set}" = set; then
46628   echo $ECHO_N "(cached) $ECHO_C" >&6
46629 else
46630
46631 ice_cv_have_rewind_decl=no
46632 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46633 ice_re_word='(^|[^a-zA-Z0-9_])'
46634 for header in stdio.h; do
46635 # Check for ordinary declaration
46636 cat >conftest.$ac_ext <<_ACEOF
46637 /* confdefs.h.  */
46638 _ACEOF
46639 cat confdefs.h >>conftest.$ac_ext
46640 cat >>conftest.$ac_ext <<_ACEOF
46641 /* end confdefs.h.  */
46642 #include <$header>
46643
46644 _ACEOF
46645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46646   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
46647   ice_cv_have_rewind_decl=yes
46648 fi
46649 rm -f conftest*
46650
46651 if test "$ice_cv_have_rewind_decl" = yes; then
46652         break
46653 fi
46654 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46655 cat >conftest.$ac_ext <<_ACEOF
46656 /* confdefs.h.  */
46657 _ACEOF
46658 cat confdefs.h >>conftest.$ac_ext
46659 cat >>conftest.$ac_ext <<_ACEOF
46660 /* end confdefs.h.  */
46661 #include <$header>
46662
46663 _ACEOF
46664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46665   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46666   ice_cv_have_rewind_decl=yes
46667 fi
46668 rm -f conftest*
46669
46670 if test "$ice_cv_have_rewind_decl" = yes; then
46671         break
46672 fi
46673 done
46674
46675 fi
46676
46677 echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
46678 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6
46679 if test "$ice_cv_have_rewind_decl" = yes; then
46680
46681 cat >>confdefs.h <<_ACEOF
46682 #define HAVE_REWIND_DECL 1
46683 _ACEOF
46684
46685 fi
46686 fi
46687
46688
46689 for ac_func in rmdir
46690 do
46691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46692 echo "$as_me:$LINENO: checking for $ac_func" >&5
46693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46694 if eval "test \"\${$as_ac_var+set}\" = set"; then
46695   echo $ECHO_N "(cached) $ECHO_C" >&6
46696 else
46697   cat >conftest.$ac_ext <<_ACEOF
46698 /* confdefs.h.  */
46699 _ACEOF
46700 cat confdefs.h >>conftest.$ac_ext
46701 cat >>conftest.$ac_ext <<_ACEOF
46702 /* end confdefs.h.  */
46703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46705 #define $ac_func innocuous_$ac_func
46706
46707 /* System header to define __stub macros and hopefully few prototypes,
46708     which can conflict with char $ac_func (); below.
46709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46710     <limits.h> exists even on freestanding compilers.  */
46711
46712 #ifdef __STDC__
46713 # include <limits.h>
46714 #else
46715 # include <assert.h>
46716 #endif
46717
46718 #undef $ac_func
46719
46720 /* Override any gcc2 internal prototype to avoid an error.  */
46721 #ifdef __cplusplus
46722 extern "C"
46723 {
46724 #endif
46725 /* We use char because int might match the return type of a gcc2
46726    builtin and then its argument prototype would still apply.  */
46727 char $ac_func ();
46728 /* The GNU C library defines this for functions which it implements
46729     to always fail with ENOSYS.  Some functions are actually named
46730     something starting with __ and the normal name is an alias.  */
46731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46732 choke me
46733 #else
46734 char (*f) () = $ac_func;
46735 #endif
46736 #ifdef __cplusplus
46737 }
46738 #endif
46739
46740 int
46741 main ()
46742 {
46743 return f != $ac_func;
46744   ;
46745   return 0;
46746 }
46747 _ACEOF
46748 rm -f conftest.$ac_objext conftest$ac_exeext
46749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46750   (eval $ac_link) 2>conftest.er1
46751   ac_status=$?
46752   grep -v '^ *+' conftest.er1 >conftest.err
46753   rm -f conftest.er1
46754   cat conftest.err >&5
46755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46756   (exit $ac_status); } &&
46757          { ac_try='test -z "$ac_c_werror_flag"
46758                          || test ! -s conftest.err'
46759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46760   (eval $ac_try) 2>&5
46761   ac_status=$?
46762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46763   (exit $ac_status); }; } &&
46764          { ac_try='test -s conftest$ac_exeext'
46765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46766   (eval $ac_try) 2>&5
46767   ac_status=$?
46768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46769   (exit $ac_status); }; }; then
46770   eval "$as_ac_var=yes"
46771 else
46772   echo "$as_me: failed program was:" >&5
46773 sed 's/^/| /' conftest.$ac_ext >&5
46774
46775 eval "$as_ac_var=no"
46776 fi
46777 rm -f conftest.err conftest.$ac_objext \
46778       conftest$ac_exeext conftest.$ac_ext
46779 fi
46780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46782 if test `eval echo '${'$as_ac_var'}'` = yes; then
46783   cat >>confdefs.h <<_ACEOF
46784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46785 _ACEOF
46786
46787 fi
46788 done
46789
46790
46791 ice_have_ruserok=no
46792
46793 for ac_func in ruserok
46794 do
46795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46796 echo "$as_me:$LINENO: checking for $ac_func" >&5
46797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46798 if eval "test \"\${$as_ac_var+set}\" = set"; then
46799   echo $ECHO_N "(cached) $ECHO_C" >&6
46800 else
46801   cat >conftest.$ac_ext <<_ACEOF
46802 /* confdefs.h.  */
46803 _ACEOF
46804 cat confdefs.h >>conftest.$ac_ext
46805 cat >>conftest.$ac_ext <<_ACEOF
46806 /* end confdefs.h.  */
46807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46809 #define $ac_func innocuous_$ac_func
46810
46811 /* System header to define __stub macros and hopefully few prototypes,
46812     which can conflict with char $ac_func (); below.
46813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46814     <limits.h> exists even on freestanding compilers.  */
46815
46816 #ifdef __STDC__
46817 # include <limits.h>
46818 #else
46819 # include <assert.h>
46820 #endif
46821
46822 #undef $ac_func
46823
46824 /* Override any gcc2 internal prototype to avoid an error.  */
46825 #ifdef __cplusplus
46826 extern "C"
46827 {
46828 #endif
46829 /* We use char because int might match the return type of a gcc2
46830    builtin and then its argument prototype would still apply.  */
46831 char $ac_func ();
46832 /* The GNU C library defines this for functions which it implements
46833     to always fail with ENOSYS.  Some functions are actually named
46834     something starting with __ and the normal name is an alias.  */
46835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46836 choke me
46837 #else
46838 char (*f) () = $ac_func;
46839 #endif
46840 #ifdef __cplusplus
46841 }
46842 #endif
46843
46844 int
46845 main ()
46846 {
46847 return f != $ac_func;
46848   ;
46849   return 0;
46850 }
46851 _ACEOF
46852 rm -f conftest.$ac_objext conftest$ac_exeext
46853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46854   (eval $ac_link) 2>conftest.er1
46855   ac_status=$?
46856   grep -v '^ *+' conftest.er1 >conftest.err
46857   rm -f conftest.er1
46858   cat conftest.err >&5
46859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46860   (exit $ac_status); } &&
46861          { ac_try='test -z "$ac_c_werror_flag"
46862                          || test ! -s conftest.err'
46863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46864   (eval $ac_try) 2>&5
46865   ac_status=$?
46866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46867   (exit $ac_status); }; } &&
46868          { ac_try='test -s conftest$ac_exeext'
46869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46870   (eval $ac_try) 2>&5
46871   ac_status=$?
46872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46873   (exit $ac_status); }; }; then
46874   eval "$as_ac_var=yes"
46875 else
46876   echo "$as_me: failed program was:" >&5
46877 sed 's/^/| /' conftest.$ac_ext >&5
46878
46879 eval "$as_ac_var=no"
46880 fi
46881 rm -f conftest.err conftest.$ac_objext \
46882       conftest$ac_exeext conftest.$ac_ext
46883 fi
46884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46886 if test `eval echo '${'$as_ac_var'}'` = yes; then
46887   cat >>confdefs.h <<_ACEOF
46888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46889 _ACEOF
46890  ice_have_ruserok=yes
46891 fi
46892 done
46893
46894 if test "${ice_have_ruserok}" = yes; then
46895 echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
46896 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6
46897 if test "${ice_cv_have_ruserok_decl+set}" = set; then
46898   echo $ECHO_N "(cached) $ECHO_C" >&6
46899 else
46900
46901 ice_cv_have_ruserok_decl=no
46902 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46903 ice_re_word='(^|[^a-zA-Z0-9_])'
46904 for header in netdb.h sys/socket.h libc.h unistd.h; do
46905 # Check for ordinary declaration
46906 cat >conftest.$ac_ext <<_ACEOF
46907 /* confdefs.h.  */
46908 _ACEOF
46909 cat confdefs.h >>conftest.$ac_ext
46910 cat >>conftest.$ac_ext <<_ACEOF
46911 /* end confdefs.h.  */
46912 #include <$header>
46913
46914 _ACEOF
46915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46916   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
46917   ice_cv_have_ruserok_decl=yes
46918 fi
46919 rm -f conftest*
46920
46921 if test "$ice_cv_have_ruserok_decl" = yes; then
46922         break
46923 fi
46924 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46925 cat >conftest.$ac_ext <<_ACEOF
46926 /* confdefs.h.  */
46927 _ACEOF
46928 cat confdefs.h >>conftest.$ac_ext
46929 cat >>conftest.$ac_ext <<_ACEOF
46930 /* end confdefs.h.  */
46931 #include <$header>
46932
46933 _ACEOF
46934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46935   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46936   ice_cv_have_ruserok_decl=yes
46937 fi
46938 rm -f conftest*
46939
46940 if test "$ice_cv_have_ruserok_decl" = yes; then
46941         break
46942 fi
46943 done
46944
46945 fi
46946
46947 echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
46948 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6
46949 if test "$ice_cv_have_ruserok_decl" = yes; then
46950
46951 cat >>confdefs.h <<_ACEOF
46952 #define HAVE_RUSEROK_DECL 1
46953 _ACEOF
46954
46955 fi
46956 fi
46957
46958
46959 ice_have_select=no
46960
46961 for ac_func in select
46962 do
46963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46964 echo "$as_me:$LINENO: checking for $ac_func" >&5
46965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46966 if eval "test \"\${$as_ac_var+set}\" = set"; then
46967   echo $ECHO_N "(cached) $ECHO_C" >&6
46968 else
46969   cat >conftest.$ac_ext <<_ACEOF
46970 /* confdefs.h.  */
46971 _ACEOF
46972 cat confdefs.h >>conftest.$ac_ext
46973 cat >>conftest.$ac_ext <<_ACEOF
46974 /* end confdefs.h.  */
46975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46977 #define $ac_func innocuous_$ac_func
46978
46979 /* System header to define __stub macros and hopefully few prototypes,
46980     which can conflict with char $ac_func (); below.
46981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46982     <limits.h> exists even on freestanding compilers.  */
46983
46984 #ifdef __STDC__
46985 # include <limits.h>
46986 #else
46987 # include <assert.h>
46988 #endif
46989
46990 #undef $ac_func
46991
46992 /* Override any gcc2 internal prototype to avoid an error.  */
46993 #ifdef __cplusplus
46994 extern "C"
46995 {
46996 #endif
46997 /* We use char because int might match the return type of a gcc2
46998    builtin and then its argument prototype would still apply.  */
46999 char $ac_func ();
47000 /* The GNU C library defines this for functions which it implements
47001     to always fail with ENOSYS.  Some functions are actually named
47002     something starting with __ and the normal name is an alias.  */
47003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47004 choke me
47005 #else
47006 char (*f) () = $ac_func;
47007 #endif
47008 #ifdef __cplusplus
47009 }
47010 #endif
47011
47012 int
47013 main ()
47014 {
47015 return f != $ac_func;
47016   ;
47017   return 0;
47018 }
47019 _ACEOF
47020 rm -f conftest.$ac_objext conftest$ac_exeext
47021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47022   (eval $ac_link) 2>conftest.er1
47023   ac_status=$?
47024   grep -v '^ *+' conftest.er1 >conftest.err
47025   rm -f conftest.er1
47026   cat conftest.err >&5
47027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47028   (exit $ac_status); } &&
47029          { ac_try='test -z "$ac_c_werror_flag"
47030                          || test ! -s conftest.err'
47031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47032   (eval $ac_try) 2>&5
47033   ac_status=$?
47034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47035   (exit $ac_status); }; } &&
47036          { ac_try='test -s conftest$ac_exeext'
47037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47038   (eval $ac_try) 2>&5
47039   ac_status=$?
47040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47041   (exit $ac_status); }; }; then
47042   eval "$as_ac_var=yes"
47043 else
47044   echo "$as_me: failed program was:" >&5
47045 sed 's/^/| /' conftest.$ac_ext >&5
47046
47047 eval "$as_ac_var=no"
47048 fi
47049 rm -f conftest.err conftest.$ac_objext \
47050       conftest$ac_exeext conftest.$ac_ext
47051 fi
47052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47054 if test `eval echo '${'$as_ac_var'}'` = yes; then
47055   cat >>confdefs.h <<_ACEOF
47056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47057 _ACEOF
47058  ice_have_select=yes
47059 fi
47060 done
47061
47062 if test "${ice_have_select}" = yes; then
47063 echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
47064 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
47065 if test "${ice_cv_have_select_decl+set}" = set; then
47066   echo $ECHO_N "(cached) $ECHO_C" >&6
47067 else
47068
47069 ice_cv_have_select_decl=no
47070 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47071 ice_re_word='(^|[^a-zA-Z0-9_])'
47072 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
47073 # Check for ordinary declaration
47074 cat >conftest.$ac_ext <<_ACEOF
47075 /* confdefs.h.  */
47076 _ACEOF
47077 cat confdefs.h >>conftest.$ac_ext
47078 cat >>conftest.$ac_ext <<_ACEOF
47079 /* end confdefs.h.  */
47080 #include <$header>
47081
47082 _ACEOF
47083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47084   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
47085   ice_cv_have_select_decl=yes
47086 fi
47087 rm -f conftest*
47088
47089 if test "$ice_cv_have_select_decl" = yes; then
47090         break
47091 fi
47092 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47093 cat >conftest.$ac_ext <<_ACEOF
47094 /* confdefs.h.  */
47095 _ACEOF
47096 cat confdefs.h >>conftest.$ac_ext
47097 cat >>conftest.$ac_ext <<_ACEOF
47098 /* end confdefs.h.  */
47099 #include <$header>
47100
47101 _ACEOF
47102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47103   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47104   ice_cv_have_select_decl=yes
47105 fi
47106 rm -f conftest*
47107
47108 if test "$ice_cv_have_select_decl" = yes; then
47109         break
47110 fi
47111 done
47112
47113 fi
47114
47115 echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
47116 echo "${ECHO_T}$ice_cv_have_select_decl" >&6
47117 if test "$ice_cv_have_select_decl" = yes; then
47118
47119 cat >>confdefs.h <<_ACEOF
47120 #define HAVE_SELECT_DECL 1
47121 _ACEOF
47122
47123 fi
47124 fi
47125
47126
47127         echo "$as_me:$LINENO: checking for select() argument type" >&5
47128 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6
47129 if test "${amanda_cv_select_arg_type+set}" = set; then
47130   echo $ECHO_N "(cached) $ECHO_C" >&6
47131 else
47132
47133                 rm -f conftest.c
47134                 cat <<EOF >conftest.$ac_ext
47135 #include "confdefs.h"
47136 #ifdef HAVE_SYS_TIME_H
47137 # include <sys/time.h>
47138 #endif
47139 #ifdef HAVE_SYS_TYPES_H
47140 # include <sys/types.h>
47141 #endif
47142 #ifdef HAVE_SYS_SELECT_H
47143 #  include <sys/select.h>
47144 #endif
47145 #ifdef HAVE_SYS_SOCKET_H
47146 #  include <sys/socket.h>
47147 #endif
47148 #ifdef HAVE_UNISTD_H
47149 # include <unistd.h>
47150 #endif
47151
47152 int main()
47153 {
47154 #ifdef FD_SET_POINTER
47155         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
47156 #else
47157         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
47158 #endif
47159         return 0;
47160 }
47161 EOF
47162
47163                                                                                                                                 amanda_cv_select_arg_type=no
47164                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
47165                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
47166                 if test $? -ne 0; then
47167                     amanda_cv_select_arg_type=int
47168                 fi
47169                 if test "$amanda_cv_select_arg_type" = no; then
47170                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
47171                     if test $? -ne 0; then
47172                         amanda_cv_select_arg_type=fd_set
47173                     fi
47174                 fi
47175                 if test "$amanda_cv_select_arg_type" = no; then
47176                     wc_fdset=`wc -l <conftest.fd_set`
47177                     wc_int=`wc -l <conftest.int`
47178                     if test "$wc_fdset" -le "$wc_int"; then
47179                         amanda_cv_select_arg_type=fd_set
47180                     else
47181                         amanda_cv_select_arg_type=int
47182                     fi
47183                 fi
47184                 rm -f conftest*
47185
47186
47187 fi
47188 echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
47189 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6
47190
47191 cat >>confdefs.h <<_ACEOF
47192 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
47193 _ACEOF
47194
47195
47196
47197
47198 ice_have_sendto=no
47199
47200 for ac_func in sendto
47201 do
47202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47203 echo "$as_me:$LINENO: checking for $ac_func" >&5
47204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47205 if eval "test \"\${$as_ac_var+set}\" = set"; then
47206   echo $ECHO_N "(cached) $ECHO_C" >&6
47207 else
47208   cat >conftest.$ac_ext <<_ACEOF
47209 /* confdefs.h.  */
47210 _ACEOF
47211 cat confdefs.h >>conftest.$ac_ext
47212 cat >>conftest.$ac_ext <<_ACEOF
47213 /* end confdefs.h.  */
47214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47216 #define $ac_func innocuous_$ac_func
47217
47218 /* System header to define __stub macros and hopefully few prototypes,
47219     which can conflict with char $ac_func (); below.
47220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47221     <limits.h> exists even on freestanding compilers.  */
47222
47223 #ifdef __STDC__
47224 # include <limits.h>
47225 #else
47226 # include <assert.h>
47227 #endif
47228
47229 #undef $ac_func
47230
47231 /* Override any gcc2 internal prototype to avoid an error.  */
47232 #ifdef __cplusplus
47233 extern "C"
47234 {
47235 #endif
47236 /* We use char because int might match the return type of a gcc2
47237    builtin and then its argument prototype would still apply.  */
47238 char $ac_func ();
47239 /* The GNU C library defines this for functions which it implements
47240     to always fail with ENOSYS.  Some functions are actually named
47241     something starting with __ and the normal name is an alias.  */
47242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47243 choke me
47244 #else
47245 char (*f) () = $ac_func;
47246 #endif
47247 #ifdef __cplusplus
47248 }
47249 #endif
47250
47251 int
47252 main ()
47253 {
47254 return f != $ac_func;
47255   ;
47256   return 0;
47257 }
47258 _ACEOF
47259 rm -f conftest.$ac_objext conftest$ac_exeext
47260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47261   (eval $ac_link) 2>conftest.er1
47262   ac_status=$?
47263   grep -v '^ *+' conftest.er1 >conftest.err
47264   rm -f conftest.er1
47265   cat conftest.err >&5
47266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47267   (exit $ac_status); } &&
47268          { ac_try='test -z "$ac_c_werror_flag"
47269                          || test ! -s conftest.err'
47270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47271   (eval $ac_try) 2>&5
47272   ac_status=$?
47273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47274   (exit $ac_status); }; } &&
47275          { ac_try='test -s conftest$ac_exeext'
47276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47277   (eval $ac_try) 2>&5
47278   ac_status=$?
47279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47280   (exit $ac_status); }; }; then
47281   eval "$as_ac_var=yes"
47282 else
47283   echo "$as_me: failed program was:" >&5
47284 sed 's/^/| /' conftest.$ac_ext >&5
47285
47286 eval "$as_ac_var=no"
47287 fi
47288 rm -f conftest.err conftest.$ac_objext \
47289       conftest$ac_exeext conftest.$ac_ext
47290 fi
47291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47293 if test `eval echo '${'$as_ac_var'}'` = yes; then
47294   cat >>confdefs.h <<_ACEOF
47295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47296 _ACEOF
47297  ice_have_sendto=yes
47298 fi
47299 done
47300
47301 if test "${ice_have_sendto}" = yes; then
47302 echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
47303 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
47304 if test "${ice_cv_have_sendto_decl+set}" = set; then
47305   echo $ECHO_N "(cached) $ECHO_C" >&6
47306 else
47307
47308 ice_cv_have_sendto_decl=no
47309 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47310 ice_re_word='(^|[^a-zA-Z0-9_])'
47311 for header in sys/types.h sys/socket.h; do
47312 # Check for ordinary declaration
47313 cat >conftest.$ac_ext <<_ACEOF
47314 /* confdefs.h.  */
47315 _ACEOF
47316 cat confdefs.h >>conftest.$ac_ext
47317 cat >>conftest.$ac_ext <<_ACEOF
47318 /* end confdefs.h.  */
47319 #include <$header>
47320
47321 _ACEOF
47322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47323   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
47324   ice_cv_have_sendto_decl=yes
47325 fi
47326 rm -f conftest*
47327
47328 if test "$ice_cv_have_sendto_decl" = yes; then
47329         break
47330 fi
47331 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47332 cat >conftest.$ac_ext <<_ACEOF
47333 /* confdefs.h.  */
47334 _ACEOF
47335 cat confdefs.h >>conftest.$ac_ext
47336 cat >>conftest.$ac_ext <<_ACEOF
47337 /* end confdefs.h.  */
47338 #include <$header>
47339
47340 _ACEOF
47341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47342   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47343   ice_cv_have_sendto_decl=yes
47344 fi
47345 rm -f conftest*
47346
47347 if test "$ice_cv_have_sendto_decl" = yes; then
47348         break
47349 fi
47350 done
47351
47352 fi
47353
47354 echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
47355 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6
47356 if test "$ice_cv_have_sendto_decl" = yes; then
47357
47358 cat >>confdefs.h <<_ACEOF
47359 #define HAVE_SENDTO_DECL 1
47360 _ACEOF
47361
47362 fi
47363 fi
47364
47365
47366 ice_have_setegid=no
47367
47368 for ac_func in setegid
47369 do
47370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47371 echo "$as_me:$LINENO: checking for $ac_func" >&5
47372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47373 if eval "test \"\${$as_ac_var+set}\" = set"; then
47374   echo $ECHO_N "(cached) $ECHO_C" >&6
47375 else
47376   cat >conftest.$ac_ext <<_ACEOF
47377 /* confdefs.h.  */
47378 _ACEOF
47379 cat confdefs.h >>conftest.$ac_ext
47380 cat >>conftest.$ac_ext <<_ACEOF
47381 /* end confdefs.h.  */
47382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47384 #define $ac_func innocuous_$ac_func
47385
47386 /* System header to define __stub macros and hopefully few prototypes,
47387     which can conflict with char $ac_func (); below.
47388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47389     <limits.h> exists even on freestanding compilers.  */
47390
47391 #ifdef __STDC__
47392 # include <limits.h>
47393 #else
47394 # include <assert.h>
47395 #endif
47396
47397 #undef $ac_func
47398
47399 /* Override any gcc2 internal prototype to avoid an error.  */
47400 #ifdef __cplusplus
47401 extern "C"
47402 {
47403 #endif
47404 /* We use char because int might match the return type of a gcc2
47405    builtin and then its argument prototype would still apply.  */
47406 char $ac_func ();
47407 /* The GNU C library defines this for functions which it implements
47408     to always fail with ENOSYS.  Some functions are actually named
47409     something starting with __ and the normal name is an alias.  */
47410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47411 choke me
47412 #else
47413 char (*f) () = $ac_func;
47414 #endif
47415 #ifdef __cplusplus
47416 }
47417 #endif
47418
47419 int
47420 main ()
47421 {
47422 return f != $ac_func;
47423   ;
47424   return 0;
47425 }
47426 _ACEOF
47427 rm -f conftest.$ac_objext conftest$ac_exeext
47428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47429   (eval $ac_link) 2>conftest.er1
47430   ac_status=$?
47431   grep -v '^ *+' conftest.er1 >conftest.err
47432   rm -f conftest.er1
47433   cat conftest.err >&5
47434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47435   (exit $ac_status); } &&
47436          { ac_try='test -z "$ac_c_werror_flag"
47437                          || test ! -s conftest.err'
47438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47439   (eval $ac_try) 2>&5
47440   ac_status=$?
47441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47442   (exit $ac_status); }; } &&
47443          { ac_try='test -s conftest$ac_exeext'
47444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47445   (eval $ac_try) 2>&5
47446   ac_status=$?
47447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47448   (exit $ac_status); }; }; then
47449   eval "$as_ac_var=yes"
47450 else
47451   echo "$as_me: failed program was:" >&5
47452 sed 's/^/| /' conftest.$ac_ext >&5
47453
47454 eval "$as_ac_var=no"
47455 fi
47456 rm -f conftest.err conftest.$ac_objext \
47457       conftest$ac_exeext conftest.$ac_ext
47458 fi
47459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47461 if test `eval echo '${'$as_ac_var'}'` = yes; then
47462   cat >>confdefs.h <<_ACEOF
47463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47464 _ACEOF
47465  ice_have_setegid=yes
47466 fi
47467 done
47468
47469 if test "${ice_have_setegid}" = yes; then
47470 echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
47471 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6
47472 if test "${ice_cv_have_setegid_decl+set}" = set; then
47473   echo $ECHO_N "(cached) $ECHO_C" >&6
47474 else
47475
47476 ice_cv_have_setegid_decl=no
47477 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47478 ice_re_word='(^|[^a-zA-Z0-9_])'
47479 for header in unistd.h; do
47480 # Check for ordinary declaration
47481 cat >conftest.$ac_ext <<_ACEOF
47482 /* confdefs.h.  */
47483 _ACEOF
47484 cat confdefs.h >>conftest.$ac_ext
47485 cat >>conftest.$ac_ext <<_ACEOF
47486 /* end confdefs.h.  */
47487 #include <$header>
47488
47489 _ACEOF
47490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47491   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
47492   ice_cv_have_setegid_decl=yes
47493 fi
47494 rm -f conftest*
47495
47496 if test "$ice_cv_have_setegid_decl" = yes; then
47497         break
47498 fi
47499 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47500 cat >conftest.$ac_ext <<_ACEOF
47501 /* confdefs.h.  */
47502 _ACEOF
47503 cat confdefs.h >>conftest.$ac_ext
47504 cat >>conftest.$ac_ext <<_ACEOF
47505 /* end confdefs.h.  */
47506 #include <$header>
47507
47508 _ACEOF
47509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47510   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47511   ice_cv_have_setegid_decl=yes
47512 fi
47513 rm -f conftest*
47514
47515 if test "$ice_cv_have_setegid_decl" = yes; then
47516         break
47517 fi
47518 done
47519
47520 fi
47521
47522 echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
47523 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6
47524 if test "$ice_cv_have_setegid_decl" = yes; then
47525
47526 cat >>confdefs.h <<_ACEOF
47527 #define HAVE_SETEGID_DECL 1
47528 _ACEOF
47529
47530 fi
47531 fi
47532
47533
47534 ice_have_seteuid=no
47535
47536 for ac_func in seteuid
47537 do
47538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47539 echo "$as_me:$LINENO: checking for $ac_func" >&5
47540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47541 if eval "test \"\${$as_ac_var+set}\" = set"; then
47542   echo $ECHO_N "(cached) $ECHO_C" >&6
47543 else
47544   cat >conftest.$ac_ext <<_ACEOF
47545 /* confdefs.h.  */
47546 _ACEOF
47547 cat confdefs.h >>conftest.$ac_ext
47548 cat >>conftest.$ac_ext <<_ACEOF
47549 /* end confdefs.h.  */
47550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47552 #define $ac_func innocuous_$ac_func
47553
47554 /* System header to define __stub macros and hopefully few prototypes,
47555     which can conflict with char $ac_func (); below.
47556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47557     <limits.h> exists even on freestanding compilers.  */
47558
47559 #ifdef __STDC__
47560 # include <limits.h>
47561 #else
47562 # include <assert.h>
47563 #endif
47564
47565 #undef $ac_func
47566
47567 /* Override any gcc2 internal prototype to avoid an error.  */
47568 #ifdef __cplusplus
47569 extern "C"
47570 {
47571 #endif
47572 /* We use char because int might match the return type of a gcc2
47573    builtin and then its argument prototype would still apply.  */
47574 char $ac_func ();
47575 /* The GNU C library defines this for functions which it implements
47576     to always fail with ENOSYS.  Some functions are actually named
47577     something starting with __ and the normal name is an alias.  */
47578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47579 choke me
47580 #else
47581 char (*f) () = $ac_func;
47582 #endif
47583 #ifdef __cplusplus
47584 }
47585 #endif
47586
47587 int
47588 main ()
47589 {
47590 return f != $ac_func;
47591   ;
47592   return 0;
47593 }
47594 _ACEOF
47595 rm -f conftest.$ac_objext conftest$ac_exeext
47596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47597   (eval $ac_link) 2>conftest.er1
47598   ac_status=$?
47599   grep -v '^ *+' conftest.er1 >conftest.err
47600   rm -f conftest.er1
47601   cat conftest.err >&5
47602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47603   (exit $ac_status); } &&
47604          { ac_try='test -z "$ac_c_werror_flag"
47605                          || test ! -s conftest.err'
47606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47607   (eval $ac_try) 2>&5
47608   ac_status=$?
47609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47610   (exit $ac_status); }; } &&
47611          { ac_try='test -s conftest$ac_exeext'
47612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47613   (eval $ac_try) 2>&5
47614   ac_status=$?
47615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47616   (exit $ac_status); }; }; then
47617   eval "$as_ac_var=yes"
47618 else
47619   echo "$as_me: failed program was:" >&5
47620 sed 's/^/| /' conftest.$ac_ext >&5
47621
47622 eval "$as_ac_var=no"
47623 fi
47624 rm -f conftest.err conftest.$ac_objext \
47625       conftest$ac_exeext conftest.$ac_ext
47626 fi
47627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47629 if test `eval echo '${'$as_ac_var'}'` = yes; then
47630   cat >>confdefs.h <<_ACEOF
47631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47632 _ACEOF
47633  ice_have_seteuid=yes
47634 fi
47635 done
47636
47637 if test "${ice_have_seteuid}" = yes; then
47638 echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
47639 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6
47640 if test "${ice_cv_have_seteuid_decl+set}" = set; then
47641   echo $ECHO_N "(cached) $ECHO_C" >&6
47642 else
47643
47644 ice_cv_have_seteuid_decl=no
47645 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47646 ice_re_word='(^|[^a-zA-Z0-9_])'
47647 for header in unistd.h; do
47648 # Check for ordinary declaration
47649 cat >conftest.$ac_ext <<_ACEOF
47650 /* confdefs.h.  */
47651 _ACEOF
47652 cat confdefs.h >>conftest.$ac_ext
47653 cat >>conftest.$ac_ext <<_ACEOF
47654 /* end confdefs.h.  */
47655 #include <$header>
47656
47657 _ACEOF
47658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47659   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
47660   ice_cv_have_seteuid_decl=yes
47661 fi
47662 rm -f conftest*
47663
47664 if test "$ice_cv_have_seteuid_decl" = yes; then
47665         break
47666 fi
47667 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47668 cat >conftest.$ac_ext <<_ACEOF
47669 /* confdefs.h.  */
47670 _ACEOF
47671 cat confdefs.h >>conftest.$ac_ext
47672 cat >>conftest.$ac_ext <<_ACEOF
47673 /* end confdefs.h.  */
47674 #include <$header>
47675
47676 _ACEOF
47677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47678   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47679   ice_cv_have_seteuid_decl=yes
47680 fi
47681 rm -f conftest*
47682
47683 if test "$ice_cv_have_seteuid_decl" = yes; then
47684         break
47685 fi
47686 done
47687
47688 fi
47689
47690 echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
47691 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6
47692 if test "$ice_cv_have_seteuid_decl" = yes; then
47693
47694 cat >>confdefs.h <<_ACEOF
47695 #define HAVE_SETEUID_DECL 1
47696 _ACEOF
47697
47698 fi
47699 fi
47700
47701
47702 for ac_func in setmntent
47703 do
47704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47705 echo "$as_me:$LINENO: checking for $ac_func" >&5
47706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47707 if eval "test \"\${$as_ac_var+set}\" = set"; then
47708   echo $ECHO_N "(cached) $ECHO_C" >&6
47709 else
47710   cat >conftest.$ac_ext <<_ACEOF
47711 /* confdefs.h.  */
47712 _ACEOF
47713 cat confdefs.h >>conftest.$ac_ext
47714 cat >>conftest.$ac_ext <<_ACEOF
47715 /* end confdefs.h.  */
47716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47718 #define $ac_func innocuous_$ac_func
47719
47720 /* System header to define __stub macros and hopefully few prototypes,
47721     which can conflict with char $ac_func (); below.
47722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47723     <limits.h> exists even on freestanding compilers.  */
47724
47725 #ifdef __STDC__
47726 # include <limits.h>
47727 #else
47728 # include <assert.h>
47729 #endif
47730
47731 #undef $ac_func
47732
47733 /* Override any gcc2 internal prototype to avoid an error.  */
47734 #ifdef __cplusplus
47735 extern "C"
47736 {
47737 #endif
47738 /* We use char because int might match the return type of a gcc2
47739    builtin and then its argument prototype would still apply.  */
47740 char $ac_func ();
47741 /* The GNU C library defines this for functions which it implements
47742     to always fail with ENOSYS.  Some functions are actually named
47743     something starting with __ and the normal name is an alias.  */
47744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47745 choke me
47746 #else
47747 char (*f) () = $ac_func;
47748 #endif
47749 #ifdef __cplusplus
47750 }
47751 #endif
47752
47753 int
47754 main ()
47755 {
47756 return f != $ac_func;
47757   ;
47758   return 0;
47759 }
47760 _ACEOF
47761 rm -f conftest.$ac_objext conftest$ac_exeext
47762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47763   (eval $ac_link) 2>conftest.er1
47764   ac_status=$?
47765   grep -v '^ *+' conftest.er1 >conftest.err
47766   rm -f conftest.er1
47767   cat conftest.err >&5
47768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47769   (exit $ac_status); } &&
47770          { ac_try='test -z "$ac_c_werror_flag"
47771                          || test ! -s conftest.err'
47772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47773   (eval $ac_try) 2>&5
47774   ac_status=$?
47775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47776   (exit $ac_status); }; } &&
47777          { ac_try='test -s conftest$ac_exeext'
47778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47779   (eval $ac_try) 2>&5
47780   ac_status=$?
47781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47782   (exit $ac_status); }; }; then
47783   eval "$as_ac_var=yes"
47784 else
47785   echo "$as_me: failed program was:" >&5
47786 sed 's/^/| /' conftest.$ac_ext >&5
47787
47788 eval "$as_ac_var=no"
47789 fi
47790 rm -f conftest.err conftest.$ac_objext \
47791       conftest$ac_exeext conftest.$ac_ext
47792 fi
47793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47795 if test `eval echo '${'$as_ac_var'}'` = yes; then
47796   cat >>confdefs.h <<_ACEOF
47797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47798 _ACEOF
47799
47800 fi
47801 done
47802
47803
47804 for ac_func in shquote
47805 do
47806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47807 echo "$as_me:$LINENO: checking for $ac_func" >&5
47808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47809 if eval "test \"\${$as_ac_var+set}\" = set"; then
47810   echo $ECHO_N "(cached) $ECHO_C" >&6
47811 else
47812   cat >conftest.$ac_ext <<_ACEOF
47813 /* confdefs.h.  */
47814 _ACEOF
47815 cat confdefs.h >>conftest.$ac_ext
47816 cat >>conftest.$ac_ext <<_ACEOF
47817 /* end confdefs.h.  */
47818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47820 #define $ac_func innocuous_$ac_func
47821
47822 /* System header to define __stub macros and hopefully few prototypes,
47823     which can conflict with char $ac_func (); below.
47824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47825     <limits.h> exists even on freestanding compilers.  */
47826
47827 #ifdef __STDC__
47828 # include <limits.h>
47829 #else
47830 # include <assert.h>
47831 #endif
47832
47833 #undef $ac_func
47834
47835 /* Override any gcc2 internal prototype to avoid an error.  */
47836 #ifdef __cplusplus
47837 extern "C"
47838 {
47839 #endif
47840 /* We use char because int might match the return type of a gcc2
47841    builtin and then its argument prototype would still apply.  */
47842 char $ac_func ();
47843 /* The GNU C library defines this for functions which it implements
47844     to always fail with ENOSYS.  Some functions are actually named
47845     something starting with __ and the normal name is an alias.  */
47846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47847 choke me
47848 #else
47849 char (*f) () = $ac_func;
47850 #endif
47851 #ifdef __cplusplus
47852 }
47853 #endif
47854
47855 int
47856 main ()
47857 {
47858 return f != $ac_func;
47859   ;
47860   return 0;
47861 }
47862 _ACEOF
47863 rm -f conftest.$ac_objext conftest$ac_exeext
47864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47865   (eval $ac_link) 2>conftest.er1
47866   ac_status=$?
47867   grep -v '^ *+' conftest.er1 >conftest.err
47868   rm -f conftest.er1
47869   cat conftest.err >&5
47870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47871   (exit $ac_status); } &&
47872          { ac_try='test -z "$ac_c_werror_flag"
47873                          || test ! -s conftest.err'
47874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47875   (eval $ac_try) 2>&5
47876   ac_status=$?
47877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47878   (exit $ac_status); }; } &&
47879          { ac_try='test -s conftest$ac_exeext'
47880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47881   (eval $ac_try) 2>&5
47882   ac_status=$?
47883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47884   (exit $ac_status); }; }; then
47885   eval "$as_ac_var=yes"
47886 else
47887   echo "$as_me: failed program was:" >&5
47888 sed 's/^/| /' conftest.$ac_ext >&5
47889
47890 eval "$as_ac_var=no"
47891 fi
47892 rm -f conftest.err conftest.$ac_objext \
47893       conftest$ac_exeext conftest.$ac_ext
47894 fi
47895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47897 if test `eval echo '${'$as_ac_var'}'` = yes; then
47898   cat >>confdefs.h <<_ACEOF
47899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47900 _ACEOF
47901
47902 fi
47903 done
47904
47905
47906
47907 ice_have_setresgid=no
47908
47909 for ac_func in setresgid
47910 do
47911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47912 echo "$as_me:$LINENO: checking for $ac_func" >&5
47913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47914 if eval "test \"\${$as_ac_var+set}\" = set"; then
47915   echo $ECHO_N "(cached) $ECHO_C" >&6
47916 else
47917   cat >conftest.$ac_ext <<_ACEOF
47918 /* confdefs.h.  */
47919 _ACEOF
47920 cat confdefs.h >>conftest.$ac_ext
47921 cat >>conftest.$ac_ext <<_ACEOF
47922 /* end confdefs.h.  */
47923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47925 #define $ac_func innocuous_$ac_func
47926
47927 /* System header to define __stub macros and hopefully few prototypes,
47928     which can conflict with char $ac_func (); below.
47929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47930     <limits.h> exists even on freestanding compilers.  */
47931
47932 #ifdef __STDC__
47933 # include <limits.h>
47934 #else
47935 # include <assert.h>
47936 #endif
47937
47938 #undef $ac_func
47939
47940 /* Override any gcc2 internal prototype to avoid an error.  */
47941 #ifdef __cplusplus
47942 extern "C"
47943 {
47944 #endif
47945 /* We use char because int might match the return type of a gcc2
47946    builtin and then its argument prototype would still apply.  */
47947 char $ac_func ();
47948 /* The GNU C library defines this for functions which it implements
47949     to always fail with ENOSYS.  Some functions are actually named
47950     something starting with __ and the normal name is an alias.  */
47951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47952 choke me
47953 #else
47954 char (*f) () = $ac_func;
47955 #endif
47956 #ifdef __cplusplus
47957 }
47958 #endif
47959
47960 int
47961 main ()
47962 {
47963 return f != $ac_func;
47964   ;
47965   return 0;
47966 }
47967 _ACEOF
47968 rm -f conftest.$ac_objext conftest$ac_exeext
47969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47970   (eval $ac_link) 2>conftest.er1
47971   ac_status=$?
47972   grep -v '^ *+' conftest.er1 >conftest.err
47973   rm -f conftest.er1
47974   cat conftest.err >&5
47975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47976   (exit $ac_status); } &&
47977          { ac_try='test -z "$ac_c_werror_flag"
47978                          || test ! -s conftest.err'
47979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47980   (eval $ac_try) 2>&5
47981   ac_status=$?
47982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47983   (exit $ac_status); }; } &&
47984          { ac_try='test -s conftest$ac_exeext'
47985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47986   (eval $ac_try) 2>&5
47987   ac_status=$?
47988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47989   (exit $ac_status); }; }; then
47990   eval "$as_ac_var=yes"
47991 else
47992   echo "$as_me: failed program was:" >&5
47993 sed 's/^/| /' conftest.$ac_ext >&5
47994
47995 eval "$as_ac_var=no"
47996 fi
47997 rm -f conftest.err conftest.$ac_objext \
47998       conftest$ac_exeext conftest.$ac_ext
47999 fi
48000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48002 if test `eval echo '${'$as_ac_var'}'` = yes; then
48003   cat >>confdefs.h <<_ACEOF
48004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48005 _ACEOF
48006  ice_have_setresgid=yes
48007 fi
48008 done
48009
48010 if test "${ice_have_setresgid}" = yes; then
48011 echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
48012 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6
48013 if test "${ice_cv_have_setresgid_decl+set}" = set; then
48014   echo $ECHO_N "(cached) $ECHO_C" >&6
48015 else
48016
48017 ice_cv_have_setresgid_decl=no
48018 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48019 ice_re_word='(^|[^a-zA-Z0-9_])'
48020 for header in unistd.h; do
48021 # Check for ordinary declaration
48022 cat >conftest.$ac_ext <<_ACEOF
48023 /* confdefs.h.  */
48024 _ACEOF
48025 cat confdefs.h >>conftest.$ac_ext
48026 cat >>conftest.$ac_ext <<_ACEOF
48027 /* end confdefs.h.  */
48028 #include <$header>
48029
48030 _ACEOF
48031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48032   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then
48033   ice_cv_have_setresgid_decl=yes
48034 fi
48035 rm -f conftest*
48036
48037 if test "$ice_cv_have_setresgid_decl" = yes; then
48038         break
48039 fi
48040 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48041 cat >conftest.$ac_ext <<_ACEOF
48042 /* confdefs.h.  */
48043 _ACEOF
48044 cat confdefs.h >>conftest.$ac_ext
48045 cat >>conftest.$ac_ext <<_ACEOF
48046 /* end confdefs.h.  */
48047 #include <$header>
48048
48049 _ACEOF
48050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48051   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48052   ice_cv_have_setresgid_decl=yes
48053 fi
48054 rm -f conftest*
48055
48056 if test "$ice_cv_have_setresgid_decl" = yes; then
48057         break
48058 fi
48059 done
48060
48061 fi
48062
48063 echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
48064 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6
48065 if test "$ice_cv_have_setresgid_decl" = yes; then
48066
48067 cat >>confdefs.h <<_ACEOF
48068 #define HAVE_SETRESGID_DECL 1
48069 _ACEOF
48070
48071 fi
48072 fi
48073
48074
48075 ice_have_setresuid=no
48076
48077 for ac_func in setresuid
48078 do
48079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48080 echo "$as_me:$LINENO: checking for $ac_func" >&5
48081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48082 if eval "test \"\${$as_ac_var+set}\" = set"; then
48083   echo $ECHO_N "(cached) $ECHO_C" >&6
48084 else
48085   cat >conftest.$ac_ext <<_ACEOF
48086 /* confdefs.h.  */
48087 _ACEOF
48088 cat confdefs.h >>conftest.$ac_ext
48089 cat >>conftest.$ac_ext <<_ACEOF
48090 /* end confdefs.h.  */
48091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48093 #define $ac_func innocuous_$ac_func
48094
48095 /* System header to define __stub macros and hopefully few prototypes,
48096     which can conflict with char $ac_func (); below.
48097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48098     <limits.h> exists even on freestanding compilers.  */
48099
48100 #ifdef __STDC__
48101 # include <limits.h>
48102 #else
48103 # include <assert.h>
48104 #endif
48105
48106 #undef $ac_func
48107
48108 /* Override any gcc2 internal prototype to avoid an error.  */
48109 #ifdef __cplusplus
48110 extern "C"
48111 {
48112 #endif
48113 /* We use char because int might match the return type of a gcc2
48114    builtin and then its argument prototype would still apply.  */
48115 char $ac_func ();
48116 /* The GNU C library defines this for functions which it implements
48117     to always fail with ENOSYS.  Some functions are actually named
48118     something starting with __ and the normal name is an alias.  */
48119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48120 choke me
48121 #else
48122 char (*f) () = $ac_func;
48123 #endif
48124 #ifdef __cplusplus
48125 }
48126 #endif
48127
48128 int
48129 main ()
48130 {
48131 return f != $ac_func;
48132   ;
48133   return 0;
48134 }
48135 _ACEOF
48136 rm -f conftest.$ac_objext conftest$ac_exeext
48137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48138   (eval $ac_link) 2>conftest.er1
48139   ac_status=$?
48140   grep -v '^ *+' conftest.er1 >conftest.err
48141   rm -f conftest.er1
48142   cat conftest.err >&5
48143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48144   (exit $ac_status); } &&
48145          { ac_try='test -z "$ac_c_werror_flag"
48146                          || test ! -s conftest.err'
48147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48148   (eval $ac_try) 2>&5
48149   ac_status=$?
48150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48151   (exit $ac_status); }; } &&
48152          { ac_try='test -s conftest$ac_exeext'
48153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48154   (eval $ac_try) 2>&5
48155   ac_status=$?
48156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48157   (exit $ac_status); }; }; then
48158   eval "$as_ac_var=yes"
48159 else
48160   echo "$as_me: failed program was:" >&5
48161 sed 's/^/| /' conftest.$ac_ext >&5
48162
48163 eval "$as_ac_var=no"
48164 fi
48165 rm -f conftest.err conftest.$ac_objext \
48166       conftest$ac_exeext conftest.$ac_ext
48167 fi
48168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48170 if test `eval echo '${'$as_ac_var'}'` = yes; then
48171   cat >>confdefs.h <<_ACEOF
48172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48173 _ACEOF
48174  ice_have_setresuid=yes
48175 fi
48176 done
48177
48178 if test "${ice_have_setresuid}" = yes; then
48179 echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
48180 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6
48181 if test "${ice_cv_have_setresuid_decl+set}" = set; then
48182   echo $ECHO_N "(cached) $ECHO_C" >&6
48183 else
48184
48185 ice_cv_have_setresuid_decl=no
48186 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48187 ice_re_word='(^|[^a-zA-Z0-9_])'
48188 for header in unistd.h; do
48189 # Check for ordinary declaration
48190 cat >conftest.$ac_ext <<_ACEOF
48191 /* confdefs.h.  */
48192 _ACEOF
48193 cat confdefs.h >>conftest.$ac_ext
48194 cat >>conftest.$ac_ext <<_ACEOF
48195 /* end confdefs.h.  */
48196 #include <$header>
48197
48198 _ACEOF
48199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48200   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
48201   ice_cv_have_setresuid_decl=yes
48202 fi
48203 rm -f conftest*
48204
48205 if test "$ice_cv_have_setresuid_decl" = yes; then
48206         break
48207 fi
48208 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48209 cat >conftest.$ac_ext <<_ACEOF
48210 /* confdefs.h.  */
48211 _ACEOF
48212 cat confdefs.h >>conftest.$ac_ext
48213 cat >>conftest.$ac_ext <<_ACEOF
48214 /* end confdefs.h.  */
48215 #include <$header>
48216
48217 _ACEOF
48218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48219   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48220   ice_cv_have_setresuid_decl=yes
48221 fi
48222 rm -f conftest*
48223
48224 if test "$ice_cv_have_setresuid_decl" = yes; then
48225         break
48226 fi
48227 done
48228
48229 fi
48230
48231 echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
48232 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6
48233 if test "$ice_cv_have_setresuid_decl" = yes; then
48234
48235 cat >>confdefs.h <<_ACEOF
48236 #define HAVE_SETRESUID_DECL 1
48237 _ACEOF
48238
48239 fi
48240 fi
48241
48242
48243 echo "$as_me:$LINENO: checking for setpgid" >&5
48244 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
48245 if test "${ac_cv_func_setpgid+set}" = set; then
48246   echo $ECHO_N "(cached) $ECHO_C" >&6
48247 else
48248   cat >conftest.$ac_ext <<_ACEOF
48249 /* confdefs.h.  */
48250 _ACEOF
48251 cat confdefs.h >>conftest.$ac_ext
48252 cat >>conftest.$ac_ext <<_ACEOF
48253 /* end confdefs.h.  */
48254 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
48255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48256 #define setpgid innocuous_setpgid
48257
48258 /* System header to define __stub macros and hopefully few prototypes,
48259     which can conflict with char setpgid (); below.
48260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48261     <limits.h> exists even on freestanding compilers.  */
48262
48263 #ifdef __STDC__
48264 # include <limits.h>
48265 #else
48266 # include <assert.h>
48267 #endif
48268
48269 #undef setpgid
48270
48271 /* Override any gcc2 internal prototype to avoid an error.  */
48272 #ifdef __cplusplus
48273 extern "C"
48274 {
48275 #endif
48276 /* We use char because int might match the return type of a gcc2
48277    builtin and then its argument prototype would still apply.  */
48278 char setpgid ();
48279 /* The GNU C library defines this for functions which it implements
48280     to always fail with ENOSYS.  Some functions are actually named
48281     something starting with __ and the normal name is an alias.  */
48282 #if defined (__stub_setpgid) || defined (__stub___setpgid)
48283 choke me
48284 #else
48285 char (*f) () = setpgid;
48286 #endif
48287 #ifdef __cplusplus
48288 }
48289 #endif
48290
48291 int
48292 main ()
48293 {
48294 return f != setpgid;
48295   ;
48296   return 0;
48297 }
48298 _ACEOF
48299 rm -f conftest.$ac_objext conftest$ac_exeext
48300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48301   (eval $ac_link) 2>conftest.er1
48302   ac_status=$?
48303   grep -v '^ *+' conftest.er1 >conftest.err
48304   rm -f conftest.er1
48305   cat conftest.err >&5
48306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48307   (exit $ac_status); } &&
48308          { ac_try='test -z "$ac_c_werror_flag"
48309                          || test ! -s conftest.err'
48310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48311   (eval $ac_try) 2>&5
48312   ac_status=$?
48313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48314   (exit $ac_status); }; } &&
48315          { ac_try='test -s conftest$ac_exeext'
48316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48317   (eval $ac_try) 2>&5
48318   ac_status=$?
48319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48320   (exit $ac_status); }; }; then
48321   ac_cv_func_setpgid=yes
48322 else
48323   echo "$as_me: failed program was:" >&5
48324 sed 's/^/| /' conftest.$ac_ext >&5
48325
48326 ac_cv_func_setpgid=no
48327 fi
48328 rm -f conftest.err conftest.$ac_objext \
48329       conftest$ac_exeext conftest.$ac_ext
48330 fi
48331 echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
48332 echo "${ECHO_T}$ac_cv_func_setpgid" >&6
48333 if test $ac_cv_func_setpgid = yes; then
48334
48335
48336 cat >>confdefs.h <<\_ACEOF
48337 #define HAVE_SETPGID 1
48338 _ACEOF
48339
48340
48341 ice_have_setpgid=no
48342
48343 for ac_func in setpgid
48344 do
48345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48346 echo "$as_me:$LINENO: checking for $ac_func" >&5
48347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48348 if eval "test \"\${$as_ac_var+set}\" = set"; then
48349   echo $ECHO_N "(cached) $ECHO_C" >&6
48350 else
48351   cat >conftest.$ac_ext <<_ACEOF
48352 /* confdefs.h.  */
48353 _ACEOF
48354 cat confdefs.h >>conftest.$ac_ext
48355 cat >>conftest.$ac_ext <<_ACEOF
48356 /* end confdefs.h.  */
48357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48359 #define $ac_func innocuous_$ac_func
48360
48361 /* System header to define __stub macros and hopefully few prototypes,
48362     which can conflict with char $ac_func (); below.
48363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48364     <limits.h> exists even on freestanding compilers.  */
48365
48366 #ifdef __STDC__
48367 # include <limits.h>
48368 #else
48369 # include <assert.h>
48370 #endif
48371
48372 #undef $ac_func
48373
48374 /* Override any gcc2 internal prototype to avoid an error.  */
48375 #ifdef __cplusplus
48376 extern "C"
48377 {
48378 #endif
48379 /* We use char because int might match the return type of a gcc2
48380    builtin and then its argument prototype would still apply.  */
48381 char $ac_func ();
48382 /* The GNU C library defines this for functions which it implements
48383     to always fail with ENOSYS.  Some functions are actually named
48384     something starting with __ and the normal name is an alias.  */
48385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48386 choke me
48387 #else
48388 char (*f) () = $ac_func;
48389 #endif
48390 #ifdef __cplusplus
48391 }
48392 #endif
48393
48394 int
48395 main ()
48396 {
48397 return f != $ac_func;
48398   ;
48399   return 0;
48400 }
48401 _ACEOF
48402 rm -f conftest.$ac_objext conftest$ac_exeext
48403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48404   (eval $ac_link) 2>conftest.er1
48405   ac_status=$?
48406   grep -v '^ *+' conftest.er1 >conftest.err
48407   rm -f conftest.er1
48408   cat conftest.err >&5
48409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48410   (exit $ac_status); } &&
48411          { ac_try='test -z "$ac_c_werror_flag"
48412                          || test ! -s conftest.err'
48413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48414   (eval $ac_try) 2>&5
48415   ac_status=$?
48416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48417   (exit $ac_status); }; } &&
48418          { ac_try='test -s conftest$ac_exeext'
48419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48420   (eval $ac_try) 2>&5
48421   ac_status=$?
48422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48423   (exit $ac_status); }; }; then
48424   eval "$as_ac_var=yes"
48425 else
48426   echo "$as_me: failed program was:" >&5
48427 sed 's/^/| /' conftest.$ac_ext >&5
48428
48429 eval "$as_ac_var=no"
48430 fi
48431 rm -f conftest.err conftest.$ac_objext \
48432       conftest$ac_exeext conftest.$ac_ext
48433 fi
48434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48436 if test `eval echo '${'$as_ac_var'}'` = yes; then
48437   cat >>confdefs.h <<_ACEOF
48438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48439 _ACEOF
48440  ice_have_setpgid=yes
48441 fi
48442 done
48443
48444 if test "${ice_have_setpgid}" = yes; then
48445 echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
48446 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6
48447 if test "${ice_cv_have_setpgid_decl+set}" = set; then
48448   echo $ECHO_N "(cached) $ECHO_C" >&6
48449 else
48450
48451 ice_cv_have_setpgid_decl=no
48452 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48453 ice_re_word='(^|[^a-zA-Z0-9_])'
48454 for header in sys/types.h unistd.h; do
48455 # Check for ordinary declaration
48456 cat >conftest.$ac_ext <<_ACEOF
48457 /* confdefs.h.  */
48458 _ACEOF
48459 cat confdefs.h >>conftest.$ac_ext
48460 cat >>conftest.$ac_ext <<_ACEOF
48461 /* end confdefs.h.  */
48462 #include <$header>
48463
48464 _ACEOF
48465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48466   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
48467   ice_cv_have_setpgid_decl=yes
48468 fi
48469 rm -f conftest*
48470
48471 if test "$ice_cv_have_setpgid_decl" = yes; then
48472         break
48473 fi
48474 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48475 cat >conftest.$ac_ext <<_ACEOF
48476 /* confdefs.h.  */
48477 _ACEOF
48478 cat confdefs.h >>conftest.$ac_ext
48479 cat >>conftest.$ac_ext <<_ACEOF
48480 /* end confdefs.h.  */
48481 #include <$header>
48482
48483 _ACEOF
48484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48485   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48486   ice_cv_have_setpgid_decl=yes
48487 fi
48488 rm -f conftest*
48489
48490 if test "$ice_cv_have_setpgid_decl" = yes; then
48491         break
48492 fi
48493 done
48494
48495 fi
48496
48497 echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
48498 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6
48499 if test "$ice_cv_have_setpgid_decl" = yes; then
48500
48501 cat >>confdefs.h <<_ACEOF
48502 #define HAVE_SETPGID_DECL 1
48503 _ACEOF
48504
48505 fi
48506 fi
48507
48508
48509 fi
48510
48511 echo "$as_me:$LINENO: checking for setpgrp" >&5
48512 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
48513 if test "${ac_cv_func_setpgrp+set}" = set; then
48514   echo $ECHO_N "(cached) $ECHO_C" >&6
48515 else
48516   cat >conftest.$ac_ext <<_ACEOF
48517 /* confdefs.h.  */
48518 _ACEOF
48519 cat confdefs.h >>conftest.$ac_ext
48520 cat >>conftest.$ac_ext <<_ACEOF
48521 /* end confdefs.h.  */
48522 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
48523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48524 #define setpgrp innocuous_setpgrp
48525
48526 /* System header to define __stub macros and hopefully few prototypes,
48527     which can conflict with char setpgrp (); below.
48528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48529     <limits.h> exists even on freestanding compilers.  */
48530
48531 #ifdef __STDC__
48532 # include <limits.h>
48533 #else
48534 # include <assert.h>
48535 #endif
48536
48537 #undef setpgrp
48538
48539 /* Override any gcc2 internal prototype to avoid an error.  */
48540 #ifdef __cplusplus
48541 extern "C"
48542 {
48543 #endif
48544 /* We use char because int might match the return type of a gcc2
48545    builtin and then its argument prototype would still apply.  */
48546 char setpgrp ();
48547 /* The GNU C library defines this for functions which it implements
48548     to always fail with ENOSYS.  Some functions are actually named
48549     something starting with __ and the normal name is an alias.  */
48550 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
48551 choke me
48552 #else
48553 char (*f) () = setpgrp;
48554 #endif
48555 #ifdef __cplusplus
48556 }
48557 #endif
48558
48559 int
48560 main ()
48561 {
48562 return f != setpgrp;
48563   ;
48564   return 0;
48565 }
48566 _ACEOF
48567 rm -f conftest.$ac_objext conftest$ac_exeext
48568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48569   (eval $ac_link) 2>conftest.er1
48570   ac_status=$?
48571   grep -v '^ *+' conftest.er1 >conftest.err
48572   rm -f conftest.er1
48573   cat conftest.err >&5
48574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48575   (exit $ac_status); } &&
48576          { ac_try='test -z "$ac_c_werror_flag"
48577                          || test ! -s conftest.err'
48578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48579   (eval $ac_try) 2>&5
48580   ac_status=$?
48581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48582   (exit $ac_status); }; } &&
48583          { ac_try='test -s conftest$ac_exeext'
48584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48585   (eval $ac_try) 2>&5
48586   ac_status=$?
48587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48588   (exit $ac_status); }; }; then
48589   ac_cv_func_setpgrp=yes
48590 else
48591   echo "$as_me: failed program was:" >&5
48592 sed 's/^/| /' conftest.$ac_ext >&5
48593
48594 ac_cv_func_setpgrp=no
48595 fi
48596 rm -f conftest.err conftest.$ac_objext \
48597       conftest$ac_exeext conftest.$ac_ext
48598 fi
48599 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
48600 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
48601 if test $ac_cv_func_setpgrp = yes; then
48602   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
48603 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
48604 if test "${ac_cv_func_setpgrp_void+set}" = set; then
48605   echo $ECHO_N "(cached) $ECHO_C" >&6
48606 else
48607   if test "$cross_compiling" = yes; then
48608   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
48609 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
48610    { (exit 1); exit 1; }; }
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 #if HAVE_UNISTD_H
48619 # include <unistd.h>
48620 #endif
48621
48622 int
48623 main ()
48624 {
48625 /* If this system has a BSD-style setpgrp which takes arguments,
48626   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
48627   exit successfully. */
48628   exit (setpgrp (1,1) == -1 ? 0 : 1);
48629   ;
48630   return 0;
48631 }
48632 _ACEOF
48633 rm -f conftest$ac_exeext
48634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48635   (eval $ac_link) 2>&5
48636   ac_status=$?
48637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48640   (eval $ac_try) 2>&5
48641   ac_status=$?
48642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48643   (exit $ac_status); }; }; then
48644   ac_cv_func_setpgrp_void=no
48645 else
48646   echo "$as_me: program exited with status $ac_status" >&5
48647 echo "$as_me: failed program was:" >&5
48648 sed 's/^/| /' conftest.$ac_ext >&5
48649
48650 ( exit $ac_status )
48651 ac_cv_func_setpgrp_void=yes
48652 fi
48653 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48654 fi
48655 fi
48656 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
48657 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
48658 if test $ac_cv_func_setpgrp_void = yes; then
48659
48660 cat >>confdefs.h <<\_ACEOF
48661 #define SETPGRP_VOID 1
48662 _ACEOF
48663
48664 fi
48665
48666 fi
48667
48668
48669 ice_have_setpgrp=no
48670
48671 for ac_func in setpgrp
48672 do
48673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48674 echo "$as_me:$LINENO: checking for $ac_func" >&5
48675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48676 if eval "test \"\${$as_ac_var+set}\" = set"; then
48677   echo $ECHO_N "(cached) $ECHO_C" >&6
48678 else
48679   cat >conftest.$ac_ext <<_ACEOF
48680 /* confdefs.h.  */
48681 _ACEOF
48682 cat confdefs.h >>conftest.$ac_ext
48683 cat >>conftest.$ac_ext <<_ACEOF
48684 /* end confdefs.h.  */
48685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48687 #define $ac_func innocuous_$ac_func
48688
48689 /* System header to define __stub macros and hopefully few prototypes,
48690     which can conflict with char $ac_func (); below.
48691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48692     <limits.h> exists even on freestanding compilers.  */
48693
48694 #ifdef __STDC__
48695 # include <limits.h>
48696 #else
48697 # include <assert.h>
48698 #endif
48699
48700 #undef $ac_func
48701
48702 /* Override any gcc2 internal prototype to avoid an error.  */
48703 #ifdef __cplusplus
48704 extern "C"
48705 {
48706 #endif
48707 /* We use char because int might match the return type of a gcc2
48708    builtin and then its argument prototype would still apply.  */
48709 char $ac_func ();
48710 /* The GNU C library defines this for functions which it implements
48711     to always fail with ENOSYS.  Some functions are actually named
48712     something starting with __ and the normal name is an alias.  */
48713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48714 choke me
48715 #else
48716 char (*f) () = $ac_func;
48717 #endif
48718 #ifdef __cplusplus
48719 }
48720 #endif
48721
48722 int
48723 main ()
48724 {
48725 return f != $ac_func;
48726   ;
48727   return 0;
48728 }
48729 _ACEOF
48730 rm -f conftest.$ac_objext conftest$ac_exeext
48731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48732   (eval $ac_link) 2>conftest.er1
48733   ac_status=$?
48734   grep -v '^ *+' conftest.er1 >conftest.err
48735   rm -f conftest.er1
48736   cat conftest.err >&5
48737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48738   (exit $ac_status); } &&
48739          { ac_try='test -z "$ac_c_werror_flag"
48740                          || test ! -s conftest.err'
48741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48742   (eval $ac_try) 2>&5
48743   ac_status=$?
48744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48745   (exit $ac_status); }; } &&
48746          { ac_try='test -s conftest$ac_exeext'
48747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48748   (eval $ac_try) 2>&5
48749   ac_status=$?
48750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48751   (exit $ac_status); }; }; then
48752   eval "$as_ac_var=yes"
48753 else
48754   echo "$as_me: failed program was:" >&5
48755 sed 's/^/| /' conftest.$ac_ext >&5
48756
48757 eval "$as_ac_var=no"
48758 fi
48759 rm -f conftest.err conftest.$ac_objext \
48760       conftest$ac_exeext conftest.$ac_ext
48761 fi
48762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48764 if test `eval echo '${'$as_ac_var'}'` = yes; then
48765   cat >>confdefs.h <<_ACEOF
48766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48767 _ACEOF
48768  ice_have_setpgrp=yes
48769 fi
48770 done
48771
48772 if test "${ice_have_setpgrp}" = yes; then
48773 echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
48774 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6
48775 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
48776   echo $ECHO_N "(cached) $ECHO_C" >&6
48777 else
48778
48779 ice_cv_have_setpgrp_decl=no
48780 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48781 ice_re_word='(^|[^a-zA-Z0-9_])'
48782 for header in sys/types.h unistd.h libc.h; do
48783 # Check for ordinary declaration
48784 cat >conftest.$ac_ext <<_ACEOF
48785 /* confdefs.h.  */
48786 _ACEOF
48787 cat confdefs.h >>conftest.$ac_ext
48788 cat >>conftest.$ac_ext <<_ACEOF
48789 /* end confdefs.h.  */
48790 #include <$header>
48791
48792 _ACEOF
48793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48794   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
48795   ice_cv_have_setpgrp_decl=yes
48796 fi
48797 rm -f conftest*
48798
48799 if test "$ice_cv_have_setpgrp_decl" = yes; then
48800         break
48801 fi
48802 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48803 cat >conftest.$ac_ext <<_ACEOF
48804 /* confdefs.h.  */
48805 _ACEOF
48806 cat confdefs.h >>conftest.$ac_ext
48807 cat >>conftest.$ac_ext <<_ACEOF
48808 /* end confdefs.h.  */
48809 #include <$header>
48810
48811 _ACEOF
48812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48813   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48814   ice_cv_have_setpgrp_decl=yes
48815 fi
48816 rm -f conftest*
48817
48818 if test "$ice_cv_have_setpgrp_decl" = yes; then
48819         break
48820 fi
48821 done
48822
48823 fi
48824
48825 echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
48826 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6
48827 if test "$ice_cv_have_setpgrp_decl" = yes; then
48828
48829 cat >>confdefs.h <<_ACEOF
48830 #define HAVE_SETPGRP_DECL 1
48831 _ACEOF
48832
48833 fi
48834 fi
48835
48836
48837
48838 ice_have_setsockopt=no
48839
48840 for ac_func in setsockopt
48841 do
48842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48843 echo "$as_me:$LINENO: checking for $ac_func" >&5
48844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48845 if eval "test \"\${$as_ac_var+set}\" = set"; then
48846   echo $ECHO_N "(cached) $ECHO_C" >&6
48847 else
48848   cat >conftest.$ac_ext <<_ACEOF
48849 /* confdefs.h.  */
48850 _ACEOF
48851 cat confdefs.h >>conftest.$ac_ext
48852 cat >>conftest.$ac_ext <<_ACEOF
48853 /* end confdefs.h.  */
48854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48856 #define $ac_func innocuous_$ac_func
48857
48858 /* System header to define __stub macros and hopefully few prototypes,
48859     which can conflict with char $ac_func (); below.
48860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48861     <limits.h> exists even on freestanding compilers.  */
48862
48863 #ifdef __STDC__
48864 # include <limits.h>
48865 #else
48866 # include <assert.h>
48867 #endif
48868
48869 #undef $ac_func
48870
48871 /* Override any gcc2 internal prototype to avoid an error.  */
48872 #ifdef __cplusplus
48873 extern "C"
48874 {
48875 #endif
48876 /* We use char because int might match the return type of a gcc2
48877    builtin and then its argument prototype would still apply.  */
48878 char $ac_func ();
48879 /* The GNU C library defines this for functions which it implements
48880     to always fail with ENOSYS.  Some functions are actually named
48881     something starting with __ and the normal name is an alias.  */
48882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48883 choke me
48884 #else
48885 char (*f) () = $ac_func;
48886 #endif
48887 #ifdef __cplusplus
48888 }
48889 #endif
48890
48891 int
48892 main ()
48893 {
48894 return f != $ac_func;
48895   ;
48896   return 0;
48897 }
48898 _ACEOF
48899 rm -f conftest.$ac_objext conftest$ac_exeext
48900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48901   (eval $ac_link) 2>conftest.er1
48902   ac_status=$?
48903   grep -v '^ *+' conftest.er1 >conftest.err
48904   rm -f conftest.er1
48905   cat conftest.err >&5
48906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48907   (exit $ac_status); } &&
48908          { ac_try='test -z "$ac_c_werror_flag"
48909                          || test ! -s conftest.err'
48910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48911   (eval $ac_try) 2>&5
48912   ac_status=$?
48913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48914   (exit $ac_status); }; } &&
48915          { ac_try='test -s conftest$ac_exeext'
48916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48917   (eval $ac_try) 2>&5
48918   ac_status=$?
48919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48920   (exit $ac_status); }; }; then
48921   eval "$as_ac_var=yes"
48922 else
48923   echo "$as_me: failed program was:" >&5
48924 sed 's/^/| /' conftest.$ac_ext >&5
48925
48926 eval "$as_ac_var=no"
48927 fi
48928 rm -f conftest.err conftest.$ac_objext \
48929       conftest$ac_exeext conftest.$ac_ext
48930 fi
48931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48933 if test `eval echo '${'$as_ac_var'}'` = yes; then
48934   cat >>confdefs.h <<_ACEOF
48935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48936 _ACEOF
48937  ice_have_setsockopt=yes
48938 fi
48939 done
48940
48941 if test "${ice_have_setsockopt}" = yes; then
48942 echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
48943 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
48944 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
48945   echo $ECHO_N "(cached) $ECHO_C" >&6
48946 else
48947
48948 ice_cv_have_setsockopt_decl=no
48949 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48950 ice_re_word='(^|[^a-zA-Z0-9_])'
48951 for header in sys/types.h sys/socket.h; do
48952 # Check for ordinary declaration
48953 cat >conftest.$ac_ext <<_ACEOF
48954 /* confdefs.h.  */
48955 _ACEOF
48956 cat confdefs.h >>conftest.$ac_ext
48957 cat >>conftest.$ac_ext <<_ACEOF
48958 /* end confdefs.h.  */
48959 #include <$header>
48960
48961 _ACEOF
48962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48963   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
48964   ice_cv_have_setsockopt_decl=yes
48965 fi
48966 rm -f conftest*
48967
48968 if test "$ice_cv_have_setsockopt_decl" = yes; then
48969         break
48970 fi
48971 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48972 cat >conftest.$ac_ext <<_ACEOF
48973 /* confdefs.h.  */
48974 _ACEOF
48975 cat confdefs.h >>conftest.$ac_ext
48976 cat >>conftest.$ac_ext <<_ACEOF
48977 /* end confdefs.h.  */
48978 #include <$header>
48979
48980 _ACEOF
48981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48982   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48983   ice_cv_have_setsockopt_decl=yes
48984 fi
48985 rm -f conftest*
48986
48987 if test "$ice_cv_have_setsockopt_decl" = yes; then
48988         break
48989 fi
48990 done
48991
48992 fi
48993
48994 echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
48995 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6
48996 if test "$ice_cv_have_setsockopt_decl" = yes; then
48997
48998 cat >>confdefs.h <<_ACEOF
48999 #define HAVE_SETSOCKOPT_DECL 1
49000 _ACEOF
49001
49002 fi
49003 fi
49004
49005
49006
49007 for ac_func in shmget
49008 do
49009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49010 echo "$as_me:$LINENO: checking for $ac_func" >&5
49011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49012 if eval "test \"\${$as_ac_var+set}\" = set"; then
49013   echo $ECHO_N "(cached) $ECHO_C" >&6
49014 else
49015   cat >conftest.$ac_ext <<_ACEOF
49016 /* confdefs.h.  */
49017 _ACEOF
49018 cat confdefs.h >>conftest.$ac_ext
49019 cat >>conftest.$ac_ext <<_ACEOF
49020 /* end confdefs.h.  */
49021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49023 #define $ac_func innocuous_$ac_func
49024
49025 /* System header to define __stub macros and hopefully few prototypes,
49026     which can conflict with char $ac_func (); below.
49027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49028     <limits.h> exists even on freestanding compilers.  */
49029
49030 #ifdef __STDC__
49031 # include <limits.h>
49032 #else
49033 # include <assert.h>
49034 #endif
49035
49036 #undef $ac_func
49037
49038 /* Override any gcc2 internal prototype to avoid an error.  */
49039 #ifdef __cplusplus
49040 extern "C"
49041 {
49042 #endif
49043 /* We use char because int might match the return type of a gcc2
49044    builtin and then its argument prototype would still apply.  */
49045 char $ac_func ();
49046 /* The GNU C library defines this for functions which it implements
49047     to always fail with ENOSYS.  Some functions are actually named
49048     something starting with __ and the normal name is an alias.  */
49049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49050 choke me
49051 #else
49052 char (*f) () = $ac_func;
49053 #endif
49054 #ifdef __cplusplus
49055 }
49056 #endif
49057
49058 int
49059 main ()
49060 {
49061 return f != $ac_func;
49062   ;
49063   return 0;
49064 }
49065 _ACEOF
49066 rm -f conftest.$ac_objext conftest$ac_exeext
49067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49068   (eval $ac_link) 2>conftest.er1
49069   ac_status=$?
49070   grep -v '^ *+' conftest.er1 >conftest.err
49071   rm -f conftest.er1
49072   cat conftest.err >&5
49073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49074   (exit $ac_status); } &&
49075          { ac_try='test -z "$ac_c_werror_flag"
49076                          || test ! -s conftest.err'
49077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49078   (eval $ac_try) 2>&5
49079   ac_status=$?
49080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49081   (exit $ac_status); }; } &&
49082          { ac_try='test -s conftest$ac_exeext'
49083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49084   (eval $ac_try) 2>&5
49085   ac_status=$?
49086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49087   (exit $ac_status); }; }; then
49088   eval "$as_ac_var=yes"
49089 else
49090   echo "$as_me: failed program was:" >&5
49091 sed 's/^/| /' conftest.$ac_ext >&5
49092
49093 eval "$as_ac_var=no"
49094 fi
49095 rm -f conftest.err conftest.$ac_objext \
49096       conftest$ac_exeext conftest.$ac_ext
49097 fi
49098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49100 if test `eval echo '${'$as_ac_var'}'` = yes; then
49101   cat >>confdefs.h <<_ACEOF
49102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49103 _ACEOF
49104
49105
49106         echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
49107 echo $ECHO_N "checking for shmdt() argument type... $ECHO_C" >&6
49108 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
49109   echo $ECHO_N "(cached) $ECHO_C" >&6
49110 else
49111
49112                 if test "$ac_cv_func_shmget" = yes; then
49113                     cat <<EOF >conftest.$ac_ext
49114 #include "confdefs.h"
49115 #ifdef HAVE_SYS_TYPES_H
49116 # include <sys/types.h>
49117 #endif
49118 #ifdef HAVE_SYS_IPC_H
49119 # include <sys/ipc.h>
49120 #endif
49121 #ifdef HAVE_SYS_SHM_H
49122 # include <sys/shm.h>
49123 #endif
49124
49125 #ifdef __cplusplus
49126 extern "C" void *shmat(int, void *, int);
49127 #else
49128 void *shmat();
49129 #endif
49130
49131 int main()
49132 {
49133     int i;
49134     return 0;
49135 }
49136 EOF
49137                     ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
49138                     if test $? = 0; then
49139                         amanda_cv_shmdt_arg_type=void
49140                     else
49141                         amanda_cv_shmdt_arg_type=char
49142                     fi
49143                     rm -f conftest*
49144                 else
49145                     amanda_cv_shmdt_arg_type=nothing
49146                 fi
49147
49148
49149 fi
49150 echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
49151 echo "${ECHO_T}$amanda_cv_shmdt_arg_type" >&6
49152
49153 cat >>confdefs.h <<_ACEOF
49154 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
49155 _ACEOF
49156
49157
49158
49159         case "$FORCE_MMAP" in
49160         n | no)
49161
49162 cat >>confdefs.h <<\_ACEOF
49163 #define HAVE_SYSVSHM 1
49164 _ACEOF
49165
49166           ;;
49167         esac
49168
49169
49170 fi
49171 done
49172
49173
49174 ice_have_shmat=no
49175
49176 for ac_func in shmat
49177 do
49178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49179 echo "$as_me:$LINENO: checking for $ac_func" >&5
49180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49181 if eval "test \"\${$as_ac_var+set}\" = set"; then
49182   echo $ECHO_N "(cached) $ECHO_C" >&6
49183 else
49184   cat >conftest.$ac_ext <<_ACEOF
49185 /* confdefs.h.  */
49186 _ACEOF
49187 cat confdefs.h >>conftest.$ac_ext
49188 cat >>conftest.$ac_ext <<_ACEOF
49189 /* end confdefs.h.  */
49190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49192 #define $ac_func innocuous_$ac_func
49193
49194 /* System header to define __stub macros and hopefully few prototypes,
49195     which can conflict with char $ac_func (); below.
49196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49197     <limits.h> exists even on freestanding compilers.  */
49198
49199 #ifdef __STDC__
49200 # include <limits.h>
49201 #else
49202 # include <assert.h>
49203 #endif
49204
49205 #undef $ac_func
49206
49207 /* Override any gcc2 internal prototype to avoid an error.  */
49208 #ifdef __cplusplus
49209 extern "C"
49210 {
49211 #endif
49212 /* We use char because int might match the return type of a gcc2
49213    builtin and then its argument prototype would still apply.  */
49214 char $ac_func ();
49215 /* The GNU C library defines this for functions which it implements
49216     to always fail with ENOSYS.  Some functions are actually named
49217     something starting with __ and the normal name is an alias.  */
49218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49219 choke me
49220 #else
49221 char (*f) () = $ac_func;
49222 #endif
49223 #ifdef __cplusplus
49224 }
49225 #endif
49226
49227 int
49228 main ()
49229 {
49230 return f != $ac_func;
49231   ;
49232   return 0;
49233 }
49234 _ACEOF
49235 rm -f conftest.$ac_objext conftest$ac_exeext
49236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49237   (eval $ac_link) 2>conftest.er1
49238   ac_status=$?
49239   grep -v '^ *+' conftest.er1 >conftest.err
49240   rm -f conftest.er1
49241   cat conftest.err >&5
49242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49243   (exit $ac_status); } &&
49244          { ac_try='test -z "$ac_c_werror_flag"
49245                          || test ! -s conftest.err'
49246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49247   (eval $ac_try) 2>&5
49248   ac_status=$?
49249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49250   (exit $ac_status); }; } &&
49251          { ac_try='test -s conftest$ac_exeext'
49252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49253   (eval $ac_try) 2>&5
49254   ac_status=$?
49255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49256   (exit $ac_status); }; }; then
49257   eval "$as_ac_var=yes"
49258 else
49259   echo "$as_me: failed program was:" >&5
49260 sed 's/^/| /' conftest.$ac_ext >&5
49261
49262 eval "$as_ac_var=no"
49263 fi
49264 rm -f conftest.err conftest.$ac_objext \
49265       conftest$ac_exeext conftest.$ac_ext
49266 fi
49267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49269 if test `eval echo '${'$as_ac_var'}'` = yes; then
49270   cat >>confdefs.h <<_ACEOF
49271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49272 _ACEOF
49273  ice_have_shmat=yes
49274 fi
49275 done
49276
49277 if test "${ice_have_shmat}" = yes; then
49278 echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
49279 echo $ECHO_N "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
49280 if test "${ice_cv_have_shmat_decl+set}" = set; then
49281   echo $ECHO_N "(cached) $ECHO_C" >&6
49282 else
49283
49284 ice_cv_have_shmat_decl=no
49285 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49286 ice_re_word='(^|[^a-zA-Z0-9_])'
49287 for header in sys/types.h sys/ipc.h sys/shm.h; do
49288 # Check for ordinary declaration
49289 cat >conftest.$ac_ext <<_ACEOF
49290 /* confdefs.h.  */
49291 _ACEOF
49292 cat confdefs.h >>conftest.$ac_ext
49293 cat >>conftest.$ac_ext <<_ACEOF
49294 /* end confdefs.h.  */
49295 #include <$header>
49296
49297 _ACEOF
49298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49299   $EGREP "${ice_re_word}shmat[  ]*\(" >/dev/null 2>&1; then
49300   ice_cv_have_shmat_decl=yes
49301 fi
49302 rm -f conftest*
49303
49304 if test "$ice_cv_have_shmat_decl" = yes; then
49305         break
49306 fi
49307 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49308 cat >conftest.$ac_ext <<_ACEOF
49309 /* confdefs.h.  */
49310 _ACEOF
49311 cat confdefs.h >>conftest.$ac_ext
49312 cat >>conftest.$ac_ext <<_ACEOF
49313 /* end confdefs.h.  */
49314 #include <$header>
49315
49316 _ACEOF
49317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49318   $EGREP "${ice_re_word}shmat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49319   ice_cv_have_shmat_decl=yes
49320 fi
49321 rm -f conftest*
49322
49323 if test "$ice_cv_have_shmat_decl" = yes; then
49324         break
49325 fi
49326 done
49327
49328 fi
49329
49330 echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
49331 echo "${ECHO_T}$ice_cv_have_shmat_decl" >&6
49332 if test "$ice_cv_have_shmat_decl" = yes; then
49333
49334 cat >>confdefs.h <<_ACEOF
49335 #define HAVE_SHMAT_DECL 1
49336 _ACEOF
49337
49338 fi
49339 fi
49340
49341
49342 ice_have_shmctl=no
49343
49344 for ac_func in shmctl
49345 do
49346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49347 echo "$as_me:$LINENO: checking for $ac_func" >&5
49348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49349 if eval "test \"\${$as_ac_var+set}\" = set"; then
49350   echo $ECHO_N "(cached) $ECHO_C" >&6
49351 else
49352   cat >conftest.$ac_ext <<_ACEOF
49353 /* confdefs.h.  */
49354 _ACEOF
49355 cat confdefs.h >>conftest.$ac_ext
49356 cat >>conftest.$ac_ext <<_ACEOF
49357 /* end confdefs.h.  */
49358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49360 #define $ac_func innocuous_$ac_func
49361
49362 /* System header to define __stub macros and hopefully few prototypes,
49363     which can conflict with char $ac_func (); below.
49364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49365     <limits.h> exists even on freestanding compilers.  */
49366
49367 #ifdef __STDC__
49368 # include <limits.h>
49369 #else
49370 # include <assert.h>
49371 #endif
49372
49373 #undef $ac_func
49374
49375 /* Override any gcc2 internal prototype to avoid an error.  */
49376 #ifdef __cplusplus
49377 extern "C"
49378 {
49379 #endif
49380 /* We use char because int might match the return type of a gcc2
49381    builtin and then its argument prototype would still apply.  */
49382 char $ac_func ();
49383 /* The GNU C library defines this for functions which it implements
49384     to always fail with ENOSYS.  Some functions are actually named
49385     something starting with __ and the normal name is an alias.  */
49386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49387 choke me
49388 #else
49389 char (*f) () = $ac_func;
49390 #endif
49391 #ifdef __cplusplus
49392 }
49393 #endif
49394
49395 int
49396 main ()
49397 {
49398 return f != $ac_func;
49399   ;
49400   return 0;
49401 }
49402 _ACEOF
49403 rm -f conftest.$ac_objext conftest$ac_exeext
49404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49405   (eval $ac_link) 2>conftest.er1
49406   ac_status=$?
49407   grep -v '^ *+' conftest.er1 >conftest.err
49408   rm -f conftest.er1
49409   cat conftest.err >&5
49410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49411   (exit $ac_status); } &&
49412          { ac_try='test -z "$ac_c_werror_flag"
49413                          || test ! -s conftest.err'
49414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49415   (eval $ac_try) 2>&5
49416   ac_status=$?
49417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49418   (exit $ac_status); }; } &&
49419          { ac_try='test -s conftest$ac_exeext'
49420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49421   (eval $ac_try) 2>&5
49422   ac_status=$?
49423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49424   (exit $ac_status); }; }; then
49425   eval "$as_ac_var=yes"
49426 else
49427   echo "$as_me: failed program was:" >&5
49428 sed 's/^/| /' conftest.$ac_ext >&5
49429
49430 eval "$as_ac_var=no"
49431 fi
49432 rm -f conftest.err conftest.$ac_objext \
49433       conftest$ac_exeext conftest.$ac_ext
49434 fi
49435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49437 if test `eval echo '${'$as_ac_var'}'` = yes; then
49438   cat >>confdefs.h <<_ACEOF
49439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49440 _ACEOF
49441  ice_have_shmctl=yes
49442 fi
49443 done
49444
49445 if test "${ice_have_shmctl}" = yes; then
49446 echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
49447 echo $ECHO_N "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
49448 if test "${ice_cv_have_shmctl_decl+set}" = set; then
49449   echo $ECHO_N "(cached) $ECHO_C" >&6
49450 else
49451
49452 ice_cv_have_shmctl_decl=no
49453 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49454 ice_re_word='(^|[^a-zA-Z0-9_])'
49455 for header in sys/types.h sys/ipc.h sys/shm.h; do
49456 # Check for ordinary declaration
49457 cat >conftest.$ac_ext <<_ACEOF
49458 /* confdefs.h.  */
49459 _ACEOF
49460 cat confdefs.h >>conftest.$ac_ext
49461 cat >>conftest.$ac_ext <<_ACEOF
49462 /* end confdefs.h.  */
49463 #include <$header>
49464
49465 _ACEOF
49466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49467   $EGREP "${ice_re_word}shmctl[         ]*\(" >/dev/null 2>&1; then
49468   ice_cv_have_shmctl_decl=yes
49469 fi
49470 rm -f conftest*
49471
49472 if test "$ice_cv_have_shmctl_decl" = yes; then
49473         break
49474 fi
49475 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49476 cat >conftest.$ac_ext <<_ACEOF
49477 /* confdefs.h.  */
49478 _ACEOF
49479 cat confdefs.h >>conftest.$ac_ext
49480 cat >>conftest.$ac_ext <<_ACEOF
49481 /* end confdefs.h.  */
49482 #include <$header>
49483
49484 _ACEOF
49485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49486   $EGREP "${ice_re_word}shmctl[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49487   ice_cv_have_shmctl_decl=yes
49488 fi
49489 rm -f conftest*
49490
49491 if test "$ice_cv_have_shmctl_decl" = yes; then
49492         break
49493 fi
49494 done
49495
49496 fi
49497
49498 echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
49499 echo "${ECHO_T}$ice_cv_have_shmctl_decl" >&6
49500 if test "$ice_cv_have_shmctl_decl" = yes; then
49501
49502 cat >>confdefs.h <<_ACEOF
49503 #define HAVE_SHMCTL_DECL 1
49504 _ACEOF
49505
49506 fi
49507 fi
49508
49509
49510 ice_have_shmdt=no
49511
49512 for ac_func in shmdt
49513 do
49514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49515 echo "$as_me:$LINENO: checking for $ac_func" >&5
49516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49517 if eval "test \"\${$as_ac_var+set}\" = set"; then
49518   echo $ECHO_N "(cached) $ECHO_C" >&6
49519 else
49520   cat >conftest.$ac_ext <<_ACEOF
49521 /* confdefs.h.  */
49522 _ACEOF
49523 cat confdefs.h >>conftest.$ac_ext
49524 cat >>conftest.$ac_ext <<_ACEOF
49525 /* end confdefs.h.  */
49526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49528 #define $ac_func innocuous_$ac_func
49529
49530 /* System header to define __stub macros and hopefully few prototypes,
49531     which can conflict with char $ac_func (); below.
49532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49533     <limits.h> exists even on freestanding compilers.  */
49534
49535 #ifdef __STDC__
49536 # include <limits.h>
49537 #else
49538 # include <assert.h>
49539 #endif
49540
49541 #undef $ac_func
49542
49543 /* Override any gcc2 internal prototype to avoid an error.  */
49544 #ifdef __cplusplus
49545 extern "C"
49546 {
49547 #endif
49548 /* We use char because int might match the return type of a gcc2
49549    builtin and then its argument prototype would still apply.  */
49550 char $ac_func ();
49551 /* The GNU C library defines this for functions which it implements
49552     to always fail with ENOSYS.  Some functions are actually named
49553     something starting with __ and the normal name is an alias.  */
49554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49555 choke me
49556 #else
49557 char (*f) () = $ac_func;
49558 #endif
49559 #ifdef __cplusplus
49560 }
49561 #endif
49562
49563 int
49564 main ()
49565 {
49566 return f != $ac_func;
49567   ;
49568   return 0;
49569 }
49570 _ACEOF
49571 rm -f conftest.$ac_objext conftest$ac_exeext
49572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49573   (eval $ac_link) 2>conftest.er1
49574   ac_status=$?
49575   grep -v '^ *+' conftest.er1 >conftest.err
49576   rm -f conftest.er1
49577   cat conftest.err >&5
49578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49579   (exit $ac_status); } &&
49580          { ac_try='test -z "$ac_c_werror_flag"
49581                          || test ! -s conftest.err'
49582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49583   (eval $ac_try) 2>&5
49584   ac_status=$?
49585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49586   (exit $ac_status); }; } &&
49587          { ac_try='test -s conftest$ac_exeext'
49588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49589   (eval $ac_try) 2>&5
49590   ac_status=$?
49591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49592   (exit $ac_status); }; }; then
49593   eval "$as_ac_var=yes"
49594 else
49595   echo "$as_me: failed program was:" >&5
49596 sed 's/^/| /' conftest.$ac_ext >&5
49597
49598 eval "$as_ac_var=no"
49599 fi
49600 rm -f conftest.err conftest.$ac_objext \
49601       conftest$ac_exeext conftest.$ac_ext
49602 fi
49603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49605 if test `eval echo '${'$as_ac_var'}'` = yes; then
49606   cat >>confdefs.h <<_ACEOF
49607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49608 _ACEOF
49609  ice_have_shmdt=yes
49610 fi
49611 done
49612
49613 if test "${ice_have_shmdt}" = yes; then
49614 echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
49615 echo $ECHO_N "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
49616 if test "${ice_cv_have_shmdt_decl+set}" = set; then
49617   echo $ECHO_N "(cached) $ECHO_C" >&6
49618 else
49619
49620 ice_cv_have_shmdt_decl=no
49621 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49622 ice_re_word='(^|[^a-zA-Z0-9_])'
49623 for header in sys/types.h sys/ipc.h sys/shm.h; do
49624 # Check for ordinary declaration
49625 cat >conftest.$ac_ext <<_ACEOF
49626 /* confdefs.h.  */
49627 _ACEOF
49628 cat confdefs.h >>conftest.$ac_ext
49629 cat >>conftest.$ac_ext <<_ACEOF
49630 /* end confdefs.h.  */
49631 #include <$header>
49632
49633 _ACEOF
49634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49635   $EGREP "${ice_re_word}shmdt[  ]*\(" >/dev/null 2>&1; then
49636   ice_cv_have_shmdt_decl=yes
49637 fi
49638 rm -f conftest*
49639
49640 if test "$ice_cv_have_shmdt_decl" = yes; then
49641         break
49642 fi
49643 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49644 cat >conftest.$ac_ext <<_ACEOF
49645 /* confdefs.h.  */
49646 _ACEOF
49647 cat confdefs.h >>conftest.$ac_ext
49648 cat >>conftest.$ac_ext <<_ACEOF
49649 /* end confdefs.h.  */
49650 #include <$header>
49651
49652 _ACEOF
49653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49654   $EGREP "${ice_re_word}shmdt[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49655   ice_cv_have_shmdt_decl=yes
49656 fi
49657 rm -f conftest*
49658
49659 if test "$ice_cv_have_shmdt_decl" = yes; then
49660         break
49661 fi
49662 done
49663
49664 fi
49665
49666 echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
49667 echo "${ECHO_T}$ice_cv_have_shmdt_decl" >&6
49668 if test "$ice_cv_have_shmdt_decl" = yes; then
49669
49670 cat >>confdefs.h <<_ACEOF
49671 #define HAVE_SHMDT_DECL 1
49672 _ACEOF
49673
49674 fi
49675 fi
49676
49677
49678 ice_have_shmget=no
49679
49680 for ac_func in shmget
49681 do
49682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49683 echo "$as_me:$LINENO: checking for $ac_func" >&5
49684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49685 if eval "test \"\${$as_ac_var+set}\" = set"; then
49686   echo $ECHO_N "(cached) $ECHO_C" >&6
49687 else
49688   cat >conftest.$ac_ext <<_ACEOF
49689 /* confdefs.h.  */
49690 _ACEOF
49691 cat confdefs.h >>conftest.$ac_ext
49692 cat >>conftest.$ac_ext <<_ACEOF
49693 /* end confdefs.h.  */
49694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49696 #define $ac_func innocuous_$ac_func
49697
49698 /* System header to define __stub macros and hopefully few prototypes,
49699     which can conflict with char $ac_func (); below.
49700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49701     <limits.h> exists even on freestanding compilers.  */
49702
49703 #ifdef __STDC__
49704 # include <limits.h>
49705 #else
49706 # include <assert.h>
49707 #endif
49708
49709 #undef $ac_func
49710
49711 /* Override any gcc2 internal prototype to avoid an error.  */
49712 #ifdef __cplusplus
49713 extern "C"
49714 {
49715 #endif
49716 /* We use char because int might match the return type of a gcc2
49717    builtin and then its argument prototype would still apply.  */
49718 char $ac_func ();
49719 /* The GNU C library defines this for functions which it implements
49720     to always fail with ENOSYS.  Some functions are actually named
49721     something starting with __ and the normal name is an alias.  */
49722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49723 choke me
49724 #else
49725 char (*f) () = $ac_func;
49726 #endif
49727 #ifdef __cplusplus
49728 }
49729 #endif
49730
49731 int
49732 main ()
49733 {
49734 return f != $ac_func;
49735   ;
49736   return 0;
49737 }
49738 _ACEOF
49739 rm -f conftest.$ac_objext conftest$ac_exeext
49740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49741   (eval $ac_link) 2>conftest.er1
49742   ac_status=$?
49743   grep -v '^ *+' conftest.er1 >conftest.err
49744   rm -f conftest.er1
49745   cat conftest.err >&5
49746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49747   (exit $ac_status); } &&
49748          { ac_try='test -z "$ac_c_werror_flag"
49749                          || test ! -s conftest.err'
49750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49751   (eval $ac_try) 2>&5
49752   ac_status=$?
49753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49754   (exit $ac_status); }; } &&
49755          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
49761   eval "$as_ac_var=yes"
49762 else
49763   echo "$as_me: failed program was:" >&5
49764 sed 's/^/| /' conftest.$ac_ext >&5
49765
49766 eval "$as_ac_var=no"
49767 fi
49768 rm -f conftest.err conftest.$ac_objext \
49769       conftest$ac_exeext conftest.$ac_ext
49770 fi
49771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49773 if test `eval echo '${'$as_ac_var'}'` = yes; then
49774   cat >>confdefs.h <<_ACEOF
49775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49776 _ACEOF
49777  ice_have_shmget=yes
49778 fi
49779 done
49780
49781 if test "${ice_have_shmget}" = yes; then
49782 echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
49783 echo $ECHO_N "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
49784 if test "${ice_cv_have_shmget_decl+set}" = set; then
49785   echo $ECHO_N "(cached) $ECHO_C" >&6
49786 else
49787
49788 ice_cv_have_shmget_decl=no
49789 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49790 ice_re_word='(^|[^a-zA-Z0-9_])'
49791 for header in sys/types.h sys/ipc.h sys/shm.h; do
49792 # Check for ordinary declaration
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 #include <$header>
49800
49801 _ACEOF
49802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49803   $EGREP "${ice_re_word}shmget[         ]*\(" >/dev/null 2>&1; then
49804   ice_cv_have_shmget_decl=yes
49805 fi
49806 rm -f conftest*
49807
49808 if test "$ice_cv_have_shmget_decl" = yes; then
49809         break
49810 fi
49811 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49812 cat >conftest.$ac_ext <<_ACEOF
49813 /* confdefs.h.  */
49814 _ACEOF
49815 cat confdefs.h >>conftest.$ac_ext
49816 cat >>conftest.$ac_ext <<_ACEOF
49817 /* end confdefs.h.  */
49818 #include <$header>
49819
49820 _ACEOF
49821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49822   $EGREP "${ice_re_word}shmget[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49823   ice_cv_have_shmget_decl=yes
49824 fi
49825 rm -f conftest*
49826
49827 if test "$ice_cv_have_shmget_decl" = yes; then
49828         break
49829 fi
49830 done
49831
49832 fi
49833
49834 echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
49835 echo "${ECHO_T}$ice_cv_have_shmget_decl" >&6
49836 if test "$ice_cv_have_shmget_decl" = yes; then
49837
49838 cat >>confdefs.h <<_ACEOF
49839 #define HAVE_SHMGET_DECL 1
49840 _ACEOF
49841
49842 fi
49843 fi
49844
49845
49846 if test "x$ac_cv_func_mmap_fixed_mapped" != xyes; then
49847     case "$FORCE_MMAP" in
49848     n | no)
49849         if test "x$ac_cv_func_shmget" != xyes; then
49850             { echo "$as_me:$LINENO: WARNING: *** Neither shmget() nor mmap() found!" >&5
49851 echo "$as_me: WARNING: *** Neither shmget() nor mmap() found!" >&2;}
49852             { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
49853 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
49854             NO_SERVER_MODE=true
49855         fi
49856       ;;
49857     y | ye | yes)
49858         { echo "$as_me:$LINENO: WARNING: *** --with-mmap used on a system with no mmap() support!" >&5
49859 echo "$as_me: WARNING: *** --with-mmap used on a system with no mmap() support!" >&2;}
49860         { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
49861 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
49862         NO_SERVER_MODE=true
49863       ;;
49864     esac
49865 fi
49866
49867
49868 ice_have_snprintf=no
49869
49870 for ac_func in snprintf
49871 do
49872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49873 echo "$as_me:$LINENO: checking for $ac_func" >&5
49874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49875 if eval "test \"\${$as_ac_var+set}\" = set"; then
49876   echo $ECHO_N "(cached) $ECHO_C" >&6
49877 else
49878   cat >conftest.$ac_ext <<_ACEOF
49879 /* confdefs.h.  */
49880 _ACEOF
49881 cat confdefs.h >>conftest.$ac_ext
49882 cat >>conftest.$ac_ext <<_ACEOF
49883 /* end confdefs.h.  */
49884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49886 #define $ac_func innocuous_$ac_func
49887
49888 /* System header to define __stub macros and hopefully few prototypes,
49889     which can conflict with char $ac_func (); below.
49890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49891     <limits.h> exists even on freestanding compilers.  */
49892
49893 #ifdef __STDC__
49894 # include <limits.h>
49895 #else
49896 # include <assert.h>
49897 #endif
49898
49899 #undef $ac_func
49900
49901 /* Override any gcc2 internal prototype to avoid an error.  */
49902 #ifdef __cplusplus
49903 extern "C"
49904 {
49905 #endif
49906 /* We use char because int might match the return type of a gcc2
49907    builtin and then its argument prototype would still apply.  */
49908 char $ac_func ();
49909 /* The GNU C library defines this for functions which it implements
49910     to always fail with ENOSYS.  Some functions are actually named
49911     something starting with __ and the normal name is an alias.  */
49912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49913 choke me
49914 #else
49915 char (*f) () = $ac_func;
49916 #endif
49917 #ifdef __cplusplus
49918 }
49919 #endif
49920
49921 int
49922 main ()
49923 {
49924 return f != $ac_func;
49925   ;
49926   return 0;
49927 }
49928 _ACEOF
49929 rm -f conftest.$ac_objext conftest$ac_exeext
49930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49931   (eval $ac_link) 2>conftest.er1
49932   ac_status=$?
49933   grep -v '^ *+' conftest.er1 >conftest.err
49934   rm -f conftest.er1
49935   cat conftest.err >&5
49936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49937   (exit $ac_status); } &&
49938          { ac_try='test -z "$ac_c_werror_flag"
49939                          || test ! -s conftest.err'
49940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49941   (eval $ac_try) 2>&5
49942   ac_status=$?
49943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49944   (exit $ac_status); }; } &&
49945          { ac_try='test -s conftest$ac_exeext'
49946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49947   (eval $ac_try) 2>&5
49948   ac_status=$?
49949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49950   (exit $ac_status); }; }; then
49951   eval "$as_ac_var=yes"
49952 else
49953   echo "$as_me: failed program was:" >&5
49954 sed 's/^/| /' conftest.$ac_ext >&5
49955
49956 eval "$as_ac_var=no"
49957 fi
49958 rm -f conftest.err conftest.$ac_objext \
49959       conftest$ac_exeext conftest.$ac_ext
49960 fi
49961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49963 if test `eval echo '${'$as_ac_var'}'` = yes; then
49964   cat >>confdefs.h <<_ACEOF
49965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49966 _ACEOF
49967  ice_have_snprintf=yes
49968 fi
49969 done
49970
49971 if test "${ice_have_snprintf}" = yes; then
49972 echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
49973 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6
49974 if test "${ice_cv_have_snprintf_decl+set}" = set; then
49975   echo $ECHO_N "(cached) $ECHO_C" >&6
49976 else
49977
49978 ice_cv_have_snprintf_decl=no
49979 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49980 ice_re_word='(^|[^a-zA-Z0-9_])'
49981 for header in stdio.h; do
49982 # Check for ordinary declaration
49983 cat >conftest.$ac_ext <<_ACEOF
49984 /* confdefs.h.  */
49985 _ACEOF
49986 cat confdefs.h >>conftest.$ac_ext
49987 cat >>conftest.$ac_ext <<_ACEOF
49988 /* end confdefs.h.  */
49989 #include <$header>
49990
49991 _ACEOF
49992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49993   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
49994   ice_cv_have_snprintf_decl=yes
49995 fi
49996 rm -f conftest*
49997
49998 if test "$ice_cv_have_snprintf_decl" = yes; then
49999         break
50000 fi
50001 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50002 cat >conftest.$ac_ext <<_ACEOF
50003 /* confdefs.h.  */
50004 _ACEOF
50005 cat confdefs.h >>conftest.$ac_ext
50006 cat >>conftest.$ac_ext <<_ACEOF
50007 /* end confdefs.h.  */
50008 #include <$header>
50009
50010 _ACEOF
50011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50012   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50013   ice_cv_have_snprintf_decl=yes
50014 fi
50015 rm -f conftest*
50016
50017 if test "$ice_cv_have_snprintf_decl" = yes; then
50018         break
50019 fi
50020 done
50021
50022 fi
50023
50024 echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
50025 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6
50026 if test "$ice_cv_have_snprintf_decl" = yes; then
50027
50028 cat >>confdefs.h <<_ACEOF
50029 #define HAVE_SNPRINTF_DECL 1
50030 _ACEOF
50031
50032 fi
50033 fi
50034
50035
50036 ice_have_vsnprintf=no
50037
50038 for ac_func in vsnprintf
50039 do
50040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50041 echo "$as_me:$LINENO: checking for $ac_func" >&5
50042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50043 if eval "test \"\${$as_ac_var+set}\" = set"; then
50044   echo $ECHO_N "(cached) $ECHO_C" >&6
50045 else
50046   cat >conftest.$ac_ext <<_ACEOF
50047 /* confdefs.h.  */
50048 _ACEOF
50049 cat confdefs.h >>conftest.$ac_ext
50050 cat >>conftest.$ac_ext <<_ACEOF
50051 /* end confdefs.h.  */
50052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50054 #define $ac_func innocuous_$ac_func
50055
50056 /* System header to define __stub macros and hopefully few prototypes,
50057     which can conflict with char $ac_func (); below.
50058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50059     <limits.h> exists even on freestanding compilers.  */
50060
50061 #ifdef __STDC__
50062 # include <limits.h>
50063 #else
50064 # include <assert.h>
50065 #endif
50066
50067 #undef $ac_func
50068
50069 /* Override any gcc2 internal prototype to avoid an error.  */
50070 #ifdef __cplusplus
50071 extern "C"
50072 {
50073 #endif
50074 /* We use char because int might match the return type of a gcc2
50075    builtin and then its argument prototype would still apply.  */
50076 char $ac_func ();
50077 /* The GNU C library defines this for functions which it implements
50078     to always fail with ENOSYS.  Some functions are actually named
50079     something starting with __ and the normal name is an alias.  */
50080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50081 choke me
50082 #else
50083 char (*f) () = $ac_func;
50084 #endif
50085 #ifdef __cplusplus
50086 }
50087 #endif
50088
50089 int
50090 main ()
50091 {
50092 return f != $ac_func;
50093   ;
50094   return 0;
50095 }
50096 _ACEOF
50097 rm -f conftest.$ac_objext conftest$ac_exeext
50098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50099   (eval $ac_link) 2>conftest.er1
50100   ac_status=$?
50101   grep -v '^ *+' conftest.er1 >conftest.err
50102   rm -f conftest.er1
50103   cat conftest.err >&5
50104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50105   (exit $ac_status); } &&
50106          { ac_try='test -z "$ac_c_werror_flag"
50107                          || test ! -s conftest.err'
50108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50109   (eval $ac_try) 2>&5
50110   ac_status=$?
50111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50112   (exit $ac_status); }; } &&
50113          { ac_try='test -s conftest$ac_exeext'
50114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50115   (eval $ac_try) 2>&5
50116   ac_status=$?
50117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50118   (exit $ac_status); }; }; then
50119   eval "$as_ac_var=yes"
50120 else
50121   echo "$as_me: failed program was:" >&5
50122 sed 's/^/| /' conftest.$ac_ext >&5
50123
50124 eval "$as_ac_var=no"
50125 fi
50126 rm -f conftest.err conftest.$ac_objext \
50127       conftest$ac_exeext conftest.$ac_ext
50128 fi
50129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50131 if test `eval echo '${'$as_ac_var'}'` = yes; then
50132   cat >>confdefs.h <<_ACEOF
50133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50134 _ACEOF
50135  ice_have_vsnprintf=yes
50136 fi
50137 done
50138
50139 if test "${ice_have_vsnprintf}" = yes; then
50140 echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
50141 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6
50142 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
50143   echo $ECHO_N "(cached) $ECHO_C" >&6
50144 else
50145
50146 ice_cv_have_vsnprintf_decl=no
50147 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50148 ice_re_word='(^|[^a-zA-Z0-9_])'
50149 for header in stdio.h; do
50150 # Check for ordinary declaration
50151 cat >conftest.$ac_ext <<_ACEOF
50152 /* confdefs.h.  */
50153 _ACEOF
50154 cat confdefs.h >>conftest.$ac_ext
50155 cat >>conftest.$ac_ext <<_ACEOF
50156 /* end confdefs.h.  */
50157 #include <$header>
50158
50159 _ACEOF
50160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50161   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
50162   ice_cv_have_vsnprintf_decl=yes
50163 fi
50164 rm -f conftest*
50165
50166 if test "$ice_cv_have_vsnprintf_decl" = yes; then
50167         break
50168 fi
50169 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50170 cat >conftest.$ac_ext <<_ACEOF
50171 /* confdefs.h.  */
50172 _ACEOF
50173 cat confdefs.h >>conftest.$ac_ext
50174 cat >>conftest.$ac_ext <<_ACEOF
50175 /* end confdefs.h.  */
50176 #include <$header>
50177
50178 _ACEOF
50179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50180   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50181   ice_cv_have_vsnprintf_decl=yes
50182 fi
50183 rm -f conftest*
50184
50185 if test "$ice_cv_have_vsnprintf_decl" = yes; then
50186         break
50187 fi
50188 done
50189
50190 fi
50191
50192 echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
50193 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6
50194 if test "$ice_cv_have_vsnprintf_decl" = yes; then
50195
50196 cat >>confdefs.h <<_ACEOF
50197 #define HAVE_VSNPRINTF_DECL 1
50198 _ACEOF
50199
50200 fi
50201 fi
50202
50203 if test x"$ice_have_snprintf" != x"yes" ||
50204    test x"$ice_have_vsnprintf" != x"yes"; then
50205     case $LIBOBJS in
50206     "snprintf.$ac_objext"   | \
50207   *" snprintf.$ac_objext"   | \
50208     "snprintf.$ac_objext "* | \
50209   *" snprintf.$ac_objext "* ) ;;
50210   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
50211 esac
50212
50213     if false; then :
50214
50215 for ac_func in snprintf
50216 do
50217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50218 echo "$as_me:$LINENO: checking for $ac_func" >&5
50219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50220 if eval "test \"\${$as_ac_var+set}\" = set"; then
50221   echo $ECHO_N "(cached) $ECHO_C" >&6
50222 else
50223   cat >conftest.$ac_ext <<_ACEOF
50224 /* confdefs.h.  */
50225 _ACEOF
50226 cat confdefs.h >>conftest.$ac_ext
50227 cat >>conftest.$ac_ext <<_ACEOF
50228 /* end confdefs.h.  */
50229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50231 #define $ac_func innocuous_$ac_func
50232
50233 /* System header to define __stub macros and hopefully few prototypes,
50234     which can conflict with char $ac_func (); below.
50235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50236     <limits.h> exists even on freestanding compilers.  */
50237
50238 #ifdef __STDC__
50239 # include <limits.h>
50240 #else
50241 # include <assert.h>
50242 #endif
50243
50244 #undef $ac_func
50245
50246 /* Override any gcc2 internal prototype to avoid an error.  */
50247 #ifdef __cplusplus
50248 extern "C"
50249 {
50250 #endif
50251 /* We use char because int might match the return type of a gcc2
50252    builtin and then its argument prototype would still apply.  */
50253 char $ac_func ();
50254 /* The GNU C library defines this for functions which it implements
50255     to always fail with ENOSYS.  Some functions are actually named
50256     something starting with __ and the normal name is an alias.  */
50257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50258 choke me
50259 #else
50260 char (*f) () = $ac_func;
50261 #endif
50262 #ifdef __cplusplus
50263 }
50264 #endif
50265
50266 int
50267 main ()
50268 {
50269 return f != $ac_func;
50270   ;
50271   return 0;
50272 }
50273 _ACEOF
50274 rm -f conftest.$ac_objext conftest$ac_exeext
50275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50276   (eval $ac_link) 2>conftest.er1
50277   ac_status=$?
50278   grep -v '^ *+' conftest.er1 >conftest.err
50279   rm -f conftest.er1
50280   cat conftest.err >&5
50281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50282   (exit $ac_status); } &&
50283          { ac_try='test -z "$ac_c_werror_flag"
50284                          || test ! -s conftest.err'
50285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50286   (eval $ac_try) 2>&5
50287   ac_status=$?
50288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50289   (exit $ac_status); }; } &&
50290          { ac_try='test -s conftest$ac_exeext'
50291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50292   (eval $ac_try) 2>&5
50293   ac_status=$?
50294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50295   (exit $ac_status); }; }; then
50296   eval "$as_ac_var=yes"
50297 else
50298   echo "$as_me: failed program was:" >&5
50299 sed 's/^/| /' conftest.$ac_ext >&5
50300
50301 eval "$as_ac_var=no"
50302 fi
50303 rm -f conftest.err conftest.$ac_objext \
50304       conftest$ac_exeext conftest.$ac_ext
50305 fi
50306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50308 if test `eval echo '${'$as_ac_var'}'` = yes; then
50309   cat >>confdefs.h <<_ACEOF
50310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50311 _ACEOF
50312
50313 else
50314   case $LIBOBJS in
50315     "$ac_func.$ac_objext"   | \
50316   *" $ac_func.$ac_objext"   | \
50317     "$ac_func.$ac_objext "* | \
50318   *" $ac_func.$ac_objext "* ) ;;
50319   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
50320 esac
50321
50322 fi
50323 done
50324
50325
50326     fi
50327 fi
50328
50329
50330
50331
50332 for ac_func in sigaction sigemptyset sigvec
50333 do
50334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50335 echo "$as_me:$LINENO: checking for $ac_func" >&5
50336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50337 if eval "test \"\${$as_ac_var+set}\" = set"; then
50338   echo $ECHO_N "(cached) $ECHO_C" >&6
50339 else
50340   cat >conftest.$ac_ext <<_ACEOF
50341 /* confdefs.h.  */
50342 _ACEOF
50343 cat confdefs.h >>conftest.$ac_ext
50344 cat >>conftest.$ac_ext <<_ACEOF
50345 /* end confdefs.h.  */
50346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50348 #define $ac_func innocuous_$ac_func
50349
50350 /* System header to define __stub macros and hopefully few prototypes,
50351     which can conflict with char $ac_func (); below.
50352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50353     <limits.h> exists even on freestanding compilers.  */
50354
50355 #ifdef __STDC__
50356 # include <limits.h>
50357 #else
50358 # include <assert.h>
50359 #endif
50360
50361 #undef $ac_func
50362
50363 /* Override any gcc2 internal prototype to avoid an error.  */
50364 #ifdef __cplusplus
50365 extern "C"
50366 {
50367 #endif
50368 /* We use char because int might match the return type of a gcc2
50369    builtin and then its argument prototype would still apply.  */
50370 char $ac_func ();
50371 /* The GNU C library defines this for functions which it implements
50372     to always fail with ENOSYS.  Some functions are actually named
50373     something starting with __ and the normal name is an alias.  */
50374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50375 choke me
50376 #else
50377 char (*f) () = $ac_func;
50378 #endif
50379 #ifdef __cplusplus
50380 }
50381 #endif
50382
50383 int
50384 main ()
50385 {
50386 return f != $ac_func;
50387   ;
50388   return 0;
50389 }
50390 _ACEOF
50391 rm -f conftest.$ac_objext conftest$ac_exeext
50392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50393   (eval $ac_link) 2>conftest.er1
50394   ac_status=$?
50395   grep -v '^ *+' conftest.er1 >conftest.err
50396   rm -f conftest.er1
50397   cat conftest.err >&5
50398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50399   (exit $ac_status); } &&
50400          { ac_try='test -z "$ac_c_werror_flag"
50401                          || test ! -s conftest.err'
50402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50403   (eval $ac_try) 2>&5
50404   ac_status=$?
50405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50406   (exit $ac_status); }; } &&
50407          { ac_try='test -s conftest$ac_exeext'
50408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50409   (eval $ac_try) 2>&5
50410   ac_status=$?
50411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50412   (exit $ac_status); }; }; then
50413   eval "$as_ac_var=yes"
50414 else
50415   echo "$as_me: failed program was:" >&5
50416 sed 's/^/| /' conftest.$ac_ext >&5
50417
50418 eval "$as_ac_var=no"
50419 fi
50420 rm -f conftest.err conftest.$ac_objext \
50421       conftest$ac_exeext conftest.$ac_ext
50422 fi
50423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50425 if test `eval echo '${'$as_ac_var'}'` = yes; then
50426   cat >>confdefs.h <<_ACEOF
50427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50428 _ACEOF
50429
50430 fi
50431 done
50432
50433
50434 ice_have_socket=no
50435
50436 for ac_func in socket
50437 do
50438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50439 echo "$as_me:$LINENO: checking for $ac_func" >&5
50440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50441 if eval "test \"\${$as_ac_var+set}\" = set"; then
50442   echo $ECHO_N "(cached) $ECHO_C" >&6
50443 else
50444   cat >conftest.$ac_ext <<_ACEOF
50445 /* confdefs.h.  */
50446 _ACEOF
50447 cat confdefs.h >>conftest.$ac_ext
50448 cat >>conftest.$ac_ext <<_ACEOF
50449 /* end confdefs.h.  */
50450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50452 #define $ac_func innocuous_$ac_func
50453
50454 /* System header to define __stub macros and hopefully few prototypes,
50455     which can conflict with char $ac_func (); below.
50456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50457     <limits.h> exists even on freestanding compilers.  */
50458
50459 #ifdef __STDC__
50460 # include <limits.h>
50461 #else
50462 # include <assert.h>
50463 #endif
50464
50465 #undef $ac_func
50466
50467 /* Override any gcc2 internal prototype to avoid an error.  */
50468 #ifdef __cplusplus
50469 extern "C"
50470 {
50471 #endif
50472 /* We use char because int might match the return type of a gcc2
50473    builtin and then its argument prototype would still apply.  */
50474 char $ac_func ();
50475 /* The GNU C library defines this for functions which it implements
50476     to always fail with ENOSYS.  Some functions are actually named
50477     something starting with __ and the normal name is an alias.  */
50478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50479 choke me
50480 #else
50481 char (*f) () = $ac_func;
50482 #endif
50483 #ifdef __cplusplus
50484 }
50485 #endif
50486
50487 int
50488 main ()
50489 {
50490 return f != $ac_func;
50491   ;
50492   return 0;
50493 }
50494 _ACEOF
50495 rm -f conftest.$ac_objext conftest$ac_exeext
50496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50497   (eval $ac_link) 2>conftest.er1
50498   ac_status=$?
50499   grep -v '^ *+' conftest.er1 >conftest.err
50500   rm -f conftest.er1
50501   cat conftest.err >&5
50502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50503   (exit $ac_status); } &&
50504          { ac_try='test -z "$ac_c_werror_flag"
50505                          || test ! -s conftest.err'
50506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50507   (eval $ac_try) 2>&5
50508   ac_status=$?
50509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50510   (exit $ac_status); }; } &&
50511          { ac_try='test -s conftest$ac_exeext'
50512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50513   (eval $ac_try) 2>&5
50514   ac_status=$?
50515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50516   (exit $ac_status); }; }; then
50517   eval "$as_ac_var=yes"
50518 else
50519   echo "$as_me: failed program was:" >&5
50520 sed 's/^/| /' conftest.$ac_ext >&5
50521
50522 eval "$as_ac_var=no"
50523 fi
50524 rm -f conftest.err conftest.$ac_objext \
50525       conftest$ac_exeext conftest.$ac_ext
50526 fi
50527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50529 if test `eval echo '${'$as_ac_var'}'` = yes; then
50530   cat >>confdefs.h <<_ACEOF
50531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50532 _ACEOF
50533  ice_have_socket=yes
50534 fi
50535 done
50536
50537 if test "${ice_have_socket}" = yes; then
50538 echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
50539 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
50540 if test "${ice_cv_have_socket_decl+set}" = set; then
50541   echo $ECHO_N "(cached) $ECHO_C" >&6
50542 else
50543
50544 ice_cv_have_socket_decl=no
50545 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50546 ice_re_word='(^|[^a-zA-Z0-9_])'
50547 for header in sys/types.h sys/socket.h; do
50548 # Check for ordinary declaration
50549 cat >conftest.$ac_ext <<_ACEOF
50550 /* confdefs.h.  */
50551 _ACEOF
50552 cat confdefs.h >>conftest.$ac_ext
50553 cat >>conftest.$ac_ext <<_ACEOF
50554 /* end confdefs.h.  */
50555 #include <$header>
50556
50557 _ACEOF
50558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50559   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
50560   ice_cv_have_socket_decl=yes
50561 fi
50562 rm -f conftest*
50563
50564 if test "$ice_cv_have_socket_decl" = yes; then
50565         break
50566 fi
50567 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50568 cat >conftest.$ac_ext <<_ACEOF
50569 /* confdefs.h.  */
50570 _ACEOF
50571 cat confdefs.h >>conftest.$ac_ext
50572 cat >>conftest.$ac_ext <<_ACEOF
50573 /* end confdefs.h.  */
50574 #include <$header>
50575
50576 _ACEOF
50577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50578   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50579   ice_cv_have_socket_decl=yes
50580 fi
50581 rm -f conftest*
50582
50583 if test "$ice_cv_have_socket_decl" = yes; then
50584         break
50585 fi
50586 done
50587
50588 fi
50589
50590 echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
50591 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6
50592 if test "$ice_cv_have_socket_decl" = yes; then
50593
50594 cat >>confdefs.h <<_ACEOF
50595 #define HAVE_SOCKET_DECL 1
50596 _ACEOF
50597
50598 fi
50599 fi
50600
50601
50602 ice_have_socketpair=no
50603
50604 for ac_func in socketpair
50605 do
50606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50607 echo "$as_me:$LINENO: checking for $ac_func" >&5
50608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50609 if eval "test \"\${$as_ac_var+set}\" = set"; then
50610   echo $ECHO_N "(cached) $ECHO_C" >&6
50611 else
50612   cat >conftest.$ac_ext <<_ACEOF
50613 /* confdefs.h.  */
50614 _ACEOF
50615 cat confdefs.h >>conftest.$ac_ext
50616 cat >>conftest.$ac_ext <<_ACEOF
50617 /* end confdefs.h.  */
50618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50620 #define $ac_func innocuous_$ac_func
50621
50622 /* System header to define __stub macros and hopefully few prototypes,
50623     which can conflict with char $ac_func (); below.
50624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50625     <limits.h> exists even on freestanding compilers.  */
50626
50627 #ifdef __STDC__
50628 # include <limits.h>
50629 #else
50630 # include <assert.h>
50631 #endif
50632
50633 #undef $ac_func
50634
50635 /* Override any gcc2 internal prototype to avoid an error.  */
50636 #ifdef __cplusplus
50637 extern "C"
50638 {
50639 #endif
50640 /* We use char because int might match the return type of a gcc2
50641    builtin and then its argument prototype would still apply.  */
50642 char $ac_func ();
50643 /* The GNU C library defines this for functions which it implements
50644     to always fail with ENOSYS.  Some functions are actually named
50645     something starting with __ and the normal name is an alias.  */
50646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50647 choke me
50648 #else
50649 char (*f) () = $ac_func;
50650 #endif
50651 #ifdef __cplusplus
50652 }
50653 #endif
50654
50655 int
50656 main ()
50657 {
50658 return f != $ac_func;
50659   ;
50660   return 0;
50661 }
50662 _ACEOF
50663 rm -f conftest.$ac_objext conftest$ac_exeext
50664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50665   (eval $ac_link) 2>conftest.er1
50666   ac_status=$?
50667   grep -v '^ *+' conftest.er1 >conftest.err
50668   rm -f conftest.er1
50669   cat conftest.err >&5
50670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50671   (exit $ac_status); } &&
50672          { ac_try='test -z "$ac_c_werror_flag"
50673                          || test ! -s conftest.err'
50674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50675   (eval $ac_try) 2>&5
50676   ac_status=$?
50677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50678   (exit $ac_status); }; } &&
50679          { ac_try='test -s conftest$ac_exeext'
50680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50681   (eval $ac_try) 2>&5
50682   ac_status=$?
50683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50684   (exit $ac_status); }; }; then
50685   eval "$as_ac_var=yes"
50686 else
50687   echo "$as_me: failed program was:" >&5
50688 sed 's/^/| /' conftest.$ac_ext >&5
50689
50690 eval "$as_ac_var=no"
50691 fi
50692 rm -f conftest.err conftest.$ac_objext \
50693       conftest$ac_exeext conftest.$ac_ext
50694 fi
50695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50697 if test `eval echo '${'$as_ac_var'}'` = yes; then
50698   cat >>confdefs.h <<_ACEOF
50699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50700 _ACEOF
50701  ice_have_socketpair=yes
50702 fi
50703 done
50704
50705 if test "${ice_have_socketpair}" = yes; then
50706 echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
50707 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
50708 if test "${ice_cv_have_socketpair_decl+set}" = set; then
50709   echo $ECHO_N "(cached) $ECHO_C" >&6
50710 else
50711
50712 ice_cv_have_socketpair_decl=no
50713 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50714 ice_re_word='(^|[^a-zA-Z0-9_])'
50715 for header in sys/types.h sys/socket.h; do
50716 # Check for ordinary declaration
50717 cat >conftest.$ac_ext <<_ACEOF
50718 /* confdefs.h.  */
50719 _ACEOF
50720 cat confdefs.h >>conftest.$ac_ext
50721 cat >>conftest.$ac_ext <<_ACEOF
50722 /* end confdefs.h.  */
50723 #include <$header>
50724
50725 _ACEOF
50726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50727   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
50728   ice_cv_have_socketpair_decl=yes
50729 fi
50730 rm -f conftest*
50731
50732 if test "$ice_cv_have_socketpair_decl" = yes; then
50733         break
50734 fi
50735 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50736 cat >conftest.$ac_ext <<_ACEOF
50737 /* confdefs.h.  */
50738 _ACEOF
50739 cat confdefs.h >>conftest.$ac_ext
50740 cat >>conftest.$ac_ext <<_ACEOF
50741 /* end confdefs.h.  */
50742 #include <$header>
50743
50744 _ACEOF
50745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50746   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50747   ice_cv_have_socketpair_decl=yes
50748 fi
50749 rm -f conftest*
50750
50751 if test "$ice_cv_have_socketpair_decl" = yes; then
50752         break
50753 fi
50754 done
50755
50756 fi
50757
50758 echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
50759 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6
50760 if test "$ice_cv_have_socketpair_decl" = yes; then
50761
50762 cat >>confdefs.h <<_ACEOF
50763 #define HAVE_SOCKETPAIR_DECL 1
50764 _ACEOF
50765
50766 fi
50767 fi
50768
50769
50770 ice_have_sscanf=no
50771
50772 for ac_func in sscanf
50773 do
50774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50775 echo "$as_me:$LINENO: checking for $ac_func" >&5
50776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50777 if eval "test \"\${$as_ac_var+set}\" = set"; then
50778   echo $ECHO_N "(cached) $ECHO_C" >&6
50779 else
50780   cat >conftest.$ac_ext <<_ACEOF
50781 /* confdefs.h.  */
50782 _ACEOF
50783 cat confdefs.h >>conftest.$ac_ext
50784 cat >>conftest.$ac_ext <<_ACEOF
50785 /* end confdefs.h.  */
50786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50788 #define $ac_func innocuous_$ac_func
50789
50790 /* System header to define __stub macros and hopefully few prototypes,
50791     which can conflict with char $ac_func (); below.
50792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50793     <limits.h> exists even on freestanding compilers.  */
50794
50795 #ifdef __STDC__
50796 # include <limits.h>
50797 #else
50798 # include <assert.h>
50799 #endif
50800
50801 #undef $ac_func
50802
50803 /* Override any gcc2 internal prototype to avoid an error.  */
50804 #ifdef __cplusplus
50805 extern "C"
50806 {
50807 #endif
50808 /* We use char because int might match the return type of a gcc2
50809    builtin and then its argument prototype would still apply.  */
50810 char $ac_func ();
50811 /* The GNU C library defines this for functions which it implements
50812     to always fail with ENOSYS.  Some functions are actually named
50813     something starting with __ and the normal name is an alias.  */
50814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50815 choke me
50816 #else
50817 char (*f) () = $ac_func;
50818 #endif
50819 #ifdef __cplusplus
50820 }
50821 #endif
50822
50823 int
50824 main ()
50825 {
50826 return f != $ac_func;
50827   ;
50828   return 0;
50829 }
50830 _ACEOF
50831 rm -f conftest.$ac_objext conftest$ac_exeext
50832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50833   (eval $ac_link) 2>conftest.er1
50834   ac_status=$?
50835   grep -v '^ *+' conftest.er1 >conftest.err
50836   rm -f conftest.er1
50837   cat conftest.err >&5
50838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50839   (exit $ac_status); } &&
50840          { ac_try='test -z "$ac_c_werror_flag"
50841                          || test ! -s conftest.err'
50842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50843   (eval $ac_try) 2>&5
50844   ac_status=$?
50845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50846   (exit $ac_status); }; } &&
50847          { ac_try='test -s conftest$ac_exeext'
50848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50849   (eval $ac_try) 2>&5
50850   ac_status=$?
50851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50852   (exit $ac_status); }; }; then
50853   eval "$as_ac_var=yes"
50854 else
50855   echo "$as_me: failed program was:" >&5
50856 sed 's/^/| /' conftest.$ac_ext >&5
50857
50858 eval "$as_ac_var=no"
50859 fi
50860 rm -f conftest.err conftest.$ac_objext \
50861       conftest$ac_exeext conftest.$ac_ext
50862 fi
50863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50865 if test `eval echo '${'$as_ac_var'}'` = yes; then
50866   cat >>confdefs.h <<_ACEOF
50867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50868 _ACEOF
50869  ice_have_sscanf=yes
50870 fi
50871 done
50872
50873 if test "${ice_have_sscanf}" = yes; then
50874 echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
50875 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6
50876 if test "${ice_cv_have_sscanf_decl+set}" = set; then
50877   echo $ECHO_N "(cached) $ECHO_C" >&6
50878 else
50879
50880 ice_cv_have_sscanf_decl=no
50881 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50882 ice_re_word='(^|[^a-zA-Z0-9_])'
50883 for header in stdio.h; do
50884 # Check for ordinary declaration
50885 cat >conftest.$ac_ext <<_ACEOF
50886 /* confdefs.h.  */
50887 _ACEOF
50888 cat confdefs.h >>conftest.$ac_ext
50889 cat >>conftest.$ac_ext <<_ACEOF
50890 /* end confdefs.h.  */
50891 #include <$header>
50892
50893 _ACEOF
50894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50895   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
50896   ice_cv_have_sscanf_decl=yes
50897 fi
50898 rm -f conftest*
50899
50900 if test "$ice_cv_have_sscanf_decl" = yes; then
50901         break
50902 fi
50903 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50904 cat >conftest.$ac_ext <<_ACEOF
50905 /* confdefs.h.  */
50906 _ACEOF
50907 cat confdefs.h >>conftest.$ac_ext
50908 cat >>conftest.$ac_ext <<_ACEOF
50909 /* end confdefs.h.  */
50910 #include <$header>
50911
50912 _ACEOF
50913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50914   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50915   ice_cv_have_sscanf_decl=yes
50916 fi
50917 rm -f conftest*
50918
50919 if test "$ice_cv_have_sscanf_decl" = yes; then
50920         break
50921 fi
50922 done
50923
50924 fi
50925
50926 echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
50927 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6
50928 if test "$ice_cv_have_sscanf_decl" = yes; then
50929
50930 cat >>confdefs.h <<_ACEOF
50931 #define HAVE_SSCANF_DECL 1
50932 _ACEOF
50933
50934 fi
50935 fi
50936
50937
50938
50939 for ac_func in statfs statvfs
50940 do
50941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50942 echo "$as_me:$LINENO: checking for $ac_func" >&5
50943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50944 if eval "test \"\${$as_ac_var+set}\" = set"; then
50945   echo $ECHO_N "(cached) $ECHO_C" >&6
50946 else
50947   cat >conftest.$ac_ext <<_ACEOF
50948 /* confdefs.h.  */
50949 _ACEOF
50950 cat confdefs.h >>conftest.$ac_ext
50951 cat >>conftest.$ac_ext <<_ACEOF
50952 /* end confdefs.h.  */
50953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50955 #define $ac_func innocuous_$ac_func
50956
50957 /* System header to define __stub macros and hopefully few prototypes,
50958     which can conflict with char $ac_func (); below.
50959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50960     <limits.h> exists even on freestanding compilers.  */
50961
50962 #ifdef __STDC__
50963 # include <limits.h>
50964 #else
50965 # include <assert.h>
50966 #endif
50967
50968 #undef $ac_func
50969
50970 /* Override any gcc2 internal prototype to avoid an error.  */
50971 #ifdef __cplusplus
50972 extern "C"
50973 {
50974 #endif
50975 /* We use char because int might match the return type of a gcc2
50976    builtin and then its argument prototype would still apply.  */
50977 char $ac_func ();
50978 /* The GNU C library defines this for functions which it implements
50979     to always fail with ENOSYS.  Some functions are actually named
50980     something starting with __ and the normal name is an alias.  */
50981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50982 choke me
50983 #else
50984 char (*f) () = $ac_func;
50985 #endif
50986 #ifdef __cplusplus
50987 }
50988 #endif
50989
50990 int
50991 main ()
50992 {
50993 return f != $ac_func;
50994   ;
50995   return 0;
50996 }
50997 _ACEOF
50998 rm -f conftest.$ac_objext conftest$ac_exeext
50999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51000   (eval $ac_link) 2>conftest.er1
51001   ac_status=$?
51002   grep -v '^ *+' conftest.er1 >conftest.err
51003   rm -f conftest.er1
51004   cat conftest.err >&5
51005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51006   (exit $ac_status); } &&
51007          { ac_try='test -z "$ac_c_werror_flag"
51008                          || test ! -s conftest.err'
51009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51010   (eval $ac_try) 2>&5
51011   ac_status=$?
51012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51013   (exit $ac_status); }; } &&
51014          { ac_try='test -s conftest$ac_exeext'
51015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51016   (eval $ac_try) 2>&5
51017   ac_status=$?
51018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51019   (exit $ac_status); }; }; then
51020   eval "$as_ac_var=yes"
51021 else
51022   echo "$as_me: failed program was:" >&5
51023 sed 's/^/| /' conftest.$ac_ext >&5
51024
51025 eval "$as_ac_var=no"
51026 fi
51027 rm -f conftest.err conftest.$ac_objext \
51028       conftest$ac_exeext conftest.$ac_ext
51029 fi
51030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51032 if test `eval echo '${'$as_ac_var'}'` = yes; then
51033   cat >>confdefs.h <<_ACEOF
51034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51035 _ACEOF
51036
51037 fi
51038 done
51039
51040
51041 for ac_func in strerror
51042 do
51043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51044 echo "$as_me:$LINENO: checking for $ac_func" >&5
51045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51046 if eval "test \"\${$as_ac_var+set}\" = set"; then
51047   echo $ECHO_N "(cached) $ECHO_C" >&6
51048 else
51049   cat >conftest.$ac_ext <<_ACEOF
51050 /* confdefs.h.  */
51051 _ACEOF
51052 cat confdefs.h >>conftest.$ac_ext
51053 cat >>conftest.$ac_ext <<_ACEOF
51054 /* end confdefs.h.  */
51055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51057 #define $ac_func innocuous_$ac_func
51058
51059 /* System header to define __stub macros and hopefully few prototypes,
51060     which can conflict with char $ac_func (); below.
51061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51062     <limits.h> exists even on freestanding compilers.  */
51063
51064 #ifdef __STDC__
51065 # include <limits.h>
51066 #else
51067 # include <assert.h>
51068 #endif
51069
51070 #undef $ac_func
51071
51072 /* Override any gcc2 internal prototype to avoid an error.  */
51073 #ifdef __cplusplus
51074 extern "C"
51075 {
51076 #endif
51077 /* We use char because int might match the return type of a gcc2
51078    builtin and then its argument prototype would still apply.  */
51079 char $ac_func ();
51080 /* The GNU C library defines this for functions which it implements
51081     to always fail with ENOSYS.  Some functions are actually named
51082     something starting with __ and the normal name is an alias.  */
51083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51084 choke me
51085 #else
51086 char (*f) () = $ac_func;
51087 #endif
51088 #ifdef __cplusplus
51089 }
51090 #endif
51091
51092 int
51093 main ()
51094 {
51095 return f != $ac_func;
51096   ;
51097   return 0;
51098 }
51099 _ACEOF
51100 rm -f conftest.$ac_objext conftest$ac_exeext
51101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51102   (eval $ac_link) 2>conftest.er1
51103   ac_status=$?
51104   grep -v '^ *+' conftest.er1 >conftest.err
51105   rm -f conftest.er1
51106   cat conftest.err >&5
51107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51108   (exit $ac_status); } &&
51109          { ac_try='test -z "$ac_c_werror_flag"
51110                          || test ! -s conftest.err'
51111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51112   (eval $ac_try) 2>&5
51113   ac_status=$?
51114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51115   (exit $ac_status); }; } &&
51116          { ac_try='test -s conftest$ac_exeext'
51117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51118   (eval $ac_try) 2>&5
51119   ac_status=$?
51120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51121   (exit $ac_status); }; }; then
51122   eval "$as_ac_var=yes"
51123 else
51124   echo "$as_me: failed program was:" >&5
51125 sed 's/^/| /' conftest.$ac_ext >&5
51126
51127 eval "$as_ac_var=no"
51128 fi
51129 rm -f conftest.err conftest.$ac_objext \
51130       conftest$ac_exeext conftest.$ac_ext
51131 fi
51132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51134 if test `eval echo '${'$as_ac_var'}'` = yes; then
51135   cat >>confdefs.h <<_ACEOF
51136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51137 _ACEOF
51138
51139 else
51140   case $LIBOBJS in
51141     "$ac_func.$ac_objext"   | \
51142   *" $ac_func.$ac_objext"   | \
51143     "$ac_func.$ac_objext "* | \
51144   *" $ac_func.$ac_objext "* ) ;;
51145   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51146 esac
51147
51148 fi
51149 done
51150
51151
51152
51153 ice_have_strerror=no
51154
51155 for ac_func in strerror
51156 do
51157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51158 echo "$as_me:$LINENO: checking for $ac_func" >&5
51159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51160 if eval "test \"\${$as_ac_var+set}\" = set"; then
51161   echo $ECHO_N "(cached) $ECHO_C" >&6
51162 else
51163   cat >conftest.$ac_ext <<_ACEOF
51164 /* confdefs.h.  */
51165 _ACEOF
51166 cat confdefs.h >>conftest.$ac_ext
51167 cat >>conftest.$ac_ext <<_ACEOF
51168 /* end confdefs.h.  */
51169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51171 #define $ac_func innocuous_$ac_func
51172
51173 /* System header to define __stub macros and hopefully few prototypes,
51174     which can conflict with char $ac_func (); below.
51175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51176     <limits.h> exists even on freestanding compilers.  */
51177
51178 #ifdef __STDC__
51179 # include <limits.h>
51180 #else
51181 # include <assert.h>
51182 #endif
51183
51184 #undef $ac_func
51185
51186 /* Override any gcc2 internal prototype to avoid an error.  */
51187 #ifdef __cplusplus
51188 extern "C"
51189 {
51190 #endif
51191 /* We use char because int might match the return type of a gcc2
51192    builtin and then its argument prototype would still apply.  */
51193 char $ac_func ();
51194 /* The GNU C library defines this for functions which it implements
51195     to always fail with ENOSYS.  Some functions are actually named
51196     something starting with __ and the normal name is an alias.  */
51197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51198 choke me
51199 #else
51200 char (*f) () = $ac_func;
51201 #endif
51202 #ifdef __cplusplus
51203 }
51204 #endif
51205
51206 int
51207 main ()
51208 {
51209 return f != $ac_func;
51210   ;
51211   return 0;
51212 }
51213 _ACEOF
51214 rm -f conftest.$ac_objext conftest$ac_exeext
51215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51216   (eval $ac_link) 2>conftest.er1
51217   ac_status=$?
51218   grep -v '^ *+' conftest.er1 >conftest.err
51219   rm -f conftest.er1
51220   cat conftest.err >&5
51221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51222   (exit $ac_status); } &&
51223          { ac_try='test -z "$ac_c_werror_flag"
51224                          || test ! -s conftest.err'
51225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51226   (eval $ac_try) 2>&5
51227   ac_status=$?
51228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51229   (exit $ac_status); }; } &&
51230          { ac_try='test -s conftest$ac_exeext'
51231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51232   (eval $ac_try) 2>&5
51233   ac_status=$?
51234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51235   (exit $ac_status); }; }; then
51236   eval "$as_ac_var=yes"
51237 else
51238   echo "$as_me: failed program was:" >&5
51239 sed 's/^/| /' conftest.$ac_ext >&5
51240
51241 eval "$as_ac_var=no"
51242 fi
51243 rm -f conftest.err conftest.$ac_objext \
51244       conftest$ac_exeext conftest.$ac_ext
51245 fi
51246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51248 if test `eval echo '${'$as_ac_var'}'` = yes; then
51249   cat >>confdefs.h <<_ACEOF
51250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51251 _ACEOF
51252  ice_have_strerror=yes
51253 fi
51254 done
51255
51256 if test "${ice_have_strerror}" = yes; then
51257 echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
51258 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6
51259 if test "${ice_cv_have_strerror_decl+set}" = set; then
51260   echo $ECHO_N "(cached) $ECHO_C" >&6
51261 else
51262
51263 ice_cv_have_strerror_decl=no
51264 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51265 ice_re_word='(^|[^a-zA-Z0-9_])'
51266 for header in string.h strings.h; do
51267 # Check for ordinary declaration
51268 cat >conftest.$ac_ext <<_ACEOF
51269 /* confdefs.h.  */
51270 _ACEOF
51271 cat confdefs.h >>conftest.$ac_ext
51272 cat >>conftest.$ac_ext <<_ACEOF
51273 /* end confdefs.h.  */
51274 #include <$header>
51275
51276 _ACEOF
51277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51278   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
51279   ice_cv_have_strerror_decl=yes
51280 fi
51281 rm -f conftest*
51282
51283 if test "$ice_cv_have_strerror_decl" = yes; then
51284         break
51285 fi
51286 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51287 cat >conftest.$ac_ext <<_ACEOF
51288 /* confdefs.h.  */
51289 _ACEOF
51290 cat confdefs.h >>conftest.$ac_ext
51291 cat >>conftest.$ac_ext <<_ACEOF
51292 /* end confdefs.h.  */
51293 #include <$header>
51294
51295 _ACEOF
51296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51297   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51298   ice_cv_have_strerror_decl=yes
51299 fi
51300 rm -f conftest*
51301
51302 if test "$ice_cv_have_strerror_decl" = yes; then
51303         break
51304 fi
51305 done
51306
51307 fi
51308
51309 echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
51310 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6
51311 if test "$ice_cv_have_strerror_decl" = yes; then
51312
51313 cat >>confdefs.h <<_ACEOF
51314 #define HAVE_STRERROR_DECL 1
51315 _ACEOF
51316
51317 fi
51318 fi
51319
51320
51321 for ac_func in strftime
51322 do
51323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51324 echo "$as_me:$LINENO: checking for $ac_func" >&5
51325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51326 if eval "test \"\${$as_ac_var+set}\" = set"; then
51327   echo $ECHO_N "(cached) $ECHO_C" >&6
51328 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51337 #define $ac_func innocuous_$ac_func
51338
51339 /* System header to define __stub macros and hopefully few prototypes,
51340     which can conflict with char $ac_func (); below.
51341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51342     <limits.h> exists even on freestanding compilers.  */
51343
51344 #ifdef __STDC__
51345 # include <limits.h>
51346 #else
51347 # include <assert.h>
51348 #endif
51349
51350 #undef $ac_func
51351
51352 /* Override any gcc2 internal prototype to avoid an error.  */
51353 #ifdef __cplusplus
51354 extern "C"
51355 {
51356 #endif
51357 /* We use char because int might match the return type of a gcc2
51358    builtin and then its argument prototype would still apply.  */
51359 char $ac_func ();
51360 /* The GNU C library defines this for functions which it implements
51361     to always fail with ENOSYS.  Some functions are actually named
51362     something starting with __ and the normal name is an alias.  */
51363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51364 choke me
51365 #else
51366 char (*f) () = $ac_func;
51367 #endif
51368 #ifdef __cplusplus
51369 }
51370 #endif
51371
51372 int
51373 main ()
51374 {
51375 return f != $ac_func;
51376   ;
51377   return 0;
51378 }
51379 _ACEOF
51380 rm -f conftest.$ac_objext conftest$ac_exeext
51381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51382   (eval $ac_link) 2>conftest.er1
51383   ac_status=$?
51384   grep -v '^ *+' conftest.er1 >conftest.err
51385   rm -f conftest.er1
51386   cat conftest.err >&5
51387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51388   (exit $ac_status); } &&
51389          { ac_try='test -z "$ac_c_werror_flag"
51390                          || test ! -s conftest.err'
51391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51392   (eval $ac_try) 2>&5
51393   ac_status=$?
51394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51395   (exit $ac_status); }; } &&
51396          { ac_try='test -s conftest$ac_exeext'
51397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51398   (eval $ac_try) 2>&5
51399   ac_status=$?
51400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51401   (exit $ac_status); }; }; then
51402   eval "$as_ac_var=yes"
51403 else
51404   echo "$as_me: failed program was:" >&5
51405 sed 's/^/| /' conftest.$ac_ext >&5
51406
51407 eval "$as_ac_var=no"
51408 fi
51409 rm -f conftest.err conftest.$ac_objext \
51410       conftest$ac_exeext conftest.$ac_ext
51411 fi
51412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51414 if test `eval echo '${'$as_ac_var'}'` = yes; then
51415   cat >>confdefs.h <<_ACEOF
51416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51417 _ACEOF
51418
51419 else
51420   # strftime is in -lintl on SCO UNIX.
51421 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
51422 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
51423 if test "${ac_cv_lib_intl_strftime+set}" = set; then
51424   echo $ECHO_N "(cached) $ECHO_C" >&6
51425 else
51426   ac_check_lib_save_LIBS=$LIBS
51427 LIBS="-lintl  $LIBS"
51428 cat >conftest.$ac_ext <<_ACEOF
51429 /* confdefs.h.  */
51430 _ACEOF
51431 cat confdefs.h >>conftest.$ac_ext
51432 cat >>conftest.$ac_ext <<_ACEOF
51433 /* end confdefs.h.  */
51434
51435 /* Override any gcc2 internal prototype to avoid an error.  */
51436 #ifdef __cplusplus
51437 extern "C"
51438 #endif
51439 /* We use char because int might match the return type of a gcc2
51440    builtin and then its argument prototype would still apply.  */
51441 char strftime ();
51442 int
51443 main ()
51444 {
51445 strftime ();
51446   ;
51447   return 0;
51448 }
51449 _ACEOF
51450 rm -f conftest.$ac_objext conftest$ac_exeext
51451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51452   (eval $ac_link) 2>conftest.er1
51453   ac_status=$?
51454   grep -v '^ *+' conftest.er1 >conftest.err
51455   rm -f conftest.er1
51456   cat conftest.err >&5
51457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51458   (exit $ac_status); } &&
51459          { ac_try='test -z "$ac_c_werror_flag"
51460                          || test ! -s conftest.err'
51461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51462   (eval $ac_try) 2>&5
51463   ac_status=$?
51464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51465   (exit $ac_status); }; } &&
51466          { ac_try='test -s conftest$ac_exeext'
51467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51468   (eval $ac_try) 2>&5
51469   ac_status=$?
51470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51471   (exit $ac_status); }; }; then
51472   ac_cv_lib_intl_strftime=yes
51473 else
51474   echo "$as_me: failed program was:" >&5
51475 sed 's/^/| /' conftest.$ac_ext >&5
51476
51477 ac_cv_lib_intl_strftime=no
51478 fi
51479 rm -f conftest.err conftest.$ac_objext \
51480       conftest$ac_exeext conftest.$ac_ext
51481 LIBS=$ac_check_lib_save_LIBS
51482 fi
51483 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
51484 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
51485 if test $ac_cv_lib_intl_strftime = yes; then
51486   cat >>confdefs.h <<\_ACEOF
51487 #define HAVE_STRFTIME 1
51488 _ACEOF
51489
51490 LIBS="-lintl $LIBS"
51491 fi
51492
51493 fi
51494 done
51495
51496
51497 for ac_func in strftime
51498 do
51499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51500 echo "$as_me:$LINENO: checking for $ac_func" >&5
51501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51502 if eval "test \"\${$as_ac_var+set}\" = set"; then
51503   echo $ECHO_N "(cached) $ECHO_C" >&6
51504 else
51505   cat >conftest.$ac_ext <<_ACEOF
51506 /* confdefs.h.  */
51507 _ACEOF
51508 cat confdefs.h >>conftest.$ac_ext
51509 cat >>conftest.$ac_ext <<_ACEOF
51510 /* end confdefs.h.  */
51511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51512    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51513 #define $ac_func innocuous_$ac_func
51514
51515 /* System header to define __stub macros and hopefully few prototypes,
51516     which can conflict with char $ac_func (); below.
51517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51518     <limits.h> exists even on freestanding compilers.  */
51519
51520 #ifdef __STDC__
51521 # include <limits.h>
51522 #else
51523 # include <assert.h>
51524 #endif
51525
51526 #undef $ac_func
51527
51528 /* Override any gcc2 internal prototype to avoid an error.  */
51529 #ifdef __cplusplus
51530 extern "C"
51531 {
51532 #endif
51533 /* We use char because int might match the return type of a gcc2
51534    builtin and then its argument prototype would still apply.  */
51535 char $ac_func ();
51536 /* The GNU C library defines this for functions which it implements
51537     to always fail with ENOSYS.  Some functions are actually named
51538     something starting with __ and the normal name is an alias.  */
51539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51540 choke me
51541 #else
51542 char (*f) () = $ac_func;
51543 #endif
51544 #ifdef __cplusplus
51545 }
51546 #endif
51547
51548 int
51549 main ()
51550 {
51551 return f != $ac_func;
51552   ;
51553   return 0;
51554 }
51555 _ACEOF
51556 rm -f conftest.$ac_objext conftest$ac_exeext
51557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51558   (eval $ac_link) 2>conftest.er1
51559   ac_status=$?
51560   grep -v '^ *+' conftest.er1 >conftest.err
51561   rm -f conftest.er1
51562   cat conftest.err >&5
51563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51564   (exit $ac_status); } &&
51565          { ac_try='test -z "$ac_c_werror_flag"
51566                          || test ! -s conftest.err'
51567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51568   (eval $ac_try) 2>&5
51569   ac_status=$?
51570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51571   (exit $ac_status); }; } &&
51572          { ac_try='test -s conftest$ac_exeext'
51573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51574   (eval $ac_try) 2>&5
51575   ac_status=$?
51576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51577   (exit $ac_status); }; }; then
51578   eval "$as_ac_var=yes"
51579 else
51580   echo "$as_me: failed program was:" >&5
51581 sed 's/^/| /' conftest.$ac_ext >&5
51582
51583 eval "$as_ac_var=no"
51584 fi
51585 rm -f conftest.err conftest.$ac_objext \
51586       conftest$ac_exeext conftest.$ac_ext
51587 fi
51588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51590 if test `eval echo '${'$as_ac_var'}'` = yes; then
51591   cat >>confdefs.h <<_ACEOF
51592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51593 _ACEOF
51594
51595 else
51596   case $LIBOBJS in
51597     "$ac_func.$ac_objext"   | \
51598   *" $ac_func.$ac_objext"   | \
51599     "$ac_func.$ac_objext "* | \
51600   *" $ac_func.$ac_objext "* ) ;;
51601   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51602 esac
51603
51604 fi
51605 done
51606
51607
51608
51609 ice_have_strftime=no
51610
51611 for ac_func in strftime
51612 do
51613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51614 echo "$as_me:$LINENO: checking for $ac_func" >&5
51615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51616 if eval "test \"\${$as_ac_var+set}\" = set"; then
51617   echo $ECHO_N "(cached) $ECHO_C" >&6
51618 else
51619   cat >conftest.$ac_ext <<_ACEOF
51620 /* confdefs.h.  */
51621 _ACEOF
51622 cat confdefs.h >>conftest.$ac_ext
51623 cat >>conftest.$ac_ext <<_ACEOF
51624 /* end confdefs.h.  */
51625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51627 #define $ac_func innocuous_$ac_func
51628
51629 /* System header to define __stub macros and hopefully few prototypes,
51630     which can conflict with char $ac_func (); below.
51631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51632     <limits.h> exists even on freestanding compilers.  */
51633
51634 #ifdef __STDC__
51635 # include <limits.h>
51636 #else
51637 # include <assert.h>
51638 #endif
51639
51640 #undef $ac_func
51641
51642 /* Override any gcc2 internal prototype to avoid an error.  */
51643 #ifdef __cplusplus
51644 extern "C"
51645 {
51646 #endif
51647 /* We use char because int might match the return type of a gcc2
51648    builtin and then its argument prototype would still apply.  */
51649 char $ac_func ();
51650 /* The GNU C library defines this for functions which it implements
51651     to always fail with ENOSYS.  Some functions are actually named
51652     something starting with __ and the normal name is an alias.  */
51653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51654 choke me
51655 #else
51656 char (*f) () = $ac_func;
51657 #endif
51658 #ifdef __cplusplus
51659 }
51660 #endif
51661
51662 int
51663 main ()
51664 {
51665 return f != $ac_func;
51666   ;
51667   return 0;
51668 }
51669 _ACEOF
51670 rm -f conftest.$ac_objext conftest$ac_exeext
51671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51672   (eval $ac_link) 2>conftest.er1
51673   ac_status=$?
51674   grep -v '^ *+' conftest.er1 >conftest.err
51675   rm -f conftest.er1
51676   cat conftest.err >&5
51677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51678   (exit $ac_status); } &&
51679          { ac_try='test -z "$ac_c_werror_flag"
51680                          || test ! -s conftest.err'
51681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51682   (eval $ac_try) 2>&5
51683   ac_status=$?
51684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51685   (exit $ac_status); }; } &&
51686          { ac_try='test -s conftest$ac_exeext'
51687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51688   (eval $ac_try) 2>&5
51689   ac_status=$?
51690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51691   (exit $ac_status); }; }; then
51692   eval "$as_ac_var=yes"
51693 else
51694   echo "$as_me: failed program was:" >&5
51695 sed 's/^/| /' conftest.$ac_ext >&5
51696
51697 eval "$as_ac_var=no"
51698 fi
51699 rm -f conftest.err conftest.$ac_objext \
51700       conftest$ac_exeext conftest.$ac_ext
51701 fi
51702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51704 if test `eval echo '${'$as_ac_var'}'` = yes; then
51705   cat >>confdefs.h <<_ACEOF
51706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51707 _ACEOF
51708  ice_have_strftime=yes
51709 fi
51710 done
51711
51712 if test "${ice_have_strftime}" = yes; then
51713 echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
51714 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6
51715 if test "${ice_cv_have_strftime_decl+set}" = set; then
51716   echo $ECHO_N "(cached) $ECHO_C" >&6
51717 else
51718
51719 ice_cv_have_strftime_decl=no
51720 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51721 ice_re_word='(^|[^a-zA-Z0-9_])'
51722 for header in time.h sys/time.h; do
51723 # Check for ordinary declaration
51724 cat >conftest.$ac_ext <<_ACEOF
51725 /* confdefs.h.  */
51726 _ACEOF
51727 cat confdefs.h >>conftest.$ac_ext
51728 cat >>conftest.$ac_ext <<_ACEOF
51729 /* end confdefs.h.  */
51730 #include <$header>
51731
51732 _ACEOF
51733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51734   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
51735   ice_cv_have_strftime_decl=yes
51736 fi
51737 rm -f conftest*
51738
51739 if test "$ice_cv_have_strftime_decl" = yes; then
51740         break
51741 fi
51742 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51743 cat >conftest.$ac_ext <<_ACEOF
51744 /* confdefs.h.  */
51745 _ACEOF
51746 cat confdefs.h >>conftest.$ac_ext
51747 cat >>conftest.$ac_ext <<_ACEOF
51748 /* end confdefs.h.  */
51749 #include <$header>
51750
51751 _ACEOF
51752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51753   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51754   ice_cv_have_strftime_decl=yes
51755 fi
51756 rm -f conftest*
51757
51758 if test "$ice_cv_have_strftime_decl" = yes; then
51759         break
51760 fi
51761 done
51762
51763 fi
51764
51765 echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
51766 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6
51767 if test "$ice_cv_have_strftime_decl" = yes; then
51768
51769 cat >>confdefs.h <<_ACEOF
51770 #define HAVE_STRFTIME_DECL 1
51771 _ACEOF
51772
51773 fi
51774 fi
51775
51776
51777 for ac_func in strncasecmp
51778 do
51779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51780 echo "$as_me:$LINENO: checking for $ac_func" >&5
51781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51782 if eval "test \"\${$as_ac_var+set}\" = set"; then
51783   echo $ECHO_N "(cached) $ECHO_C" >&6
51784 else
51785   cat >conftest.$ac_ext <<_ACEOF
51786 /* confdefs.h.  */
51787 _ACEOF
51788 cat confdefs.h >>conftest.$ac_ext
51789 cat >>conftest.$ac_ext <<_ACEOF
51790 /* end confdefs.h.  */
51791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51793 #define $ac_func innocuous_$ac_func
51794
51795 /* System header to define __stub macros and hopefully few prototypes,
51796     which can conflict with char $ac_func (); below.
51797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51798     <limits.h> exists even on freestanding compilers.  */
51799
51800 #ifdef __STDC__
51801 # include <limits.h>
51802 #else
51803 # include <assert.h>
51804 #endif
51805
51806 #undef $ac_func
51807
51808 /* Override any gcc2 internal prototype to avoid an error.  */
51809 #ifdef __cplusplus
51810 extern "C"
51811 {
51812 #endif
51813 /* We use char because int might match the return type of a gcc2
51814    builtin and then its argument prototype would still apply.  */
51815 char $ac_func ();
51816 /* The GNU C library defines this for functions which it implements
51817     to always fail with ENOSYS.  Some functions are actually named
51818     something starting with __ and the normal name is an alias.  */
51819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51820 choke me
51821 #else
51822 char (*f) () = $ac_func;
51823 #endif
51824 #ifdef __cplusplus
51825 }
51826 #endif
51827
51828 int
51829 main ()
51830 {
51831 return f != $ac_func;
51832   ;
51833   return 0;
51834 }
51835 _ACEOF
51836 rm -f conftest.$ac_objext conftest$ac_exeext
51837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51838   (eval $ac_link) 2>conftest.er1
51839   ac_status=$?
51840   grep -v '^ *+' conftest.er1 >conftest.err
51841   rm -f conftest.er1
51842   cat conftest.err >&5
51843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51844   (exit $ac_status); } &&
51845          { ac_try='test -z "$ac_c_werror_flag"
51846                          || test ! -s conftest.err'
51847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51848   (eval $ac_try) 2>&5
51849   ac_status=$?
51850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51851   (exit $ac_status); }; } &&
51852          { ac_try='test -s conftest$ac_exeext'
51853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51854   (eval $ac_try) 2>&5
51855   ac_status=$?
51856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51857   (exit $ac_status); }; }; then
51858   eval "$as_ac_var=yes"
51859 else
51860   echo "$as_me: failed program was:" >&5
51861 sed 's/^/| /' conftest.$ac_ext >&5
51862
51863 eval "$as_ac_var=no"
51864 fi
51865 rm -f conftest.err conftest.$ac_objext \
51866       conftest$ac_exeext conftest.$ac_ext
51867 fi
51868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51870 if test `eval echo '${'$as_ac_var'}'` = yes; then
51871   cat >>confdefs.h <<_ACEOF
51872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51873 _ACEOF
51874
51875 else
51876   case $LIBOBJS in
51877     "$ac_func.$ac_objext"   | \
51878   *" $ac_func.$ac_objext"   | \
51879     "$ac_func.$ac_objext "* | \
51880   *" $ac_func.$ac_objext "* ) ;;
51881   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51882 esac
51883
51884 fi
51885 done
51886
51887
51888
51889 ice_have_strncasecmp=no
51890
51891 for ac_func in strncasecmp
51892 do
51893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51894 echo "$as_me:$LINENO: checking for $ac_func" >&5
51895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51896 if eval "test \"\${$as_ac_var+set}\" = set"; then
51897   echo $ECHO_N "(cached) $ECHO_C" >&6
51898 else
51899   cat >conftest.$ac_ext <<_ACEOF
51900 /* confdefs.h.  */
51901 _ACEOF
51902 cat confdefs.h >>conftest.$ac_ext
51903 cat >>conftest.$ac_ext <<_ACEOF
51904 /* end confdefs.h.  */
51905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51907 #define $ac_func innocuous_$ac_func
51908
51909 /* System header to define __stub macros and hopefully few prototypes,
51910     which can conflict with char $ac_func (); below.
51911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51912     <limits.h> exists even on freestanding compilers.  */
51913
51914 #ifdef __STDC__
51915 # include <limits.h>
51916 #else
51917 # include <assert.h>
51918 #endif
51919
51920 #undef $ac_func
51921
51922 /* Override any gcc2 internal prototype to avoid an error.  */
51923 #ifdef __cplusplus
51924 extern "C"
51925 {
51926 #endif
51927 /* We use char because int might match the return type of a gcc2
51928    builtin and then its argument prototype would still apply.  */
51929 char $ac_func ();
51930 /* The GNU C library defines this for functions which it implements
51931     to always fail with ENOSYS.  Some functions are actually named
51932     something starting with __ and the normal name is an alias.  */
51933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51934 choke me
51935 #else
51936 char (*f) () = $ac_func;
51937 #endif
51938 #ifdef __cplusplus
51939 }
51940 #endif
51941
51942 int
51943 main ()
51944 {
51945 return f != $ac_func;
51946   ;
51947   return 0;
51948 }
51949 _ACEOF
51950 rm -f conftest.$ac_objext conftest$ac_exeext
51951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51952   (eval $ac_link) 2>conftest.er1
51953   ac_status=$?
51954   grep -v '^ *+' conftest.er1 >conftest.err
51955   rm -f conftest.er1
51956   cat conftest.err >&5
51957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51958   (exit $ac_status); } &&
51959          { ac_try='test -z "$ac_c_werror_flag"
51960                          || test ! -s conftest.err'
51961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51962   (eval $ac_try) 2>&5
51963   ac_status=$?
51964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51965   (exit $ac_status); }; } &&
51966          { ac_try='test -s conftest$ac_exeext'
51967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51968   (eval $ac_try) 2>&5
51969   ac_status=$?
51970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51971   (exit $ac_status); }; }; then
51972   eval "$as_ac_var=yes"
51973 else
51974   echo "$as_me: failed program was:" >&5
51975 sed 's/^/| /' conftest.$ac_ext >&5
51976
51977 eval "$as_ac_var=no"
51978 fi
51979 rm -f conftest.err conftest.$ac_objext \
51980       conftest$ac_exeext conftest.$ac_ext
51981 fi
51982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51984 if test `eval echo '${'$as_ac_var'}'` = yes; then
51985   cat >>confdefs.h <<_ACEOF
51986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51987 _ACEOF
51988  ice_have_strncasecmp=yes
51989 fi
51990 done
51991
51992 if test "${ice_have_strncasecmp}" = yes; then
51993 echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
51994 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6
51995 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
51996   echo $ECHO_N "(cached) $ECHO_C" >&6
51997 else
51998
51999 ice_cv_have_strncasecmp_decl=no
52000 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52001 ice_re_word='(^|[^a-zA-Z0-9_])'
52002 for header in string.h strings.h; do
52003 # Check for ordinary declaration
52004 cat >conftest.$ac_ext <<_ACEOF
52005 /* confdefs.h.  */
52006 _ACEOF
52007 cat confdefs.h >>conftest.$ac_ext
52008 cat >>conftest.$ac_ext <<_ACEOF
52009 /* end confdefs.h.  */
52010 #include <$header>
52011
52012 _ACEOF
52013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52014   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
52015   ice_cv_have_strncasecmp_decl=yes
52016 fi
52017 rm -f conftest*
52018
52019 if test "$ice_cv_have_strncasecmp_decl" = yes; then
52020         break
52021 fi
52022 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52023 cat >conftest.$ac_ext <<_ACEOF
52024 /* confdefs.h.  */
52025 _ACEOF
52026 cat confdefs.h >>conftest.$ac_ext
52027 cat >>conftest.$ac_ext <<_ACEOF
52028 /* end confdefs.h.  */
52029 #include <$header>
52030
52031 _ACEOF
52032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52033   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52034   ice_cv_have_strncasecmp_decl=yes
52035 fi
52036 rm -f conftest*
52037
52038 if test "$ice_cv_have_strncasecmp_decl" = yes; then
52039         break
52040 fi
52041 done
52042
52043 fi
52044
52045 echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
52046 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6
52047 if test "$ice_cv_have_strncasecmp_decl" = yes; then
52048
52049 cat >>confdefs.h <<_ACEOF
52050 #define HAVE_STRNCASECMP_DECL 1
52051 _ACEOF
52052
52053 fi
52054 fi
52055
52056
52057 for ac_func in strstr
52058 do
52059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52060 echo "$as_me:$LINENO: checking for $ac_func" >&5
52061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52062 if eval "test \"\${$as_ac_var+set}\" = set"; then
52063   echo $ECHO_N "(cached) $ECHO_C" >&6
52064 else
52065   cat >conftest.$ac_ext <<_ACEOF
52066 /* confdefs.h.  */
52067 _ACEOF
52068 cat confdefs.h >>conftest.$ac_ext
52069 cat >>conftest.$ac_ext <<_ACEOF
52070 /* end confdefs.h.  */
52071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52072    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52073 #define $ac_func innocuous_$ac_func
52074
52075 /* System header to define __stub macros and hopefully few prototypes,
52076     which can conflict with char $ac_func (); below.
52077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52078     <limits.h> exists even on freestanding compilers.  */
52079
52080 #ifdef __STDC__
52081 # include <limits.h>
52082 #else
52083 # include <assert.h>
52084 #endif
52085
52086 #undef $ac_func
52087
52088 /* Override any gcc2 internal prototype to avoid an error.  */
52089 #ifdef __cplusplus
52090 extern "C"
52091 {
52092 #endif
52093 /* We use char because int might match the return type of a gcc2
52094    builtin and then its argument prototype would still apply.  */
52095 char $ac_func ();
52096 /* The GNU C library defines this for functions which it implements
52097     to always fail with ENOSYS.  Some functions are actually named
52098     something starting with __ and the normal name is an alias.  */
52099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52100 choke me
52101 #else
52102 char (*f) () = $ac_func;
52103 #endif
52104 #ifdef __cplusplus
52105 }
52106 #endif
52107
52108 int
52109 main ()
52110 {
52111 return f != $ac_func;
52112   ;
52113   return 0;
52114 }
52115 _ACEOF
52116 rm -f conftest.$ac_objext conftest$ac_exeext
52117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52118   (eval $ac_link) 2>conftest.er1
52119   ac_status=$?
52120   grep -v '^ *+' conftest.er1 >conftest.err
52121   rm -f conftest.er1
52122   cat conftest.err >&5
52123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52124   (exit $ac_status); } &&
52125          { ac_try='test -z "$ac_c_werror_flag"
52126                          || test ! -s conftest.err'
52127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52128   (eval $ac_try) 2>&5
52129   ac_status=$?
52130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52131   (exit $ac_status); }; } &&
52132          { ac_try='test -s conftest$ac_exeext'
52133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52134   (eval $ac_try) 2>&5
52135   ac_status=$?
52136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52137   (exit $ac_status); }; }; then
52138   eval "$as_ac_var=yes"
52139 else
52140   echo "$as_me: failed program was:" >&5
52141 sed 's/^/| /' conftest.$ac_ext >&5
52142
52143 eval "$as_ac_var=no"
52144 fi
52145 rm -f conftest.err conftest.$ac_objext \
52146       conftest$ac_exeext conftest.$ac_ext
52147 fi
52148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52149 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52150 if test `eval echo '${'$as_ac_var'}'` = yes; then
52151   cat >>confdefs.h <<_ACEOF
52152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52153 _ACEOF
52154
52155 else
52156   case $LIBOBJS in
52157     "$ac_func.$ac_objext"   | \
52158   *" $ac_func.$ac_objext"   | \
52159     "$ac_func.$ac_objext "* | \
52160   *" $ac_func.$ac_objext "* ) ;;
52161   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
52162 esac
52163
52164 fi
52165 done
52166
52167
52168
52169 ice_have_syslog=no
52170
52171 for ac_func in syslog
52172 do
52173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52174 echo "$as_me:$LINENO: checking for $ac_func" >&5
52175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52176 if eval "test \"\${$as_ac_var+set}\" = set"; then
52177   echo $ECHO_N "(cached) $ECHO_C" >&6
52178 else
52179   cat >conftest.$ac_ext <<_ACEOF
52180 /* confdefs.h.  */
52181 _ACEOF
52182 cat confdefs.h >>conftest.$ac_ext
52183 cat >>conftest.$ac_ext <<_ACEOF
52184 /* end confdefs.h.  */
52185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52187 #define $ac_func innocuous_$ac_func
52188
52189 /* System header to define __stub macros and hopefully few prototypes,
52190     which can conflict with char $ac_func (); below.
52191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52192     <limits.h> exists even on freestanding compilers.  */
52193
52194 #ifdef __STDC__
52195 # include <limits.h>
52196 #else
52197 # include <assert.h>
52198 #endif
52199
52200 #undef $ac_func
52201
52202 /* Override any gcc2 internal prototype to avoid an error.  */
52203 #ifdef __cplusplus
52204 extern "C"
52205 {
52206 #endif
52207 /* We use char because int might match the return type of a gcc2
52208    builtin and then its argument prototype would still apply.  */
52209 char $ac_func ();
52210 /* The GNU C library defines this for functions which it implements
52211     to always fail with ENOSYS.  Some functions are actually named
52212     something starting with __ and the normal name is an alias.  */
52213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52214 choke me
52215 #else
52216 char (*f) () = $ac_func;
52217 #endif
52218 #ifdef __cplusplus
52219 }
52220 #endif
52221
52222 int
52223 main ()
52224 {
52225 return f != $ac_func;
52226   ;
52227   return 0;
52228 }
52229 _ACEOF
52230 rm -f conftest.$ac_objext conftest$ac_exeext
52231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52232   (eval $ac_link) 2>conftest.er1
52233   ac_status=$?
52234   grep -v '^ *+' conftest.er1 >conftest.err
52235   rm -f conftest.er1
52236   cat conftest.err >&5
52237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52238   (exit $ac_status); } &&
52239          { ac_try='test -z "$ac_c_werror_flag"
52240                          || test ! -s conftest.err'
52241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52242   (eval $ac_try) 2>&5
52243   ac_status=$?
52244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52245   (exit $ac_status); }; } &&
52246          { ac_try='test -s conftest$ac_exeext'
52247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52248   (eval $ac_try) 2>&5
52249   ac_status=$?
52250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52251   (exit $ac_status); }; }; then
52252   eval "$as_ac_var=yes"
52253 else
52254   echo "$as_me: failed program was:" >&5
52255 sed 's/^/| /' conftest.$ac_ext >&5
52256
52257 eval "$as_ac_var=no"
52258 fi
52259 rm -f conftest.err conftest.$ac_objext \
52260       conftest$ac_exeext conftest.$ac_ext
52261 fi
52262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52264 if test `eval echo '${'$as_ac_var'}'` = yes; then
52265   cat >>confdefs.h <<_ACEOF
52266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52267 _ACEOF
52268  ice_have_syslog=yes
52269 fi
52270 done
52271
52272 if test "${ice_have_syslog}" = yes; then
52273 echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
52274 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6
52275 if test "${ice_cv_have_syslog_decl+set}" = set; then
52276   echo $ECHO_N "(cached) $ECHO_C" >&6
52277 else
52278
52279 ice_cv_have_syslog_decl=no
52280 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52281 ice_re_word='(^|[^a-zA-Z0-9_])'
52282 for header in syslog.h; do
52283 # Check for ordinary declaration
52284 cat >conftest.$ac_ext <<_ACEOF
52285 /* confdefs.h.  */
52286 _ACEOF
52287 cat confdefs.h >>conftest.$ac_ext
52288 cat >>conftest.$ac_ext <<_ACEOF
52289 /* end confdefs.h.  */
52290 #include <$header>
52291
52292 _ACEOF
52293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52294   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
52295   ice_cv_have_syslog_decl=yes
52296 fi
52297 rm -f conftest*
52298
52299 if test "$ice_cv_have_syslog_decl" = yes; then
52300         break
52301 fi
52302 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52303 cat >conftest.$ac_ext <<_ACEOF
52304 /* confdefs.h.  */
52305 _ACEOF
52306 cat confdefs.h >>conftest.$ac_ext
52307 cat >>conftest.$ac_ext <<_ACEOF
52308 /* end confdefs.h.  */
52309 #include <$header>
52310
52311 _ACEOF
52312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52313   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52314   ice_cv_have_syslog_decl=yes
52315 fi
52316 rm -f conftest*
52317
52318 if test "$ice_cv_have_syslog_decl" = yes; then
52319         break
52320 fi
52321 done
52322
52323 fi
52324
52325 echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
52326 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6
52327 if test "$ice_cv_have_syslog_decl" = yes; then
52328
52329 cat >>confdefs.h <<_ACEOF
52330 #define HAVE_SYSLOG_DECL 1
52331 _ACEOF
52332
52333 fi
52334 fi
52335
52336
52337 ice_have_system=no
52338
52339 for ac_func in system
52340 do
52341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52342 echo "$as_me:$LINENO: checking for $ac_func" >&5
52343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52344 if eval "test \"\${$as_ac_var+set}\" = set"; then
52345   echo $ECHO_N "(cached) $ECHO_C" >&6
52346 else
52347   cat >conftest.$ac_ext <<_ACEOF
52348 /* confdefs.h.  */
52349 _ACEOF
52350 cat confdefs.h >>conftest.$ac_ext
52351 cat >>conftest.$ac_ext <<_ACEOF
52352 /* end confdefs.h.  */
52353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52355 #define $ac_func innocuous_$ac_func
52356
52357 /* System header to define __stub macros and hopefully few prototypes,
52358     which can conflict with char $ac_func (); below.
52359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52360     <limits.h> exists even on freestanding compilers.  */
52361
52362 #ifdef __STDC__
52363 # include <limits.h>
52364 #else
52365 # include <assert.h>
52366 #endif
52367
52368 #undef $ac_func
52369
52370 /* Override any gcc2 internal prototype to avoid an error.  */
52371 #ifdef __cplusplus
52372 extern "C"
52373 {
52374 #endif
52375 /* We use char because int might match the return type of a gcc2
52376    builtin and then its argument prototype would still apply.  */
52377 char $ac_func ();
52378 /* The GNU C library defines this for functions which it implements
52379     to always fail with ENOSYS.  Some functions are actually named
52380     something starting with __ and the normal name is an alias.  */
52381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52382 choke me
52383 #else
52384 char (*f) () = $ac_func;
52385 #endif
52386 #ifdef __cplusplus
52387 }
52388 #endif
52389
52390 int
52391 main ()
52392 {
52393 return f != $ac_func;
52394   ;
52395   return 0;
52396 }
52397 _ACEOF
52398 rm -f conftest.$ac_objext conftest$ac_exeext
52399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52400   (eval $ac_link) 2>conftest.er1
52401   ac_status=$?
52402   grep -v '^ *+' conftest.er1 >conftest.err
52403   rm -f conftest.er1
52404   cat conftest.err >&5
52405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52406   (exit $ac_status); } &&
52407          { ac_try='test -z "$ac_c_werror_flag"
52408                          || test ! -s conftest.err'
52409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52410   (eval $ac_try) 2>&5
52411   ac_status=$?
52412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52413   (exit $ac_status); }; } &&
52414          { ac_try='test -s conftest$ac_exeext'
52415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52416   (eval $ac_try) 2>&5
52417   ac_status=$?
52418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52419   (exit $ac_status); }; }; then
52420   eval "$as_ac_var=yes"
52421 else
52422   echo "$as_me: failed program was:" >&5
52423 sed 's/^/| /' conftest.$ac_ext >&5
52424
52425 eval "$as_ac_var=no"
52426 fi
52427 rm -f conftest.err conftest.$ac_objext \
52428       conftest$ac_exeext conftest.$ac_ext
52429 fi
52430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52432 if test `eval echo '${'$as_ac_var'}'` = yes; then
52433   cat >>confdefs.h <<_ACEOF
52434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52435 _ACEOF
52436  ice_have_system=yes
52437 fi
52438 done
52439
52440 if test "${ice_have_system}" = yes; then
52441 echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
52442 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6
52443 if test "${ice_cv_have_system_decl+set}" = set; then
52444   echo $ECHO_N "(cached) $ECHO_C" >&6
52445 else
52446
52447 ice_cv_have_system_decl=no
52448 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52449 ice_re_word='(^|[^a-zA-Z0-9_])'
52450 for header in stdlib.h; do
52451 # Check for ordinary declaration
52452 cat >conftest.$ac_ext <<_ACEOF
52453 /* confdefs.h.  */
52454 _ACEOF
52455 cat confdefs.h >>conftest.$ac_ext
52456 cat >>conftest.$ac_ext <<_ACEOF
52457 /* end confdefs.h.  */
52458 #include <$header>
52459
52460 _ACEOF
52461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52462   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
52463   ice_cv_have_system_decl=yes
52464 fi
52465 rm -f conftest*
52466
52467 if test "$ice_cv_have_system_decl" = yes; then
52468         break
52469 fi
52470 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52471 cat >conftest.$ac_ext <<_ACEOF
52472 /* confdefs.h.  */
52473 _ACEOF
52474 cat confdefs.h >>conftest.$ac_ext
52475 cat >>conftest.$ac_ext <<_ACEOF
52476 /* end confdefs.h.  */
52477 #include <$header>
52478
52479 _ACEOF
52480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52481   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52482   ice_cv_have_system_decl=yes
52483 fi
52484 rm -f conftest*
52485
52486 if test "$ice_cv_have_system_decl" = yes; then
52487         break
52488 fi
52489 done
52490
52491 fi
52492
52493 echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
52494 echo "${ECHO_T}$ice_cv_have_system_decl" >&6
52495 if test "$ice_cv_have_system_decl" = yes; then
52496
52497 cat >>confdefs.h <<_ACEOF
52498 #define HAVE_SYSTEM_DECL 1
52499 _ACEOF
52500
52501 fi
52502 fi
52503
52504
52505 ice_have_time=no
52506
52507 for ac_func in time
52508 do
52509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52510 echo "$as_me:$LINENO: checking for $ac_func" >&5
52511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52512 if eval "test \"\${$as_ac_var+set}\" = set"; then
52513   echo $ECHO_N "(cached) $ECHO_C" >&6
52514 else
52515   cat >conftest.$ac_ext <<_ACEOF
52516 /* confdefs.h.  */
52517 _ACEOF
52518 cat confdefs.h >>conftest.$ac_ext
52519 cat >>conftest.$ac_ext <<_ACEOF
52520 /* end confdefs.h.  */
52521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52523 #define $ac_func innocuous_$ac_func
52524
52525 /* System header to define __stub macros and hopefully few prototypes,
52526     which can conflict with char $ac_func (); below.
52527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52528     <limits.h> exists even on freestanding compilers.  */
52529
52530 #ifdef __STDC__
52531 # include <limits.h>
52532 #else
52533 # include <assert.h>
52534 #endif
52535
52536 #undef $ac_func
52537
52538 /* Override any gcc2 internal prototype to avoid an error.  */
52539 #ifdef __cplusplus
52540 extern "C"
52541 {
52542 #endif
52543 /* We use char because int might match the return type of a gcc2
52544    builtin and then its argument prototype would still apply.  */
52545 char $ac_func ();
52546 /* The GNU C library defines this for functions which it implements
52547     to always fail with ENOSYS.  Some functions are actually named
52548     something starting with __ and the normal name is an alias.  */
52549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52550 choke me
52551 #else
52552 char (*f) () = $ac_func;
52553 #endif
52554 #ifdef __cplusplus
52555 }
52556 #endif
52557
52558 int
52559 main ()
52560 {
52561 return f != $ac_func;
52562   ;
52563   return 0;
52564 }
52565 _ACEOF
52566 rm -f conftest.$ac_objext conftest$ac_exeext
52567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52568   (eval $ac_link) 2>conftest.er1
52569   ac_status=$?
52570   grep -v '^ *+' conftest.er1 >conftest.err
52571   rm -f conftest.er1
52572   cat conftest.err >&5
52573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52574   (exit $ac_status); } &&
52575          { ac_try='test -z "$ac_c_werror_flag"
52576                          || test ! -s conftest.err'
52577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52578   (eval $ac_try) 2>&5
52579   ac_status=$?
52580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52581   (exit $ac_status); }; } &&
52582          { ac_try='test -s conftest$ac_exeext'
52583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52584   (eval $ac_try) 2>&5
52585   ac_status=$?
52586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52587   (exit $ac_status); }; }; then
52588   eval "$as_ac_var=yes"
52589 else
52590   echo "$as_me: failed program was:" >&5
52591 sed 's/^/| /' conftest.$ac_ext >&5
52592
52593 eval "$as_ac_var=no"
52594 fi
52595 rm -f conftest.err conftest.$ac_objext \
52596       conftest$ac_exeext conftest.$ac_ext
52597 fi
52598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52600 if test `eval echo '${'$as_ac_var'}'` = yes; then
52601   cat >>confdefs.h <<_ACEOF
52602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52603 _ACEOF
52604  ice_have_time=yes
52605 fi
52606 done
52607
52608 if test "${ice_have_time}" = yes; then
52609 echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
52610 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6
52611 if test "${ice_cv_have_time_decl+set}" = set; then
52612   echo $ECHO_N "(cached) $ECHO_C" >&6
52613 else
52614
52615 ice_cv_have_time_decl=no
52616 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52617 ice_re_word='(^|[^a-zA-Z0-9_])'
52618 for header in time.h sys/time.h; do
52619 # Check for ordinary declaration
52620 cat >conftest.$ac_ext <<_ACEOF
52621 /* confdefs.h.  */
52622 _ACEOF
52623 cat confdefs.h >>conftest.$ac_ext
52624 cat >>conftest.$ac_ext <<_ACEOF
52625 /* end confdefs.h.  */
52626 #include <$header>
52627
52628 _ACEOF
52629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52630   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
52631   ice_cv_have_time_decl=yes
52632 fi
52633 rm -f conftest*
52634
52635 if test "$ice_cv_have_time_decl" = yes; then
52636         break
52637 fi
52638 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52639 cat >conftest.$ac_ext <<_ACEOF
52640 /* confdefs.h.  */
52641 _ACEOF
52642 cat confdefs.h >>conftest.$ac_ext
52643 cat >>conftest.$ac_ext <<_ACEOF
52644 /* end confdefs.h.  */
52645 #include <$header>
52646
52647 _ACEOF
52648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52649   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52650   ice_cv_have_time_decl=yes
52651 fi
52652 rm -f conftest*
52653
52654 if test "$ice_cv_have_time_decl" = yes; then
52655         break
52656 fi
52657 done
52658
52659 fi
52660
52661 echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
52662 echo "${ECHO_T}$ice_cv_have_time_decl" >&6
52663 if test "$ice_cv_have_time_decl" = yes; then
52664
52665 cat >>confdefs.h <<_ACEOF
52666 #define HAVE_TIME_DECL 1
52667 _ACEOF
52668
52669 fi
52670 fi
52671
52672
52673 ice_have_tolower=no
52674
52675 for ac_func in tolower
52676 do
52677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52678 echo "$as_me:$LINENO: checking for $ac_func" >&5
52679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52680 if eval "test \"\${$as_ac_var+set}\" = set"; then
52681   echo $ECHO_N "(cached) $ECHO_C" >&6
52682 else
52683   cat >conftest.$ac_ext <<_ACEOF
52684 /* confdefs.h.  */
52685 _ACEOF
52686 cat confdefs.h >>conftest.$ac_ext
52687 cat >>conftest.$ac_ext <<_ACEOF
52688 /* end confdefs.h.  */
52689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52691 #define $ac_func innocuous_$ac_func
52692
52693 /* System header to define __stub macros and hopefully few prototypes,
52694     which can conflict with char $ac_func (); below.
52695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52696     <limits.h> exists even on freestanding compilers.  */
52697
52698 #ifdef __STDC__
52699 # include <limits.h>
52700 #else
52701 # include <assert.h>
52702 #endif
52703
52704 #undef $ac_func
52705
52706 /* Override any gcc2 internal prototype to avoid an error.  */
52707 #ifdef __cplusplus
52708 extern "C"
52709 {
52710 #endif
52711 /* We use char because int might match the return type of a gcc2
52712    builtin and then its argument prototype would still apply.  */
52713 char $ac_func ();
52714 /* The GNU C library defines this for functions which it implements
52715     to always fail with ENOSYS.  Some functions are actually named
52716     something starting with __ and the normal name is an alias.  */
52717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52718 choke me
52719 #else
52720 char (*f) () = $ac_func;
52721 #endif
52722 #ifdef __cplusplus
52723 }
52724 #endif
52725
52726 int
52727 main ()
52728 {
52729 return f != $ac_func;
52730   ;
52731   return 0;
52732 }
52733 _ACEOF
52734 rm -f conftest.$ac_objext conftest$ac_exeext
52735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52736   (eval $ac_link) 2>conftest.er1
52737   ac_status=$?
52738   grep -v '^ *+' conftest.er1 >conftest.err
52739   rm -f conftest.er1
52740   cat conftest.err >&5
52741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52742   (exit $ac_status); } &&
52743          { ac_try='test -z "$ac_c_werror_flag"
52744                          || test ! -s conftest.err'
52745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52746   (eval $ac_try) 2>&5
52747   ac_status=$?
52748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52749   (exit $ac_status); }; } &&
52750          { ac_try='test -s conftest$ac_exeext'
52751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52752   (eval $ac_try) 2>&5
52753   ac_status=$?
52754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52755   (exit $ac_status); }; }; then
52756   eval "$as_ac_var=yes"
52757 else
52758   echo "$as_me: failed program was:" >&5
52759 sed 's/^/| /' conftest.$ac_ext >&5
52760
52761 eval "$as_ac_var=no"
52762 fi
52763 rm -f conftest.err conftest.$ac_objext \
52764       conftest$ac_exeext conftest.$ac_ext
52765 fi
52766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52768 if test `eval echo '${'$as_ac_var'}'` = yes; then
52769   cat >>confdefs.h <<_ACEOF
52770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52771 _ACEOF
52772  ice_have_tolower=yes
52773 fi
52774 done
52775
52776 if test "${ice_have_tolower}" = yes; then
52777 echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
52778 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6
52779 if test "${ice_cv_have_tolower_decl+set}" = set; then
52780   echo $ECHO_N "(cached) $ECHO_C" >&6
52781 else
52782
52783 ice_cv_have_tolower_decl=no
52784 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52785 ice_re_word='(^|[^a-zA-Z0-9_])'
52786 for header in ctype.h; do
52787 # Check for ordinary declaration
52788 cat >conftest.$ac_ext <<_ACEOF
52789 /* confdefs.h.  */
52790 _ACEOF
52791 cat confdefs.h >>conftest.$ac_ext
52792 cat >>conftest.$ac_ext <<_ACEOF
52793 /* end confdefs.h.  */
52794 #include <$header>
52795
52796 _ACEOF
52797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52798   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
52799   ice_cv_have_tolower_decl=yes
52800 fi
52801 rm -f conftest*
52802
52803 if test "$ice_cv_have_tolower_decl" = yes; then
52804         break
52805 fi
52806 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52807 cat >conftest.$ac_ext <<_ACEOF
52808 /* confdefs.h.  */
52809 _ACEOF
52810 cat confdefs.h >>conftest.$ac_ext
52811 cat >>conftest.$ac_ext <<_ACEOF
52812 /* end confdefs.h.  */
52813 #include <$header>
52814
52815 _ACEOF
52816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52817   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52818   ice_cv_have_tolower_decl=yes
52819 fi
52820 rm -f conftest*
52821
52822 if test "$ice_cv_have_tolower_decl" = yes; then
52823         break
52824 fi
52825 done
52826
52827 fi
52828
52829 echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
52830 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6
52831 if test "$ice_cv_have_tolower_decl" = yes; then
52832
52833 cat >>confdefs.h <<_ACEOF
52834 #define HAVE_TOLOWER_DECL 1
52835 _ACEOF
52836
52837 fi
52838 fi
52839
52840
52841 ice_have_toupper=no
52842
52843 for ac_func in toupper
52844 do
52845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52846 echo "$as_me:$LINENO: checking for $ac_func" >&5
52847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52848 if eval "test \"\${$as_ac_var+set}\" = set"; then
52849   echo $ECHO_N "(cached) $ECHO_C" >&6
52850 else
52851   cat >conftest.$ac_ext <<_ACEOF
52852 /* confdefs.h.  */
52853 _ACEOF
52854 cat confdefs.h >>conftest.$ac_ext
52855 cat >>conftest.$ac_ext <<_ACEOF
52856 /* end confdefs.h.  */
52857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52859 #define $ac_func innocuous_$ac_func
52860
52861 /* System header to define __stub macros and hopefully few prototypes,
52862     which can conflict with char $ac_func (); below.
52863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52864     <limits.h> exists even on freestanding compilers.  */
52865
52866 #ifdef __STDC__
52867 # include <limits.h>
52868 #else
52869 # include <assert.h>
52870 #endif
52871
52872 #undef $ac_func
52873
52874 /* Override any gcc2 internal prototype to avoid an error.  */
52875 #ifdef __cplusplus
52876 extern "C"
52877 {
52878 #endif
52879 /* We use char because int might match the return type of a gcc2
52880    builtin and then its argument prototype would still apply.  */
52881 char $ac_func ();
52882 /* The GNU C library defines this for functions which it implements
52883     to always fail with ENOSYS.  Some functions are actually named
52884     something starting with __ and the normal name is an alias.  */
52885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52886 choke me
52887 #else
52888 char (*f) () = $ac_func;
52889 #endif
52890 #ifdef __cplusplus
52891 }
52892 #endif
52893
52894 int
52895 main ()
52896 {
52897 return f != $ac_func;
52898   ;
52899   return 0;
52900 }
52901 _ACEOF
52902 rm -f conftest.$ac_objext conftest$ac_exeext
52903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52904   (eval $ac_link) 2>conftest.er1
52905   ac_status=$?
52906   grep -v '^ *+' conftest.er1 >conftest.err
52907   rm -f conftest.er1
52908   cat conftest.err >&5
52909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52910   (exit $ac_status); } &&
52911          { ac_try='test -z "$ac_c_werror_flag"
52912                          || test ! -s conftest.err'
52913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52914   (eval $ac_try) 2>&5
52915   ac_status=$?
52916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52917   (exit $ac_status); }; } &&
52918          { ac_try='test -s conftest$ac_exeext'
52919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52920   (eval $ac_try) 2>&5
52921   ac_status=$?
52922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52923   (exit $ac_status); }; }; then
52924   eval "$as_ac_var=yes"
52925 else
52926   echo "$as_me: failed program was:" >&5
52927 sed 's/^/| /' conftest.$ac_ext >&5
52928
52929 eval "$as_ac_var=no"
52930 fi
52931 rm -f conftest.err conftest.$ac_objext \
52932       conftest$ac_exeext conftest.$ac_ext
52933 fi
52934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52936 if test `eval echo '${'$as_ac_var'}'` = yes; then
52937   cat >>confdefs.h <<_ACEOF
52938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52939 _ACEOF
52940  ice_have_toupper=yes
52941 fi
52942 done
52943
52944 if test "${ice_have_toupper}" = yes; then
52945 echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
52946 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6
52947 if test "${ice_cv_have_toupper_decl+set}" = set; then
52948   echo $ECHO_N "(cached) $ECHO_C" >&6
52949 else
52950
52951 ice_cv_have_toupper_decl=no
52952 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52953 ice_re_word='(^|[^a-zA-Z0-9_])'
52954 for header in ctype.h; do
52955 # Check for ordinary declaration
52956 cat >conftest.$ac_ext <<_ACEOF
52957 /* confdefs.h.  */
52958 _ACEOF
52959 cat confdefs.h >>conftest.$ac_ext
52960 cat >>conftest.$ac_ext <<_ACEOF
52961 /* end confdefs.h.  */
52962 #include <$header>
52963
52964 _ACEOF
52965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52966   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
52967   ice_cv_have_toupper_decl=yes
52968 fi
52969 rm -f conftest*
52970
52971 if test "$ice_cv_have_toupper_decl" = yes; then
52972         break
52973 fi
52974 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52975 cat >conftest.$ac_ext <<_ACEOF
52976 /* confdefs.h.  */
52977 _ACEOF
52978 cat confdefs.h >>conftest.$ac_ext
52979 cat >>conftest.$ac_ext <<_ACEOF
52980 /* end confdefs.h.  */
52981 #include <$header>
52982
52983 _ACEOF
52984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52985   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52986   ice_cv_have_toupper_decl=yes
52987 fi
52988 rm -f conftest*
52989
52990 if test "$ice_cv_have_toupper_decl" = yes; then
52991         break
52992 fi
52993 done
52994
52995 fi
52996
52997 echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
52998 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6
52999 if test "$ice_cv_have_toupper_decl" = yes; then
53000
53001 cat >>confdefs.h <<_ACEOF
53002 #define HAVE_TOUPPER_DECL 1
53003 _ACEOF
53004
53005 fi
53006 fi
53007
53008
53009 ice_have_ungetc=no
53010
53011 for ac_func in ungetc
53012 do
53013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53014 echo "$as_me:$LINENO: checking for $ac_func" >&5
53015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53016 if eval "test \"\${$as_ac_var+set}\" = set"; then
53017   echo $ECHO_N "(cached) $ECHO_C" >&6
53018 else
53019   cat >conftest.$ac_ext <<_ACEOF
53020 /* confdefs.h.  */
53021 _ACEOF
53022 cat confdefs.h >>conftest.$ac_ext
53023 cat >>conftest.$ac_ext <<_ACEOF
53024 /* end confdefs.h.  */
53025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53026    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53027 #define $ac_func innocuous_$ac_func
53028
53029 /* System header to define __stub macros and hopefully few prototypes,
53030     which can conflict with char $ac_func (); below.
53031     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53032     <limits.h> exists even on freestanding compilers.  */
53033
53034 #ifdef __STDC__
53035 # include <limits.h>
53036 #else
53037 # include <assert.h>
53038 #endif
53039
53040 #undef $ac_func
53041
53042 /* Override any gcc2 internal prototype to avoid an error.  */
53043 #ifdef __cplusplus
53044 extern "C"
53045 {
53046 #endif
53047 /* We use char because int might match the return type of a gcc2
53048    builtin and then its argument prototype would still apply.  */
53049 char $ac_func ();
53050 /* The GNU C library defines this for functions which it implements
53051     to always fail with ENOSYS.  Some functions are actually named
53052     something starting with __ and the normal name is an alias.  */
53053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53054 choke me
53055 #else
53056 char (*f) () = $ac_func;
53057 #endif
53058 #ifdef __cplusplus
53059 }
53060 #endif
53061
53062 int
53063 main ()
53064 {
53065 return f != $ac_func;
53066   ;
53067   return 0;
53068 }
53069 _ACEOF
53070 rm -f conftest.$ac_objext conftest$ac_exeext
53071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53072   (eval $ac_link) 2>conftest.er1
53073   ac_status=$?
53074   grep -v '^ *+' conftest.er1 >conftest.err
53075   rm -f conftest.er1
53076   cat conftest.err >&5
53077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53078   (exit $ac_status); } &&
53079          { ac_try='test -z "$ac_c_werror_flag"
53080                          || test ! -s conftest.err'
53081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53082   (eval $ac_try) 2>&5
53083   ac_status=$?
53084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53085   (exit $ac_status); }; } &&
53086          { ac_try='test -s conftest$ac_exeext'
53087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53088   (eval $ac_try) 2>&5
53089   ac_status=$?
53090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53091   (exit $ac_status); }; }; then
53092   eval "$as_ac_var=yes"
53093 else
53094   echo "$as_me: failed program was:" >&5
53095 sed 's/^/| /' conftest.$ac_ext >&5
53096
53097 eval "$as_ac_var=no"
53098 fi
53099 rm -f conftest.err conftest.$ac_objext \
53100       conftest$ac_exeext conftest.$ac_ext
53101 fi
53102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53104 if test `eval echo '${'$as_ac_var'}'` = yes; then
53105   cat >>confdefs.h <<_ACEOF
53106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53107 _ACEOF
53108  ice_have_ungetc=yes
53109 fi
53110 done
53111
53112 if test "${ice_have_ungetc}" = yes; then
53113 echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
53114 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6
53115 if test "${ice_cv_have_ungetc_decl+set}" = set; then
53116   echo $ECHO_N "(cached) $ECHO_C" >&6
53117 else
53118
53119 ice_cv_have_ungetc_decl=no
53120 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53121 ice_re_word='(^|[^a-zA-Z0-9_])'
53122 for header in stdio.h; do
53123 # Check for ordinary declaration
53124 cat >conftest.$ac_ext <<_ACEOF
53125 /* confdefs.h.  */
53126 _ACEOF
53127 cat confdefs.h >>conftest.$ac_ext
53128 cat >>conftest.$ac_ext <<_ACEOF
53129 /* end confdefs.h.  */
53130 #include <$header>
53131
53132 _ACEOF
53133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53134   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
53135   ice_cv_have_ungetc_decl=yes
53136 fi
53137 rm -f conftest*
53138
53139 if test "$ice_cv_have_ungetc_decl" = yes; then
53140         break
53141 fi
53142 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53143 cat >conftest.$ac_ext <<_ACEOF
53144 /* confdefs.h.  */
53145 _ACEOF
53146 cat confdefs.h >>conftest.$ac_ext
53147 cat >>conftest.$ac_ext <<_ACEOF
53148 /* end confdefs.h.  */
53149 #include <$header>
53150
53151 _ACEOF
53152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53153   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53154   ice_cv_have_ungetc_decl=yes
53155 fi
53156 rm -f conftest*
53157
53158 if test "$ice_cv_have_ungetc_decl" = yes; then
53159         break
53160 fi
53161 done
53162
53163 fi
53164
53165 echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
53166 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6
53167 if test "$ice_cv_have_ungetc_decl" = yes; then
53168
53169 cat >>confdefs.h <<_ACEOF
53170 #define HAVE_UNGETC_DECL 1
53171 _ACEOF
53172
53173 fi
53174 fi
53175
53176
53177 for ac_func in vprintf
53178 do
53179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53180 echo "$as_me:$LINENO: checking for $ac_func" >&5
53181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53182 if eval "test \"\${$as_ac_var+set}\" = set"; then
53183   echo $ECHO_N "(cached) $ECHO_C" >&6
53184 else
53185   cat >conftest.$ac_ext <<_ACEOF
53186 /* confdefs.h.  */
53187 _ACEOF
53188 cat confdefs.h >>conftest.$ac_ext
53189 cat >>conftest.$ac_ext <<_ACEOF
53190 /* end confdefs.h.  */
53191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53193 #define $ac_func innocuous_$ac_func
53194
53195 /* System header to define __stub macros and hopefully few prototypes,
53196     which can conflict with char $ac_func (); below.
53197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53198     <limits.h> exists even on freestanding compilers.  */
53199
53200 #ifdef __STDC__
53201 # include <limits.h>
53202 #else
53203 # include <assert.h>
53204 #endif
53205
53206 #undef $ac_func
53207
53208 /* Override any gcc2 internal prototype to avoid an error.  */
53209 #ifdef __cplusplus
53210 extern "C"
53211 {
53212 #endif
53213 /* We use char because int might match the return type of a gcc2
53214    builtin and then its argument prototype would still apply.  */
53215 char $ac_func ();
53216 /* The GNU C library defines this for functions which it implements
53217     to always fail with ENOSYS.  Some functions are actually named
53218     something starting with __ and the normal name is an alias.  */
53219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53220 choke me
53221 #else
53222 char (*f) () = $ac_func;
53223 #endif
53224 #ifdef __cplusplus
53225 }
53226 #endif
53227
53228 int
53229 main ()
53230 {
53231 return f != $ac_func;
53232   ;
53233   return 0;
53234 }
53235 _ACEOF
53236 rm -f conftest.$ac_objext conftest$ac_exeext
53237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53238   (eval $ac_link) 2>conftest.er1
53239   ac_status=$?
53240   grep -v '^ *+' conftest.er1 >conftest.err
53241   rm -f conftest.er1
53242   cat conftest.err >&5
53243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53244   (exit $ac_status); } &&
53245          { ac_try='test -z "$ac_c_werror_flag"
53246                          || test ! -s conftest.err'
53247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53248   (eval $ac_try) 2>&5
53249   ac_status=$?
53250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53251   (exit $ac_status); }; } &&
53252          { ac_try='test -s conftest$ac_exeext'
53253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53254   (eval $ac_try) 2>&5
53255   ac_status=$?
53256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53257   (exit $ac_status); }; }; then
53258   eval "$as_ac_var=yes"
53259 else
53260   echo "$as_me: failed program was:" >&5
53261 sed 's/^/| /' conftest.$ac_ext >&5
53262
53263 eval "$as_ac_var=no"
53264 fi
53265 rm -f conftest.err conftest.$ac_objext \
53266       conftest$ac_exeext conftest.$ac_ext
53267 fi
53268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53270 if test `eval echo '${'$as_ac_var'}'` = yes; then
53271   cat >>confdefs.h <<_ACEOF
53272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53273 _ACEOF
53274
53275 echo "$as_me:$LINENO: checking for _doprnt" >&5
53276 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
53277 if test "${ac_cv_func__doprnt+set}" = set; then
53278   echo $ECHO_N "(cached) $ECHO_C" >&6
53279 else
53280   cat >conftest.$ac_ext <<_ACEOF
53281 /* confdefs.h.  */
53282 _ACEOF
53283 cat confdefs.h >>conftest.$ac_ext
53284 cat >>conftest.$ac_ext <<_ACEOF
53285 /* end confdefs.h.  */
53286 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
53287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53288 #define _doprnt innocuous__doprnt
53289
53290 /* System header to define __stub macros and hopefully few prototypes,
53291     which can conflict with char _doprnt (); below.
53292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53293     <limits.h> exists even on freestanding compilers.  */
53294
53295 #ifdef __STDC__
53296 # include <limits.h>
53297 #else
53298 # include <assert.h>
53299 #endif
53300
53301 #undef _doprnt
53302
53303 /* Override any gcc2 internal prototype to avoid an error.  */
53304 #ifdef __cplusplus
53305 extern "C"
53306 {
53307 #endif
53308 /* We use char because int might match the return type of a gcc2
53309    builtin and then its argument prototype would still apply.  */
53310 char _doprnt ();
53311 /* The GNU C library defines this for functions which it implements
53312     to always fail with ENOSYS.  Some functions are actually named
53313     something starting with __ and the normal name is an alias.  */
53314 #if defined (__stub__doprnt) || defined (__stub____doprnt)
53315 choke me
53316 #else
53317 char (*f) () = _doprnt;
53318 #endif
53319 #ifdef __cplusplus
53320 }
53321 #endif
53322
53323 int
53324 main ()
53325 {
53326 return f != _doprnt;
53327   ;
53328   return 0;
53329 }
53330 _ACEOF
53331 rm -f conftest.$ac_objext conftest$ac_exeext
53332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53333   (eval $ac_link) 2>conftest.er1
53334   ac_status=$?
53335   grep -v '^ *+' conftest.er1 >conftest.err
53336   rm -f conftest.er1
53337   cat conftest.err >&5
53338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53339   (exit $ac_status); } &&
53340          { ac_try='test -z "$ac_c_werror_flag"
53341                          || test ! -s conftest.err'
53342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53343   (eval $ac_try) 2>&5
53344   ac_status=$?
53345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53346   (exit $ac_status); }; } &&
53347          { ac_try='test -s conftest$ac_exeext'
53348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53349   (eval $ac_try) 2>&5
53350   ac_status=$?
53351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53352   (exit $ac_status); }; }; then
53353   ac_cv_func__doprnt=yes
53354 else
53355   echo "$as_me: failed program was:" >&5
53356 sed 's/^/| /' conftest.$ac_ext >&5
53357
53358 ac_cv_func__doprnt=no
53359 fi
53360 rm -f conftest.err conftest.$ac_objext \
53361       conftest$ac_exeext conftest.$ac_ext
53362 fi
53363 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
53364 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
53365 if test $ac_cv_func__doprnt = yes; then
53366
53367 cat >>confdefs.h <<\_ACEOF
53368 #define HAVE_DOPRNT 1
53369 _ACEOF
53370
53371 fi
53372
53373 fi
53374 done
53375
53376
53377
53378 ice_have_vfprintf=no
53379
53380 for ac_func in vfprintf
53381 do
53382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53383 echo "$as_me:$LINENO: checking for $ac_func" >&5
53384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53385 if eval "test \"\${$as_ac_var+set}\" = set"; then
53386   echo $ECHO_N "(cached) $ECHO_C" >&6
53387 else
53388   cat >conftest.$ac_ext <<_ACEOF
53389 /* confdefs.h.  */
53390 _ACEOF
53391 cat confdefs.h >>conftest.$ac_ext
53392 cat >>conftest.$ac_ext <<_ACEOF
53393 /* end confdefs.h.  */
53394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53396 #define $ac_func innocuous_$ac_func
53397
53398 /* System header to define __stub macros and hopefully few prototypes,
53399     which can conflict with char $ac_func (); below.
53400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53401     <limits.h> exists even on freestanding compilers.  */
53402
53403 #ifdef __STDC__
53404 # include <limits.h>
53405 #else
53406 # include <assert.h>
53407 #endif
53408
53409 #undef $ac_func
53410
53411 /* Override any gcc2 internal prototype to avoid an error.  */
53412 #ifdef __cplusplus
53413 extern "C"
53414 {
53415 #endif
53416 /* We use char because int might match the return type of a gcc2
53417    builtin and then its argument prototype would still apply.  */
53418 char $ac_func ();
53419 /* The GNU C library defines this for functions which it implements
53420     to always fail with ENOSYS.  Some functions are actually named
53421     something starting with __ and the normal name is an alias.  */
53422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53423 choke me
53424 #else
53425 char (*f) () = $ac_func;
53426 #endif
53427 #ifdef __cplusplus
53428 }
53429 #endif
53430
53431 int
53432 main ()
53433 {
53434 return f != $ac_func;
53435   ;
53436   return 0;
53437 }
53438 _ACEOF
53439 rm -f conftest.$ac_objext conftest$ac_exeext
53440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53441   (eval $ac_link) 2>conftest.er1
53442   ac_status=$?
53443   grep -v '^ *+' conftest.er1 >conftest.err
53444   rm -f conftest.er1
53445   cat conftest.err >&5
53446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53447   (exit $ac_status); } &&
53448          { ac_try='test -z "$ac_c_werror_flag"
53449                          || test ! -s conftest.err'
53450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53451   (eval $ac_try) 2>&5
53452   ac_status=$?
53453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53454   (exit $ac_status); }; } &&
53455          { ac_try='test -s conftest$ac_exeext'
53456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53457   (eval $ac_try) 2>&5
53458   ac_status=$?
53459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53460   (exit $ac_status); }; }; then
53461   eval "$as_ac_var=yes"
53462 else
53463   echo "$as_me: failed program was:" >&5
53464 sed 's/^/| /' conftest.$ac_ext >&5
53465
53466 eval "$as_ac_var=no"
53467 fi
53468 rm -f conftest.err conftest.$ac_objext \
53469       conftest$ac_exeext conftest.$ac_ext
53470 fi
53471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53473 if test `eval echo '${'$as_ac_var'}'` = yes; then
53474   cat >>confdefs.h <<_ACEOF
53475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53476 _ACEOF
53477  ice_have_vfprintf=yes
53478 fi
53479 done
53480
53481 if test "${ice_have_vfprintf}" = yes; then
53482 echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
53483 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
53484 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
53485   echo $ECHO_N "(cached) $ECHO_C" >&6
53486 else
53487
53488 ice_cv_have_vfprintf_decl=no
53489 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53490 ice_re_word='(^|[^a-zA-Z0-9_])'
53491 for header in stdio.h stdlib.h; do
53492 # Check for ordinary declaration
53493 cat >conftest.$ac_ext <<_ACEOF
53494 /* confdefs.h.  */
53495 _ACEOF
53496 cat confdefs.h >>conftest.$ac_ext
53497 cat >>conftest.$ac_ext <<_ACEOF
53498 /* end confdefs.h.  */
53499 #include <$header>
53500
53501 _ACEOF
53502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53503   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
53504   ice_cv_have_vfprintf_decl=yes
53505 fi
53506 rm -f conftest*
53507
53508 if test "$ice_cv_have_vfprintf_decl" = yes; then
53509         break
53510 fi
53511 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53512 cat >conftest.$ac_ext <<_ACEOF
53513 /* confdefs.h.  */
53514 _ACEOF
53515 cat confdefs.h >>conftest.$ac_ext
53516 cat >>conftest.$ac_ext <<_ACEOF
53517 /* end confdefs.h.  */
53518 #include <$header>
53519
53520 _ACEOF
53521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53522   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53523   ice_cv_have_vfprintf_decl=yes
53524 fi
53525 rm -f conftest*
53526
53527 if test "$ice_cv_have_vfprintf_decl" = yes; then
53528         break
53529 fi
53530 done
53531
53532 fi
53533
53534 echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
53535 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6
53536 if test "$ice_cv_have_vfprintf_decl" = yes; then
53537
53538 cat >>confdefs.h <<_ACEOF
53539 #define HAVE_VFPRINTF_DECL 1
53540 _ACEOF
53541
53542 fi
53543 fi
53544
53545
53546 ice_have_vprintf=no
53547
53548 for ac_func in vprintf
53549 do
53550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53551 echo "$as_me:$LINENO: checking for $ac_func" >&5
53552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53553 if eval "test \"\${$as_ac_var+set}\" = set"; then
53554   echo $ECHO_N "(cached) $ECHO_C" >&6
53555 else
53556   cat >conftest.$ac_ext <<_ACEOF
53557 /* confdefs.h.  */
53558 _ACEOF
53559 cat confdefs.h >>conftest.$ac_ext
53560 cat >>conftest.$ac_ext <<_ACEOF
53561 /* end confdefs.h.  */
53562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53564 #define $ac_func innocuous_$ac_func
53565
53566 /* System header to define __stub macros and hopefully few prototypes,
53567     which can conflict with char $ac_func (); below.
53568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53569     <limits.h> exists even on freestanding compilers.  */
53570
53571 #ifdef __STDC__
53572 # include <limits.h>
53573 #else
53574 # include <assert.h>
53575 #endif
53576
53577 #undef $ac_func
53578
53579 /* Override any gcc2 internal prototype to avoid an error.  */
53580 #ifdef __cplusplus
53581 extern "C"
53582 {
53583 #endif
53584 /* We use char because int might match the return type of a gcc2
53585    builtin and then its argument prototype would still apply.  */
53586 char $ac_func ();
53587 /* The GNU C library defines this for functions which it implements
53588     to always fail with ENOSYS.  Some functions are actually named
53589     something starting with __ and the normal name is an alias.  */
53590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53591 choke me
53592 #else
53593 char (*f) () = $ac_func;
53594 #endif
53595 #ifdef __cplusplus
53596 }
53597 #endif
53598
53599 int
53600 main ()
53601 {
53602 return f != $ac_func;
53603   ;
53604   return 0;
53605 }
53606 _ACEOF
53607 rm -f conftest.$ac_objext conftest$ac_exeext
53608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53609   (eval $ac_link) 2>conftest.er1
53610   ac_status=$?
53611   grep -v '^ *+' conftest.er1 >conftest.err
53612   rm -f conftest.er1
53613   cat conftest.err >&5
53614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53615   (exit $ac_status); } &&
53616          { ac_try='test -z "$ac_c_werror_flag"
53617                          || test ! -s conftest.err'
53618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53619   (eval $ac_try) 2>&5
53620   ac_status=$?
53621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53622   (exit $ac_status); }; } &&
53623          { ac_try='test -s conftest$ac_exeext'
53624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53625   (eval $ac_try) 2>&5
53626   ac_status=$?
53627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53628   (exit $ac_status); }; }; then
53629   eval "$as_ac_var=yes"
53630 else
53631   echo "$as_me: failed program was:" >&5
53632 sed 's/^/| /' conftest.$ac_ext >&5
53633
53634 eval "$as_ac_var=no"
53635 fi
53636 rm -f conftest.err conftest.$ac_objext \
53637       conftest$ac_exeext conftest.$ac_ext
53638 fi
53639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53641 if test `eval echo '${'$as_ac_var'}'` = yes; then
53642   cat >>confdefs.h <<_ACEOF
53643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53644 _ACEOF
53645  ice_have_vprintf=yes
53646 fi
53647 done
53648
53649 if test "${ice_have_vprintf}" = yes; then
53650 echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
53651 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
53652 if test "${ice_cv_have_vprintf_decl+set}" = set; then
53653   echo $ECHO_N "(cached) $ECHO_C" >&6
53654 else
53655
53656 ice_cv_have_vprintf_decl=no
53657 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53658 ice_re_word='(^|[^a-zA-Z0-9_])'
53659 for header in stdio.h stdlib.h; do
53660 # Check for ordinary declaration
53661 cat >conftest.$ac_ext <<_ACEOF
53662 /* confdefs.h.  */
53663 _ACEOF
53664 cat confdefs.h >>conftest.$ac_ext
53665 cat >>conftest.$ac_ext <<_ACEOF
53666 /* end confdefs.h.  */
53667 #include <$header>
53668
53669 _ACEOF
53670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53671   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
53672   ice_cv_have_vprintf_decl=yes
53673 fi
53674 rm -f conftest*
53675
53676 if test "$ice_cv_have_vprintf_decl" = yes; then
53677         break
53678 fi
53679 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53680 cat >conftest.$ac_ext <<_ACEOF
53681 /* confdefs.h.  */
53682 _ACEOF
53683 cat confdefs.h >>conftest.$ac_ext
53684 cat >>conftest.$ac_ext <<_ACEOF
53685 /* end confdefs.h.  */
53686 #include <$header>
53687
53688 _ACEOF
53689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53690   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53691   ice_cv_have_vprintf_decl=yes
53692 fi
53693 rm -f conftest*
53694
53695 if test "$ice_cv_have_vprintf_decl" = yes; then
53696         break
53697 fi
53698 done
53699
53700 fi
53701
53702 echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
53703 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6
53704 if test "$ice_cv_have_vprintf_decl" = yes; then
53705
53706 cat >>confdefs.h <<_ACEOF
53707 #define HAVE_VPRINTF_DECL 1
53708 _ACEOF
53709
53710 fi
53711 fi
53712
53713
53714 ice_have_vsprintf=no
53715
53716 for ac_func in vsprintf
53717 do
53718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53719 echo "$as_me:$LINENO: checking for $ac_func" >&5
53720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53721 if eval "test \"\${$as_ac_var+set}\" = set"; then
53722   echo $ECHO_N "(cached) $ECHO_C" >&6
53723 else
53724   cat >conftest.$ac_ext <<_ACEOF
53725 /* confdefs.h.  */
53726 _ACEOF
53727 cat confdefs.h >>conftest.$ac_ext
53728 cat >>conftest.$ac_ext <<_ACEOF
53729 /* end confdefs.h.  */
53730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53732 #define $ac_func innocuous_$ac_func
53733
53734 /* System header to define __stub macros and hopefully few prototypes,
53735     which can conflict with char $ac_func (); below.
53736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53737     <limits.h> exists even on freestanding compilers.  */
53738
53739 #ifdef __STDC__
53740 # include <limits.h>
53741 #else
53742 # include <assert.h>
53743 #endif
53744
53745 #undef $ac_func
53746
53747 /* Override any gcc2 internal prototype to avoid an error.  */
53748 #ifdef __cplusplus
53749 extern "C"
53750 {
53751 #endif
53752 /* We use char because int might match the return type of a gcc2
53753    builtin and then its argument prototype would still apply.  */
53754 char $ac_func ();
53755 /* The GNU C library defines this for functions which it implements
53756     to always fail with ENOSYS.  Some functions are actually named
53757     something starting with __ and the normal name is an alias.  */
53758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53759 choke me
53760 #else
53761 char (*f) () = $ac_func;
53762 #endif
53763 #ifdef __cplusplus
53764 }
53765 #endif
53766
53767 int
53768 main ()
53769 {
53770 return f != $ac_func;
53771   ;
53772   return 0;
53773 }
53774 _ACEOF
53775 rm -f conftest.$ac_objext conftest$ac_exeext
53776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53777   (eval $ac_link) 2>conftest.er1
53778   ac_status=$?
53779   grep -v '^ *+' conftest.er1 >conftest.err
53780   rm -f conftest.er1
53781   cat conftest.err >&5
53782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53783   (exit $ac_status); } &&
53784          { ac_try='test -z "$ac_c_werror_flag"
53785                          || test ! -s conftest.err'
53786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53787   (eval $ac_try) 2>&5
53788   ac_status=$?
53789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53790   (exit $ac_status); }; } &&
53791          { ac_try='test -s conftest$ac_exeext'
53792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53793   (eval $ac_try) 2>&5
53794   ac_status=$?
53795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53796   (exit $ac_status); }; }; then
53797   eval "$as_ac_var=yes"
53798 else
53799   echo "$as_me: failed program was:" >&5
53800 sed 's/^/| /' conftest.$ac_ext >&5
53801
53802 eval "$as_ac_var=no"
53803 fi
53804 rm -f conftest.err conftest.$ac_objext \
53805       conftest$ac_exeext conftest.$ac_ext
53806 fi
53807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53809 if test `eval echo '${'$as_ac_var'}'` = yes; then
53810   cat >>confdefs.h <<_ACEOF
53811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53812 _ACEOF
53813  ice_have_vsprintf=yes
53814 fi
53815 done
53816
53817 if test "${ice_have_vsprintf}" = yes; then
53818 echo "$as_me:$LINENO: checking for vsprintf declaration in stdio.h stdlib.h" >&5
53819 echo $ECHO_N "checking for vsprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
53820 if test "${ice_cv_have_vsprintf_decl+set}" = set; then
53821   echo $ECHO_N "(cached) $ECHO_C" >&6
53822 else
53823
53824 ice_cv_have_vsprintf_decl=no
53825 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53826 ice_re_word='(^|[^a-zA-Z0-9_])'
53827 for header in stdio.h stdlib.h; do
53828 # Check for ordinary declaration
53829 cat >conftest.$ac_ext <<_ACEOF
53830 /* confdefs.h.  */
53831 _ACEOF
53832 cat confdefs.h >>conftest.$ac_ext
53833 cat >>conftest.$ac_ext <<_ACEOF
53834 /* end confdefs.h.  */
53835 #include <$header>
53836
53837 _ACEOF
53838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53839   $EGREP "${ice_re_word}vsprintf[       ]*\(" >/dev/null 2>&1; then
53840   ice_cv_have_vsprintf_decl=yes
53841 fi
53842 rm -f conftest*
53843
53844 if test "$ice_cv_have_vsprintf_decl" = yes; then
53845         break
53846 fi
53847 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53848 cat >conftest.$ac_ext <<_ACEOF
53849 /* confdefs.h.  */
53850 _ACEOF
53851 cat confdefs.h >>conftest.$ac_ext
53852 cat >>conftest.$ac_ext <<_ACEOF
53853 /* end confdefs.h.  */
53854 #include <$header>
53855
53856 _ACEOF
53857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53858   $EGREP "${ice_re_word}vsprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53859   ice_cv_have_vsprintf_decl=yes
53860 fi
53861 rm -f conftest*
53862
53863 if test "$ice_cv_have_vsprintf_decl" = yes; then
53864         break
53865 fi
53866 done
53867
53868 fi
53869
53870 echo "$as_me:$LINENO: result: $ice_cv_have_vsprintf_decl" >&5
53871 echo "${ECHO_T}$ice_cv_have_vsprintf_decl" >&6
53872 if test "$ice_cv_have_vsprintf_decl" = yes; then
53873
53874 cat >>confdefs.h <<_ACEOF
53875 #define HAVE_VSPRINTF_DECL 1
53876 _ACEOF
53877
53878 fi
53879 fi
53880
53881 echo "$as_me:$LINENO: checking for wait4" >&5
53882 echo $ECHO_N "checking for wait4... $ECHO_C" >&6
53883 if test "${ac_cv_func_wait4+set}" = set; then
53884   echo $ECHO_N "(cached) $ECHO_C" >&6
53885 else
53886   cat >conftest.$ac_ext <<_ACEOF
53887 /* confdefs.h.  */
53888 _ACEOF
53889 cat confdefs.h >>conftest.$ac_ext
53890 cat >>conftest.$ac_ext <<_ACEOF
53891 /* end confdefs.h.  */
53892 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
53893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53894 #define wait4 innocuous_wait4
53895
53896 /* System header to define __stub macros and hopefully few prototypes,
53897     which can conflict with char wait4 (); below.
53898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53899     <limits.h> exists even on freestanding compilers.  */
53900
53901 #ifdef __STDC__
53902 # include <limits.h>
53903 #else
53904 # include <assert.h>
53905 #endif
53906
53907 #undef wait4
53908
53909 /* Override any gcc2 internal prototype to avoid an error.  */
53910 #ifdef __cplusplus
53911 extern "C"
53912 {
53913 #endif
53914 /* We use char because int might match the return type of a gcc2
53915    builtin and then its argument prototype would still apply.  */
53916 char wait4 ();
53917 /* The GNU C library defines this for functions which it implements
53918     to always fail with ENOSYS.  Some functions are actually named
53919     something starting with __ and the normal name is an alias.  */
53920 #if defined (__stub_wait4) || defined (__stub___wait4)
53921 choke me
53922 #else
53923 char (*f) () = wait4;
53924 #endif
53925 #ifdef __cplusplus
53926 }
53927 #endif
53928
53929 int
53930 main ()
53931 {
53932 return f != wait4;
53933   ;
53934   return 0;
53935 }
53936 _ACEOF
53937 rm -f conftest.$ac_objext conftest$ac_exeext
53938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53939   (eval $ac_link) 2>conftest.er1
53940   ac_status=$?
53941   grep -v '^ *+' conftest.er1 >conftest.err
53942   rm -f conftest.er1
53943   cat conftest.err >&5
53944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53945   (exit $ac_status); } &&
53946          { ac_try='test -z "$ac_c_werror_flag"
53947                          || test ! -s conftest.err'
53948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53949   (eval $ac_try) 2>&5
53950   ac_status=$?
53951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53952   (exit $ac_status); }; } &&
53953          { ac_try='test -s conftest$ac_exeext'
53954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53955   (eval $ac_try) 2>&5
53956   ac_status=$?
53957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53958   (exit $ac_status); }; }; then
53959   ac_cv_func_wait4=yes
53960 else
53961   echo "$as_me: failed program was:" >&5
53962 sed 's/^/| /' conftest.$ac_ext >&5
53963
53964 ac_cv_func_wait4=no
53965 fi
53966 rm -f conftest.err conftest.$ac_objext \
53967       conftest$ac_exeext conftest.$ac_ext
53968 fi
53969 echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
53970 echo "${ECHO_T}$ac_cv_func_wait4" >&6
53971
53972
53973 for ac_func in waitpid
53974 do
53975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53976 echo "$as_me:$LINENO: checking for $ac_func" >&5
53977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53978 if eval "test \"\${$as_ac_var+set}\" = set"; then
53979   echo $ECHO_N "(cached) $ECHO_C" >&6
53980 else
53981   cat >conftest.$ac_ext <<_ACEOF
53982 /* confdefs.h.  */
53983 _ACEOF
53984 cat confdefs.h >>conftest.$ac_ext
53985 cat >>conftest.$ac_ext <<_ACEOF
53986 /* end confdefs.h.  */
53987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53989 #define $ac_func innocuous_$ac_func
53990
53991 /* System header to define __stub macros and hopefully few prototypes,
53992     which can conflict with char $ac_func (); below.
53993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53994     <limits.h> exists even on freestanding compilers.  */
53995
53996 #ifdef __STDC__
53997 # include <limits.h>
53998 #else
53999 # include <assert.h>
54000 #endif
54001
54002 #undef $ac_func
54003
54004 /* Override any gcc2 internal prototype to avoid an error.  */
54005 #ifdef __cplusplus
54006 extern "C"
54007 {
54008 #endif
54009 /* We use char because int might match the return type of a gcc2
54010    builtin and then its argument prototype would still apply.  */
54011 char $ac_func ();
54012 /* The GNU C library defines this for functions which it implements
54013     to always fail with ENOSYS.  Some functions are actually named
54014     something starting with __ and the normal name is an alias.  */
54015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54016 choke me
54017 #else
54018 char (*f) () = $ac_func;
54019 #endif
54020 #ifdef __cplusplus
54021 }
54022 #endif
54023
54024 int
54025 main ()
54026 {
54027 return f != $ac_func;
54028   ;
54029   return 0;
54030 }
54031 _ACEOF
54032 rm -f conftest.$ac_objext conftest$ac_exeext
54033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54034   (eval $ac_link) 2>conftest.er1
54035   ac_status=$?
54036   grep -v '^ *+' conftest.er1 >conftest.err
54037   rm -f conftest.er1
54038   cat conftest.err >&5
54039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54040   (exit $ac_status); } &&
54041          { ac_try='test -z "$ac_c_werror_flag"
54042                          || test ! -s conftest.err'
54043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54044   (eval $ac_try) 2>&5
54045   ac_status=$?
54046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54047   (exit $ac_status); }; } &&
54048          { ac_try='test -s conftest$ac_exeext'
54049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54050   (eval $ac_try) 2>&5
54051   ac_status=$?
54052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54053   (exit $ac_status); }; }; then
54054   eval "$as_ac_var=yes"
54055 else
54056   echo "$as_me: failed program was:" >&5
54057 sed 's/^/| /' conftest.$ac_ext >&5
54058
54059 eval "$as_ac_var=no"
54060 fi
54061 rm -f conftest.err conftest.$ac_objext \
54062       conftest$ac_exeext conftest.$ac_ext
54063 fi
54064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54066 if test `eval echo '${'$as_ac_var'}'` = yes; then
54067   cat >>confdefs.h <<_ACEOF
54068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54069 _ACEOF
54070
54071 else
54072   case $LIBOBJS in
54073     "$ac_func.$ac_objext"   | \
54074   *" $ac_func.$ac_objext"   | \
54075     "$ac_func.$ac_objext "* | \
54076   *" $ac_func.$ac_objext "* ) ;;
54077   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
54078 esac
54079
54080 fi
54081 done
54082
54083
54084
54085 for ac_func in writev
54086 do
54087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54088 echo "$as_me:$LINENO: checking for $ac_func" >&5
54089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54090 if eval "test \"\${$as_ac_var+set}\" = set"; then
54091   echo $ECHO_N "(cached) $ECHO_C" >&6
54092 else
54093   cat >conftest.$ac_ext <<_ACEOF
54094 /* confdefs.h.  */
54095 _ACEOF
54096 cat confdefs.h >>conftest.$ac_ext
54097 cat >>conftest.$ac_ext <<_ACEOF
54098 /* end confdefs.h.  */
54099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54100    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54101 #define $ac_func innocuous_$ac_func
54102
54103 /* System header to define __stub macros and hopefully few prototypes,
54104     which can conflict with char $ac_func (); below.
54105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54106     <limits.h> exists even on freestanding compilers.  */
54107
54108 #ifdef __STDC__
54109 # include <limits.h>
54110 #else
54111 # include <assert.h>
54112 #endif
54113
54114 #undef $ac_func
54115
54116 /* Override any gcc2 internal prototype to avoid an error.  */
54117 #ifdef __cplusplus
54118 extern "C"
54119 {
54120 #endif
54121 /* We use char because int might match the return type of a gcc2
54122    builtin and then its argument prototype would still apply.  */
54123 char $ac_func ();
54124 /* The GNU C library defines this for functions which it implements
54125     to always fail with ENOSYS.  Some functions are actually named
54126     something starting with __ and the normal name is an alias.  */
54127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54128 choke me
54129 #else
54130 char (*f) () = $ac_func;
54131 #endif
54132 #ifdef __cplusplus
54133 }
54134 #endif
54135
54136 int
54137 main ()
54138 {
54139 return f != $ac_func;
54140   ;
54141   return 0;
54142 }
54143 _ACEOF
54144 rm -f conftest.$ac_objext conftest$ac_exeext
54145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54146   (eval $ac_link) 2>conftest.er1
54147   ac_status=$?
54148   grep -v '^ *+' conftest.er1 >conftest.err
54149   rm -f conftest.er1
54150   cat conftest.err >&5
54151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54152   (exit $ac_status); } &&
54153          { ac_try='test -z "$ac_c_werror_flag"
54154                          || test ! -s conftest.err'
54155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54156   (eval $ac_try) 2>&5
54157   ac_status=$?
54158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54159   (exit $ac_status); }; } &&
54160          { ac_try='test -s conftest$ac_exeext'
54161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54162   (eval $ac_try) 2>&5
54163   ac_status=$?
54164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54165   (exit $ac_status); }; }; then
54166   eval "$as_ac_var=yes"
54167 else
54168   echo "$as_me: failed program was:" >&5
54169 sed 's/^/| /' conftest.$ac_ext >&5
54170
54171 eval "$as_ac_var=no"
54172 fi
54173 rm -f conftest.err conftest.$ac_objext \
54174       conftest$ac_exeext conftest.$ac_ext
54175 fi
54176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54178 if test `eval echo '${'$as_ac_var'}'` = yes; then
54179   cat >>confdefs.h <<_ACEOF
54180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54181 _ACEOF
54182
54183 else
54184   case $LIBOBJS in
54185     "$ac_func.$ac_objext"   | \
54186   *" $ac_func.$ac_objext"   | \
54187     "$ac_func.$ac_objext "* | \
54188   *" $ac_func.$ac_objext "* ) ;;
54189   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
54190 esac
54191
54192 fi
54193 done
54194
54195
54196
54197 ice_have_writev=no
54198
54199 for ac_func in writev
54200 do
54201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54202 echo "$as_me:$LINENO: checking for $ac_func" >&5
54203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54204 if eval "test \"\${$as_ac_var+set}\" = set"; then
54205   echo $ECHO_N "(cached) $ECHO_C" >&6
54206 else
54207   cat >conftest.$ac_ext <<_ACEOF
54208 /* confdefs.h.  */
54209 _ACEOF
54210 cat confdefs.h >>conftest.$ac_ext
54211 cat >>conftest.$ac_ext <<_ACEOF
54212 /* end confdefs.h.  */
54213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54214    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54215 #define $ac_func innocuous_$ac_func
54216
54217 /* System header to define __stub macros and hopefully few prototypes,
54218     which can conflict with char $ac_func (); below.
54219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54220     <limits.h> exists even on freestanding compilers.  */
54221
54222 #ifdef __STDC__
54223 # include <limits.h>
54224 #else
54225 # include <assert.h>
54226 #endif
54227
54228 #undef $ac_func
54229
54230 /* Override any gcc2 internal prototype to avoid an error.  */
54231 #ifdef __cplusplus
54232 extern "C"
54233 {
54234 #endif
54235 /* We use char because int might match the return type of a gcc2
54236    builtin and then its argument prototype would still apply.  */
54237 char $ac_func ();
54238 /* The GNU C library defines this for functions which it implements
54239     to always fail with ENOSYS.  Some functions are actually named
54240     something starting with __ and the normal name is an alias.  */
54241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54242 choke me
54243 #else
54244 char (*f) () = $ac_func;
54245 #endif
54246 #ifdef __cplusplus
54247 }
54248 #endif
54249
54250 int
54251 main ()
54252 {
54253 return f != $ac_func;
54254   ;
54255   return 0;
54256 }
54257 _ACEOF
54258 rm -f conftest.$ac_objext conftest$ac_exeext
54259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54260   (eval $ac_link) 2>conftest.er1
54261   ac_status=$?
54262   grep -v '^ *+' conftest.er1 >conftest.err
54263   rm -f conftest.er1
54264   cat conftest.err >&5
54265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54266   (exit $ac_status); } &&
54267          { ac_try='test -z "$ac_c_werror_flag"
54268                          || test ! -s conftest.err'
54269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54270   (eval $ac_try) 2>&5
54271   ac_status=$?
54272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54273   (exit $ac_status); }; } &&
54274          { ac_try='test -s conftest$ac_exeext'
54275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54276   (eval $ac_try) 2>&5
54277   ac_status=$?
54278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54279   (exit $ac_status); }; }; then
54280   eval "$as_ac_var=yes"
54281 else
54282   echo "$as_me: failed program was:" >&5
54283 sed 's/^/| /' conftest.$ac_ext >&5
54284
54285 eval "$as_ac_var=no"
54286 fi
54287 rm -f conftest.err conftest.$ac_objext \
54288       conftest$ac_exeext conftest.$ac_ext
54289 fi
54290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54292 if test `eval echo '${'$as_ac_var'}'` = yes; then
54293   cat >>confdefs.h <<_ACEOF
54294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54295 _ACEOF
54296  ice_have_writev=yes
54297 fi
54298 done
54299
54300 if test "${ice_have_writev}" = yes; then
54301 echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
54302 echo $ECHO_N "checking for writev declaration in unistd.h sys/uio.h... $ECHO_C" >&6
54303 if test "${ice_cv_have_writev_decl+set}" = set; then
54304   echo $ECHO_N "(cached) $ECHO_C" >&6
54305 else
54306
54307 ice_cv_have_writev_decl=no
54308 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54309 ice_re_word='(^|[^a-zA-Z0-9_])'
54310 for header in unistd.h sys/uio.h; do
54311 # Check for ordinary declaration
54312 cat >conftest.$ac_ext <<_ACEOF
54313 /* confdefs.h.  */
54314 _ACEOF
54315 cat confdefs.h >>conftest.$ac_ext
54316 cat >>conftest.$ac_ext <<_ACEOF
54317 /* end confdefs.h.  */
54318 #include <$header>
54319
54320 _ACEOF
54321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54322   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then
54323   ice_cv_have_writev_decl=yes
54324 fi
54325 rm -f conftest*
54326
54327 if test "$ice_cv_have_writev_decl" = yes; then
54328         break
54329 fi
54330 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54331 cat >conftest.$ac_ext <<_ACEOF
54332 /* confdefs.h.  */
54333 _ACEOF
54334 cat confdefs.h >>conftest.$ac_ext
54335 cat >>conftest.$ac_ext <<_ACEOF
54336 /* end confdefs.h.  */
54337 #include <$header>
54338
54339 _ACEOF
54340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54341   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54342   ice_cv_have_writev_decl=yes
54343 fi
54344 rm -f conftest*
54345
54346 if test "$ice_cv_have_writev_decl" = yes; then
54347         break
54348 fi
54349 done
54350
54351 fi
54352
54353 echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
54354 echo "${ECHO_T}$ice_cv_have_writev_decl" >&6
54355 if test "$ice_cv_have_writev_decl" = yes; then
54356
54357 cat >>confdefs.h <<_ACEOF
54358 #define HAVE_WRITEV_DECL 1
54359 _ACEOF
54360
54361 fi
54362 fi
54363
54364
54365 for ac_func in strcasecmp
54366 do
54367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54368 echo "$as_me:$LINENO: checking for $ac_func" >&5
54369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54370 if eval "test \"\${$as_ac_var+set}\" = set"; then
54371   echo $ECHO_N "(cached) $ECHO_C" >&6
54372 else
54373   cat >conftest.$ac_ext <<_ACEOF
54374 /* confdefs.h.  */
54375 _ACEOF
54376 cat confdefs.h >>conftest.$ac_ext
54377 cat >>conftest.$ac_ext <<_ACEOF
54378 /* end confdefs.h.  */
54379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54381 #define $ac_func innocuous_$ac_func
54382
54383 /* System header to define __stub macros and hopefully few prototypes,
54384     which can conflict with char $ac_func (); below.
54385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54386     <limits.h> exists even on freestanding compilers.  */
54387
54388 #ifdef __STDC__
54389 # include <limits.h>
54390 #else
54391 # include <assert.h>
54392 #endif
54393
54394 #undef $ac_func
54395
54396 /* Override any gcc2 internal prototype to avoid an error.  */
54397 #ifdef __cplusplus
54398 extern "C"
54399 {
54400 #endif
54401 /* We use char because int might match the return type of a gcc2
54402    builtin and then its argument prototype would still apply.  */
54403 char $ac_func ();
54404 /* The GNU C library defines this for functions which it implements
54405     to always fail with ENOSYS.  Some functions are actually named
54406     something starting with __ and the normal name is an alias.  */
54407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54408 choke me
54409 #else
54410 char (*f) () = $ac_func;
54411 #endif
54412 #ifdef __cplusplus
54413 }
54414 #endif
54415
54416 int
54417 main ()
54418 {
54419 return f != $ac_func;
54420   ;
54421   return 0;
54422 }
54423 _ACEOF
54424 rm -f conftest.$ac_objext conftest$ac_exeext
54425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54426   (eval $ac_link) 2>conftest.er1
54427   ac_status=$?
54428   grep -v '^ *+' conftest.er1 >conftest.err
54429   rm -f conftest.er1
54430   cat conftest.err >&5
54431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54432   (exit $ac_status); } &&
54433          { ac_try='test -z "$ac_c_werror_flag"
54434                          || test ! -s conftest.err'
54435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54436   (eval $ac_try) 2>&5
54437   ac_status=$?
54438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54439   (exit $ac_status); }; } &&
54440          { ac_try='test -s conftest$ac_exeext'
54441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54442   (eval $ac_try) 2>&5
54443   ac_status=$?
54444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54445   (exit $ac_status); }; }; then
54446   eval "$as_ac_var=yes"
54447 else
54448   echo "$as_me: failed program was:" >&5
54449 sed 's/^/| /' conftest.$ac_ext >&5
54450
54451 eval "$as_ac_var=no"
54452 fi
54453 rm -f conftest.err conftest.$ac_objext \
54454       conftest$ac_exeext conftest.$ac_ext
54455 fi
54456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54458 if test `eval echo '${'$as_ac_var'}'` = yes; then
54459   cat >>confdefs.h <<_ACEOF
54460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54461 _ACEOF
54462
54463 else
54464   case $LIBOBJS in
54465     "$ac_func.$ac_objext"   | \
54466   *" $ac_func.$ac_objext"   | \
54467     "$ac_func.$ac_objext "* | \
54468   *" $ac_func.$ac_objext "* ) ;;
54469   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
54470 esac
54471
54472 fi
54473 done
54474
54475
54476
54477 ice_have_strcasecmp=no
54478
54479 for ac_func in strcasecmp
54480 do
54481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54482 echo "$as_me:$LINENO: checking for $ac_func" >&5
54483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54484 if eval "test \"\${$as_ac_var+set}\" = set"; then
54485   echo $ECHO_N "(cached) $ECHO_C" >&6
54486 else
54487   cat >conftest.$ac_ext <<_ACEOF
54488 /* confdefs.h.  */
54489 _ACEOF
54490 cat confdefs.h >>conftest.$ac_ext
54491 cat >>conftest.$ac_ext <<_ACEOF
54492 /* end confdefs.h.  */
54493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54495 #define $ac_func innocuous_$ac_func
54496
54497 /* System header to define __stub macros and hopefully few prototypes,
54498     which can conflict with char $ac_func (); below.
54499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54500     <limits.h> exists even on freestanding compilers.  */
54501
54502 #ifdef __STDC__
54503 # include <limits.h>
54504 #else
54505 # include <assert.h>
54506 #endif
54507
54508 #undef $ac_func
54509
54510 /* Override any gcc2 internal prototype to avoid an error.  */
54511 #ifdef __cplusplus
54512 extern "C"
54513 {
54514 #endif
54515 /* We use char because int might match the return type of a gcc2
54516    builtin and then its argument prototype would still apply.  */
54517 char $ac_func ();
54518 /* The GNU C library defines this for functions which it implements
54519     to always fail with ENOSYS.  Some functions are actually named
54520     something starting with __ and the normal name is an alias.  */
54521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54522 choke me
54523 #else
54524 char (*f) () = $ac_func;
54525 #endif
54526 #ifdef __cplusplus
54527 }
54528 #endif
54529
54530 int
54531 main ()
54532 {
54533 return f != $ac_func;
54534   ;
54535   return 0;
54536 }
54537 _ACEOF
54538 rm -f conftest.$ac_objext conftest$ac_exeext
54539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54540   (eval $ac_link) 2>conftest.er1
54541   ac_status=$?
54542   grep -v '^ *+' conftest.er1 >conftest.err
54543   rm -f conftest.er1
54544   cat conftest.err >&5
54545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54546   (exit $ac_status); } &&
54547          { ac_try='test -z "$ac_c_werror_flag"
54548                          || test ! -s conftest.err'
54549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54550   (eval $ac_try) 2>&5
54551   ac_status=$?
54552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54553   (exit $ac_status); }; } &&
54554          { ac_try='test -s conftest$ac_exeext'
54555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54556   (eval $ac_try) 2>&5
54557   ac_status=$?
54558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54559   (exit $ac_status); }; }; then
54560   eval "$as_ac_var=yes"
54561 else
54562   echo "$as_me: failed program was:" >&5
54563 sed 's/^/| /' conftest.$ac_ext >&5
54564
54565 eval "$as_ac_var=no"
54566 fi
54567 rm -f conftest.err conftest.$ac_objext \
54568       conftest$ac_exeext conftest.$ac_ext
54569 fi
54570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54572 if test `eval echo '${'$as_ac_var'}'` = yes; then
54573   cat >>confdefs.h <<_ACEOF
54574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54575 _ACEOF
54576  ice_have_strcasecmp=yes
54577 fi
54578 done
54579
54580 if test "${ice_have_strcasecmp}" = yes; then
54581 echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
54582 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6
54583 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
54584   echo $ECHO_N "(cached) $ECHO_C" >&6
54585 else
54586
54587 ice_cv_have_strcasecmp_decl=no
54588 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54589 ice_re_word='(^|[^a-zA-Z0-9_])'
54590 for header in string.h strings.h; do
54591 # Check for ordinary declaration
54592 cat >conftest.$ac_ext <<_ACEOF
54593 /* confdefs.h.  */
54594 _ACEOF
54595 cat confdefs.h >>conftest.$ac_ext
54596 cat >>conftest.$ac_ext <<_ACEOF
54597 /* end confdefs.h.  */
54598 #include <$header>
54599
54600 _ACEOF
54601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54602   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then
54603   ice_cv_have_strcasecmp_decl=yes
54604 fi
54605 rm -f conftest*
54606
54607 if test "$ice_cv_have_strcasecmp_decl" = yes; then
54608         break
54609 fi
54610 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54611 cat >conftest.$ac_ext <<_ACEOF
54612 /* confdefs.h.  */
54613 _ACEOF
54614 cat confdefs.h >>conftest.$ac_ext
54615 cat >>conftest.$ac_ext <<_ACEOF
54616 /* end confdefs.h.  */
54617 #include <$header>
54618
54619 _ACEOF
54620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54621   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54622   ice_cv_have_strcasecmp_decl=yes
54623 fi
54624 rm -f conftest*
54625
54626 if test "$ice_cv_have_strcasecmp_decl" = yes; then
54627         break
54628 fi
54629 done
54630
54631 fi
54632
54633 echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
54634 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6
54635 if test "$ice_cv_have_strcasecmp_decl" = yes; then
54636
54637 cat >>confdefs.h <<_ACEOF
54638 #define HAVE_STRCASECMP_DECL 1
54639 _ACEOF
54640
54641 fi
54642 fi
54643
54644
54645
54646 for ac_func in fnmatch
54647 do
54648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54649 echo "$as_me:$LINENO: checking for $ac_func" >&5
54650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54651 if eval "test \"\${$as_ac_var+set}\" = set"; then
54652   echo $ECHO_N "(cached) $ECHO_C" >&6
54653 else
54654   cat >conftest.$ac_ext <<_ACEOF
54655 /* confdefs.h.  */
54656 _ACEOF
54657 cat confdefs.h >>conftest.$ac_ext
54658 cat >>conftest.$ac_ext <<_ACEOF
54659 /* end confdefs.h.  */
54660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54662 #define $ac_func innocuous_$ac_func
54663
54664 /* System header to define __stub macros and hopefully few prototypes,
54665     which can conflict with char $ac_func (); below.
54666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54667     <limits.h> exists even on freestanding compilers.  */
54668
54669 #ifdef __STDC__
54670 # include <limits.h>
54671 #else
54672 # include <assert.h>
54673 #endif
54674
54675 #undef $ac_func
54676
54677 /* Override any gcc2 internal prototype to avoid an error.  */
54678 #ifdef __cplusplus
54679 extern "C"
54680 {
54681 #endif
54682 /* We use char because int might match the return type of a gcc2
54683    builtin and then its argument prototype would still apply.  */
54684 char $ac_func ();
54685 /* The GNU C library defines this for functions which it implements
54686     to always fail with ENOSYS.  Some functions are actually named
54687     something starting with __ and the normal name is an alias.  */
54688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54689 choke me
54690 #else
54691 char (*f) () = $ac_func;
54692 #endif
54693 #ifdef __cplusplus
54694 }
54695 #endif
54696
54697 int
54698 main ()
54699 {
54700 return f != $ac_func;
54701   ;
54702   return 0;
54703 }
54704 _ACEOF
54705 rm -f conftest.$ac_objext conftest$ac_exeext
54706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54707   (eval $ac_link) 2>conftest.er1
54708   ac_status=$?
54709   grep -v '^ *+' conftest.er1 >conftest.err
54710   rm -f conftest.er1
54711   cat conftest.err >&5
54712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54713   (exit $ac_status); } &&
54714          { ac_try='test -z "$ac_c_werror_flag"
54715                          || test ! -s conftest.err'
54716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54717   (eval $ac_try) 2>&5
54718   ac_status=$?
54719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54720   (exit $ac_status); }; } &&
54721          { ac_try='test -s conftest$ac_exeext'
54722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54723   (eval $ac_try) 2>&5
54724   ac_status=$?
54725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54726   (exit $ac_status); }; }; then
54727   eval "$as_ac_var=yes"
54728 else
54729   echo "$as_me: failed program was:" >&5
54730 sed 's/^/| /' conftest.$ac_ext >&5
54731
54732 eval "$as_ac_var=no"
54733 fi
54734 rm -f conftest.err conftest.$ac_objext \
54735       conftest$ac_exeext conftest.$ac_ext
54736 fi
54737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54739 if test `eval echo '${'$as_ac_var'}'` = yes; then
54740   cat >>confdefs.h <<_ACEOF
54741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54742 _ACEOF
54743
54744 fi
54745 done
54746
54747
54748
54749 echo "$as_me:$LINENO: checking disk device prefixes" >&5
54750 echo $ECHO_N "checking disk device prefixes... $ECHO_C" >&6
54751 dfline=`(
54752     df / | while read line; do
54753         set -- $line
54754         while test $# -gt 0; do
54755             if test "x$1" = "x/"; then
54756                 echo $line
54757                 break 2
54758             fi
54759             shift
54760         done
54761     done
54762 ) | sed 's/(//' | sed 's/)//' `
54763
54764 mount=`(
54765     set -- $dfline
54766     while test $# -gt 0; do
54767         if expr "$1" : '.*dev' >/dev/null 2>&1; then
54768             echo $1
54769             break
54770         fi
54771         shift
54772     done
54773 )`
54774
54775 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
54776     echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
54777 echo "${ECHO_T}(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6
54778 else
54779     if test -d /dev/dsk; then
54780         DEV_PREFIX=/dev/dsk/
54781         if test -d /dev/rdsk; then
54782             RDEV_PREFIX=/dev/rdsk/
54783         else
54784             RDEV_PREFIX=/dev/dsk/
54785         fi
54786     elif test -d /dev; then
54787         case "$target" in
54788             *-sni-sysv4)
54789                 dev_prefix=/dev/dsk/
54790                 rdev_prefix=/dev/rdsk/
54791                 { echo "$as_me:$LINENO: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&5
54792 echo "$as_me: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&2;}
54793                 ;;
54794
54795             *)
54796                 DEV_PREFIX=/dev/
54797                 # Some systems, notably Linux, do not have raw disk devices
54798                 # names.  Check this by trying to see if a raw disk device name
54799                 # exists using the normal raw device path prepended to the
54800                 # mount point of the root filesystem.
54801                 if test "$mount"; then
54802                     dev_name="/dev/r`basename $mount`"
54803                     if test -b $dev_name -o -c $dev_name; then
54804                         RDEV_PREFIX=/dev/r
54805                     else
54806                         RDEV_PREFIX=/dev/
54807                     fi
54808                 else
54809                     RDEV_PREFIX=/dev/r
54810                 fi
54811                 ;;
54812         esac
54813     else
54814         DEV_PREFIX=/
54815         RDEV_PREFIX=/
54816     fi
54817     echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
54818 echo "${ECHO_T}$DEV_PREFIX - $RDEV_PREFIX" >&6
54819 fi
54820
54821
54822 cat >>confdefs.h <<_ACEOF
54823 #define DEV_PREFIX "${DEV_PREFIX}"
54824 _ACEOF
54825
54826
54827 cat >>confdefs.h <<_ACEOF
54828 #define RDEV_PREFIX "${RDEV_PREFIX}"
54829 _ACEOF
54830
54831
54832 case $mount in
54833     /dev/vg*)
54834         { echo "$as_me:$LINENO: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&5
54835 echo "$as_me: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&2;}
54836         ;;
54837 esac
54838
54839 echo "$as_me:$LINENO: checking whether posix fcntl locking works" >&5
54840 echo $ECHO_N "checking whether posix fcntl locking works... $ECHO_C" >&6
54841 if test "${amanda_cv_posix_filelocking+set}" = set; then
54842   echo $ECHO_N "(cached) $ECHO_C" >&6
54843 else
54844
54845         if test "$cross_compiling" = yes; then
54846
54847         amanda_cv_posix_filelocking="no (cannot run test)"
54848
54849 else
54850   cat >conftest.$ac_ext <<_ACEOF
54851 /* confdefs.h.  */
54852 _ACEOF
54853 cat confdefs.h >>conftest.$ac_ext
54854 cat >>conftest.$ac_ext <<_ACEOF
54855 /* end confdefs.h.  */
54856
54857 #undef  ASSERTIONS
54858 #define CONFIGURE_TEST
54859 #define USE_POSIX_FCNTL
54860 #include "${srcdir-.}/common-src/amflock.c"
54861
54862 _ACEOF
54863 rm -f conftest$ac_exeext
54864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54865   (eval $ac_link) 2>&5
54866   ac_status=$?
54867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54868   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54870   (eval $ac_try) 2>&5
54871   ac_status=$?
54872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54873   (exit $ac_status); }; }; then
54874
54875         amanda_cv_posix_filelocking=yes
54876
54877 else
54878   echo "$as_me: program exited with status $ac_status" >&5
54879 echo "$as_me: failed program was:" >&5
54880 sed 's/^/| /' conftest.$ac_ext >&5
54881
54882 ( exit $ac_status )
54883
54884         amanda_cv_posix_filelocking="no"
54885
54886 fi
54887 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54888 fi
54889     rm -f /tmp/conftest.lock
54890
54891 fi
54892 echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
54893 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6
54894 if test "x$amanda_cv_posix_filelocking" = xyes; then
54895
54896 cat >>confdefs.h <<\_ACEOF
54897 #define USE_POSIX_FCNTL 1
54898 _ACEOF
54899
54900     HAS_WORKING_FILE_LOCK=1
54901 fi
54902
54903 if test -z "$HAS_WORKING_FILE_LOCK"; then
54904     echo "$as_me:$LINENO: checking whether flock locking works" >&5
54905 echo $ECHO_N "checking whether flock locking works... $ECHO_C" >&6
54906 if test "${amanda_cv_flock_filelocking+set}" = set; then
54907   echo $ECHO_N "(cached) $ECHO_C" >&6
54908 else
54909
54910             if test "$cross_compiling" = yes; then
54911
54912                     amanda_cv_flock_filelocking="no (cannot run test)"
54913
54914 else
54915   cat >conftest.$ac_ext <<_ACEOF
54916 /* confdefs.h.  */
54917 _ACEOF
54918 cat confdefs.h >>conftest.$ac_ext
54919 cat >>conftest.$ac_ext <<_ACEOF
54920 /* end confdefs.h.  */
54921
54922 #undef  ASSERTIONS
54923 #define CONFIGURE_TEST
54924 #define USE_FLOCK
54925 #include "${srcdir-.}/common-src/amflock.c"
54926
54927 _ACEOF
54928 rm -f conftest$ac_exeext
54929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54930   (eval $ac_link) 2>&5
54931   ac_status=$?
54932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54935   (eval $ac_try) 2>&5
54936   ac_status=$?
54937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54938   (exit $ac_status); }; }; then
54939
54940                     amanda_cv_flock_filelocking="yes"
54941
54942 else
54943   echo "$as_me: program exited with status $ac_status" >&5
54944 echo "$as_me: failed program was:" >&5
54945 sed 's/^/| /' conftest.$ac_ext >&5
54946
54947 ( exit $ac_status )
54948
54949                     amanda_cv_flock_filelocking="no"
54950
54951 fi
54952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54953 fi
54954         rm -f /tmp/conftest.lock
54955
54956 fi
54957 echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
54958 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6
54959     if test "x$amanda_cv_flock_filelocking" = xyes; then
54960
54961 cat >>confdefs.h <<\_ACEOF
54962 #define USE_FLOCK 1
54963 _ACEOF
54964
54965         HAS_WORKING_FILE_LOCK=1
54966     fi
54967 fi
54968
54969 if test -z "$HAS_WORKING_FILE_LOCK"; then
54970     echo "$as_me:$LINENO: checking whether lockf locking works" >&5
54971 echo $ECHO_N "checking whether lockf locking works... $ECHO_C" >&6
54972 if test "${amanda_cv_lockf_filelocking+set}" = set; then
54973   echo $ECHO_N "(cached) $ECHO_C" >&6
54974 else
54975
54976             if test "$cross_compiling" = yes; then
54977
54978                     amanda_cv_lockf_filelocking="no (cannot run test)"
54979
54980 else
54981   cat >conftest.$ac_ext <<_ACEOF
54982 /* confdefs.h.  */
54983 _ACEOF
54984 cat confdefs.h >>conftest.$ac_ext
54985 cat >>conftest.$ac_ext <<_ACEOF
54986 /* end confdefs.h.  */
54987
54988 #undef  ASSERTIONS
54989 #define CONFIGURE_TEST
54990 #define USE_LOCKF
54991 #include "${srcdir-.}/common-src/amflock.c"
54992
54993 _ACEOF
54994 rm -f conftest$ac_exeext
54995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54996   (eval $ac_link) 2>&5
54997   ac_status=$?
54998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55001   (eval $ac_try) 2>&5
55002   ac_status=$?
55003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55004   (exit $ac_status); }; }; then
55005
55006                     amanda_cv_lockf_filelocking="yes"
55007
55008 else
55009   echo "$as_me: program exited with status $ac_status" >&5
55010 echo "$as_me: failed program was:" >&5
55011 sed 's/^/| /' conftest.$ac_ext >&5
55012
55013 ( exit $ac_status )
55014
55015                     amanda_cv_lockf_filelocking="no"
55016
55017 fi
55018 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55019 fi
55020         rm -f /tmp/conftest.lock
55021
55022 fi
55023 echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
55024 echo "${ECHO_T}$amanda_cv_lockf_filelocking" >&6
55025     if test "x$amanda_cv_lockf_filelocking" = xyes; then
55026
55027 cat >>confdefs.h <<\_ACEOF
55028 #define USE_LOCKF 1
55029 _ACEOF
55030
55031         HAS_WORKING_FILE_LOCK=1
55032     fi
55033 fi
55034
55035 if test -z "$HAS_WORKING_FILE_LOCK"; then
55036     echo "$as_me:$LINENO: checking whether lnlock locking works" >&5
55037 echo $ECHO_N "checking whether lnlock locking works... $ECHO_C" >&6
55038 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
55039   echo $ECHO_N "(cached) $ECHO_C" >&6
55040 else
55041
55042             if test "$cross_compiling" = yes; then
55043
55044                     amanda_cv_lnlock_filelocking="no (cannot run test)"
55045
55046 else
55047   cat >conftest.$ac_ext <<_ACEOF
55048 /* confdefs.h.  */
55049 _ACEOF
55050 cat confdefs.h >>conftest.$ac_ext
55051 cat >>conftest.$ac_ext <<_ACEOF
55052 /* end confdefs.h.  */
55053
55054 #undef  ASSERTIONS
55055 #define CONFIGURE_TEST
55056 #define USE_LNLOCK
55057 #include "${srcdir-.}/common-src/amflock.c"
55058 #include "${srcdir-.}/common-src/alloc.c"
55059 #include "${srcdir-.}/common-src/error.c"
55060 #include "${srcdir-.}/common-src/snprintf.c"
55061
55062 _ACEOF
55063 rm -f conftest$ac_exeext
55064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55065   (eval $ac_link) 2>&5
55066   ac_status=$?
55067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55070   (eval $ac_try) 2>&5
55071   ac_status=$?
55072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55073   (exit $ac_status); }; }; then
55074
55075                     amanda_cv_lnlock_filelocking="yes"
55076
55077 else
55078   echo "$as_me: program exited with status $ac_status" >&5
55079 echo "$as_me: failed program was:" >&5
55080 sed 's/^/| /' conftest.$ac_ext >&5
55081
55082 ( exit $ac_status )
55083
55084                     amanda_cv_lnlock_filelocking="no"
55085
55086 fi
55087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55088 fi
55089         rm -f /tmp/conftest.lock
55090
55091 fi
55092 echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
55093 echo "${ECHO_T}$amanda_cv_lnlock_filelocking" >&6
55094     if test "x$amanda_cv_lnlock_filelocking" = xyes; then
55095
55096 cat >>confdefs.h <<\_ACEOF
55097 #define USE_LNLOCK 1
55098 _ACEOF
55099
55100         HAS_WORKING_FILE_LOCK=1
55101     fi
55102 fi
55103
55104 if test -z "$HAS_WORKING_FILE_LOCK"; then
55105     { echo "$as_me:$LINENO: WARNING: *** No working file locking capability found!" >&5
55106 echo "$as_me: WARNING: *** No working file locking capability found!" >&2;}
55107     { echo "$as_me:$LINENO: WARNING: *** Be VERY VERY careful." >&5
55108 echo "$as_me: WARNING: *** Be VERY VERY careful." >&2;}
55109 fi
55110
55111
55112
55113
55114
55115
55116
55117
55118
55119 if test x"$NO_CLIENT_MODE" != x"true"; then
55120   WANT_CLIENT_TRUE=
55121   WANT_CLIENT_FALSE='#'
55122 else
55123   WANT_CLIENT_TRUE='#'
55124   WANT_CLIENT_FALSE=
55125 fi
55126
55127
55128
55129 if test ! -z "$SAMBA_CLIENT"; then
55130   WANT_SAMBA_TRUE=
55131   WANT_SAMBA_FALSE='#'
55132 else
55133   WANT_SAMBA_TRUE='#'
55134   WANT_SAMBA_FALSE=
55135 fi
55136
55137
55138
55139 if test x"$NO_RESTORE_MODE" != x"true"; then
55140   WANT_RESTORE_TRUE=
55141   WANT_RESTORE_FALSE='#'
55142 else
55143   WANT_RESTORE_TRUE='#'
55144   WANT_RESTORE_FALSE=
55145 fi
55146
55147
55148
55149 if test x"$NO_SERVER_MODE" != x"true"; then
55150   WANT_SERVER_TRUE=
55151   WANT_SERVER_FALSE='#'
55152 else
55153   WANT_SERVER_TRUE='#'
55154   WANT_SERVER_FALSE=
55155 fi
55156
55157
55158
55159 if test x"$NO_RECOVER_MODE" != x"true" && test x"$NO_CLIENT_MODE" != x"true"; then
55160   WANT_RECOVER_TRUE=
55161   WANT_RECOVER_FALSE='#'
55162 else
55163   WANT_RECOVER_TRUE='#'
55164   WANT_RECOVER_FALSE=
55165 fi
55166
55167
55168
55169 if test x"$NO_SERVER_MODE" != x"true" || test x"$NO_RESTORE_MODE" != x"true"; then
55170   WANT_TAPE_TRUE=
55171   WANT_TAPE_FALSE='#'
55172 else
55173   WANT_TAPE_TRUE='#'
55174   WANT_TAPE_FALSE=
55175 fi
55176
55177
55178
55179 if test x"$NO_AMPLOT_MODE" != x"true"; then
55180   WANT_AMPLOT_TRUE=
55181   WANT_AMPLOT_FALSE='#'
55182 else
55183   WANT_AMPLOT_TRUE='#'
55184   WANT_AMPLOT_FALSE=
55185 fi
55186
55187
55188
55189 if test x"$NO_SCSI_CHANGER_MODE" != x"true"; then
55190   WANT_CHG_SCSI_TRUE=
55191   WANT_CHG_SCSI_FALSE='#'
55192 else
55193   WANT_CHG_SCSI_TRUE='#'
55194   WANT_CHG_SCSI_FALSE=
55195 fi
55196
55197
55198
55199 if test x"$NO_CHIO_CHANGER_MODE" != x"true"; then
55200   WANT_CHIO_SCSI_TRUE=
55201   WANT_CHIO_SCSI_FALSE='#'
55202 else
55203   WANT_CHIO_SCSI_TRUE='#'
55204   WANT_CHIO_SCSI_FALSE=
55205 fi
55206
55207
55208
55209 if test x"$NEED_RUNTIME_PSEUDO_RELOC" = x"true"; then
55210   WANT_RUNTIME_PSEUDO_RELOC_TRUE=
55211   WANT_RUNTIME_PSEUDO_RELOC_FALSE='#'
55212 else
55213   WANT_RUNTIME_PSEUDO_RELOC_TRUE='#'
55214   WANT_RUNTIME_PSEUDO_RELOC_FALSE=
55215 fi
55216
55217
55218
55219 if test x"$NEED_SETUID_CLIENT" != x"false"; then
55220   WANT_SETUID_CLIENT_TRUE=
55221   WANT_SETUID_CLIENT_FALSE='#'
55222 else
55223   WANT_SETUID_CLIENT_TRUE='#'
55224   WANT_SETUID_CLIENT_FALSE=
55225 fi
55226
55227
55228
55229 if test x"$SSH_SECURITY_SET" = x"true"; then
55230   WANT_SSH_SECURITY_TRUE=
55231   WANT_SSH_SECURITY_FALSE='#'
55232 else
55233   WANT_SSH_SECURITY_TRUE='#'
55234   WANT_SSH_SECURITY_FALSE=
55235 fi
55236
55237
55238 case "${FORCE_USE_RUNDUMP-${USE_RUNDUMP}}" in
55239 y |  ye | yes)
55240 cat >>confdefs.h <<\_ACEOF
55241 #define USE_RUNDUMP 1
55242 _ACEOF
55243 ;;
55244 esac
55245
55246 # This is necessary so that .o files in LIBOBJS are also built via
55247 # the ANSI2KNR-filtering rules.
55248 LIBOBJS=`echo "$LIBOBJS" |
55249              sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
55250 LTLIBOBJS=`echo "$LIBOBJS" |
55251            sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
55252
55253
55254 LTALLOCA=`echo "$ALLOCA" | sed 's/\.'"${ac_objext}"'/\.lo/g'`
55255
55256
55257 ## This stuff is needed for the documentation.
55258 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
55259
55260
55261
55262 # Check whether --with-built-manpages or --without-built-manpages was given.
55263 if test "${with_built_manpages+set}" = set; then
55264   withval="$with_built_manpages"
55265    BUILDMANPAGES=$withval;
55266 else
55267    BUILDMANPAGES=yes;
55268 fi;
55269
55270
55271 if test "x$BUILDMANPAGES" = "xyes"; then
55272   BUILD_MAN_PAGES_TRUE=
55273   BUILD_MAN_PAGES_FALSE='#'
55274 else
55275   BUILD_MAN_PAGES_TRUE='#'
55276   BUILD_MAN_PAGES_FALSE=
55277 fi
55278
55279
55280 for ac_prog in xsltproc
55281 do
55282   # Extract the first word of "$ac_prog", so it can be a program name with args.
55283 set dummy $ac_prog; ac_word=$2
55284 echo "$as_me:$LINENO: checking for $ac_word" >&5
55285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
55286 if test "${ac_cv_path_XSLTPROC+set}" = set; then
55287   echo $ECHO_N "(cached) $ECHO_C" >&6
55288 else
55289   case $XSLTPROC in
55290   [\\/]* | ?:[\\/]*)
55291   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
55292   ;;
55293   *)
55294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55295 for as_dir in $LOCSYSPATH
55296 do
55297   IFS=$as_save_IFS
55298   test -z "$as_dir" && as_dir=.
55299   for ac_exec_ext in '' $ac_executable_extensions; do
55300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55301     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
55302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55303     break 2
55304   fi
55305 done
55306 done
55307
55308   ;;
55309 esac
55310 fi
55311 XSLTPROC=$ac_cv_path_XSLTPROC
55312
55313 if test -n "$XSLTPROC"; then
55314   echo "$as_me:$LINENO: result: $XSLTPROC" >&5
55315 echo "${ECHO_T}$XSLTPROC" >&6
55316 else
55317   echo "$as_me:$LINENO: result: no" >&5
55318 echo "${ECHO_T}no" >&6
55319 fi
55320
55321   test -n "$XSLTPROC" && break
55322 done
55323
55324 if test -z "$XSLTPROC"; then
55325   USE_XSLTPROC=no
55326   { echo "$as_me:$LINENO: WARNING: can't find xsltproc, xsltproc support is unavailable" >&5
55327 echo "$as_me: WARNING: can't find xsltproc, xsltproc support is unavailable" >&2;}
55328 else
55329   USE_XSLTPROC=yes
55330
55331 cat >>confdefs.h <<\_ACEOF
55332 #define HAVE_XSLTPROC 1
55333 _ACEOF
55334
55335 fi
55336
55337
55338 if test "x$USE_XSLTPROC" = "xyes"; then
55339   HAVE_XSLTPROC_TRUE=
55340   HAVE_XSLTPROC_FALSE='#'
55341 else
55342   HAVE_XSLTPROC_TRUE='#'
55343   HAVE_XSLTPROC_FALSE=
55344 fi
55345
55346
55347 #### Enforce amanda code cleanliness rules.
55348 #### Done here to allow configuration code to remain intact.
55349 if test "x$CC" = "xgcc"; then
55350   AM_CFLAGS="$AM_CFLAGS -Wall"
55351   $CC -v --help 2>&1 | $GREP -- '-Wextra ' 2>&1 > /dev/null
55352   if test $? -eq 0; then
55353     AM_CFLAGS="$AM_CFLAGS -Wextra"
55354   else
55355    AM_CFLAGS="$AM_CFLAGS -W"
55356   fi
55357
55358   $CC -v --help 2>&1 | $GREP -- '-Wparentheses' 2>&1 > /dev/null
55359   if test $? -eq 0; then
55360     AM_CFLAGS="$AM_CFLAGS -Wparentheses"
55361   fi
55362
55363   $CC -v --help 2>&1 | $GREP -- '-Wdeclaration-after-statement' 2>&1 > /dev/null
55364   if test $? -eq 0; then
55365     AM_CFLAGS="$AM_CFLAGS -Wdeclaration-after-statement"
55366   fi
55367
55368   $CC -v --help 2>&1 | $GREP -- '-Wmissing-prototypes ' 2>&1 > /dev/null
55369   if test $? -eq 0; then
55370     AM_CFLAGS="$AM_CFLAGS -Wmissing-prototypes"
55371   fi
55372
55373   $CC -v --help 2>&1 | $GREP -- '-Wstrict-prototypes ' 2>&1 > /dev/null
55374   if test $? -eq 0; then
55375     AM_CFLAGS="$AM_CFLAGS -Wstrict-prototypes"
55376   fi
55377
55378   $CC -v --help 2>&1 | $GREP -- '-Wmissing-declarations ' 2>&1 > /dev/null
55379   if test $? -eq 0; then
55380     AM_CFLAGS="$AM_CFLAGS -Wmissing-declarations"
55381   fi
55382
55383   $CC -v --help 2>&1 | $GREP -- '-Wformat' 2>&1 > /dev/null
55384   if test $? -eq 0; then
55385     AM_CFLAGS="$AM_CFLAGS -Wformat"
55386   fi
55387
55388   $CC -v --help 2>&1 | $GREP -- '-Wsign-compare' 2>&1 > /dev/null
55389   if test $? -eq 0; then
55390     AM_CFLAGS="$AM_CFLAGS -Wsign-compare"
55391   fi
55392
55393   $CC -v --help 2>&1 | $GREP -- '-fno-strict-aliasing' 2>&1 > /dev/null
55394   if test $? -eq 0; then
55395     AM_CFLAGS="$AM_CFLAGS -fno-strict-aliasing"
55396   fi
55397
55398   $CC -v --help 2>&1 | $GREP -- '-Wfloat-equal' 2>&1 > /dev/null
55399   if test $? -eq 0; then
55400     AM_CFLAGS="$AM_CFLAGS -Wfloat-equal"
55401   fi
55402
55403   $CC -v --help 2>&1 | $GREP -- '-Wold-style-definition' 2>&1 > /dev/null
55404   if test $? -eq 0; then
55405     AM_CFLAGS="$AM_CFLAGS -Wold-style-definition"
55406   fi
55407 fi
55408
55409
55410                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ac_config_files="$ac_config_files 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 client-src/patch-system.sh client-src/Makefile dumper-src/gnutar.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"
55411
55412
55413 cat >confcache <<\_ACEOF
55414 # This file is a shell script that caches the results of configure
55415 # tests run on this system so they can be shared between configure
55416 # scripts and configure runs, see configure's option --config-cache.
55417 # It is not useful on other systems.  If it contains results you don't
55418 # want to keep, you may remove or edit it.
55419 #
55420 # config.status only pays attention to the cache file if you give it
55421 # the --recheck option to rerun configure.
55422 #
55423 # `ac_cv_env_foo' variables (set or unset) will be overridden when
55424 # loading this file, other *unset* `ac_cv_foo' will be assigned the
55425 # following values.
55426
55427 _ACEOF
55428
55429 # The following way of writing the cache mishandles newlines in values,
55430 # but we know of no workaround that is simple, portable, and efficient.
55431 # So, don't put newlines in cache variables' values.
55432 # Ultrix sh set writes to stderr and can't be redirected directly,
55433 # and sets the high bit in the cache file unless we assign to the vars.
55434 {
55435   (set) 2>&1 |
55436     case `(ac_space=' '; set | grep ac_space) 2>&1` in
55437     *ac_space=\ *)
55438       # `set' does not quote correctly, so add quotes (double-quote
55439       # substitution turns \\\\ into \\, and sed turns \\ into \).
55440       sed -n \
55441         "s/'/'\\\\''/g;
55442           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
55443       ;;
55444     *)
55445       # `set' quotes correctly as required by POSIX, so do not add quotes.
55446       sed -n \
55447         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
55448       ;;
55449     esac;
55450 } |
55451   sed '
55452      t clear
55453      : clear
55454      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
55455      t end
55456      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
55457      : end' >>confcache
55458 if diff $cache_file confcache >/dev/null 2>&1; then :; else
55459   if test -w $cache_file; then
55460     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
55461     cat confcache >$cache_file
55462   else
55463     echo "not updating unwritable cache $cache_file"
55464   fi
55465 fi
55466 rm -f confcache
55467
55468 test "x$prefix" = xNONE && prefix=$ac_default_prefix
55469 # Let make expand exec_prefix.
55470 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
55471
55472 # VPATH may cause trouble with some makes, so we remove $(srcdir),
55473 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
55474 # trailing colons and then remove the whole line if VPATH becomes empty
55475 # (actually we leave an empty line to preserve line numbers).
55476 if test "x$srcdir" = x.; then
55477   ac_vpsub='/^[  ]*VPATH[        ]*=/{
55478 s/:*\$(srcdir):*/:/;
55479 s/:*\${srcdir}:*/:/;
55480 s/:*@srcdir@:*/:/;
55481 s/^\([^=]*=[     ]*\):*/\1/;
55482 s/:*$//;
55483 s/^[^=]*=[       ]*$//;
55484 }'
55485 fi
55486
55487 DEFS=-DHAVE_CONFIG_H
55488
55489 ac_libobjs=
55490 ac_ltlibobjs=
55491 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
55492   # 1. Remove the extension, and $U if already installed.
55493   ac_i=`echo "$ac_i" |
55494          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
55495   # 2. Add them.
55496   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
55497   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
55498 done
55499 LIBOBJS=$ac_libobjs
55500
55501 LTLIBOBJS=$ac_ltlibobjs
55502
55503
55504 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
55505   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
55506 Usually this means the macro was only invoked conditionally." >&5
55507 echo "$as_me: error: conditional \"AMDEP\" was never defined.
55508 Usually this means the macro was only invoked conditionally." >&2;}
55509    { (exit 1); exit 1; }; }
55510 fi
55511 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
55512   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
55513 Usually this means the macro was only invoked conditionally." >&5
55514 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
55515 Usually this means the macro was only invoked conditionally." >&2;}
55516    { (exit 1); exit 1; }; }
55517 fi
55518 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
55519   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
55520 Usually this means the macro was only invoked conditionally." >&5
55521 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
55522 Usually this means the macro was only invoked conditionally." >&2;}
55523    { (exit 1); exit 1; }; }
55524 fi
55525 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
55526   { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
55527 Usually this means the macro was only invoked conditionally." >&5
55528 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
55529 Usually this means the macro was only invoked conditionally." >&2;}
55530    { (exit 1); exit 1; }; }
55531 fi
55532 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
55533   { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
55534 Usually this means the macro was only invoked conditionally." >&5
55535 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
55536 Usually this means the macro was only invoked conditionally." >&2;}
55537    { (exit 1); exit 1; }; }
55538 fi
55539 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
55540   { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
55541 Usually this means the macro was only invoked conditionally." >&5
55542 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
55543 Usually this means the macro was only invoked conditionally." >&2;}
55544    { (exit 1); exit 1; }; }
55545 fi
55546 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
55547   { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
55548 Usually this means the macro was only invoked conditionally." >&5
55549 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
55550 Usually this means the macro was only invoked conditionally." >&2;}
55551    { (exit 1); exit 1; }; }
55552 fi
55553 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
55554   { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
55555 Usually this means the macro was only invoked conditionally." >&5
55556 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
55557 Usually this means the macro was only invoked conditionally." >&2;}
55558    { (exit 1); exit 1; }; }
55559 fi
55560 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
55561   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
55562 Usually this means the macro was only invoked conditionally." >&5
55563 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
55564 Usually this means the macro was only invoked conditionally." >&2;}
55565    { (exit 1); exit 1; }; }
55566 fi
55567 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
55568   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
55569 Usually this means the macro was only invoked conditionally." >&5
55570 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
55571 Usually this means the macro was only invoked conditionally." >&2;}
55572    { (exit 1); exit 1; }; }
55573 fi
55574 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
55575   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
55576 Usually this means the macro was only invoked conditionally." >&5
55577 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
55578 Usually this means the macro was only invoked conditionally." >&2;}
55579    { (exit 1); exit 1; }; }
55580 fi
55581 if test -z "${WANT_CHIO_SCSI_TRUE}" && test -z "${WANT_CHIO_SCSI_FALSE}"; then
55582   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHIO_SCSI\" was never defined.
55583 Usually this means the macro was only invoked conditionally." >&5
55584 echo "$as_me: error: conditional \"WANT_CHIO_SCSI\" was never defined.
55585 Usually this means the macro was only invoked conditionally." >&2;}
55586    { (exit 1); exit 1; }; }
55587 fi
55588 if test -z "${WANT_RUNTIME_PSEUDO_RELOC_TRUE}" && test -z "${WANT_RUNTIME_PSEUDO_RELOC_FALSE}"; then
55589   { { echo "$as_me:$LINENO: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
55590 Usually this means the macro was only invoked conditionally." >&5
55591 echo "$as_me: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
55592 Usually this means the macro was only invoked conditionally." >&2;}
55593    { (exit 1); exit 1; }; }
55594 fi
55595 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
55596   { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
55597 Usually this means the macro was only invoked conditionally." >&5
55598 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
55599 Usually this means the macro was only invoked conditionally." >&2;}
55600    { (exit 1); exit 1; }; }
55601 fi
55602 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
55603   { { echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
55604 Usually this means the macro was only invoked conditionally." >&5
55605 echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
55606 Usually this means the macro was only invoked conditionally." >&2;}
55607    { (exit 1); exit 1; }; }
55608 fi
55609 if test -z "${BUILD_MAN_PAGES_TRUE}" && test -z "${BUILD_MAN_PAGES_FALSE}"; then
55610   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MAN_PAGES\" was never defined.
55611 Usually this means the macro was only invoked conditionally." >&5
55612 echo "$as_me: error: conditional \"BUILD_MAN_PAGES\" was never defined.
55613 Usually this means the macro was only invoked conditionally." >&2;}
55614    { (exit 1); exit 1; }; }
55615 fi
55616 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
55617   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
55618 Usually this means the macro was only invoked conditionally." >&5
55619 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
55620 Usually this means the macro was only invoked conditionally." >&2;}
55621    { (exit 1); exit 1; }; }
55622 fi
55623
55624 : ${CONFIG_STATUS=./config.status}
55625 ac_clean_files_save=$ac_clean_files
55626 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
55627 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
55628 echo "$as_me: creating $CONFIG_STATUS" >&6;}
55629 cat >$CONFIG_STATUS <<_ACEOF
55630 #! $SHELL
55631 # Generated by $as_me.
55632 # Run this file to recreate the current configuration.
55633 # Compiler output produced by configure, useful for debugging
55634 # configure, is in config.log if it exists.
55635
55636 debug=false
55637 ac_cs_recheck=false
55638 ac_cs_silent=false
55639 SHELL=\${CONFIG_SHELL-$SHELL}
55640 _ACEOF
55641
55642 cat >>$CONFIG_STATUS <<\_ACEOF
55643 ## --------------------- ##
55644 ## M4sh Initialization.  ##
55645 ## --------------------- ##
55646
55647 # Be Bourne compatible
55648 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
55649   emulate sh
55650   NULLCMD=:
55651   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
55652   # is contrary to our usage.  Disable this feature.
55653   alias -g '${1+"$@"}'='"$@"'
55654 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
55655   set -o posix
55656 fi
55657 DUALCASE=1; export DUALCASE # for MKS sh
55658
55659 # Support unset when possible.
55660 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55661   as_unset=unset
55662 else
55663   as_unset=false
55664 fi
55665
55666
55667 # Work around bugs in pre-3.0 UWIN ksh.
55668 $as_unset ENV MAIL MAILPATH
55669 PS1='$ '
55670 PS2='> '
55671 PS4='+ '
55672
55673 # NLS nuisances.
55674 for as_var in \
55675   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
55676   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
55677   LC_TELEPHONE LC_TIME
55678 do
55679   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
55680     eval $as_var=C; export $as_var
55681   else
55682     $as_unset $as_var
55683   fi
55684 done
55685
55686 # Required to use basename.
55687 if expr a : '\(a\)' >/dev/null 2>&1; then
55688   as_expr=expr
55689 else
55690   as_expr=false
55691 fi
55692
55693 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
55694   as_basename=basename
55695 else
55696   as_basename=false
55697 fi
55698
55699
55700 # Name of the executable.
55701 as_me=`$as_basename "$0" ||
55702 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
55703          X"$0" : 'X\(//\)$' \| \
55704          X"$0" : 'X\(/\)$' \| \
55705          .     : '\(.\)' 2>/dev/null ||
55706 echo X/"$0" |
55707     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
55708           /^X\/\(\/\/\)$/{ s//\1/; q; }
55709           /^X\/\(\/\).*/{ s//\1/; q; }
55710           s/.*/./; q'`
55711
55712
55713 # PATH needs CR, and LINENO needs CR and PATH.
55714 # Avoid depending upon Character Ranges.
55715 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
55716 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
55717 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
55718 as_cr_digits='0123456789'
55719 as_cr_alnum=$as_cr_Letters$as_cr_digits
55720
55721 # The user is always right.
55722 if test "${PATH_SEPARATOR+set}" != set; then
55723   echo "#! /bin/sh" >conf$$.sh
55724   echo  "exit 0"   >>conf$$.sh
55725   chmod +x conf$$.sh
55726   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55727     PATH_SEPARATOR=';'
55728   else
55729     PATH_SEPARATOR=:
55730   fi
55731   rm -f conf$$.sh
55732 fi
55733
55734
55735   as_lineno_1=$LINENO
55736   as_lineno_2=$LINENO
55737   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
55738   test "x$as_lineno_1" != "x$as_lineno_2" &&
55739   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
55740   # Find who we are.  Look in the path if we contain no path at all
55741   # relative or not.
55742   case $0 in
55743     *[\\/]* ) as_myself=$0 ;;
55744     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55745 for as_dir in $PATH
55746 do
55747   IFS=$as_save_IFS
55748   test -z "$as_dir" && as_dir=.
55749   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
55750 done
55751
55752        ;;
55753   esac
55754   # We did not find ourselves, most probably we were run as `sh COMMAND'
55755   # in which case we are not to be found in the path.
55756   if test "x$as_myself" = x; then
55757     as_myself=$0
55758   fi
55759   if test ! -f "$as_myself"; then
55760     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
55761 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
55762    { (exit 1); exit 1; }; }
55763   fi
55764   case $CONFIG_SHELL in
55765   '')
55766     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55767 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
55768 do
55769   IFS=$as_save_IFS
55770   test -z "$as_dir" && as_dir=.
55771   for as_base in sh bash ksh sh5; do
55772          case $as_dir in
55773          /*)
55774            if ("$as_dir/$as_base" -c '
55775   as_lineno_1=$LINENO
55776   as_lineno_2=$LINENO
55777   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
55778   test "x$as_lineno_1" != "x$as_lineno_2" &&
55779   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
55780              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
55781              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
55782              CONFIG_SHELL=$as_dir/$as_base
55783              export CONFIG_SHELL
55784              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
55785            fi;;
55786          esac
55787        done
55788 done
55789 ;;
55790   esac
55791
55792   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
55793   # uniformly replaced by the line number.  The first 'sed' inserts a
55794   # line-number line before each line; the second 'sed' does the real
55795   # work.  The second script uses 'N' to pair each line-number line
55796   # with the numbered line, and appends trailing '-' during
55797   # substitution so that $LINENO is not a special case at line end.
55798   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
55799   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
55800   sed '=' <$as_myself |
55801     sed '
55802       N
55803       s,$,-,
55804       : loop
55805       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
55806       t loop
55807       s,-$,,
55808       s,^['$as_cr_digits']*\n,,
55809     ' >$as_me.lineno &&
55810   chmod +x $as_me.lineno ||
55811     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
55812 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
55813    { (exit 1); exit 1; }; }
55814
55815   # Don't try to exec as it changes $[0], causing all sort of problems
55816   # (the dirname of $[0] is not the place where we might find the
55817   # original and so on.  Autoconf is especially sensible to this).
55818   . ./$as_me.lineno
55819   # Exit status is that of the last command.
55820   exit
55821 }
55822
55823
55824 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
55825   *c*,-n*) ECHO_N= ECHO_C='
55826 ' ECHO_T='      ' ;;
55827   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
55828   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
55829 esac
55830
55831 if expr a : '\(a\)' >/dev/null 2>&1; then
55832   as_expr=expr
55833 else
55834   as_expr=false
55835 fi
55836
55837 rm -f conf$$ conf$$.exe conf$$.file
55838 echo >conf$$.file
55839 if ln -s conf$$.file conf$$ 2>/dev/null; then
55840   # We could just check for DJGPP; but this test a) works b) is more generic
55841   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
55842   if test -f conf$$.exe; then
55843     # Don't use ln at all; we don't have any links
55844     as_ln_s='cp -p'
55845   else
55846     as_ln_s='ln -s'
55847   fi
55848 elif ln conf$$.file conf$$ 2>/dev/null; then
55849   as_ln_s=ln
55850 else
55851   as_ln_s='cp -p'
55852 fi
55853 rm -f conf$$ conf$$.exe conf$$.file
55854
55855 if mkdir -p . 2>/dev/null; then
55856   as_mkdir_p=:
55857 else
55858   test -d ./-p && rmdir ./-p
55859   as_mkdir_p=false
55860 fi
55861
55862 as_executable_p="test -f"
55863
55864 # Sed expression to map a string onto a valid CPP name.
55865 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
55866
55867 # Sed expression to map a string onto a valid variable name.
55868 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
55869
55870
55871 # IFS
55872 # We need space, tab and new line, in precisely that order.
55873 as_nl='
55874 '
55875 IFS="   $as_nl"
55876
55877 # CDPATH.
55878 $as_unset CDPATH
55879
55880 exec 6>&1
55881
55882 # Open the log real soon, to keep \$[0] and so on meaningful, and to
55883 # report actual input values of CONFIG_FILES etc. instead of their
55884 # values after options handling.  Logging --version etc. is OK.
55885 exec 5>>config.log
55886 {
55887   echo
55888   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
55889 ## Running $as_me. ##
55890 _ASBOX
55891 } >&5
55892 cat >&5 <<_CSEOF
55893
55894 This file was extended by $as_me, which was
55895 generated by GNU Autoconf 2.59.  Invocation command line was
55896
55897   CONFIG_FILES    = $CONFIG_FILES
55898   CONFIG_HEADERS  = $CONFIG_HEADERS
55899   CONFIG_LINKS    = $CONFIG_LINKS
55900   CONFIG_COMMANDS = $CONFIG_COMMANDS
55901   $ $0 $@
55902
55903 _CSEOF
55904 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
55905 echo >&5
55906 _ACEOF
55907
55908 # Files that config.status was made for.
55909 if test -n "$ac_config_files"; then
55910   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
55911 fi
55912
55913 if test -n "$ac_config_headers"; then
55914   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
55915 fi
55916
55917 if test -n "$ac_config_links"; then
55918   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
55919 fi
55920
55921 if test -n "$ac_config_commands"; then
55922   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
55923 fi
55924
55925 cat >>$CONFIG_STATUS <<\_ACEOF
55926
55927 ac_cs_usage="\
55928 \`$as_me' instantiates files from templates according to the
55929 current configuration.
55930
55931 Usage: $0 [OPTIONS] [FILE]...
55932
55933   -h, --help       print this help, then exit
55934   -V, --version    print version number, then exit
55935   -q, --quiet      do not print progress messages
55936   -d, --debug      don't remove temporary files
55937       --recheck    update $as_me by reconfiguring in the same conditions
55938   --file=FILE[:TEMPLATE]
55939                    instantiate the configuration file FILE
55940   --header=FILE[:TEMPLATE]
55941                    instantiate the configuration header FILE
55942
55943 Configuration files:
55944 $config_files
55945
55946 Configuration headers:
55947 $config_headers
55948
55949 Configuration commands:
55950 $config_commands
55951
55952 Report bugs to <bug-autoconf@gnu.org>."
55953 _ACEOF
55954
55955 cat >>$CONFIG_STATUS <<_ACEOF
55956 ac_cs_version="\\
55957 config.status
55958 configured by $0, generated by GNU Autoconf 2.59,
55959   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
55960
55961 Copyright (C) 2003 Free Software Foundation, Inc.
55962 This config.status script is free software; the Free Software Foundation
55963 gives unlimited permission to copy, distribute and modify it."
55964 srcdir=$srcdir
55965 INSTALL="$INSTALL"
55966 _ACEOF
55967
55968 cat >>$CONFIG_STATUS <<\_ACEOF
55969 # If no file are specified by the user, then we need to provide default
55970 # value.  By we need to know if files were specified by the user.
55971 ac_need_defaults=:
55972 while test $# != 0
55973 do
55974   case $1 in
55975   --*=*)
55976     ac_option=`expr "x$1" : 'x\([^=]*\)='`
55977     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
55978     ac_shift=:
55979     ;;
55980   -*)
55981     ac_option=$1
55982     ac_optarg=$2
55983     ac_shift=shift
55984     ;;
55985   *) # This is not an option, so the user has probably given explicit
55986      # arguments.
55987      ac_option=$1
55988      ac_need_defaults=false;;
55989   esac
55990
55991   case $ac_option in
55992   # Handling of the options.
55993 _ACEOF
55994 cat >>$CONFIG_STATUS <<\_ACEOF
55995   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
55996     ac_cs_recheck=: ;;
55997   --version | --vers* | -V )
55998     echo "$ac_cs_version"; exit 0 ;;
55999   --he | --h)
56000     # Conflict between --help and --header
56001     { { echo "$as_me:$LINENO: error: ambiguous option: $1
56002 Try \`$0 --help' for more information." >&5
56003 echo "$as_me: error: ambiguous option: $1
56004 Try \`$0 --help' for more information." >&2;}
56005    { (exit 1); exit 1; }; };;
56006   --help | --hel | -h )
56007     echo "$ac_cs_usage"; exit 0 ;;
56008   --debug | --d* | -d )
56009     debug=: ;;
56010   --file | --fil | --fi | --f )
56011     $ac_shift
56012     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
56013     ac_need_defaults=false;;
56014   --header | --heade | --head | --hea )
56015     $ac_shift
56016     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
56017     ac_need_defaults=false;;
56018   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
56019   | -silent | --silent | --silen | --sile | --sil | --si | --s)
56020     ac_cs_silent=: ;;
56021
56022   # This is an error.
56023   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
56024 Try \`$0 --help' for more information." >&5
56025 echo "$as_me: error: unrecognized option: $1
56026 Try \`$0 --help' for more information." >&2;}
56027    { (exit 1); exit 1; }; } ;;
56028
56029   *) ac_config_targets="$ac_config_targets $1" ;;
56030
56031   esac
56032   shift
56033 done
56034
56035 ac_configure_extra_args=
56036
56037 if $ac_cs_silent; then
56038   exec 6>/dev/null
56039   ac_configure_extra_args="$ac_configure_extra_args --silent"
56040 fi
56041
56042 _ACEOF
56043 cat >>$CONFIG_STATUS <<_ACEOF
56044 if \$ac_cs_recheck; then
56045   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
56046   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
56047 fi
56048
56049 _ACEOF
56050
56051 cat >>$CONFIG_STATUS <<_ACEOF
56052 #
56053 # INIT-COMMANDS section.
56054 #
56055
56056 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
56057 # variables for create stdint.h replacement
56058 PACKAGE="$PACKAGE"
56059 VERSION="$VERSION"
56060 ac_stdint_h="$ac_stdint_h"
56061 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
56062 ac_cv_stdint_message="$ac_cv_stdint_message"
56063 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
56064 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
56065 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
56066 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
56067 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
56068 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
56069 ac_cv_char_data_model="$ac_cv_char_data_model"
56070 ac_cv_long_data_model="$ac_cv_long_data_model"
56071 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
56072 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
56073 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
56074
56075
56076 _ACEOF
56077
56078
56079
56080 cat >>$CONFIG_STATUS <<\_ACEOF
56081 for ac_config_target in $ac_config_targets
56082 do
56083   case "$ac_config_target" in
56084   # Handling of arguments.
56085   "amplot/amcat.awk" ) CONFIG_FILES="$CONFIG_FILES amplot/amcat.awk" ;;
56086   "amplot/amplot.sh" ) CONFIG_FILES="$CONFIG_FILES amplot/amplot.sh" ;;
56087   "amplot/Makefile" ) CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
56088   "amandad-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
56089   "changer-src/chg-manual.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-manual.sh" ;;
56090   "changer-src/chg-multi.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-multi.sh" ;;
56091   "changer-src/chg-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mtx.sh" ;;
56092   "changer-src/chg-chs.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chs.sh" ;;
56093   "changer-src/chg-rth.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rth.pl" ;;
56094   "changer-src/chg-chio.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chio.pl" ;;
56095   "changer-src/chg-zd-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-zd-mtx.sh" ;;
56096   "changer-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
56097   "changer-src/chg-juke.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-juke.sh" ;;
56098   "changer-src/chg-rait.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rait.sh" ;;
56099   "changer-src/chg-null.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-null.sh" ;;
56100   "changer-src/chg-mcutil.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mcutil.sh" ;;
56101   "changer-src/chg-disk.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-disk.sh" ;;
56102   "changer-src/chg-iomega.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-iomega.pl" ;;
56103   "client-src/patch-system.sh" ) CONFIG_FILES="$CONFIG_FILES client-src/patch-system.sh" ;;
56104   "client-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
56105   "dumper-src/gnutar.pl" ) CONFIG_FILES="$CONFIG_FILES dumper-src/gnutar.pl" ;;
56106   "dumper-src/generic-dumper.pl" ) CONFIG_FILES="$CONFIG_FILES dumper-src/generic-dumper.pl" ;;
56107   "dumper-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES dumper-src/Makefile" ;;
56108   "common-src/versuff.c" ) CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
56109   "common-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
56110   "example/amanda.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
56111   "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
56112   "example/chg-mcutil.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
56113   "example/amanda-client.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda-client.conf" ;;
56114   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
56115   "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
56116   "recover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
56117   "oldrecover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
56118   "restore-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
56119   "server-src/amcheckdb.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcheckdb.sh" ;;
56120   "server-src/amcleanup.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcleanup.sh" ;;
56121   "server-src/amdump.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amdump.sh" ;;
56122   "server-src/amfreetapes.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amfreetapes.sh" ;;
56123   "server-src/amoverview.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amoverview.pl" ;;
56124   "server-src/amrmtape.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amrmtape.sh" ;;
56125   "server-src/amtoc.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amtoc.pl" ;;
56126   "server-src/amverify.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverify.sh" ;;
56127   "server-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
56128   "server-src/amstatus.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amstatus.pl" ;;
56129   "server-src/amverifyrun.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverifyrun.sh" ;;
56130   "server-src/amcrypt.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt.sh" ;;
56131   "server-src/amaespipe.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amaespipe.sh" ;;
56132   "server-src/amcrypt-ossl.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt-ossl.sh" ;;
56133   "server-src/amcrypt-ossl-asym.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt-ossl-asym.sh" ;;
56134   "tape-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
56135   "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
56136   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
56137   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
56138   "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
56139   "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
56140   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
56141 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
56142    { (exit 1); exit 1; }; };;
56143   esac
56144 done
56145
56146 # If the user did not use the arguments to specify the items to instantiate,
56147 # then the envvar interface is used.  Set only those that are not.
56148 # We use the long form for the default assignment because of an extremely
56149 # bizarre bug on SunOS 4.1.3.
56150 if $ac_need_defaults; then
56151   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
56152   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
56153   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
56154 fi
56155
56156 # Have a temporary directory for convenience.  Make it in the build tree
56157 # simply because there is no reason to put it here, and in addition,
56158 # creating and moving files from /tmp can sometimes cause problems.
56159 # Create a temporary directory, and hook for its removal unless debugging.
56160 $debug ||
56161 {
56162   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
56163   trap '{ (exit 1); exit 1; }' 1 2 13 15
56164 }
56165
56166 # Create a (secure) tmp directory for tmp files.
56167
56168 {
56169   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
56170   test -n "$tmp" && test -d "$tmp"
56171 }  ||
56172 {
56173   tmp=./confstat$$-$RANDOM
56174   (umask 077 && mkdir $tmp)
56175 } ||
56176 {
56177    echo "$me: cannot create a temporary directory in ." >&2
56178    { (exit 1); exit 1; }
56179 }
56180
56181 _ACEOF
56182
56183 cat >>$CONFIG_STATUS <<_ACEOF
56184
56185 #
56186 # CONFIG_FILES section.
56187 #
56188
56189 # No need to generate the scripts if there are no CONFIG_FILES.
56190 # This happens for instance when ./config.status config.h
56191 if test -n "\$CONFIG_FILES"; then
56192   # Protect against being on the right side of a sed subst in config.status.
56193   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
56194    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
56195 s,@SHELL@,$SHELL,;t t
56196 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
56197 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
56198 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
56199 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
56200 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
56201 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
56202 s,@exec_prefix@,$exec_prefix,;t t
56203 s,@prefix@,$prefix,;t t
56204 s,@program_transform_name@,$program_transform_name,;t t
56205 s,@bindir@,$bindir,;t t
56206 s,@sbindir@,$sbindir,;t t
56207 s,@libexecdir@,$libexecdir,;t t
56208 s,@datadir@,$datadir,;t t
56209 s,@sysconfdir@,$sysconfdir,;t t
56210 s,@sharedstatedir@,$sharedstatedir,;t t
56211 s,@localstatedir@,$localstatedir,;t t
56212 s,@libdir@,$libdir,;t t
56213 s,@includedir@,$includedir,;t t
56214 s,@oldincludedir@,$oldincludedir,;t t
56215 s,@infodir@,$infodir,;t t
56216 s,@mandir@,$mandir,;t t
56217 s,@build_alias@,$build_alias,;t t
56218 s,@host_alias@,$host_alias,;t t
56219 s,@target_alias@,$target_alias,;t t
56220 s,@DEFS@,$DEFS,;t t
56221 s,@ECHO_C@,$ECHO_C,;t t
56222 s,@ECHO_N@,$ECHO_N,;t t
56223 s,@ECHO_T@,$ECHO_T,;t t
56224 s,@LIBS@,$LIBS,;t t
56225 s,@build@,$build,;t t
56226 s,@build_cpu@,$build_cpu,;t t
56227 s,@build_vendor@,$build_vendor,;t t
56228 s,@build_os@,$build_os,;t t
56229 s,@host@,$host,;t t
56230 s,@host_cpu@,$host_cpu,;t t
56231 s,@host_vendor@,$host_vendor,;t t
56232 s,@host_os@,$host_os,;t t
56233 s,@target@,$target,;t t
56234 s,@target_cpu@,$target_cpu,;t t
56235 s,@target_vendor@,$target_vendor,;t t
56236 s,@target_os@,$target_os,;t t
56237 s,@CONFIGURE_COMMAND@,$CONFIGURE_COMMAND,;t t
56238 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
56239 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
56240 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
56241 s,@CYGPATH_W@,$CYGPATH_W,;t t
56242 s,@PACKAGE@,$PACKAGE,;t t
56243 s,@VERSION@,$VERSION,;t t
56244 s,@ACLOCAL@,$ACLOCAL,;t t
56245 s,@AUTOCONF@,$AUTOCONF,;t t
56246 s,@AUTOMAKE@,$AUTOMAKE,;t t
56247 s,@AUTOHEADER@,$AUTOHEADER,;t t
56248 s,@MAKEINFO@,$MAKEINFO,;t t
56249 s,@install_sh@,$install_sh,;t t
56250 s,@STRIP@,$STRIP,;t t
56251 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
56252 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
56253 s,@mkdir_p@,$mkdir_p,;t t
56254 s,@AWK@,$AWK,;t t
56255 s,@SET_MAKE@,$SET_MAKE,;t t
56256 s,@am__leading_dot@,$am__leading_dot,;t t
56257 s,@AMTAR@,$AMTAR,;t t
56258 s,@am__tar@,$am__tar,;t t
56259 s,@am__untar@,$am__untar,;t t
56260 s,@SNAPSHOT_STAMP@,$SNAPSHOT_STAMP,;t t
56261 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
56262 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
56263 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
56264 s,@VERSION_COMMENT@,$VERSION_COMMENT,;t t
56265 s,@VERSION_SUFFIX@,$VERSION_SUFFIX,;t t
56266 s,@CC@,$CC,;t t
56267 s,@CFLAGS@,$CFLAGS,;t t
56268 s,@LDFLAGS@,$LDFLAGS,;t t
56269 s,@CPPFLAGS@,$CPPFLAGS,;t t
56270 s,@ac_ct_CC@,$ac_ct_CC,;t t
56271 s,@EXEEXT@,$EXEEXT,;t t
56272 s,@OBJEXT@,$OBJEXT,;t t
56273 s,@DEPDIR@,$DEPDIR,;t t
56274 s,@am__include@,$am__include,;t t
56275 s,@am__quote@,$am__quote,;t t
56276 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
56277 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
56278 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
56279 s,@CCDEPMODE@,$CCDEPMODE,;t t
56280 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
56281 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
56282 s,@GREP@,$GREP,;t t
56283 s,@EGREP@,$EGREP,;t t
56284 s,@AMLINT@,$AMLINT,;t t
56285 s,@AMLINTFLAGS@,$AMLINTFLAGS,;t t
56286 s,@DUMPER_DIR@,$DUMPER_DIR,;t t
56287 s,@CONFIG_DIR@,$CONFIG_DIR,;t t
56288 s,@USE_VERSION_SUFFIXES@,$USE_VERSION_SUFFIXES,;t t
56289 s,@CLIENT_SCRIPTS_OPT@,$CLIENT_SCRIPTS_OPT,;t t
56290 s,@DEFAULT_SERVER@,$DEFAULT_SERVER,;t t
56291 s,@CLIENT_LOGIN@,$CLIENT_LOGIN,;t t
56292 s,@SETUID_GROUP@,$SETUID_GROUP,;t t
56293 s,@BINARY_OWNER@,$BINARY_OWNER,;t t
56294 s,@DEFAULT_CONFIG@,$DEFAULT_CONFIG,;t t
56295 s,@DEFAULT_TAPE_SERVER@,$DEFAULT_TAPE_SERVER,;t t
56296 s,@DEFAULT_TAPE_DEVICE@,$DEFAULT_TAPE_DEVICE,;t t
56297 s,@DEFAULT_RAW_TAPE_DEVICE@,$DEFAULT_RAW_TAPE_DEVICE,;t t
56298 s,@DEFAULT_CHANGER_DEVICE@,$DEFAULT_CHANGER_DEVICE,;t t
56299 s,@GNUTAR_LISTED_INCREMENTAL_DIRX@,$GNUTAR_LISTED_INCREMENTAL_DIRX,;t t
56300 s,@GNUTAR_LISTED_INCREMENTAL_DIR@,$GNUTAR_LISTED_INCREMENTAL_DIR,;t t
56301 s,@MAXTAPEBLOCKSIZE@,$MAXTAPEBLOCKSIZE,;t t
56302 s,@AMANDA_TMPDIR@,$AMANDA_TMPDIR,;t t
56303 s,@AMANDA_DBGDIR@,$AMANDA_DBGDIR,;t t
56304 s,@AMANDA_DEBUG_DAYS@,$AMANDA_DEBUG_DAYS,;t t
56305 s,@SERVICE_SUFFIX@,$SERVICE_SUFFIX,;t t
56306 s,@MT_FILE_FLAG@,$MT_FILE_FLAG,;t t
56307 s,@CPP@,$CPP,;t t
56308 s,@AR@,$AR,;t t
56309 s,@AWK_VAR_ASSIGNMENT_OPT@,$AWK_VAR_ASSIGNMENT_OPT,;t t
56310 s,@YACC@,$YACC,;t t
56311 s,@CAT@,$CAT,;t t
56312 s,@COMPRESS@,$COMPRESS,;t t
56313 s,@DD@,$DD,;t t
56314 s,@GETCONF@,$GETCONF,;t t
56315 s,@GNUPLOT@,$GNUPLOT,;t t
56316 s,@GNUTAR@,$GNUTAR,;t t
56317 s,@SAMBA_CLIENT@,$SAMBA_CLIENT,;t t
56318 s,@GZIP@,$GZIP,;t t
56319 s,@MAILER@,$MAILER,;t t
56320 s,@MT@,$MT,;t t
56321 s,@CHIO@,$CHIO,;t t
56322 s,@CHS@,$CHS,;t t
56323 s,@MTX@,$MTX,;t t
56324 s,@MCUTIL@,$MCUTIL,;t t
56325 s,@PRINT@,$PRINT,;t t
56326 s,@PCAT@,$PCAT,;t t
56327 s,@PERL@,$PERL,;t t
56328 s,@DUMP@,$DUMP,;t t
56329 s,@RESTORE@,$RESTORE,;t t
56330 s,@XFSDUMP@,$XFSDUMP,;t t
56331 s,@XFSRESTORE@,$XFSRESTORE,;t t
56332 s,@VXDUMP@,$VXDUMP,;t t
56333 s,@VXRESTORE@,$VXRESTORE,;t t
56334 s,@VDUMP@,$VDUMP,;t t
56335 s,@VRESTORE@,$VRESTORE,;t t
56336 s,@AMPLOT_COMPRESS@,$AMPLOT_COMPRESS,;t t
56337 s,@AMPLOT_CAT_GZIP@,$AMPLOT_CAT_GZIP,;t t
56338 s,@AMPLOT_CAT_COMPRESS@,$AMPLOT_CAT_COMPRESS,;t t
56339 s,@AMPLOT_CAT_PACK@,$AMPLOT_CAT_PACK,;t t
56340 s,@LL_FMT@,$LL_FMT,;t t
56341 s,@LN_S@,$LN_S,;t t
56342 s,@ECHO@,$ECHO,;t t
56343 s,@ac_ct_AR@,$ac_ct_AR,;t t
56344 s,@RANLIB@,$RANLIB,;t t
56345 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
56346 s,@CXX@,$CXX,;t t
56347 s,@CXXFLAGS@,$CXXFLAGS,;t t
56348 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
56349 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
56350 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
56351 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
56352 s,@CXXCPP@,$CXXCPP,;t t
56353 s,@F77@,$F77,;t t
56354 s,@FFLAGS@,$FFLAGS,;t t
56355 s,@ac_ct_F77@,$ac_ct_F77,;t t
56356 s,@LIBTOOL@,$LIBTOOL,;t t
56357 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
56358 s,@LEX@,$LEX,;t t
56359 s,@LEXLIB@,$LEXLIB,;t t
56360 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
56361 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
56362 s,@DB_EXT@,$DB_EXT,;t t
56363 s,@ALLOCA@,$ALLOCA,;t t
56364 s,@LIBOBJS@,$LIBOBJS,;t t
56365 s,@ac_n@,$ac_n,;t t
56366 s,@ac_c@,$ac_c,;t t
56367 s,@WANT_CLIENT_TRUE@,$WANT_CLIENT_TRUE,;t t
56368 s,@WANT_CLIENT_FALSE@,$WANT_CLIENT_FALSE,;t t
56369 s,@WANT_SAMBA_TRUE@,$WANT_SAMBA_TRUE,;t t
56370 s,@WANT_SAMBA_FALSE@,$WANT_SAMBA_FALSE,;t t
56371 s,@WANT_RESTORE_TRUE@,$WANT_RESTORE_TRUE,;t t
56372 s,@WANT_RESTORE_FALSE@,$WANT_RESTORE_FALSE,;t t
56373 s,@WANT_SERVER_TRUE@,$WANT_SERVER_TRUE,;t t
56374 s,@WANT_SERVER_FALSE@,$WANT_SERVER_FALSE,;t t
56375 s,@WANT_RECOVER_TRUE@,$WANT_RECOVER_TRUE,;t t
56376 s,@WANT_RECOVER_FALSE@,$WANT_RECOVER_FALSE,;t t
56377 s,@WANT_TAPE_TRUE@,$WANT_TAPE_TRUE,;t t
56378 s,@WANT_TAPE_FALSE@,$WANT_TAPE_FALSE,;t t
56379 s,@WANT_AMPLOT_TRUE@,$WANT_AMPLOT_TRUE,;t t
56380 s,@WANT_AMPLOT_FALSE@,$WANT_AMPLOT_FALSE,;t t
56381 s,@WANT_CHG_SCSI_TRUE@,$WANT_CHG_SCSI_TRUE,;t t
56382 s,@WANT_CHG_SCSI_FALSE@,$WANT_CHG_SCSI_FALSE,;t t
56383 s,@WANT_CHIO_SCSI_TRUE@,$WANT_CHIO_SCSI_TRUE,;t t
56384 s,@WANT_CHIO_SCSI_FALSE@,$WANT_CHIO_SCSI_FALSE,;t t
56385 s,@WANT_RUNTIME_PSEUDO_RELOC_TRUE@,$WANT_RUNTIME_PSEUDO_RELOC_TRUE,;t t
56386 s,@WANT_RUNTIME_PSEUDO_RELOC_FALSE@,$WANT_RUNTIME_PSEUDO_RELOC_FALSE,;t t
56387 s,@WANT_SETUID_CLIENT_TRUE@,$WANT_SETUID_CLIENT_TRUE,;t t
56388 s,@WANT_SETUID_CLIENT_FALSE@,$WANT_SETUID_CLIENT_FALSE,;t t
56389 s,@WANT_SSH_SECURITY_TRUE@,$WANT_SSH_SECURITY_TRUE,;t t
56390 s,@WANT_SSH_SECURITY_FALSE@,$WANT_SSH_SECURITY_FALSE,;t t
56391 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
56392 s,@LTALLOCA@,$LTALLOCA,;t t
56393 s,@DOC_BUILD_DATE@,$DOC_BUILD_DATE,;t t
56394 s,@BUILD_MAN_PAGES_TRUE@,$BUILD_MAN_PAGES_TRUE,;t t
56395 s,@BUILD_MAN_PAGES_FALSE@,$BUILD_MAN_PAGES_FALSE,;t t
56396 s,@XSLTPROC@,$XSLTPROC,;t t
56397 s,@HAVE_XSLTPROC_TRUE@,$HAVE_XSLTPROC_TRUE,;t t
56398 s,@HAVE_XSLTPROC_FALSE@,$HAVE_XSLTPROC_FALSE,;t t
56399 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
56400 CEOF
56401
56402 _ACEOF
56403
56404   cat >>$CONFIG_STATUS <<\_ACEOF
56405   # Split the substitutions into bite-sized pieces for seds with
56406   # small command number limits, like on Digital OSF/1 and HP-UX.
56407   ac_max_sed_lines=48
56408   ac_sed_frag=1 # Number of current file.
56409   ac_beg=1 # First line for current file.
56410   ac_end=$ac_max_sed_lines # Line after last line for current file.
56411   ac_more_lines=:
56412   ac_sed_cmds=
56413   while $ac_more_lines; do
56414     if test $ac_beg -gt 1; then
56415       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
56416     else
56417       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
56418     fi
56419     if test ! -s $tmp/subs.frag; then
56420       ac_more_lines=false
56421     else
56422       # The purpose of the label and of the branching condition is to
56423       # speed up the sed processing (if there are no `@' at all, there
56424       # is no need to browse any of the substitutions).
56425       # These are the two extra sed commands mentioned above.
56426       (echo ':t
56427   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
56428       if test -z "$ac_sed_cmds"; then
56429         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
56430       else
56431         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
56432       fi
56433       ac_sed_frag=`expr $ac_sed_frag + 1`
56434       ac_beg=$ac_end
56435       ac_end=`expr $ac_end + $ac_max_sed_lines`
56436     fi
56437   done
56438   if test -z "$ac_sed_cmds"; then
56439     ac_sed_cmds=cat
56440   fi
56441 fi # test -n "$CONFIG_FILES"
56442
56443 _ACEOF
56444 cat >>$CONFIG_STATUS <<\_ACEOF
56445 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
56446   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
56447   case $ac_file in
56448   - | *:- | *:-:* ) # input from stdin
56449         cat >$tmp/stdin
56450         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
56451         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
56452   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
56453         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
56454   * )   ac_file_in=$ac_file.in ;;
56455   esac
56456
56457   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
56458   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
56459 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56460          X"$ac_file" : 'X\(//\)[^/]' \| \
56461          X"$ac_file" : 'X\(//\)$' \| \
56462          X"$ac_file" : 'X\(/\)' \| \
56463          .     : '\(.\)' 2>/dev/null ||
56464 echo X"$ac_file" |
56465     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56466           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56467           /^X\(\/\/\)$/{ s//\1/; q; }
56468           /^X\(\/\).*/{ s//\1/; q; }
56469           s/.*/./; q'`
56470   { if $as_mkdir_p; then
56471     mkdir -p "$ac_dir"
56472   else
56473     as_dir="$ac_dir"
56474     as_dirs=
56475     while test ! -d "$as_dir"; do
56476       as_dirs="$as_dir $as_dirs"
56477       as_dir=`(dirname "$as_dir") 2>/dev/null ||
56478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56479          X"$as_dir" : 'X\(//\)[^/]' \| \
56480          X"$as_dir" : 'X\(//\)$' \| \
56481          X"$as_dir" : 'X\(/\)' \| \
56482          .     : '\(.\)' 2>/dev/null ||
56483 echo X"$as_dir" |
56484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56485           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56486           /^X\(\/\/\)$/{ s//\1/; q; }
56487           /^X\(\/\).*/{ s//\1/; q; }
56488           s/.*/./; q'`
56489     done
56490     test ! -n "$as_dirs" || mkdir $as_dirs
56491   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
56492 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
56493    { (exit 1); exit 1; }; }; }
56494
56495   ac_builddir=.
56496
56497 if test "$ac_dir" != .; then
56498   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
56499   # A "../" for each directory in $ac_dir_suffix.
56500   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
56501 else
56502   ac_dir_suffix= ac_top_builddir=
56503 fi
56504
56505 case $srcdir in
56506   .)  # No --srcdir option.  We are building in place.
56507     ac_srcdir=.
56508     if test -z "$ac_top_builddir"; then
56509        ac_top_srcdir=.
56510     else
56511        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
56512     fi ;;
56513   [\\/]* | ?:[\\/]* )  # Absolute path.
56514     ac_srcdir=$srcdir$ac_dir_suffix;
56515     ac_top_srcdir=$srcdir ;;
56516   *) # Relative path.
56517     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
56518     ac_top_srcdir=$ac_top_builddir$srcdir ;;
56519 esac
56520
56521 # Do not use `cd foo && pwd` to compute absolute paths, because
56522 # the directories may not exist.
56523 case `pwd` in
56524 .) ac_abs_builddir="$ac_dir";;
56525 *)
56526   case "$ac_dir" in
56527   .) ac_abs_builddir=`pwd`;;
56528   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
56529   *) ac_abs_builddir=`pwd`/"$ac_dir";;
56530   esac;;
56531 esac
56532 case $ac_abs_builddir in
56533 .) ac_abs_top_builddir=${ac_top_builddir}.;;
56534 *)
56535   case ${ac_top_builddir}. in
56536   .) ac_abs_top_builddir=$ac_abs_builddir;;
56537   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
56538   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
56539   esac;;
56540 esac
56541 case $ac_abs_builddir in
56542 .) ac_abs_srcdir=$ac_srcdir;;
56543 *)
56544   case $ac_srcdir in
56545   .) ac_abs_srcdir=$ac_abs_builddir;;
56546   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
56547   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
56548   esac;;
56549 esac
56550 case $ac_abs_builddir in
56551 .) ac_abs_top_srcdir=$ac_top_srcdir;;
56552 *)
56553   case $ac_top_srcdir in
56554   .) ac_abs_top_srcdir=$ac_abs_builddir;;
56555   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
56556   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
56557   esac;;
56558 esac
56559
56560
56561   case $INSTALL in
56562   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
56563   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
56564   esac
56565
56566   if test x"$ac_file" != x-; then
56567     { echo "$as_me:$LINENO: creating $ac_file" >&5
56568 echo "$as_me: creating $ac_file" >&6;}
56569     rm -f "$ac_file"
56570   fi
56571   # Let's still pretend it is `configure' which instantiates (i.e., don't
56572   # use $as_me), people would be surprised to read:
56573   #    /* config.h.  Generated by config.status.  */
56574   if test x"$ac_file" = x-; then
56575     configure_input=
56576   else
56577     configure_input="$ac_file.  "
56578   fi
56579   configure_input=$configure_input"Generated from `echo $ac_file_in |
56580                                      sed 's,.*/,,'` by configure."
56581
56582   # First look for the input files in the build tree, otherwise in the
56583   # src tree.
56584   ac_file_inputs=`IFS=:
56585     for f in $ac_file_in; do
56586       case $f in
56587       -) echo $tmp/stdin ;;
56588       [\\/$]*)
56589          # Absolute (can't be DOS-style, as IFS=:)
56590          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
56591 echo "$as_me: error: cannot find input file: $f" >&2;}
56592    { (exit 1); exit 1; }; }
56593          echo "$f";;
56594       *) # Relative
56595          if test -f "$f"; then
56596            # Build tree
56597            echo "$f"
56598          elif test -f "$srcdir/$f"; then
56599            # Source tree
56600            echo "$srcdir/$f"
56601          else
56602            # /dev/null tree
56603            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
56604 echo "$as_me: error: cannot find input file: $f" >&2;}
56605    { (exit 1); exit 1; }; }
56606          fi;;
56607       esac
56608     done` || { (exit 1); exit 1; }
56609 _ACEOF
56610 cat >>$CONFIG_STATUS <<_ACEOF
56611   sed "$ac_vpsub
56612 $extrasub
56613 _ACEOF
56614 cat >>$CONFIG_STATUS <<\_ACEOF
56615 :t
56616 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
56617 s,@configure_input@,$configure_input,;t t
56618 s,@srcdir@,$ac_srcdir,;t t
56619 s,@abs_srcdir@,$ac_abs_srcdir,;t t
56620 s,@top_srcdir@,$ac_top_srcdir,;t t
56621 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
56622 s,@builddir@,$ac_builddir,;t t
56623 s,@abs_builddir@,$ac_abs_builddir,;t t
56624 s,@top_builddir@,$ac_top_builddir,;t t
56625 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
56626 s,@INSTALL@,$ac_INSTALL,;t t
56627 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
56628   rm -f $tmp/stdin
56629   if test x"$ac_file" != x-; then
56630     mv $tmp/out $ac_file
56631   else
56632     cat $tmp/out
56633     rm -f $tmp/out
56634   fi
56635
56636 done
56637 _ACEOF
56638 cat >>$CONFIG_STATUS <<\_ACEOF
56639
56640 #
56641 # CONFIG_HEADER section.
56642 #
56643
56644 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
56645 # NAME is the cpp macro being defined and VALUE is the value it is being given.
56646 #
56647 # ac_d sets the value in "#define NAME VALUE" lines.
56648 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
56649 ac_dB='[         ].*$,\1#\2'
56650 ac_dC=' '
56651 ac_dD=',;t'
56652 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
56653 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
56654 ac_uB='$,\1#\2define\3'
56655 ac_uC=' '
56656 ac_uD=',;t'
56657
56658 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
56659   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
56660   case $ac_file in
56661   - | *:- | *:-:* ) # input from stdin
56662         cat >$tmp/stdin
56663         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
56664         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
56665   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
56666         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
56667   * )   ac_file_in=$ac_file.in ;;
56668   esac
56669
56670   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
56671 echo "$as_me: creating $ac_file" >&6;}
56672
56673   # First look for the input files in the build tree, otherwise in the
56674   # src tree.
56675   ac_file_inputs=`IFS=:
56676     for f in $ac_file_in; do
56677       case $f in
56678       -) echo $tmp/stdin ;;
56679       [\\/$]*)
56680          # Absolute (can't be DOS-style, as IFS=:)
56681          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
56682 echo "$as_me: error: cannot find input file: $f" >&2;}
56683    { (exit 1); exit 1; }; }
56684          # Do quote $f, to prevent DOS paths from being IFS'd.
56685          echo "$f";;
56686       *) # Relative
56687          if test -f "$f"; then
56688            # Build tree
56689            echo "$f"
56690          elif test -f "$srcdir/$f"; then
56691            # Source tree
56692            echo "$srcdir/$f"
56693          else
56694            # /dev/null tree
56695            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
56696 echo "$as_me: error: cannot find input file: $f" >&2;}
56697    { (exit 1); exit 1; }; }
56698          fi;;
56699       esac
56700     done` || { (exit 1); exit 1; }
56701   # Remove the trailing spaces.
56702   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
56703
56704 _ACEOF
56705
56706 # Transform confdefs.h into two sed scripts, `conftest.defines' and
56707 # `conftest.undefs', that substitutes the proper values into
56708 # config.h.in to produce config.h.  The first handles `#define'
56709 # templates, and the second `#undef' templates.
56710 # And first: Protect against being on the right side of a sed subst in
56711 # config.status.  Protect against being in an unquoted here document
56712 # in config.status.
56713 rm -f conftest.defines conftest.undefs
56714 # Using a here document instead of a string reduces the quoting nightmare.
56715 # Putting comments in sed scripts is not portable.
56716 #
56717 # `end' is used to avoid that the second main sed command (meant for
56718 # 0-ary CPP macros) applies to n-ary macro definitions.
56719 # See the Autoconf documentation for `clear'.
56720 cat >confdef2sed.sed <<\_ACEOF
56721 s/[\\&,]/\\&/g
56722 s,[\\$`],\\&,g
56723 t clear
56724 : clear
56725 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
56726 t end
56727 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
56728 : end
56729 _ACEOF
56730 # If some macros were called several times there might be several times
56731 # the same #defines, which is useless.  Nevertheless, we may not want to
56732 # sort them, since we want the *last* AC-DEFINE to be honored.
56733 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
56734 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
56735 rm -f confdef2sed.sed
56736
56737 # This sed command replaces #undef with comments.  This is necessary, for
56738 # example, in the case of _POSIX_SOURCE, which is predefined and required
56739 # on some systems where configure will not decide to define it.
56740 cat >>conftest.undefs <<\_ACEOF
56741 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
56742 _ACEOF
56743
56744 # Break up conftest.defines because some shells have a limit on the size
56745 # of here documents, and old seds have small limits too (100 cmds).
56746 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
56747 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
56748 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
56749 echo '  :' >>$CONFIG_STATUS
56750 rm -f conftest.tail
56751 while grep . conftest.defines >/dev/null
56752 do
56753   # Write a limited-size here document to $tmp/defines.sed.
56754   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
56755   # Speed up: don't consider the non `#define' lines.
56756   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
56757   # Work around the forget-to-reset-the-flag bug.
56758   echo 't clr' >>$CONFIG_STATUS
56759   echo ': clr' >>$CONFIG_STATUS
56760   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
56761   echo 'CEOF
56762   sed -f $tmp/defines.sed $tmp/in >$tmp/out
56763   rm -f $tmp/in
56764   mv $tmp/out $tmp/in
56765 ' >>$CONFIG_STATUS
56766   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
56767   rm -f conftest.defines
56768   mv conftest.tail conftest.defines
56769 done
56770 rm -f conftest.defines
56771 echo '  fi # grep' >>$CONFIG_STATUS
56772 echo >>$CONFIG_STATUS
56773
56774 # Break up conftest.undefs because some shells have a limit on the size
56775 # of here documents, and old seds have small limits too (100 cmds).
56776 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
56777 rm -f conftest.tail
56778 while grep . conftest.undefs >/dev/null
56779 do
56780   # Write a limited-size here document to $tmp/undefs.sed.
56781   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
56782   # Speed up: don't consider the non `#undef'
56783   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
56784   # Work around the forget-to-reset-the-flag bug.
56785   echo 't clr' >>$CONFIG_STATUS
56786   echo ': clr' >>$CONFIG_STATUS
56787   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
56788   echo 'CEOF
56789   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
56790   rm -f $tmp/in
56791   mv $tmp/out $tmp/in
56792 ' >>$CONFIG_STATUS
56793   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
56794   rm -f conftest.undefs
56795   mv conftest.tail conftest.undefs
56796 done
56797 rm -f conftest.undefs
56798
56799 cat >>$CONFIG_STATUS <<\_ACEOF
56800   # Let's still pretend it is `configure' which instantiates (i.e., don't
56801   # use $as_me), people would be surprised to read:
56802   #    /* config.h.  Generated by config.status.  */
56803   if test x"$ac_file" = x-; then
56804     echo "/* Generated by configure.  */" >$tmp/config.h
56805   else
56806     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
56807   fi
56808   cat $tmp/in >>$tmp/config.h
56809   rm -f $tmp/in
56810   if test x"$ac_file" != x-; then
56811     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
56812       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
56813 echo "$as_me: $ac_file is unchanged" >&6;}
56814     else
56815       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
56816 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56817          X"$ac_file" : 'X\(//\)[^/]' \| \
56818          X"$ac_file" : 'X\(//\)$' \| \
56819          X"$ac_file" : 'X\(/\)' \| \
56820          .     : '\(.\)' 2>/dev/null ||
56821 echo X"$ac_file" |
56822     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56823           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56824           /^X\(\/\/\)$/{ s//\1/; q; }
56825           /^X\(\/\).*/{ s//\1/; q; }
56826           s/.*/./; q'`
56827       { if $as_mkdir_p; then
56828     mkdir -p "$ac_dir"
56829   else
56830     as_dir="$ac_dir"
56831     as_dirs=
56832     while test ! -d "$as_dir"; do
56833       as_dirs="$as_dir $as_dirs"
56834       as_dir=`(dirname "$as_dir") 2>/dev/null ||
56835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56836          X"$as_dir" : 'X\(//\)[^/]' \| \
56837          X"$as_dir" : 'X\(//\)$' \| \
56838          X"$as_dir" : 'X\(/\)' \| \
56839          .     : '\(.\)' 2>/dev/null ||
56840 echo X"$as_dir" |
56841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56842           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56843           /^X\(\/\/\)$/{ s//\1/; q; }
56844           /^X\(\/\).*/{ s//\1/; q; }
56845           s/.*/./; q'`
56846     done
56847     test ! -n "$as_dirs" || mkdir $as_dirs
56848   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
56849 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
56850    { (exit 1); exit 1; }; }; }
56851
56852       rm -f $ac_file
56853       mv $tmp/config.h $ac_file
56854     fi
56855   else
56856     cat $tmp/config.h
56857     rm -f $tmp/config.h
56858   fi
56859 # Compute $ac_file's index in $config_headers.
56860 _am_stamp_count=1
56861 for _am_header in $config_headers :; do
56862   case $_am_header in
56863     $ac_file | $ac_file:* )
56864       break ;;
56865     * )
56866       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
56867   esac
56868 done
56869 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
56870 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56871          X$ac_file : 'X\(//\)[^/]' \| \
56872          X$ac_file : 'X\(//\)$' \| \
56873          X$ac_file : 'X\(/\)' \| \
56874          .     : '\(.\)' 2>/dev/null ||
56875 echo X$ac_file |
56876     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56877           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56878           /^X\(\/\/\)$/{ s//\1/; q; }
56879           /^X\(\/\).*/{ s//\1/; q; }
56880           s/.*/./; q'`/stamp-h$_am_stamp_count
56881 done
56882 _ACEOF
56883 cat >>$CONFIG_STATUS <<\_ACEOF
56884
56885 #
56886 # CONFIG_COMMANDS section.
56887 #
56888 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
56889   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
56890   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
56891   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
56892 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56893          X"$ac_dest" : 'X\(//\)[^/]' \| \
56894          X"$ac_dest" : 'X\(//\)$' \| \
56895          X"$ac_dest" : 'X\(/\)' \| \
56896          .     : '\(.\)' 2>/dev/null ||
56897 echo X"$ac_dest" |
56898     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56899           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56900           /^X\(\/\/\)$/{ s//\1/; q; }
56901           /^X\(\/\).*/{ s//\1/; q; }
56902           s/.*/./; q'`
56903   { if $as_mkdir_p; then
56904     mkdir -p "$ac_dir"
56905   else
56906     as_dir="$ac_dir"
56907     as_dirs=
56908     while test ! -d "$as_dir"; do
56909       as_dirs="$as_dir $as_dirs"
56910       as_dir=`(dirname "$as_dir") 2>/dev/null ||
56911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56912          X"$as_dir" : 'X\(//\)[^/]' \| \
56913          X"$as_dir" : 'X\(//\)$' \| \
56914          X"$as_dir" : 'X\(/\)' \| \
56915          .     : '\(.\)' 2>/dev/null ||
56916 echo X"$as_dir" |
56917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56918           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56919           /^X\(\/\/\)$/{ s//\1/; q; }
56920           /^X\(\/\).*/{ s//\1/; q; }
56921           s/.*/./; q'`
56922     done
56923     test ! -n "$as_dirs" || mkdir $as_dirs
56924   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
56925 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
56926    { (exit 1); exit 1; }; }; }
56927
56928   ac_builddir=.
56929
56930 if test "$ac_dir" != .; then
56931   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
56932   # A "../" for each directory in $ac_dir_suffix.
56933   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
56934 else
56935   ac_dir_suffix= ac_top_builddir=
56936 fi
56937
56938 case $srcdir in
56939   .)  # No --srcdir option.  We are building in place.
56940     ac_srcdir=.
56941     if test -z "$ac_top_builddir"; then
56942        ac_top_srcdir=.
56943     else
56944        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
56945     fi ;;
56946   [\\/]* | ?:[\\/]* )  # Absolute path.
56947     ac_srcdir=$srcdir$ac_dir_suffix;
56948     ac_top_srcdir=$srcdir ;;
56949   *) # Relative path.
56950     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
56951     ac_top_srcdir=$ac_top_builddir$srcdir ;;
56952 esac
56953
56954 # Do not use `cd foo && pwd` to compute absolute paths, because
56955 # the directories may not exist.
56956 case `pwd` in
56957 .) ac_abs_builddir="$ac_dir";;
56958 *)
56959   case "$ac_dir" in
56960   .) ac_abs_builddir=`pwd`;;
56961   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
56962   *) ac_abs_builddir=`pwd`/"$ac_dir";;
56963   esac;;
56964 esac
56965 case $ac_abs_builddir in
56966 .) ac_abs_top_builddir=${ac_top_builddir}.;;
56967 *)
56968   case ${ac_top_builddir}. in
56969   .) ac_abs_top_builddir=$ac_abs_builddir;;
56970   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
56971   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
56972   esac;;
56973 esac
56974 case $ac_abs_builddir in
56975 .) ac_abs_srcdir=$ac_srcdir;;
56976 *)
56977   case $ac_srcdir in
56978   .) ac_abs_srcdir=$ac_abs_builddir;;
56979   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
56980   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
56981   esac;;
56982 esac
56983 case $ac_abs_builddir in
56984 .) ac_abs_top_srcdir=$ac_top_srcdir;;
56985 *)
56986   case $ac_top_srcdir in
56987   .) ac_abs_top_srcdir=$ac_abs_builddir;;
56988   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
56989   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
56990   esac;;
56991 esac
56992
56993
56994   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
56995 echo "$as_me: executing $ac_dest commands" >&6;}
56996   case $ac_dest in
56997     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
56998   # Strip MF so we end up with the name of the file.
56999   mf=`echo "$mf" | sed -e 's/:.*$//'`
57000   # Check whether this is an Automake generated Makefile or not.
57001   # We used to match only the files named `Makefile.in', but
57002   # some people rename them; so instead we look at the file content.
57003   # Grep'ing the first line is not enough: some people post-process
57004   # each Makefile.in and add a new line on top of each file to say so.
57005   # So let's grep whole file.
57006   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
57007     dirpart=`(dirname "$mf") 2>/dev/null ||
57008 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57009          X"$mf" : 'X\(//\)[^/]' \| \
57010          X"$mf" : 'X\(//\)$' \| \
57011          X"$mf" : 'X\(/\)' \| \
57012          .     : '\(.\)' 2>/dev/null ||
57013 echo X"$mf" |
57014     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57015           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57016           /^X\(\/\/\)$/{ s//\1/; q; }
57017           /^X\(\/\).*/{ s//\1/; q; }
57018           s/.*/./; q'`
57019   else
57020     continue
57021   fi
57022   # Extract the definition of DEPDIR, am__include, and am__quote
57023   # from the Makefile without running `make'.
57024   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
57025   test -z "$DEPDIR" && continue
57026   am__include=`sed -n 's/^am__include = //p' < "$mf"`
57027   test -z "am__include" && continue
57028   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
57029   # When using ansi2knr, U may be empty or an underscore; expand it
57030   U=`sed -n 's/^U = //p' < "$mf"`
57031   # Find all dependency output files, they are included files with
57032   # $(DEPDIR) in their names.  We invoke sed twice because it is the
57033   # simplest approach to changing $(DEPDIR) to its actual value in the
57034   # expansion.
57035   for file in `sed -n "
57036     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
57037        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
57038     # Make sure the directory exists.
57039     test -f "$dirpart/$file" && continue
57040     fdir=`(dirname "$file") 2>/dev/null ||
57041 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57042          X"$file" : 'X\(//\)[^/]' \| \
57043          X"$file" : 'X\(//\)$' \| \
57044          X"$file" : 'X\(/\)' \| \
57045          .     : '\(.\)' 2>/dev/null ||
57046 echo X"$file" |
57047     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57048           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57049           /^X\(\/\/\)$/{ s//\1/; q; }
57050           /^X\(\/\).*/{ s//\1/; q; }
57051           s/.*/./; q'`
57052     { if $as_mkdir_p; then
57053     mkdir -p $dirpart/$fdir
57054   else
57055     as_dir=$dirpart/$fdir
57056     as_dirs=
57057     while test ! -d "$as_dir"; do
57058       as_dirs="$as_dir $as_dirs"
57059       as_dir=`(dirname "$as_dir") 2>/dev/null ||
57060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57061          X"$as_dir" : 'X\(//\)[^/]' \| \
57062          X"$as_dir" : 'X\(//\)$' \| \
57063          X"$as_dir" : 'X\(/\)' \| \
57064          .     : '\(.\)' 2>/dev/null ||
57065 echo X"$as_dir" |
57066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57067           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57068           /^X\(\/\/\)$/{ s//\1/; q; }
57069           /^X\(\/\).*/{ s//\1/; q; }
57070           s/.*/./; q'`
57071     done
57072     test ! -n "$as_dirs" || mkdir $as_dirs
57073   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
57074 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
57075    { (exit 1); exit 1; }; }; }
57076
57077     # echo "creating $dirpart/$file"
57078     echo '# dummy' > "$dirpart/$file"
57079   done
57080 done
57081  ;;
57082     $ac_stdint_h )
57083 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
57084 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
57085 ac_stdint=$tmp/_stdint.h
57086
57087 echo "#ifndef" $_ac_stdint_h >$ac_stdint
57088 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
57089 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
57090 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
57091 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
57092 if test "_$ac_cv_header_stdint_t" != "_" ; then
57093 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
57094 echo "#include <stdint.h>" >>$ac_stdint
57095 echo "#endif" >>$ac_stdint
57096 echo "#endif" >>$ac_stdint
57097 else
57098
57099 cat >>$ac_stdint <<STDINT_EOF
57100
57101 /* ................... shortcircuit part ........................... */
57102
57103 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
57104 #include <stdint.h>
57105 #else
57106 #include <stddef.h>
57107
57108 /* .................... configured part ............................ */
57109
57110 STDINT_EOF
57111
57112 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
57113 if test "_$ac_cv_header_stdint_x" != "_" ; then
57114   ac_header="$ac_cv_header_stdint_x"
57115   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
57116 else
57117   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
57118 fi
57119
57120 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
57121 if  test "_$ac_cv_header_stdint_o" != "_" ; then
57122   ac_header="$ac_cv_header_stdint_o"
57123   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
57124 else
57125   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
57126 fi
57127
57128 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
57129 if  test "_$ac_cv_header_stdint_u" != "_" ; then
57130   ac_header="$ac_cv_header_stdint_u"
57131   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
57132 else
57133   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
57134 fi
57135
57136 echo "" >>$ac_stdint
57137
57138 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
57139   echo "#include <$ac_header>" >>$ac_stdint
57140   echo "" >>$ac_stdint
57141 fi fi
57142
57143 echo "/* which 64bit typedef has been found */" >>$ac_stdint
57144 if test "$ac_cv_type_uint64_t" = "yes" ; then
57145 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
57146 else
57147 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
57148 fi
57149 if test "$ac_cv_type_u_int64_t" = "yes" ; then
57150 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
57151 else
57152 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
57153 fi
57154 echo "" >>$ac_stdint
57155
57156 echo "/* which type model has been detected */" >>$ac_stdint
57157 if test "_$ac_cv_char_data_model" != "_" ; then
57158 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
57159 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
57160 else
57161 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
57162 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
57163 fi
57164 echo "" >>$ac_stdint
57165
57166 echo "/* whether int_least types were detected */" >>$ac_stdint
57167 if test "$ac_cv_type_int_least32_t" = "yes"; then
57168 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
57169 else
57170 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
57171 fi
57172 echo "/* whether int_fast types were detected */" >>$ac_stdint
57173 if test "$ac_cv_type_int_fast32_t" = "yes"; then
57174 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
57175 else
57176 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
57177 fi
57178 echo "/* whether intmax_t type was detected */" >>$ac_stdint
57179 if test "$ac_cv_type_intmax_t" = "yes"; then
57180 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
57181 else
57182 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
57183 fi
57184 echo "" >>$ac_stdint
57185
57186   cat >>$ac_stdint <<STDINT_EOF
57187 /* .................... detections part ............................ */
57188
57189 /* whether we need to define bitspecific types from compiler base types */
57190 #ifndef _STDINT_HEADER_INTPTR
57191 #ifndef _STDINT_HEADER_UINT32
57192 #ifndef _STDINT_HEADER_U_INT32
57193 #define _STDINT_NEED_INT_MODEL_T
57194 #else
57195 #define _STDINT_HAVE_U_INT_TYPES
57196 #endif
57197 #endif
57198 #endif
57199
57200 #ifdef _STDINT_HAVE_U_INT_TYPES
57201 #undef _STDINT_NEED_INT_MODEL_T
57202 #endif
57203
57204 #ifdef  _STDINT_CHAR_MODEL
57205 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
57206 #ifndef _STDINT_BYTE_MODEL
57207 #define _STDINT_BYTE_MODEL 12
57208 #endif
57209 #endif
57210 #endif
57211
57212 #ifndef _STDINT_HAVE_INT_LEAST32_T
57213 #define _STDINT_NEED_INT_LEAST_T
57214 #endif
57215
57216 #ifndef _STDINT_HAVE_INT_FAST32_T
57217 #define _STDINT_NEED_INT_FAST_T
57218 #endif
57219
57220 #ifndef _STDINT_HEADER_INTPTR
57221 #define _STDINT_NEED_INTPTR_T
57222 #ifndef _STDINT_HAVE_INTMAX_T
57223 #define _STDINT_NEED_INTMAX_T
57224 #endif
57225 #endif
57226
57227
57228 /* .................... definition part ............................ */
57229
57230 /* some system headers have good uint64_t */
57231 #ifndef _HAVE_UINT64_T
57232 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
57233 #define _HAVE_UINT64_T
57234 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
57235 #define _HAVE_UINT64_T
57236 typedef u_int64_t uint64_t;
57237 #endif
57238 #endif
57239
57240 #ifndef _HAVE_UINT64_T
57241 /* .. here are some common heuristics using compiler runtime specifics */
57242 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
57243 #define _HAVE_UINT64_T
57244 #define _HAVE_LONGLONG_UINT64_T
57245 typedef long long int64_t;
57246 typedef unsigned long long uint64_t;
57247
57248 #elif !defined __STRICT_ANSI__
57249 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
57250 #define _HAVE_UINT64_T
57251 typedef __int64 int64_t;
57252 typedef unsigned __int64 uint64_t;
57253
57254 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
57255 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
57256 #if !defined _NO_LONGLONG
57257 #define _HAVE_UINT64_T
57258 #define _HAVE_LONGLONG_UINT64_T
57259 typedef long long int64_t;
57260 typedef unsigned long long uint64_t;
57261 #endif
57262
57263 #elif defined __alpha || (defined __mips && defined _ABIN32)
57264 #if !defined _NO_LONGLONG
57265 #define _HAVE_UINT64_T
57266 typedef long int64_t;
57267 typedef unsigned long uint64_t;
57268 #endif
57269   /* compiler/cpu type to define int64_t */
57270 #endif
57271 #endif
57272 #endif
57273
57274 #if defined _STDINT_HAVE_U_INT_TYPES
57275 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
57276 typedef u_int8_t uint8_t;
57277 typedef u_int16_t uint16_t;
57278 typedef u_int32_t uint32_t;
57279
57280 /* glibc compatibility */
57281 #ifndef __int8_t_defined
57282 #define __int8_t_defined
57283 #endif
57284 #endif
57285
57286 #ifdef _STDINT_NEED_INT_MODEL_T
57287 /* we must guess all the basic types. Apart from byte-adressable system, */
57288 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
57289 /* (btw, those nibble-addressable systems are way off, or so we assume) */
57290
57291
57292 #if defined _STDINT_BYTE_MODEL
57293 #if _STDINT_LONG_MODEL+0 == 242
57294 /* 2:4:2 =  IP16 = a normal 16-bit system                */
57295 typedef unsigned char   uint8_t;
57296 typedef unsigned short  uint16_t;
57297 typedef unsigned long   uint32_t;
57298 #ifndef __int8_t_defined
57299 #define __int8_t_defined
57300 typedef          char    int8_t;
57301 typedef          short   int16_t;
57302 typedef          long    int32_t;
57303 #endif
57304 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
57305 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
57306 /* 4:4:4 = ILP32 = a normal 32-bit system                */
57307 typedef unsigned char   uint8_t;
57308 typedef unsigned short  uint16_t;
57309 typedef unsigned int    uint32_t;
57310 #ifndef __int8_t_defined
57311 #define __int8_t_defined
57312 typedef          char    int8_t;
57313 typedef          short   int16_t;
57314 typedef          int     int32_t;
57315 #endif
57316 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
57317 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
57318 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
57319 typedef unsigned char   uint8_t;
57320 typedef unsigned short  uint16_t;
57321 typedef unsigned int    uint32_t;
57322 #ifndef __int8_t_defined
57323 #define __int8_t_defined
57324 typedef          char    int8_t;
57325 typedef          short   int16_t;
57326 typedef          int     int32_t;
57327 #endif
57328 /* this system has a "long" of 64bit */
57329 #ifndef _HAVE_UINT64_T
57330 #define _HAVE_UINT64_T
57331 typedef unsigned long   uint64_t;
57332 typedef          long    int64_t;
57333 #endif
57334 #elif _STDINT_LONG_MODEL+0 == 448
57335 /*      LLP64   a 64-bit system derived from a 32-bit system */
57336 typedef unsigned char   uint8_t;
57337 typedef unsigned short  uint16_t;
57338 typedef unsigned int    uint32_t;
57339 #ifndef __int8_t_defined
57340 #define __int8_t_defined
57341 typedef          char    int8_t;
57342 typedef          short   int16_t;
57343 typedef          int     int32_t;
57344 #endif
57345 /* assuming the system has a "long long" */
57346 #ifndef _HAVE_UINT64_T
57347 #define _HAVE_UINT64_T
57348 #define _HAVE_LONGLONG_UINT64_T
57349 typedef unsigned long long uint64_t;
57350 typedef          long long  int64_t;
57351 #endif
57352 #else
57353 #define _STDINT_NO_INT32_T
57354 #endif
57355 #else
57356 #define _STDINT_NO_INT8_T
57357 #define _STDINT_NO_INT32_T
57358 #endif
57359 #endif
57360
57361 /*
57362  * quote from SunOS-5.8 sys/inttypes.h:
57363  * Use at your own risk.  As of February 1996, the committee is squarely
57364  * behind the fixed sized types; the "least" and "fast" types are still being
57365  * discussed.  The probability that the "fast" types may be removed before
57366  * the standard is finalized is high enough that they are not currently
57367  * implemented.
57368  */
57369
57370 #if defined _STDINT_NEED_INT_LEAST_T
57371 typedef  int8_t    int_least8_t;
57372 typedef  int16_t   int_least16_t;
57373 typedef  int32_t   int_least32_t;
57374 #ifdef _HAVE_UINT64_T
57375 typedef  int64_t   int_least64_t;
57376 #endif
57377
57378 typedef uint8_t   uint_least8_t;
57379 typedef uint16_t  uint_least16_t;
57380 typedef uint32_t  uint_least32_t;
57381 #ifdef _HAVE_UINT64_T
57382 typedef uint64_t  uint_least64_t;
57383 #endif
57384   /* least types */
57385 #endif
57386
57387 #if defined _STDINT_NEED_INT_FAST_T
57388 typedef  int8_t    int_fast8_t;
57389 typedef  int       int_fast16_t;
57390 typedef  int32_t   int_fast32_t;
57391 #ifdef _HAVE_UINT64_T
57392 typedef  int64_t   int_fast64_t;
57393 #endif
57394
57395 typedef uint8_t   uint_fast8_t;
57396 typedef unsigned  uint_fast16_t;
57397 typedef uint32_t  uint_fast32_t;
57398 #ifdef _HAVE_UINT64_T
57399 typedef uint64_t  uint_fast64_t;
57400 #endif
57401   /* fast types */
57402 #endif
57403
57404 #ifdef _STDINT_NEED_INTMAX_T
57405 #ifdef _HAVE_UINT64_T
57406 typedef  int64_t       intmax_t;
57407 typedef uint64_t      uintmax_t;
57408 #else
57409 typedef          long  intmax_t;
57410 typedef unsigned long uintmax_t;
57411 #endif
57412 #endif
57413
57414 #ifdef _STDINT_NEED_INTPTR_T
57415 #ifndef __intptr_t_defined
57416 #define __intptr_t_defined
57417 /* we encourage using "long" to store pointer values, never use "int" ! */
57418 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
57419 typedef  unsinged int   uintptr_t;
57420 typedef           int    intptr_t;
57421 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
57422 typedef  unsigned long  uintptr_t;
57423 typedef           long   intptr_t;
57424 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
57425 typedef        uint64_t uintptr_t;
57426 typedef         int64_t  intptr_t;
57427 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
57428 typedef  unsigned long  uintptr_t;
57429 typedef           long   intptr_t;
57430 #endif
57431 #endif
57432 #endif
57433
57434 /* The ISO C99 standard specifies that in C++ implementations these
57435    should only be defined if explicitly requested.  */
57436 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
57437 #ifndef UINT32_C
57438
57439 /* Signed.  */
57440 # define INT8_C(c)      c
57441 # define INT16_C(c)     c
57442 # define INT32_C(c)     c
57443 # ifdef _HAVE_LONGLONG_UINT64_T
57444 #  define INT64_C(c)    c ## L
57445 # else
57446 #  define INT64_C(c)    c ## LL
57447 # endif
57448
57449 /* Unsigned.  */
57450 # define UINT8_C(c)     c ## U
57451 # define UINT16_C(c)    c ## U
57452 # define UINT32_C(c)    c ## U
57453 # ifdef _HAVE_LONGLONG_UINT64_T
57454 #  define UINT64_C(c)   c ## UL
57455 # else
57456 #  define UINT64_C(c)   c ## ULL
57457 # endif
57458
57459 /* Maximal type.  */
57460 # ifdef _HAVE_LONGLONG_UINT64_T
57461 #  define INTMAX_C(c)   c ## L
57462 #  define UINTMAX_C(c)  c ## UL
57463 # else
57464 #  define INTMAX_C(c)   c ## LL
57465 #  define UINTMAX_C(c)  c ## ULL
57466 # endif
57467
57468   /* literalnumbers */
57469 #endif
57470 #endif
57471
57472 /* These limits are merily those of a two complement byte-oriented system */
57473
57474 /* Minimum of signed integral types.  */
57475 # define INT8_MIN               (-128)
57476 # define INT16_MIN              (-32767-1)
57477 # define INT32_MIN              (-2147483647-1)
57478 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
57479 /* Maximum of signed integral types.  */
57480 # define INT8_MAX               (127)
57481 # define INT16_MAX              (32767)
57482 # define INT32_MAX              (2147483647)
57483 # define INT64_MAX              (__INT64_C(9223372036854775807))
57484
57485 /* Maximum of unsigned integral types.  */
57486 # define UINT8_MAX              (255)
57487 # define UINT16_MAX             (65535)
57488 # define UINT32_MAX             (4294967295U)
57489 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
57490
57491 /* Minimum of signed integral types having a minimum size.  */
57492 # define INT_LEAST8_MIN         INT8_MIN
57493 # define INT_LEAST16_MIN        INT16_MIN
57494 # define INT_LEAST32_MIN        INT32_MIN
57495 # define INT_LEAST64_MIN        INT64_MIN
57496 /* Maximum of signed integral types having a minimum size.  */
57497 # define INT_LEAST8_MAX         INT8_MAX
57498 # define INT_LEAST16_MAX        INT16_MAX
57499 # define INT_LEAST32_MAX        INT32_MAX
57500 # define INT_LEAST64_MAX        INT64_MAX
57501
57502 /* Maximum of unsigned integral types having a minimum size.  */
57503 # define UINT_LEAST8_MAX        UINT8_MAX
57504 # define UINT_LEAST16_MAX       UINT16_MAX
57505 # define UINT_LEAST32_MAX       UINT32_MAX
57506 # define UINT_LEAST64_MAX       UINT64_MAX
57507
57508   /* shortcircuit*/
57509 #endif
57510   /* once */
57511 #endif
57512 #endif
57513 STDINT_EOF
57514 fi
57515     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
57516       { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
57517 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
57518     else
57519       ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
57520 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57521          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
57522          X"$ac_stdint_h" : 'X\(//\)$' \| \
57523          X"$ac_stdint_h" : 'X\(/\)' \| \
57524          .     : '\(.\)' 2>/dev/null ||
57525 echo X"$ac_stdint_h" |
57526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57527           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57528           /^X\(\/\/\)$/{ s//\1/; q; }
57529           /^X\(\/\).*/{ s//\1/; q; }
57530           s/.*/./; q'`
57531       { if $as_mkdir_p; then
57532     mkdir -p "$ac_dir"
57533   else
57534     as_dir="$ac_dir"
57535     as_dirs=
57536     while test ! -d "$as_dir"; do
57537       as_dirs="$as_dir $as_dirs"
57538       as_dir=`(dirname "$as_dir") 2>/dev/null ||
57539 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57540          X"$as_dir" : 'X\(//\)[^/]' \| \
57541          X"$as_dir" : 'X\(//\)$' \| \
57542          X"$as_dir" : 'X\(/\)' \| \
57543          .     : '\(.\)' 2>/dev/null ||
57544 echo X"$as_dir" |
57545     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57546           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57547           /^X\(\/\/\)$/{ s//\1/; q; }
57548           /^X\(\/\).*/{ s//\1/; q; }
57549           s/.*/./; q'`
57550     done
57551     test ! -n "$as_dirs" || mkdir $as_dirs
57552   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
57553 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
57554    { (exit 1); exit 1; }; }; }
57555
57556       rm -f $ac_stdint_h
57557       mv $ac_stdint $ac_stdint_h
57558     fi
57559  ;;
57560   esac
57561 done
57562 _ACEOF
57563
57564 cat >>$CONFIG_STATUS <<\_ACEOF
57565
57566 { (exit 0); exit 0; }
57567 _ACEOF
57568 chmod +x $CONFIG_STATUS
57569 ac_clean_files=$ac_clean_files_save
57570
57571
57572 # configure is writing to config.log, and then calls config.status.
57573 # config.status does its own redirection, appending to config.log.
57574 # Unfortunately, on DOS this fails, as config.log is still kept open
57575 # by configure, so config.status won't be able to write to it; its
57576 # output is simply discarded.  So we exec the FD to /dev/null,
57577 # effectively closing config.log, so it can be properly (re)opened and
57578 # appended to by config.status.  When coming back to configure, we
57579 # need to make the FD available again.
57580 if test "$no_create" != yes; then
57581   ac_cs_success=:
57582   ac_config_status_args=
57583   test "$silent" = yes &&
57584     ac_config_status_args="$ac_config_status_args --quiet"
57585   exec 5>/dev/null
57586   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
57587   exec 5>>config.log
57588   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
57589   # would make configure fail if this is the last instruction.
57590   $ac_cs_success || { (exit 1); exit 1; }
57591 fi
57592