Imported Upstream version 2.4.4p3
[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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot SNAPSHOT_STAMP VERSION_MAJOR VERSION_MINOR VERSION_PATCH VERSION_COMMENT VERSION_SUFFIX 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 MAXTAPEBLOCKSIZE AMANDA_TMPDIR AMANDA_DBGDIR AMANDA_DEBUG_DAYS SERVICE_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 MT_FILE_FLAG CPP EGREP AR AWK_VAR_ASSIGNMENT_OPT YACC CAT COMPRESS DD GETCONF GNUPLOT GREP 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 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 LTLIBOBJS LTALLOCA'
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   --enable-shared[=PKGS]
1030                           build shared libraries [default=yes]
1031   --enable-static[=PKGS]
1032                           build static libraries [default=yes]
1033   --enable-fast-install[=PKGS]
1034                           optimize for fast installation [default=yes]
1035   --disable-libtool-lock  avoid locking (might break parallel builds)
1036
1037 Optional Packages:
1038   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1039   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1040   --with-includes=DIR    site header files for readline, etc in DIR
1041   --with-libraries=DIR   site library directories for readline, etc in DIR
1042   --with-configdir=DIR   runtime config files in DIR sysconfdir/amanda
1043   --with-indexdir        deprecated, use indexdir in amanda.conf
1044   --with-dbdir           deprecated, use infofile in amanda.conf
1045   --with-logdir          deprecated, use logfile in amanda.conf
1046   --with-suffixes        install binaries with version string appended to name
1047   --with-client-only     deprecated, use --without-server
1048   --with-server-only     deprecated, use --without-client
1049   --without-client       do not build client stuff
1050   --without-server       do not build server stuff (set --without-restore)
1051   --without-restore      do not build amrestore nor amidxtaped
1052   --without-amrecover    do not build amrecover
1053   --with-index-server=HOST default amanda index server `uname -n`
1054   --without-force-uid    do not force the uid to --with-user
1055   --with-user=USER       force execution to USER on client systems required
1056   --with-group=GROUP     group allowed to execute setuid-root programs required
1057   --with-owner=USER       force ownership of files to USER default == --with-user value
1058   --with-rundump         use rundump (setuid-root) to invoke dump
1059   --with-config=CONFIG   default configuration DailySet1
1060   --with-tape-server=HOST default restoring tape server is HOST same as --with-index-server
1061   --with-tape-device=ARG restoring tape server HOST's no rewinding tape drive
1062   --with-ftape-rawdevice=ARG raw device on tape server HOST's if using Linux ftape >=3.04d
1063   --with-rew-tape        deprecated, use --with-tape-device
1064   --with-norew-tape=ARG  deprecated, use --with-tape-device
1065   --with-changer-device=ARG default tape changer device /dev/ch0 if it exists
1066   --with-fqdn            use FQDN's to backup multiple networks
1067   --with-broken-fsf      only enable if tape fsf calls fail mid-file
1068   --with-gnutar=PROG     use PROG as GNU tar executable default: looks for one
1069    --with-qde                use quick-and-dirty estimates for gnutar
1070   --with-smbclient=PROG   use PROG as Samba's smbclient executable default: looks for one
1071   --with-samba-user was deprecated
1072   --with-gnutar-listdir=DIR  gnutar directory lists go in DIR localstatedir/amanda/gnutar-lists
1073   --with-gnutar-listed-incremental was deprecated, use --with-gnutar-listdir
1074   --without-bsd-security do not use BSD rsh/rlogin style security
1075   --without-amandahosts  use .rhosts instead of .amandahosts
1076   --with-krb4-security=DIR   Location of Kerberos software /usr/kerberos /usr/cygnus /usr /opt/kerberos
1077     --with-server-principal=ARG    server host principal  "amanda"
1078     --with-server-instance=ARG     server host instance   "amanda"
1079     --with-server-keyfile=ARG      server host key file   "/.amanda"
1080     --with-client-principal=ARG    client host principal  "rcmd"
1081     --with-client-instance=ARG     client host instance   HOSTNAME_INSTANCE
1082     --with-client-keyfile=ARG      client host key file   KEYFILE
1083     --with-ticket-lifetime=ARG     ticket lifetime        128
1084   --with-portrange=low,high     bind unreserved TCP server sockets to ports within this range unlimited
1085   --with-tcpportrange=low,high  bind unreserved TCP server sockets to ports within this range unlimited
1086   --with-udpportrange=low,high  bind reserved UDP server sockets to ports within this range unlimited
1087   --with-maxtapeblocksize=kb            Maximum size of a tape block
1088   --with-db={text,db,dbm,gdbm,ndbm} use the selected database format text
1089   --with-mmap            force use of mmap instead of shared memory support
1090   --with-buffered-dump   buffer the dumping sockets on the server for speed
1091   --with-assertions      compile assertions into code
1092   --with-tmpdir=/temp/dir area Amanda can use for temp files /tmp/amanda
1093   --without-debugging=/debug/dir do not record runtime debugging information in specified directory --with-tmpdir
1094   --with-debug-days=NN    number of days to keep debugging files default=4
1095   --with-testing=suffix use alternate service names
1096   --with-dump-honor-nodump  if dump supports -h, use it for level0s too
1097   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1098   --with-pic              try to use only PIC/non-PIC objects [default=use
1099                           both]
1100   --with-tags[=TAGS]
1101                           include additional configurations [automatic]
1102
1103 Some influential environment variables:
1104   CC          C compiler command
1105   CFLAGS      C compiler flags
1106   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1107               nonstandard directory <lib dir>
1108   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1109               headers in a nonstandard directory <include dir>
1110   CPP         C preprocessor
1111   CXX         C++ compiler command
1112   CXXFLAGS    C++ compiler flags
1113   CXXCPP      C++ preprocessor
1114   F77         Fortran 77 compiler command
1115   FFLAGS      Fortran 77 compiler flags
1116
1117 Use these variables to override the choices made by `configure' or to help
1118 it to find libraries and programs with nonstandard names/locations.
1119
1120 _ACEOF
1121 fi
1122
1123 if test "$ac_init_help" = "recursive"; then
1124   # If there are subdirs, report their specific --help.
1125   ac_popdir=`pwd`
1126   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1127     test -d $ac_dir || continue
1128     ac_builddir=.
1129
1130 if test "$ac_dir" != .; then
1131   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1132   # A "../" for each directory in $ac_dir_suffix.
1133   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1134 else
1135   ac_dir_suffix= ac_top_builddir=
1136 fi
1137
1138 case $srcdir in
1139   .)  # No --srcdir option.  We are building in place.
1140     ac_srcdir=.
1141     if test -z "$ac_top_builddir"; then
1142        ac_top_srcdir=.
1143     else
1144        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1145     fi ;;
1146   [\\/]* | ?:[\\/]* )  # Absolute path.
1147     ac_srcdir=$srcdir$ac_dir_suffix;
1148     ac_top_srcdir=$srcdir ;;
1149   *) # Relative path.
1150     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1151     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1152 esac
1153
1154 # Do not use `cd foo && pwd` to compute absolute paths, because
1155 # the directories may not exist.
1156 case `pwd` in
1157 .) ac_abs_builddir="$ac_dir";;
1158 *)
1159   case "$ac_dir" in
1160   .) ac_abs_builddir=`pwd`;;
1161   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1162   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1163   esac;;
1164 esac
1165 case $ac_abs_builddir in
1166 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1167 *)
1168   case ${ac_top_builddir}. in
1169   .) ac_abs_top_builddir=$ac_abs_builddir;;
1170   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1171   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1172   esac;;
1173 esac
1174 case $ac_abs_builddir in
1175 .) ac_abs_srcdir=$ac_srcdir;;
1176 *)
1177   case $ac_srcdir in
1178   .) ac_abs_srcdir=$ac_abs_builddir;;
1179   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1180   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1181   esac;;
1182 esac
1183 case $ac_abs_builddir in
1184 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1185 *)
1186   case $ac_top_srcdir in
1187   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1188   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1189   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1190   esac;;
1191 esac
1192
1193     cd $ac_dir
1194     # Check for guested configure; otherwise get Cygnus style configure.
1195     if test -f $ac_srcdir/configure.gnu; then
1196       echo
1197       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1198     elif test -f $ac_srcdir/configure; then
1199       echo
1200       $SHELL $ac_srcdir/configure  --help=recursive
1201     elif test -f $ac_srcdir/configure.ac ||
1202            test -f $ac_srcdir/configure.in; then
1203       echo
1204       $ac_configure --help
1205     else
1206       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1207     fi
1208     cd $ac_popdir
1209   done
1210 fi
1211
1212 test -n "$ac_init_help" && exit 0
1213 if $ac_init_version; then
1214   cat <<\_ACEOF
1215
1216 Copyright (C) 2003 Free Software Foundation, Inc.
1217 This configure script is free software; the Free Software Foundation
1218 gives unlimited permission to copy, distribute and modify it.
1219 _ACEOF
1220   exit 0
1221 fi
1222 exec 5>config.log
1223 cat >&5 <<_ACEOF
1224 This file contains any messages produced by compilers while
1225 running configure, to aid debugging if configure makes a mistake.
1226
1227 It was created by $as_me, which was
1228 generated by GNU Autoconf 2.59.  Invocation command line was
1229
1230   $ $0 $@
1231
1232 _ACEOF
1233 {
1234 cat <<_ASUNAME
1235 ## --------- ##
1236 ## Platform. ##
1237 ## --------- ##
1238
1239 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1240 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1241 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1242 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1243 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1244
1245 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1246 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1247
1248 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1249 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1250 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1251 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1252 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1253 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1254 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1255
1256 _ASUNAME
1257
1258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1259 for as_dir in $PATH
1260 do
1261   IFS=$as_save_IFS
1262   test -z "$as_dir" && as_dir=.
1263   echo "PATH: $as_dir"
1264 done
1265
1266 } >&5
1267
1268 cat >&5 <<_ACEOF
1269
1270
1271 ## ----------- ##
1272 ## Core tests. ##
1273 ## ----------- ##
1274
1275 _ACEOF
1276
1277
1278 # Keep a trace of the command line.
1279 # Strip out --no-create and --no-recursion so they do not pile up.
1280 # Strip out --silent because we don't want to record it for future runs.
1281 # Also quote any args containing shell meta-characters.
1282 # Make two passes to allow for proper duplicate-argument suppression.
1283 ac_configure_args=
1284 ac_configure_args0=
1285 ac_configure_args1=
1286 ac_sep=
1287 ac_must_keep_next=false
1288 for ac_pass in 1 2
1289 do
1290   for ac_arg
1291   do
1292     case $ac_arg in
1293     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1294     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1295     | -silent | --silent | --silen | --sile | --sil)
1296       continue ;;
1297     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1298       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1299     esac
1300     case $ac_pass in
1301     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1302     2)
1303       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1304       if test $ac_must_keep_next = true; then
1305         ac_must_keep_next=false # Got value, back to normal.
1306       else
1307         case $ac_arg in
1308           *=* | --config-cache | -C | -disable-* | --disable-* \
1309           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1310           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1311           | -with-* | --with-* | -without-* | --without-* | --x)
1312             case "$ac_configure_args0 " in
1313               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1314             esac
1315             ;;
1316           -* ) ac_must_keep_next=true ;;
1317         esac
1318       fi
1319       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1320       # Get rid of the leading space.
1321       ac_sep=" "
1322       ;;
1323     esac
1324   done
1325 done
1326 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1327 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1328
1329 # When interrupted or exit'd, cleanup temporary files, and complete
1330 # config.log.  We remove comments because anyway the quotes in there
1331 # would cause problems or look ugly.
1332 # WARNING: Be sure not to use single quotes in there, as some shells,
1333 # such as our DU 5.0 friend, will then `close' the trap.
1334 trap 'exit_status=$?
1335   # Save into config.log some information that might help in debugging.
1336   {
1337     echo
1338
1339     cat <<\_ASBOX
1340 ## ---------------- ##
1341 ## Cache variables. ##
1342 ## ---------------- ##
1343 _ASBOX
1344     echo
1345     # The following way of writing the cache mishandles newlines in values,
1346 {
1347   (set) 2>&1 |
1348     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1349     *ac_space=\ *)
1350       sed -n \
1351         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1352           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1353       ;;
1354     *)
1355       sed -n \
1356         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1357       ;;
1358     esac;
1359 }
1360     echo
1361
1362     cat <<\_ASBOX
1363 ## ----------------- ##
1364 ## Output variables. ##
1365 ## ----------------- ##
1366 _ASBOX
1367     echo
1368     for ac_var in $ac_subst_vars
1369     do
1370       eval ac_val=$`echo $ac_var`
1371       echo "$ac_var='"'"'$ac_val'"'"'"
1372     done | sort
1373     echo
1374
1375     if test -n "$ac_subst_files"; then
1376       cat <<\_ASBOX
1377 ## ------------- ##
1378 ## Output files. ##
1379 ## ------------- ##
1380 _ASBOX
1381       echo
1382       for ac_var in $ac_subst_files
1383       do
1384         eval ac_val=$`echo $ac_var`
1385         echo "$ac_var='"'"'$ac_val'"'"'"
1386       done | sort
1387       echo
1388     fi
1389
1390     if test -s confdefs.h; then
1391       cat <<\_ASBOX
1392 ## ----------- ##
1393 ## confdefs.h. ##
1394 ## ----------- ##
1395 _ASBOX
1396       echo
1397       sed "/^$/d" confdefs.h | sort
1398       echo
1399     fi
1400     test "$ac_signal" != 0 &&
1401       echo "$as_me: caught signal $ac_signal"
1402     echo "$as_me: exit $exit_status"
1403   } >&5
1404   rm -f core *.core &&
1405   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1406     exit $exit_status
1407      ' 0
1408 for ac_signal in 1 2 13 15; do
1409   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1410 done
1411 ac_signal=0
1412
1413 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1414 rm -rf conftest* confdefs.h
1415 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1416 echo >confdefs.h
1417
1418 # Predefined preprocessor variables.
1419
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_NAME "$PACKAGE_NAME"
1422 _ACEOF
1423
1424
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1427 _ACEOF
1428
1429
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1432 _ACEOF
1433
1434
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_STRING "$PACKAGE_STRING"
1437 _ACEOF
1438
1439
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1442 _ACEOF
1443
1444
1445 # Let the site file select an alternate cache file if it wants to.
1446 # Prefer explicitly selected file to automatically selected ones.
1447 if test -z "$CONFIG_SITE"; then
1448   if test "x$prefix" != xNONE; then
1449     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1450   else
1451     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1452   fi
1453 fi
1454 for ac_site_file in $CONFIG_SITE; do
1455   if test -r "$ac_site_file"; then
1456     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1457 echo "$as_me: loading site script $ac_site_file" >&6;}
1458     sed 's/^/| /' "$ac_site_file" >&5
1459     . "$ac_site_file"
1460   fi
1461 done
1462
1463 if test -r "$cache_file"; then
1464   # Some versions of bash will fail to source /dev/null (special
1465   # files actually), so we avoid doing that.
1466   if test -f "$cache_file"; then
1467     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1468 echo "$as_me: loading cache $cache_file" >&6;}
1469     case $cache_file in
1470       [\\/]* | ?:[\\/]* ) . $cache_file;;
1471       *)                      . ./$cache_file;;
1472     esac
1473   fi
1474 else
1475   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1476 echo "$as_me: creating cache $cache_file" >&6;}
1477   >$cache_file
1478 fi
1479
1480 # Check that the precious variables saved in the cache have kept the same
1481 # value.
1482 ac_cache_corrupted=false
1483 for ac_var in `(set) 2>&1 |
1484                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1485   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1486   eval ac_new_set=\$ac_env_${ac_var}_set
1487   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1488   eval ac_new_val="\$ac_env_${ac_var}_value"
1489   case $ac_old_set,$ac_new_set in
1490     set,)
1491       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1492 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1493       ac_cache_corrupted=: ;;
1494     ,set)
1495       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1496 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1497       ac_cache_corrupted=: ;;
1498     ,);;
1499     *)
1500       if test "x$ac_old_val" != "x$ac_new_val"; then
1501         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1502 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1503         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1504 echo "$as_me:   former value:  $ac_old_val" >&2;}
1505         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1506 echo "$as_me:   current value: $ac_new_val" >&2;}
1507         ac_cache_corrupted=:
1508       fi;;
1509   esac
1510   # Pass precious variables to config.status.
1511   if test "$ac_new_set" = set; then
1512     case $ac_new_val in
1513     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1514       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1515     *) ac_arg=$ac_var=$ac_new_val ;;
1516     esac
1517     case " $ac_configure_args " in
1518       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1519       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1520     esac
1521   fi
1522 done
1523 if $ac_cache_corrupted; then
1524   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1525 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1526   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1527 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1528    { (exit 1); exit 1; }; }
1529 fi
1530
1531 ac_ext=c
1532 ac_cpp='$CPP $CPPFLAGS'
1533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556 ac_aux_dir=
1557 for ac_dir in config $srcdir/config; do
1558   if test -f $ac_dir/install-sh; then
1559     ac_aux_dir=$ac_dir
1560     ac_install_sh="$ac_aux_dir/install-sh -c"
1561     break
1562   elif test -f $ac_dir/install.sh; then
1563     ac_aux_dir=$ac_dir
1564     ac_install_sh="$ac_aux_dir/install.sh -c"
1565     break
1566   elif test -f $ac_dir/shtool; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/shtool install -c"
1569     break
1570   fi
1571 done
1572 if test -z "$ac_aux_dir"; then
1573   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1575    { (exit 1); exit 1; }; }
1576 fi
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580
1581 # Make sure we can run config.sub.
1582 $ac_config_sub sun4 >/dev/null 2>&1 ||
1583   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1584 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1585    { (exit 1); exit 1; }; }
1586
1587 echo "$as_me:$LINENO: checking build system type" >&5
1588 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1589 if test "${ac_cv_build+set}" = set; then
1590   echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592   ac_cv_build_alias=$build_alias
1593 test -z "$ac_cv_build_alias" &&
1594   ac_cv_build_alias=`$ac_config_guess`
1595 test -z "$ac_cv_build_alias" &&
1596   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1597 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1598    { (exit 1); exit 1; }; }
1599 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1600   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1601 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1602    { (exit 1); exit 1; }; }
1603
1604 fi
1605 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1606 echo "${ECHO_T}$ac_cv_build" >&6
1607 build=$ac_cv_build
1608 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1609 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1610 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611
1612
1613 echo "$as_me:$LINENO: checking host system type" >&5
1614 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1615 if test "${ac_cv_host+set}" = set; then
1616   echo $ECHO_N "(cached) $ECHO_C" >&6
1617 else
1618   ac_cv_host_alias=$host_alias
1619 test -z "$ac_cv_host_alias" &&
1620   ac_cv_host_alias=$ac_cv_build_alias
1621 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1622   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1623 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1624    { (exit 1); exit 1; }; }
1625
1626 fi
1627 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1628 echo "${ECHO_T}$ac_cv_host" >&6
1629 host=$ac_cv_host
1630 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1631 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1632 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633
1634
1635 echo "$as_me:$LINENO: checking target system type" >&5
1636 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1637 if test "${ac_cv_target+set}" = set; then
1638   echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640   ac_cv_target_alias=$target_alias
1641 test "x$ac_cv_target_alias" = "x" &&
1642   ac_cv_target_alias=$ac_cv_host_alias
1643 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1644   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1645 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1646    { (exit 1); exit 1; }; }
1647
1648 fi
1649 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1650 echo "${ECHO_T}$ac_cv_target" >&6
1651 target=$ac_cv_target
1652 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1653 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1654 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1655
1656
1657 # The aliases save the names the user supplied, while $host etc.
1658 # will get canonicalized.
1659 test -n "$target_alias" &&
1660   test "$program_prefix$program_suffix$program_transform_name" = \
1661     NONENONEs,x,x, &&
1662   program_prefix=${target_alias}-
1663
1664
1665 CONFIGURE_COMMAND="'$0'"
1666 for arg in "$@"; do
1667   CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
1668 done
1669
1670 cat >>confdefs.h <<_ACEOF
1671 #define CONFIGURE_COMMAND "$CONFIGURE_COMMAND"
1672 _ACEOF
1673
1674
1675
1676 am__api_version="1.8"
1677 # Find a good install program.  We prefer a C program (faster),
1678 # so one script is as good as another.  But avoid the broken or
1679 # incompatible versions:
1680 # SysV /etc/install, /usr/sbin/install
1681 # SunOS /usr/etc/install
1682 # IRIX /sbin/install
1683 # AIX /bin/install
1684 # AmigaOS /C/install, which installs bootblocks on floppy discs
1685 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1686 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1687 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1688 # OS/2's system install, which has a completely different semantic
1689 # ./install, which can be erroneously created by make from ./install.sh.
1690 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1691 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1692 if test -z "$INSTALL"; then
1693 if test "${ac_cv_path_install+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699   IFS=$as_save_IFS
1700   test -z "$as_dir" && as_dir=.
1701   # Account for people who put trailing slashes in PATH elements.
1702 case $as_dir/ in
1703   ./ | .// | /cC/* | \
1704   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1705   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1706   /usr/ucb/* ) ;;
1707   *)
1708     # OSF1 and SCO ODT 3.0 have their own names for install.
1709     # Don't use installbsd from OSF since it installs stuff as root
1710     # by default.
1711     for ac_prog in ginstall scoinst install; do
1712       for ac_exec_ext in '' $ac_executable_extensions; do
1713         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1714           if test $ac_prog = install &&
1715             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1716             # AIX install.  It has an incompatible calling convention.
1717             :
1718           elif test $ac_prog = install &&
1719             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1720             # program-specific install script used by HP pwplus--don't use.
1721             :
1722           else
1723             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1724             break 3
1725           fi
1726         fi
1727       done
1728     done
1729     ;;
1730 esac
1731 done
1732
1733
1734 fi
1735   if test "${ac_cv_path_install+set}" = set; then
1736     INSTALL=$ac_cv_path_install
1737   else
1738     # As a last resort, use the slow shell script.  We don't cache a
1739     # path for INSTALL within a source directory, because that will
1740     # break other packages using the cache if that directory is
1741     # removed, or if the path is relative.
1742     INSTALL=$ac_install_sh
1743   fi
1744 fi
1745 echo "$as_me:$LINENO: result: $INSTALL" >&5
1746 echo "${ECHO_T}$INSTALL" >&6
1747
1748 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1749 # It thinks the first close brace ends the variable substitution.
1750 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1751
1752 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1753
1754 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1755
1756 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1757 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1758 # Just in case
1759 sleep 1
1760 echo timestamp > conftest.file
1761 # Do `set' in a subshell so we don't clobber the current shell's
1762 # arguments.  Must try -L first in case configure is actually a
1763 # symlink; some systems play weird games with the mod time of symlinks
1764 # (eg FreeBSD returns the mod time of the symlink's containing
1765 # directory).
1766 if (
1767    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1768    if test "$*" = "X"; then
1769       # -L didn't work.
1770       set X `ls -t $srcdir/configure conftest.file`
1771    fi
1772    rm -f conftest.file
1773    if test "$*" != "X $srcdir/configure conftest.file" \
1774       && test "$*" != "X conftest.file $srcdir/configure"; then
1775
1776       # If neither matched, then we have a broken ls.  This can happen
1777       # if, for instance, CONFIG_SHELL is bash and it inherits a
1778       # broken ls alias from the environment.  This has actually
1779       # happened.  Such a system could not be considered "sane".
1780       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1781 alias in your environment" >&5
1782 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1783 alias in your environment" >&2;}
1784    { (exit 1); exit 1; }; }
1785    fi
1786
1787    test "$2" = conftest.file
1788    )
1789 then
1790    # Ok.
1791    :
1792 else
1793    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1794 Check your system clock" >&5
1795 echo "$as_me: error: newly created file is older than distributed files!
1796 Check your system clock" >&2;}
1797    { (exit 1); exit 1; }; }
1798 fi
1799 echo "$as_me:$LINENO: result: yes" >&5
1800 echo "${ECHO_T}yes" >&6
1801 test "$program_prefix" != NONE &&
1802   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1803 # Use a double $ so make ignores it.
1804 test "$program_suffix" != NONE &&
1805   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1806 # Double any \ or $.  echo might interpret backslashes.
1807 # By default was `s,x,x', remove it if useless.
1808 cat <<\_ACEOF >conftest.sed
1809 s/[\\$]/&&/g;s/;s,x,x,$//
1810 _ACEOF
1811 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1812 rm conftest.sed
1813
1814 # expand $ac_aux_dir to an absolute path
1815 am_aux_dir=`cd $ac_aux_dir && pwd`
1816
1817 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1818 # Use eval to expand $SHELL
1819 if eval "$MISSING --run true"; then
1820   am_missing_run="$MISSING --run "
1821 else
1822   am_missing_run=
1823   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1824 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1825 fi
1826
1827 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1828   # Keeping the `.' argument allows $(mkdir_p) to be used without
1829   # argument.  Indeed, we sometimes output rules like
1830   #   $(mkdir_p) $(somedir)
1831   # where $(somedir) is conditionally defined.
1832   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1833   # expensive solution, as it forces Make to start a sub-shell.)
1834   mkdir_p='mkdir -p -- .'
1835 else
1836   # On NextStep and OpenStep, the `mkdir' command does not
1837   # recognize any option.  It will interpret all options as
1838   # directories to create, and then abort because `.' already
1839   # exists.
1840   for d in ./-p ./--version;
1841   do
1842     test -d $d && rmdir $d
1843   done
1844   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1845   if test -f "$ac_aux_dir/mkinstalldirs"; then
1846     mkdir_p='$(mkinstalldirs)'
1847   else
1848     mkdir_p='$(install_sh) -d'
1849   fi
1850 fi
1851
1852 for ac_prog in gawk mawk nawk awk
1853 do
1854   # Extract the first word of "$ac_prog", so it can be a program name with args.
1855 set dummy $ac_prog; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_AWK+set}" = set; then
1859   echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861   if test -n "$AWK"; then
1862   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1863 else
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867   IFS=$as_save_IFS
1868   test -z "$as_dir" && as_dir=.
1869   for ac_exec_ext in '' $ac_executable_extensions; do
1870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871     ac_cv_prog_AWK="$ac_prog"
1872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873     break 2
1874   fi
1875 done
1876 done
1877
1878 fi
1879 fi
1880 AWK=$ac_cv_prog_AWK
1881 if test -n "$AWK"; then
1882   echo "$as_me:$LINENO: result: $AWK" >&5
1883 echo "${ECHO_T}$AWK" >&6
1884 else
1885   echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1887 fi
1888
1889   test -n "$AWK" && break
1890 done
1891
1892 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1893 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1894 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1895 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1896   echo $ECHO_N "(cached) $ECHO_C" >&6
1897 else
1898   cat >conftest.make <<\_ACEOF
1899 all:
1900         @echo 'ac_maketemp="$(MAKE)"'
1901 _ACEOF
1902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1903 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1904 if test -n "$ac_maketemp"; then
1905   eval ac_cv_prog_make_${ac_make}_set=yes
1906 else
1907   eval ac_cv_prog_make_${ac_make}_set=no
1908 fi
1909 rm -f conftest.make
1910 fi
1911 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1912   echo "$as_me:$LINENO: result: yes" >&5
1913 echo "${ECHO_T}yes" >&6
1914   SET_MAKE=
1915 else
1916   echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918   SET_MAKE="MAKE=${MAKE-make}"
1919 fi
1920
1921 rm -rf .tst 2>/dev/null
1922 mkdir .tst 2>/dev/null
1923 if test -d .tst; then
1924   am__leading_dot=.
1925 else
1926   am__leading_dot=_
1927 fi
1928 rmdir .tst 2>/dev/null
1929
1930 # test to see if srcdir already configured
1931 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1932    test -f $srcdir/config.status; then
1933   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1934 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1935    { (exit 1); exit 1; }; }
1936 fi
1937
1938 # test whether we have cygpath
1939 if test -z "$CYGPATH_W"; then
1940   if (cygpath --version) >/dev/null 2>/dev/null; then
1941     CYGPATH_W='cygpath -w'
1942   else
1943     CYGPATH_W=echo
1944   fi
1945 fi
1946
1947
1948 # Define the identity of the package.
1949  PACKAGE=amanda
1950  VERSION=2.4.4p3
1951
1952
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE "$PACKAGE"
1955 _ACEOF
1956
1957
1958 cat >>confdefs.h <<_ACEOF
1959 #define VERSION "$VERSION"
1960 _ACEOF
1961
1962 # Some tools Automake needs.
1963
1964 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1965
1966
1967 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1968
1969
1970 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1971
1972
1973 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1974
1975
1976 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1977
1978
1979 AMTAR=${AMTAR-"${am_missing_run}tar"}
1980
1981 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1982
1983 # Installed binaries are usually stripped using `strip' when the user
1984 # run `make install-strip'.  However `strip' might not be the right
1985 # tool to use in cross-compilation environments, therefore Automake
1986 # will honor the `STRIP' environment variable to overrule this program.
1987 if test "$cross_compiling" != no; then
1988   if test -n "$ac_tool_prefix"; then
1989   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1990 set dummy ${ac_tool_prefix}strip; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_STRIP+set}" = set; then
1994   echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996   if test -n "$STRIP"; then
1997   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1998 else
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2001 do
2002   IFS=$as_save_IFS
2003   test -z "$as_dir" && as_dir=.
2004   for ac_exec_ext in '' $ac_executable_extensions; do
2005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008     break 2
2009   fi
2010 done
2011 done
2012
2013 fi
2014 fi
2015 STRIP=$ac_cv_prog_STRIP
2016 if test -n "$STRIP"; then
2017   echo "$as_me:$LINENO: result: $STRIP" >&5
2018 echo "${ECHO_T}$STRIP" >&6
2019 else
2020   echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2022 fi
2023
2024 fi
2025 if test -z "$ac_cv_prog_STRIP"; then
2026   ac_ct_STRIP=$STRIP
2027   # Extract the first word of "strip", so it can be a program name with args.
2028 set dummy strip; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2032   echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034   if test -n "$ac_ct_STRIP"; then
2035   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2036 else
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2039 do
2040   IFS=$as_save_IFS
2041   test -z "$as_dir" && as_dir=.
2042   for ac_exec_ext in '' $ac_executable_extensions; do
2043   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044     ac_cv_prog_ac_ct_STRIP="strip"
2045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046     break 2
2047   fi
2048 done
2049 done
2050
2051   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2052 fi
2053 fi
2054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2055 if test -n "$ac_ct_STRIP"; then
2056   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2057 echo "${ECHO_T}$ac_ct_STRIP" >&6
2058 else
2059   echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2061 fi
2062
2063   STRIP=$ac_ct_STRIP
2064 else
2065   STRIP="$ac_cv_prog_STRIP"
2066 fi
2067
2068 fi
2069 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2070
2071 # We need awk for the "check" target.  The system "awk" is bad on
2072 # some platforms.
2073
2074
2075
2076           ac_config_headers="$ac_config_headers config/config.h"
2077
2078
2079
2080 if test -f "$srcdir/SNAPSHOT"; then
2081   cat < "$srcdir/SNAPSHOT"
2082
2083   snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
2084
2085   test -z "$snapdate" || VERSION="$VERSION-$snapdate"
2086   SNAPSHOT_STAMP=SNAPSHOT
2087 else
2088   SNAPSHOT_STAMP=
2089 fi
2090
2091
2092 if test -f config.local; then
2093     echo "running local script ./config.local"
2094     . ./config.local
2095 fi
2096
2097
2098 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
2099 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
2100 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
2101 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
2102
2103
2104 VERSION_SUFFIX="$VERSION"
2105
2106
2107
2108
2109
2110
2111 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/bsd:/etc:/usr/etc"
2112 LOCPATH=`(
2113     test "x$prefix" = xNONE && prefix=$ac_default_prefix
2114     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2115     eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin"
2116 )`
2117 SYSLOCPATH="$SYSPATH:$LOCPATH"
2118 LOCSYSPATH="$LOCPATH:$SYSPATH"
2119
2120
2121 # Check whether --with-includes or --without-includes was given.
2122 if test "${with_includes+set}" = set; then
2123   withval="$with_includes"
2124
2125         case "$withval" in
2126         "" | y | ye | yes | n | no)
2127             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
2128 echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
2129    { (exit 1); exit 1; }; }
2130           ;;
2131         esac
2132         INCLUDE_DIRS="$withval"
2133
2134 fi;
2135
2136 if test "$INCLUDE_DIRS"; then
2137         for dir in $INCLUDE_DIRS; do
2138             if test -d "$dir"; then
2139                 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS -I$dir"
2140             else
2141                 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2142 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2143             fi
2144         done
2145 fi
2146
2147
2148 # Check whether --with-libraries or --without-libraries was given.
2149 if test "${with_libraries+set}" = set; then
2150   withval="$with_libraries"
2151
2152         case "$withval" in
2153         "" | y | ye | yes | n | no)
2154             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
2155 echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
2156    { (exit 1); exit 1; }; }
2157           ;;
2158         esac
2159         LIBRARY_DIRS="$withval"
2160
2161 fi;
2162
2163 if test "$LIBRARY_DIRS"; then
2164         for dir in $LIBRARY_DIRS; do
2165             if test -d "$dir"; then
2166                 case "$target" in
2167                   *-solaris2*)
2168                         AMANDA_LDFLAGS="$AMANDA_LDFLAGS -R$dir"
2169                         ;;
2170                 esac
2171                 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -L$dir"
2172             else
2173                 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2174 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2175             fi
2176         done
2177 fi
2178
2179
2180 # Check whether --with-configdir or --without-configdir was given.
2181 if test "${with_configdir+set}" = set; then
2182   withval="$with_configdir"
2183
2184         case "$withval" in
2185         "" | y | ye | yes | n | no)
2186             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
2187 echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
2188    { (exit 1); exit 1; }; }
2189           ;;
2190         *) CONFIG_DIR="$withval"
2191           ;;
2192         esac
2193
2194 else
2195   : ${CONFIG_DIR=$sysconfdir/amanda}
2196
2197 fi;
2198 CONFIG_DIR=`(
2199     test "x$prefix" = xNONE && prefix=$ac_default_prefix
2200     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2201     eval echo "$CONFIG_DIR"
2202 )`
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define CONFIG_DIR "$CONFIG_DIR"
2206 _ACEOF
2207
2208
2209
2210
2211 # Check whether --with-indexdir or --without-indexdir was given.
2212 if test "${with_indexdir+set}" = set; then
2213   withval="$with_indexdir"
2214      { { echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&5
2215 echo "$as_me: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&2;}
2216    { (exit 1); exit 1; }; }
2217
2218 fi;
2219
2220
2221 # Check whether --with-dbdir or --without-dbdir was given.
2222 if test "${with_dbdir+set}" = set; then
2223   withval="$with_dbdir"
2224      { { echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&5
2225 echo "$as_me: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&2;}
2226    { (exit 1); exit 1; }; }
2227
2228 fi;
2229
2230
2231 # Check whether --with-logdir or --without-logdir was given.
2232 if test "${with_logdir+set}" = set; then
2233   withval="$with_logdir"
2234      { { echo "$as_me:$LINENO: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&5
2235 echo "$as_me: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&2;}
2236    { (exit 1); exit 1; }; }
2237
2238 fi;
2239
2240
2241 # Check whether --with-suffixes or --without-suffixes was given.
2242 if test "${with_suffixes+set}" = set; then
2243   withval="$with_suffixes"
2244   USE_VERSION_SUFFIXES=$withval
2245 else
2246   : ${USE_VERSION_SUFFIXES=no}
2247
2248 fi;
2249 case "$USE_VERSION_SUFFIXES" in
2250 y | ye | yes)
2251
2252 cat >>confdefs.h <<\_ACEOF
2253 #define USE_VERSION_SUFFIXES 1
2254 _ACEOF
2255
2256
2257     program_suffix="-$VERSION"
2258     # This is from the output of configure.in.
2259     if test "$program_transform_name" = s,x,x,; then
2260         program_transform_name=
2261     else
2262         # Double any \ or $.  echo might interpret backslashes.
2263         cat <<\EOF_SED > conftestsed
2264 s,\\,\\\\,g; s,\$,$$,g
2265 EOF_SED
2266         program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2267         rm -f conftestsed
2268     fi
2269     test "$program_prefix" != NONE &&
2270         program_transform_name="s,^,${program_prefix},; $program_transform_name"
2271     # Use a double $ so make ignores it.
2272     test "$program_suffix" != NONE &&
2273         program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2274
2275     # sed with no file args requires a program.
2276     test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2277     # Remove empty command
2278     cat <<\EOF_SED > conftestsed
2279 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
2280 EOF_SED
2281     program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2282     rm -f conftestsed
2283   ;;
2284 n | no) USE_VERSION_SUFFIXES=no
2285   ;;
2286 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
2287 echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
2288    { (exit 1); exit 1; }; }
2289   ;;
2290 esac
2291
2292
2293 case "$target" in
2294     *-hp-*)
2295         CLIENT_SCRIPTS_OPT=amhpfixdevs
2296         ;;
2297     *-sni-sysv4)
2298         CLIENT_SCRIPTS_OPT=amsinixfixdevs
2299         ;;
2300     *)
2301         CLIENT_SCRIPTS_OPT=
2302         ;;
2303 esac
2304
2305
2306
2307
2308 # Check whether --with-client-only or --without-client-only was given.
2309 if test "${with_client_only+set}" = set; then
2310   withval="$with_client_only"
2311      { { echo "$as_me:$LINENO: error: *** --with-client-only is deprecated, use --without-server instead." >&5
2312 echo "$as_me: error: *** --with-client-only is deprecated, use --without-server instead." >&2;}
2313    { (exit 1); exit 1; }; }
2314
2315 fi;
2316
2317 # Check whether --with-server-only or --without-server-only was given.
2318 if test "${with_server_only+set}" = set; then
2319   withval="$with_server_only"
2320      { { echo "$as_me:$LINENO: error: *** --with-server-only is deprecated, use --without-client instead." >&5
2321 echo "$as_me: error: *** --with-server-only is deprecated, use --without-client instead." >&2;}
2322    { (exit 1); exit 1; }; }
2323
2324 fi;
2325
2326
2327 # Check whether --with-client or --without-client was given.
2328 if test "${with_client+set}" = set; then
2329   withval="$with_client"
2330
2331         case "$withval" in
2332         y | ye | yes) NO_CLIENT_MODE=false;;
2333         n | no) NO_CLIENT_MODE=true;;
2334         *)
2335             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-client option." >&5
2336 echo "$as_me: error: *** You must not supply an argument to --with-client option." >&2;}
2337    { (exit 1); exit 1; }; }
2338           ;;
2339         esac
2340
2341
2342 fi;
2343
2344
2345 # Check whether --with-server or --without-server was given.
2346 if test "${with_server+set}" = set; then
2347   withval="$with_server"
2348
2349         case "$withval" in
2350         y | ye | yes) NO_SERVER_MODE=false ;;
2351         n | no) NO_SERVER_MODE=true;NO_RESTORE_MODE=true;;
2352         *)
2353             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-server option.  Maybe you meant --with-index-server=$withval" >&5
2354 echo "$as_me: error: *** You must not supply an argument to --with-server option.  Maybe you meant --with-index-server=$withval" >&2;}
2355    { (exit 1); exit 1; }; }
2356           ;;
2357         esac
2358
2359
2360 fi;
2361
2362
2363 # Check whether --with-restore or --without-restore was given.
2364 if test "${with_restore+set}" = set; then
2365   withval="$with_restore"
2366
2367         case "$withval" in
2368         y | ye | yes) NO_RESTORE_MODE=false;;
2369         n | no) NO_RESTORE_MODE=true;;
2370         *)
2371             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-restore option." >&5
2372 echo "$as_me: error: *** You must not supply an argument to --with-restore option." >&2;}
2373    { (exit 1); exit 1; }; }
2374           ;;
2375         esac
2376
2377
2378 fi;
2379
2380
2381 # Check whether --with-amrecover or --without-amrecover was given.
2382 if test "${with_amrecover+set}" = set; then
2383   withval="$with_amrecover"
2384
2385         case "$withval" in
2386         y | ye | yes)
2387             if ${NO_CLIENT_MODE-false}; then
2388                 { { echo "$as_me:$LINENO: error: *** --without-client and --with-amrecover are incompatible" >&5
2389 echo "$as_me: error: *** --without-client and --with-amrecover are incompatible" >&2;}
2390    { (exit 1); exit 1; }; }
2391             fi
2392             NO_RECOVER_MODE=false;;
2393         n | no) NO_RECOVER_MODE=true;;
2394         *)
2395             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amrecover option." >&5
2396 echo "$as_me: error: *** You must not supply an argument to --with-amrecover option." >&2;}
2397    { (exit 1); exit 1; }; }
2398           ;;
2399         esac
2400
2401
2402 fi;
2403
2404
2405 # Check whether --with-index-server or --without-index-server was given.
2406 if test "${with_index_server+set}" = set; then
2407   withval="$with_index_server"
2408
2409         case "$withval" in
2410         "" | y | ye | yes | n | no)
2411             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
2412 echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
2413    { (exit 1); exit 1; }; }
2414           ;;
2415         *) DEFAULT_SERVER="$withval"
2416           ;;
2417         esac
2418
2419 else
2420   : ${DEFAULT_SERVER=`uname -n`}
2421
2422 fi;
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define DEFAULT_SERVER "$DEFAULT_SERVER"
2426 _ACEOF
2427
2428
2429
2430
2431 # Check whether --with-force-uid or --without-force-uid was given.
2432 if test "${with_force_uid+set}" = set; then
2433   withval="$with_force_uid"
2434   FORCE_USERID="$withval"
2435 else
2436   : ${FORCE_USERID=yes}
2437
2438 fi;
2439 case "$FORCE_USERID" in
2440 y | ye | yes)
2441 cat >>confdefs.h <<\_ACEOF
2442 #define FORCE_USERID 1
2443 _ACEOF
2444
2445   ;;
2446 n | no) :
2447   ;;
2448 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
2449 echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
2450    { (exit 1); exit 1; }; }
2451 esac
2452
2453
2454 # Check whether --with-user or --without-user was given.
2455 if test "${with_user+set}" = set; then
2456   withval="$with_user"
2457
2458         case "$withval" in
2459         "" | y | ye | yes | n | no)
2460             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
2461 echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
2462    { (exit 1); exit 1; }; }
2463           ;;
2464         *) CLIENT_LOGIN="$withval"
2465           ;;
2466         esac
2467
2468
2469 fi;
2470 if test "x${CLIENT_LOGIN+set}" != xset; then
2471     { { echo "$as_me:$LINENO: error: *** --with-user=USER is missing" >&5
2472 echo "$as_me: error: *** --with-user=USER is missing" >&2;}
2473    { (exit 1); exit 1; }; }
2474 fi
2475
2476 cat >>confdefs.h <<_ACEOF
2477 #define CLIENT_LOGIN "$CLIENT_LOGIN"
2478 _ACEOF
2479
2480
2481
2482
2483 # Check whether --with-group or --without-group was given.
2484 if test "${with_group+set}" = set; then
2485   withval="$with_group"
2486
2487         case "$withval" in
2488         "" | y | ye | yes | n | no)
2489             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
2490 echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
2491    { (exit 1); exit 1; }; }
2492           ;;
2493         *) SETUID_GROUP="$withval"
2494           ;;
2495         esac
2496
2497
2498 fi;
2499 if test "x${SETUID_GROUP+set}" != xset; then
2500     { { echo "$as_me:$LINENO: error: *** --with-group=GROUP is missing" >&5
2501 echo "$as_me: error: *** --with-group=GROUP is missing" >&2;}
2502    { (exit 1); exit 1; }; }
2503 fi
2504
2505
2506
2507 # Check whether --with-owner or --without-owner was given.
2508 if test "${with_owner+set}" = set; then
2509   withval="$with_owner"
2510
2511         case "$withval" in
2512         "" | y | ye | yes | n | no)
2513             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
2514 echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
2515    { (exit 1); exit 1; }; }
2516           ;;
2517         *) BINARY_OWNER="$withval"
2518           ;;
2519         esac
2520
2521
2522 fi;
2523 if test "x${BINARY_OWNER+set}" != xset ; then
2524    BINARY_OWNER=$CLIENT_LOGIN
2525 fi
2526
2527 cat >>confdefs.h <<_ACEOF
2528 #define BINARY_OWNER "$BINARY_OWNER"
2529 _ACEOF
2530
2531
2532
2533
2534 # Check whether --with-rundump or --without-rundump was given.
2535 if test "${with_rundump+set}" = set; then
2536   withval="$with_rundump"
2537
2538     case "$withval" in
2539         n | no | y | ye | yes) FORCE_USE_RUNDUMP="$withval";;
2540         *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rundump option." >&5
2541 echo "$as_me: error: *** You must not supply an argument to --with-rundump option." >&2;}
2542    { (exit 1); exit 1; }; };;
2543     esac
2544
2545
2546 fi;
2547
2548
2549 # Check whether --with-config or --without-config was given.
2550 if test "${with_config+set}" = set; then
2551   withval="$with_config"
2552
2553         case "$withval" in
2554         "" | y | ye | yes | n | no)
2555             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
2556 echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
2557    { (exit 1); exit 1; }; }
2558           ;;
2559         *) DEFAULT_CONFIG="$withval"
2560           ;;
2561         esac
2562
2563 else
2564   : ${DEFAULT_CONFIG=DailySet1}
2565
2566 fi;
2567
2568 cat >>confdefs.h <<_ACEOF
2569 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
2570 _ACEOF
2571
2572
2573
2574
2575 # Check whether --with-tape-server or --without-tape-server was given.
2576 if test "${with_tape_server+set}" = set; then
2577   withval="$with_tape_server"
2578
2579         case "$withval" in
2580         "" | y | ye | yes | n | no)
2581             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
2582 echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
2583    { (exit 1); exit 1; }; }
2584           ;;
2585         *) DEFAULT_TAPE_SERVER="$withval"
2586           ;;
2587         esac
2588
2589 else
2590   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
2591
2592 fi;
2593
2594 cat >>confdefs.h <<_ACEOF
2595 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
2596 _ACEOF
2597
2598
2599
2600
2601 # Check whether --with-tape-device or --without-tape-device was given.
2602 if test "${with_tape_device+set}" = set; then
2603   withval="$with_tape_device"
2604
2605         case "$withval" in
2606         "" | y | ye | yes | n | no)
2607             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
2608 echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
2609    { (exit 1); exit 1; }; }
2610           ;;
2611         *) DEFAULT_TAPE_DEVICE="$withval"
2612           ;;
2613         esac
2614
2615 else
2616
2617         if test -z "$DEFAULT_TAPE_DEVICE"; then
2618             echo "$as_me:$LINENO: checking for non-rewinding tape device" >&5
2619 echo $ECHO_N "checking for non-rewinding tape device... $ECHO_C" >&6
2620                                                                     tape_dev=/dev/null
2621             nr_tape_dev=/dev/null
2622             if test -d /dev/rmt; then
2623
2624
2625                 for num in 9 8 7 6 5 4 3 2 1 0; do
2626                     td=/dev/rmt/${num}b
2627                     ntd=/dev/rmt/${num}bn
2628                     if test -r $td -a -r $ntd; then
2629                         tape_dev=$td
2630                         nr_tape_dev=$ntd
2631                     fi
2632                 done
2633             else
2634                                 for num in 9 8 7 6 5 4 3 2 1 0; do
2635                     td=/dev/rst${num}
2636                     ntd=/dev/nrst${num}
2637                     if test -r $td -a -r $ntd; then
2638                         tape_dev=$td
2639                         nr_tape_dev=$ntd
2640                     fi
2641                 done
2642             fi
2643             DEFAULT_TAPE_DEVICE=$nr_tape_dev
2644             echo "$as_me:$LINENO: result: $DEFAULT_TAPE_DEVICE" >&5
2645 echo "${ECHO_T}$DEFAULT_TAPE_DEVICE" >&6
2646         fi
2647
2648
2649 fi;
2650
2651 if test -z "$DEFAULT_TAPE_DEVICE"; then
2652     DEFAULT_TAPE_DEVICE=/dev/null
2653 fi
2654
2655
2656 cat >>confdefs.h <<_ACEOF
2657 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
2658 _ACEOF
2659
2660
2661
2662
2663 # Check whether --with-ftape-raw-device or --without-ftape-raw-device was given.
2664 if test "${with_ftape_raw_device+set}" = set; then
2665   withval="$with_ftape_raw_device"
2666
2667         case "$withval" in
2668         "" | y | ye | yes | n | no)
2669             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&5
2670 echo "$as_me: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&2;}
2671    { (exit 1); exit 1; }; }
2672           ;;
2673         *) DEFAULT_RAW_TAPE_DEVICE="$withval"
2674           ;;
2675         esac
2676
2677 else
2678
2679         if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
2680             echo "$as_me:$LINENO: checking for raw ftape device" >&5
2681 echo $ECHO_N "checking for raw ftape device... $ECHO_C" >&6
2682                     raw_tape_dev=/dev/null
2683                                 for num in 3 2 1 0 ; do
2684                     td=/dev/rawft${num}
2685                     if test -r $td; then
2686                         raw_tape_dev=$td
2687                     fi
2688                 done
2689             DEFAULT_RAW_TAPE_DEVICE=$raw_tape_dev
2690             echo "$as_me:$LINENO: result: $DEFAULT_RAW_TAPE_DEVICE" >&5
2691 echo "${ECHO_T}$DEFAULT_RAW_TAPE_DEVICE" >&6
2692         fi
2693
2694
2695 fi;
2696
2697 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
2698     DEFAULT_RAW_TAPE_DEVICE=/dev/null
2699 fi
2700
2701
2702 cat >>confdefs.h <<_ACEOF
2703 #define DEFAULT_RAW_TAPE_DEVICE "$DEFAULT_RAW_TAPE_DEVICE"
2704 _ACEOF
2705
2706
2707
2708
2709 # Check whether --with-rew-tape or --without-rew-tape was given.
2710 if test "${with_rew_tape+set}" = set; then
2711   withval="$with_rew_tape"
2712      { { echo "$as_me:$LINENO: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&5
2713 echo "$as_me: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&2;}
2714    { (exit 1); exit 1; }; }
2715
2716 fi;
2717
2718
2719 # Check whether --with-norew-tape or --without-norew-tape was given.
2720 if test "${with_norew_tape+set}" = set; then
2721   withval="$with_norew_tape"
2722      { { echo "$as_me:$LINENO: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&5
2723 echo "$as_me: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&2;}
2724    { (exit 1); exit 1; }; }
2725
2726 fi;
2727
2728
2729 # Check whether --with-changer-device or --without-changer-device was given.
2730 if test "${with_changer_device+set}" = set; then
2731   withval="$with_changer_device"
2732
2733         case "$withval" in
2734         "" | y | ye | yes | n | no)
2735             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
2736 echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
2737    { (exit 1); exit 1; }; }
2738           ;;
2739         *) DEFAULT_CHANGER_DEVICE="$withval"
2740           ;;
2741         esac
2742
2743 else
2744
2745         if test -z "$DEFAULT_CHANGER_DEVICE" &&
2746            test -f /dev/ch0; then
2747             DEFAULT_CHANGER_DEVICE=/dev/ch0
2748         fi
2749
2750
2751 fi;
2752
2753 if test -z "$DEFAULT_CHANGER_DEVICE"; then
2754     DEFAULT_CHANGER_DEVICE=/dev/null
2755 fi
2756
2757
2758 cat >>confdefs.h <<_ACEOF
2759 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
2760 _ACEOF
2761
2762
2763
2764
2765 # Check whether --with-fqdn or --without-fqdn was given.
2766 if test "${with_fqdn+set}" = set; then
2767   withval="$with_fqdn"
2768   USE_FQDN=$withval
2769 else
2770   : ${USE_FQDN=no}
2771
2772 fi;
2773 case "$USE_FQDN" in
2774 n | no) : ;;
2775 y |  ye | yes)
2776 cat >>confdefs.h <<\_ACEOF
2777 #define USE_FQDN 1
2778 _ACEOF
2779
2780   ;;
2781 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-fqdn option." >&5
2782 echo "$as_me: error: *** You must not supply an argument to --with-fqdn option." >&2;}
2783    { (exit 1); exit 1; }; }
2784   ;;
2785 esac
2786
2787
2788 # Check whether --with-broken-fsf or --without-broken-fsf was given.
2789 if test "${with_broken_fsf+set}" = set; then
2790   withval="$with_broken_fsf"
2791   HAVE_BROKEN_FSF=$withval
2792 else
2793   : ${HAVE_BROKEN_FSF=no}
2794
2795 fi;
2796 case "$HAVE_BROKEN_FSF" in
2797 n | no) : ;;
2798 y |  ye | yes)
2799 cat >>confdefs.h <<\_ACEOF
2800 #define HAVE_BROKEN_FSF 1
2801 _ACEOF
2802
2803   ;;
2804 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-broken-fsf option." >&5
2805 echo "$as_me: error: *** You must not supply an argument to --with-broken-fsf option." >&2;}
2806    { (exit 1); exit 1; }; }
2807   ;;
2808 esac
2809
2810
2811 # Check whether --with-gnutar or --without-gnutar was given.
2812 if test "${with_gnutar+set}" = set; then
2813   withval="$with_gnutar"
2814
2815         case "$withval" in
2816             /*) GNUTAR="$withval";;
2817             y|ye|yes) :;;
2818             n|no) GNUTAR=;;
2819             *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
2820 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
2821    { (exit 1); exit 1; }; };;
2822         esac
2823
2824
2825 fi;
2826
2827
2828 # Check whether --with-qde or --without-qde was given.
2829 if test "${with_qde+set}" = set; then
2830   withval="$with_qde"
2831   USE_QUICK_AND_DIRTY_ESTIMATES=$withval
2832 else
2833   : ${USE_QUICK_AND_DIRTY_ESTIMATES=no}
2834
2835 fi;
2836 case "$USE_QUICK_AND_DIRTY_ESTIMATES" in
2837 n | no) : USE_QUICK_AND_DIRTY_ESTIMATES=no;;
2838 y |  ye | yes) : USE_QUICK_AND_DIRTY_ESTIMATES=yes
2839
2840 cat >>confdefs.h <<\_ACEOF
2841 #define USE_QUICK_AND_DIRTY_ESTIMATES 1
2842 _ACEOF
2843
2844   ;;
2845 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-qde option." >&5
2846 echo "$as_me: error: *** You must not supply an argument to --with-qde option." >&2;}
2847    { (exit 1); exit 1; }; }
2848   ;;
2849 esac
2850
2851
2852
2853 # Check whether --with-smbclient or --without-smbclient was given.
2854 if test "${with_smbclient+set}" = set; then
2855   withval="$with_smbclient"
2856
2857         case "$withval" in
2858             /*) SAMBA_CLIENT="$withval";;
2859             y|ye|yes) :;;
2860             n|no) SAMBA_CLIENT="no";;
2861             *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
2862 echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
2863    { (exit 1); exit 1; }; };;
2864         esac
2865
2866
2867 fi;
2868
2869
2870 # Check whether --with-samba-user or --without-samba-user was given.
2871 if test "${with_samba_user+set}" = set; then
2872   withval="$with_samba_user"
2873       { { echo "$as_me:$LINENO: error: *** The samba-user option was deprecated, the username go in the amandapass" >&5
2874 echo "$as_me: error: *** The samba-user option was deprecated, the username go in the amandapass" >&2;}
2875    { (exit 1); exit 1; }; }
2876
2877
2878 fi;
2879
2880
2881 # Check whether --with-gnutar-listdir or --without-gnutar-listdir was given.
2882 if test "${with_gnutar_listdir+set}" = set; then
2883   withval="$with_gnutar_listdir"
2884
2885         case "$withval" in
2886             n | no)             unset GNUTAR_LISTDIR ;;
2887             y | ye | yes)       : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists} ;;
2888             /*)                 GNUTAR_LISTDIR="$withval" ;;
2889             *)                  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar-listdir" >&5
2890 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar-listdir" >&2;}
2891    { (exit 1); exit 1; }; }
2892         esac
2893
2894 else
2895   : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists}
2896
2897 fi;
2898 if test "$GNUTAR_LISTDIR"; then
2899     GNUTAR_LISTDIR=`(
2900         test "x$prefix" = xNONE && prefix=$ac_default_prefix
2901         eval echo "$GNUTAR_LISTDIR"
2902     )`
2903
2904 cat >>confdefs.h <<_ACEOF
2905 #define GNUTAR_LISTED_INCREMENTAL_DIR "$GNUTAR_LISTDIR"
2906 _ACEOF
2907
2908     GNUTAR_LISTED_INCREMENTAL_DIRX=$GNUTAR_LISTDIR
2909 else
2910     GNUTAR_LISTED_INCREMENTAL_DIRX=
2911 fi
2912
2913
2914
2915 # Check whether --with-gnutar-listed-incremental or --without-gnutar-listed-incremental was given.
2916 if test "${with_gnutar_listed_incremental+set}" = set; then
2917   withval="$with_gnutar_listed_incremental"
2918       { { echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&5
2919 echo "$as_me: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&2;}
2920    { (exit 1); exit 1; }; }
2921
2922
2923 fi;
2924
2925
2926 # Check whether --with-bsd-security or --without-bsd-security was given.
2927 if test "${with_bsd_security+set}" = set; then
2928   withval="$with_bsd_security"
2929   BSD_SECURITY=$withval
2930 else
2931   : ${BSD_SECURITY=yes}
2932
2933 fi;
2934 case "$BSD_SECURITY" in
2935 n | no) : ;;
2936 y |  ye | yes)
2937 cat >>confdefs.h <<\_ACEOF
2938 #define BSD_SECURITY 1
2939 _ACEOF
2940
2941   ;;
2942 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsd-security option." >&5
2943 echo "$as_me: error: *** You must not supply an argument to --with-bsd-security option." >&2;}
2944    { (exit 1); exit 1; }; }
2945   ;;
2946 esac
2947
2948
2949 # Check whether --with-amandahosts or --without-amandahosts was given.
2950 if test "${with_amandahosts+set}" = set; then
2951   withval="$with_amandahosts"
2952   USE_AMANDAHOSTS=$withval
2953 else
2954   : ${USE_AMANDAHOSTS=yes}
2955
2956 fi;
2957 case "$USE_AMANDAHOSTS" in
2958 n | no) : ;;
2959 y |  ye | yes) :
2960   case "$BSD_SECURITY" in
2961   y | ye | yes)
2962 cat >>confdefs.h <<\_ACEOF
2963 #define USE_AMANDAHOSTS 1
2964 _ACEOF
2965
2966     ;;
2967   esac
2968   ;;
2969 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amandahosts option." >&5
2970 echo "$as_me: error: *** You must not supply an argument to --with-amandahosts option." >&2;}
2971    { (exit 1); exit 1; }; }
2972   ;;
2973 esac
2974
2975
2976 : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
2977
2978
2979 # Check whether --with-krb4-security or --without-krb4-security was given.
2980 if test "${with_krb4_security+set}" = set; then
2981   withval="$with_krb4_security"
2982   KRB4_SECURITY="$withval"
2983 else
2984   : ${KRB4_SECURITY=no}
2985
2986 fi;
2987
2988 case "$KRB4_SECURITY" in
2989 n | no) KRB4_SECURITY=no ;;
2990 y | ye | yes) : ;;
2991 *) KRB4_SPOTS="$KRB4_SECURITY"
2992    KRB4_SECURITY=yes
2993    ;;
2994 esac
2995
2996 echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
2997 echo $ECHO_N "checking for Kerberos and Amanda kerberos4 bits... $ECHO_C" >&6
2998 if test "${KRB4_SECURITY}" = yes -a -f  ${srcdir-.}/common-src/krb4-security.c ; then
2999     for dir in $KRB4_SPOTS; do
3000         if test -f ${dir}/lib/libkrb.a -a -f ${dir}/lib/libdes.a ; then
3001             #
3002             # This is the original Kerberos 4.
3003             #
3004             echo "$as_me:$LINENO: result: found in $dir" >&5
3005 echo "${ECHO_T}found in $dir" >&6
3006             KRB4_SECURITY=yes
3007
3008 cat >>confdefs.h <<\_ACEOF
3009 #define KRB4_SECURITY 1
3010 _ACEOF
3011
3012             if test -d $dir/include/kerberosIV ; then
3013                 #
3014                 # This handles BSD/OS.
3015                 #
3016                 KRB4INCLUDES=-I$dir/include/kerberosIV
3017             else
3018                 KRB4INCLUDES=-I$dir/include
3019             fi
3020             KRB4LDFLAGS=-L$dir/lib
3021             KRB4LIBS="-lkrb -ldes"
3022             if test -f ${dir}/lib/libcom_err.a ; then
3023                 KRB4LIBS="$KRB4LIBS -lcom_err"
3024             fi
3025             if test -f ${dir}/lib/libroken.a ; then
3026                 KRB4LIBS="$KRB4LIBS -lroken"
3027             fi
3028             break
3029         elif test -f ${dir}/lib/libkrb4.a &&
3030              test -f ${dir}/lib/libcrypto.a &&
3031              test -f ${dir}/lib/libdes425.a ; then
3032             #
3033             # This is Kerberos 5 with Kerberos 4 back-support.
3034             #
3035             echo "$as_me:$LINENO: result: found in $dir" >&5
3036 echo "${ECHO_T}found in $dir" >&6
3037             KRB4_SECURITY=yes
3038
3039 cat >>confdefs.h <<\_ACEOF
3040 #define KRB4_SECURITY 1
3041 _ACEOF
3042
3043             KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
3044             KRB4LDFLAGS=-L$dir/lib
3045             if test -f ${dir}/lib/libkrb5.a &&
3046                test -f ${dir}/lib/libcom_err.a; then
3047                 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
3048             else
3049                 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
3050             fi
3051             break
3052         elif test -f ${dir}/lib/libkrb4.dylib &&
3053              test -f ${dir}/lib/libcrypto.dylib &&
3054              test -f ${dir}/lib/libdes425.dylib ; then
3055             #
3056             # This is Kerberos 5 with Kerberos 4 back-support for Mac OS X.
3057             #
3058             echo "$as_me:$LINENO: result: found in $dir" >&5
3059 echo "${ECHO_T}found in $dir" >&6
3060             KRB4_SECURITY=yes
3061
3062 cat >>confdefs.h <<\_ACEOF
3063 #define KRB4_SECURITY 1
3064 _ACEOF
3065
3066             KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
3067             KRB4LDFLAGS=-L$dir/lib
3068             if test -f ${dir}/lib/libkrb5.dylib &&
3069                test -f ${dir}/lib/libcom_err.dylib; then
3070                 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
3071             else
3072                 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
3073             fi
3074             break
3075         fi
3076     done
3077
3078     if test "$KRB4LDFLAGS" = "" ; then
3079         { { echo "$as_me:$LINENO: error: *** Kerberos IV not found." >&5
3080 echo "$as_me: error: *** Kerberos IV not found." >&2;}
3081    { (exit 1); exit 1; }; }
3082     fi
3083 else
3084     echo "$as_me:$LINENO: result: no" >&5
3085 echo "${ECHO_T}no" >&6
3086 fi
3087
3088
3089 # Check whether --with-server-principal or --without-server-principal was given.
3090 if test "${with_server_principal+set}" = set; then
3091   withval="$with_server_principal"
3092
3093         case "$withval" in
3094         "" | y | ye | yes | n | no)
3095             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
3096 echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
3097    { (exit 1); exit 1; }; }
3098           ;;
3099         *)
3100             SERVER_HOST_PRINCIPLE="$withval"
3101           ;;
3102         esac
3103
3104 else
3105   : ${SERVER_HOST_PRINCIPLE="amanda"}
3106
3107 fi;
3108
3109 cat >>confdefs.h <<_ACEOF
3110 #define SERVER_HOST_PRINCIPLE "$SERVER_HOST_PRINCIPLE"
3111 _ACEOF
3112
3113
3114
3115 # Check whether --with-server-instance or --without-server-instance was given.
3116 if test "${with_server_instance+set}" = set; then
3117   withval="$with_server_instance"
3118
3119         case "$withval" in
3120         "" | y | ye | yes | n | no)
3121             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
3122 echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
3123    { (exit 1); exit 1; }; }
3124           ;;
3125         *) SERVER_HOST_INSTANCE="$withval"
3126           ;;
3127         esac
3128
3129 else
3130   : ${SERVER_HOST_INSTANCE="amanda"}
3131
3132 fi;
3133
3134 cat >>confdefs.h <<_ACEOF
3135 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
3136 _ACEOF
3137
3138
3139
3140 # Check whether --with-server-keyfile or --without-server-keyfile was given.
3141 if test "${with_server_keyfile+set}" = set; then
3142   withval="$with_server_keyfile"
3143
3144         case "$withval" in
3145         "" | y | ye | yes | n | no)
3146             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
3147 echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
3148    { (exit 1); exit 1; }; }
3149           ;;
3150         *) SERVER_HOST_KEY_FILE="$withval"
3151           ;;
3152         esac
3153
3154 else
3155   : ${SERVER_HOST_KEY_FILE="/.amanda"}
3156
3157 fi;
3158
3159 cat >>confdefs.h <<_ACEOF
3160 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
3161 _ACEOF
3162
3163
3164
3165 # Check whether --with-client-principal or --without-client-principal was given.
3166 if test "${with_client_principal+set}" = set; then
3167   withval="$with_client_principal"
3168
3169         case "$withval" in
3170         "" | y | ye | yes | n | no)
3171             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
3172 echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
3173    { (exit 1); exit 1; }; }
3174           ;;
3175         *) CLIENT_HOST_PRINCIPLE="$withval"
3176           ;;
3177         esac
3178
3179 else
3180   : ${CLIENT_HOST_PRINCIPLE="rcmd"}
3181
3182 fi;
3183
3184 cat >>confdefs.h <<_ACEOF
3185 #define CLIENT_HOST_PRINCIPLE "$CLIENT_HOST_PRINCIPLE"
3186 _ACEOF
3187
3188
3189
3190 # Check whether --with-client-instance or --without-client-instance was given.
3191 if test "${with_client_instance+set}" = set; then
3192   withval="$with_client_instance"
3193
3194         case "$withval" in
3195         "" | y | ye | yes | n | no)
3196             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
3197 echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
3198    { (exit 1); exit 1; }; }
3199           ;;
3200         *) CLIENT_HOST_INSTANCE="$withval"
3201           ;;
3202         esac
3203
3204 else
3205   : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
3206
3207 fi;
3208
3209 cat >>confdefs.h <<_ACEOF
3210 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
3211 _ACEOF
3212
3213
3214
3215 # Check whether --with-client-keyfile or --without-client-keyfile was given.
3216 if test "${with_client_keyfile+set}" = set; then
3217   withval="$with_client_keyfile"
3218
3219         case "$withval" in
3220         "" | y | ye | yes | n | no)
3221             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
3222 echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
3223    { (exit 1); exit 1; }; }
3224           ;;
3225         *) CLIENT_HOST_KEY_FILE="$withval"
3226           ;;
3227         esac
3228
3229 else
3230   : ${CLIENT_HOST_KEY_FILE=KEYFILE}
3231
3232 fi;
3233
3234 # Assume it's either KEYFILE (defined in krb.h), or a string filename...
3235 if test "$CLIENT_HOST_KEY_FILE" != "KEYFILE"; then
3236   CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
3237 fi
3238
3239
3240 cat >>confdefs.h <<_ACEOF
3241 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
3242 _ACEOF
3243
3244
3245
3246 # Check whether --with-ticket-lifetime or --without-ticket-lifetime was given.
3247 if test "${with_ticket_lifetime+set}" = set; then
3248   withval="$with_ticket_lifetime"
3249
3250         case "$withval" in
3251         "" | y | ye | yes | n | no)
3252             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
3253 echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
3254    { (exit 1); exit 1; }; }
3255           ;;
3256         *) TICKET_LIFETIME="$withval"
3257           ;;
3258         esac
3259
3260 else
3261   : ${TICKET_LIFETIME=128}
3262
3263 fi;
3264
3265 cat >>confdefs.h <<_ACEOF
3266 #define TICKET_LIFETIME $TICKET_LIFETIME
3267 _ACEOF
3268
3269
3270
3271
3272 # Check whether --with-portrange or --without-portrange was given.
3273 if test "${with_portrange+set}" = set; then
3274   withval="$with_portrange"
3275
3276         TCPPORTRANGE="$withval"
3277
3278
3279 fi;
3280
3281 # Check whether --with-tcpportrange or --without-tcpportrange was given.
3282 if test "${with_tcpportrange+set}" = set; then
3283   withval="$with_tcpportrange"
3284
3285         TCPPORTRANGE="$withval"
3286
3287
3288 fi;
3289 if test x"${TCPPORTRANGE+set}" = x"set"; then
3290     if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
3291         { { echo "$as_me:$LINENO: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&5
3292 echo "$as_me: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&2;}
3293    { (exit 1); exit 1; }; }
3294     fi
3295     min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
3296     max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
3297     if test $min_tcp_port -gt $max_tcp_port; then
3298         { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&5
3299 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
3300    { (exit 1); exit 1; }; }
3301     fi
3302     if test $min_tcp_port -lt 1024; then
3303         { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
3304 echo "$as_me: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
3305     fi
3306     if test $max_tcp_port -ge 65536; then
3307         { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&5
3308 echo "$as_me: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
3309     fi
3310
3311 cat >>confdefs.h <<_ACEOF
3312 #define TCPPORTRANGE $TCPPORTRANGE
3313 _ACEOF
3314
3315 fi
3316
3317
3318 # Check whether --with-udpportrange or --without-udpportrange was given.
3319 if test "${with_udpportrange+set}" = set; then
3320   withval="$with_udpportrange"
3321
3322         UDPPORTRANGE="$withval"
3323
3324
3325 fi;
3326 if test x"${UDPPORTRANGE+set}" = x"set"; then
3327     if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
3328         { { echo "$as_me:$LINENO: error: *** --with-udpportrange requires two comma-separated positive numbers" >&5
3329 echo "$as_me: error: *** --with-udpportrange requires two comma-separated positive numbers" >&2;}
3330    { (exit 1); exit 1; }; }
3331     fi
3332     min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
3333     max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
3334     if test $min_udp_port -gt $max_udp_port; then
3335         { { echo "$as_me:$LINENO: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&5
3336 echo "$as_me: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
3337    { (exit 1); exit 1; }; }
3338     fi
3339     if test $max_udp_port -ge 1024; then
3340         { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&5
3341 echo "$as_me: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&2;}
3342     fi
3343     if test $min_udp_port -le 0; then
3344         { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&5
3345 echo "$as_me: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
3346     fi
3347
3348 cat >>confdefs.h <<_ACEOF
3349 #define UDPPORTRANGE $UDPPORTRANGE
3350 _ACEOF
3351
3352 fi
3353
3354
3355 # Check whether --with-maxtapeblocksize or --without-maxtapeblocksize was given.
3356 if test "${with_maxtapeblocksize+set}" = set; then
3357   withval="$with_maxtapeblocksize"
3358
3359         MAXTAPEBLOCKSIZE="$withval"
3360
3361 else
3362   : ${MAXTAPEBLOCKSIZE=32}
3363
3364 fi;
3365
3366
3367 cat >>confdefs.h <<_ACEOF
3368 #define MAX_TAPE_BLOCK_KB ($MAXTAPEBLOCKSIZE)
3369 _ACEOF
3370
3371
3372
3373
3374 # Check whether --with-db or --without-db was given.
3375 if test "${with_db+set}" = set; then
3376   withval="$with_db"
3377
3378         case "$withval" in
3379         "" | y | ye | yes | n | no)
3380             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-db option." >&5
3381 echo "$as_me: error: *** You must supply an argument to the --with-db option." >&2;}
3382    { (exit 1); exit 1; }; }
3383           ;;
3384         *) DB_STYLE="$withval"
3385           ;;
3386         esac
3387
3388
3389 fi;
3390 if test "$DB_STYLE"; then
3391     case "$DB_STYLE" in
3392         db | dbm | gdbm | ndbm | text)  ;;
3393         *)
3394             { { echo "$as_me:$LINENO: error: *** Unknown argument $DB_STYLE given to --with-db.  Choose from db, dbm, gdbm, ndbm, text." >&5
3395 echo "$as_me: error: *** Unknown argument $DB_STYLE given to --with-db.  Choose from db, dbm, gdbm, ndbm, text." >&2;}
3396    { (exit 1); exit 1; }; }
3397             DB_STYLE=
3398             ;;
3399     esac
3400 fi
3401
3402
3403 # Check whether --with-mmap or --without-mmap was given.
3404 if test "${with_mmap+set}" = set; then
3405   withval="$with_mmap"
3406   FORCE_MMAP=$withval
3407 else
3408   : ${FORCE_MMAP=no}
3409
3410 fi;
3411 case "$FORCE_MMAP" in
3412 y | ye | yes | n | no) : ;;
3413 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
3414 echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
3415    { (exit 1); exit 1; }; }
3416   ;;
3417 esac
3418
3419
3420 # Check whether --with-buffered-dump or --without-buffered-dump was given.
3421 if test "${with_buffered_dump+set}" = set; then
3422   withval="$with_buffered_dump"
3423   DUMPER_SOCKET_BUFFERING=$withval
3424 else
3425   : ${DUMPER_SOCKET_BUFFERING=no}
3426
3427 fi;
3428 case "$DUMPER_SOCKET_BUFFERING" in
3429 n | no) :
3430   ;;
3431 y | ye | yes)
3432 cat >>confdefs.h <<\_ACEOF
3433 #define DUMPER_SOCKET_BUFFERING 1
3434 _ACEOF
3435
3436   ;;
3437 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-buffered-dump." >&5
3438 echo "$as_me: error: *** You must not supply an argument to --with-buffered-dump." >&2;}
3439    { (exit 1); exit 1; }; }
3440   ;;
3441 esac
3442
3443
3444 # Check whether --with-assertions or --without-assertions was given.
3445 if test "${with_assertions+set}" = set; then
3446   withval="$with_assertions"
3447   ASSERTIONS="$withval"
3448 else
3449   : ${ASSERTIONS=no}
3450
3451 fi;
3452 case "$ASSERTIONS" in
3453 n | no) : ;;
3454 y |  ye | yes)
3455 cat >>confdefs.h <<\_ACEOF
3456 #define ASSERTIONS 1
3457 _ACEOF
3458
3459   ;;
3460 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
3461 echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
3462    { (exit 1); exit 1; }; }
3463   ;;
3464 esac
3465
3466
3467 # Check whether --with-tmpdir or --without-tmpdir was given.
3468 if test "${with_tmpdir+set}" = set; then
3469   withval="$with_tmpdir"
3470   tmpdir="$withval"
3471 else
3472   : ${tmpdir=yes}
3473
3474 fi;
3475 tmpdir=`(
3476     test "x$prefix" = xNONE && prefix=$ac_default_prefix
3477     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3478     eval echo "$tmpdir"
3479 )`
3480 case "$tmpdir" in
3481 n | no) { { echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
3482 echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
3483    { (exit 1); exit 1; }; };;
3484 y |  ye | yes)
3485         AMANDA_TMPDIR="/tmp/amanda";;
3486 /*)
3487         AMANDA_TMPDIR="$tmpdir";;
3488 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-tmpdir option." >&5
3489 echo "$as_me: error: *** You must supply a full pathname to --with-tmpdir option." >&2;}
3490    { (exit 1); exit 1; }; };;
3491 esac
3492
3493 cat >>confdefs.h <<_ACEOF
3494 #define AMANDA_TMPDIR "$AMANDA_TMPDIR"
3495 _ACEOF
3496
3497
3498
3499
3500 # Check whether --with-debugging or --without-debugging was given.
3501 if test "${with_debugging+set}" = set; then
3502   withval="$with_debugging"
3503   debugging="$withval"
3504 else
3505   : ${debugging=yes}
3506
3507 fi;
3508 debugging=`(
3509     test "x$prefix" = xNONE && prefix=$ac_default_prefix
3510     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3511     eval echo "$debugging"
3512 )`
3513 case "$debugging" in
3514 n | no) AMANDA_DBGDIR="";;
3515 y |  ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR" ;;
3516 /*) AMANDA_DBGDIR="$debugging" ;;
3517 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-debugging option." >&5
3518 echo "$as_me: error: *** You must supply a full pathname to --with-debugging option." >&2;}
3519    { (exit 1); exit 1; }; }
3520   ;;
3521 esac
3522 case "$AMANDA_DBGDIR" in
3523 "") :;;
3524 *)
3525 cat >>confdefs.h <<\_ACEOF
3526 #define DEBUG_CODE 1
3527 _ACEOF
3528
3529
3530 cat >>confdefs.h <<_ACEOF
3531 #define AMANDA_DBGDIR "$AMANDA_DBGDIR"
3532 _ACEOF
3533
3534    ;;
3535 esac
3536
3537
3538 # Check whether --with-debug_days or --without-debug_days was given.
3539 if test "${with_debug_days+set}" = set; then
3540   withval="$with_debug_days"
3541   debug_days="$withval"
3542 else
3543   : ${debug_days=4}
3544
3545 fi;
3546 case "$debug_days" in
3547 n | no) AMANDA_DEBUG_DAYS=0 ;;
3548 y |  ye | yes) AMANDA_DEBUG_DAYS=4 ;;
3549 [0-9] | [0-9][0-9] | [0-9][0-9][0-9]) AMANDA_DEBUG_DAYS="$debug_days" ;;
3550 *) { { echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
3551 echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
3552    { (exit 1); exit 1; }; }
3553   ;;
3554 esac
3555
3556 cat >>confdefs.h <<_ACEOF
3557 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
3558 _ACEOF
3559
3560
3561
3562
3563 # Check whether --with-testing or --without-testing was given.
3564 if test "${with_testing+set}" = set; then
3565   withval="$with_testing"
3566   TESTING="$withval"
3567 else
3568   : ${TESTING=no}
3569
3570 fi;
3571 case "$TESTING" in
3572 n | no) SERVICE_SUFFIX="";;
3573 y |  ye | yes) SERVICE_SUFFIX="-test";;
3574 *) SERVICE_SUFFIX="-$TESTING";;
3575 esac
3576 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
3577 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
3578
3579
3580 cat >>confdefs.h <<_ACEOF
3581 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
3582 _ACEOF
3583
3584
3585 cat >>confdefs.h <<_ACEOF
3586 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
3587 _ACEOF
3588
3589
3590 cat >>confdefs.h <<_ACEOF
3591 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
3592 _ACEOF
3593
3594
3595 (
3596     test "x$prefix" = xNONE && prefix=$ac_default_prefix
3597     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3598
3599     tmp=`eval echo "$bindir"`
3600
3601 cat >>confdefs.h <<_ACEOF
3602 #define bindir "$tmp"
3603 _ACEOF
3604
3605
3606     tmp=`eval echo "$sbindir"`
3607
3608 cat >>confdefs.h <<_ACEOF
3609 #define sbindir "$tmp"
3610 _ACEOF
3611
3612
3613     tmp=`eval echo "$libexecdir"`
3614
3615 cat >>confdefs.h <<_ACEOF
3616 #define libexecdir "$tmp"
3617 _ACEOF
3618
3619
3620     tmp=`eval echo $mandir`
3621
3622 cat >>confdefs.h <<_ACEOF
3623 #define mandir "$tmp"
3624 _ACEOF
3625
3626 )
3627
3628 ac_ext=c
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 if test -n "$ac_tool_prefix"; then
3634   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3635 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3636 echo "$as_me:$LINENO: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638 if test "${ac_cv_prog_CC+set}" = set; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641   if test -n "$CC"; then
3642   ac_cv_prog_CC="$CC" # Let the user override the test.
3643 else
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 for as_dir in $PATH
3646 do
3647   IFS=$as_save_IFS
3648   test -z "$as_dir" && as_dir=.
3649   for ac_exec_ext in '' $ac_executable_extensions; do
3650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3653     break 2
3654   fi
3655 done
3656 done
3657
3658 fi
3659 fi
3660 CC=$ac_cv_prog_CC
3661 if test -n "$CC"; then
3662   echo "$as_me:$LINENO: result: $CC" >&5
3663 echo "${ECHO_T}$CC" >&6
3664 else
3665   echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6
3667 fi
3668
3669 fi
3670 if test -z "$ac_cv_prog_CC"; then
3671   ac_ct_CC=$CC
3672   # Extract the first word of "gcc", so it can be a program name with args.
3673 set dummy gcc; ac_word=$2
3674 echo "$as_me:$LINENO: checking for $ac_word" >&5
3675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3677   echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679   if test -n "$ac_ct_CC"; then
3680   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3681 else
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3684 do
3685   IFS=$as_save_IFS
3686   test -z "$as_dir" && as_dir=.
3687   for ac_exec_ext in '' $ac_executable_extensions; do
3688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689     ac_cv_prog_ac_ct_CC="gcc"
3690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691     break 2
3692   fi
3693 done
3694 done
3695
3696 fi
3697 fi
3698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3699 if test -n "$ac_ct_CC"; then
3700   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3701 echo "${ECHO_T}$ac_ct_CC" >&6
3702 else
3703   echo "$as_me:$LINENO: result: no" >&5
3704 echo "${ECHO_T}no" >&6
3705 fi
3706
3707   CC=$ac_ct_CC
3708 else
3709   CC="$ac_cv_prog_CC"
3710 fi
3711
3712 if test -z "$CC"; then
3713   if test -n "$ac_tool_prefix"; then
3714   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3715 set dummy ${ac_tool_prefix}cc; ac_word=$2
3716 echo "$as_me:$LINENO: checking for $ac_word" >&5
3717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3718 if test "${ac_cv_prog_CC+set}" = set; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   if test -n "$CC"; then
3722   ac_cv_prog_CC="$CC" # Let the user override the test.
3723 else
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3726 do
3727   IFS=$as_save_IFS
3728   test -z "$as_dir" && as_dir=.
3729   for ac_exec_ext in '' $ac_executable_extensions; do
3730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3731     ac_cv_prog_CC="${ac_tool_prefix}cc"
3732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3733     break 2
3734   fi
3735 done
3736 done
3737
3738 fi
3739 fi
3740 CC=$ac_cv_prog_CC
3741 if test -n "$CC"; then
3742   echo "$as_me:$LINENO: result: $CC" >&5
3743 echo "${ECHO_T}$CC" >&6
3744 else
3745   echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3747 fi
3748
3749 fi
3750 if test -z "$ac_cv_prog_CC"; then
3751   ac_ct_CC=$CC
3752   # Extract the first word of "cc", so it can be a program name with args.
3753 set dummy cc; ac_word=$2
3754 echo "$as_me:$LINENO: checking for $ac_word" >&5
3755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   if test -n "$ac_ct_CC"; then
3760   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3761 else
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765   IFS=$as_save_IFS
3766   test -z "$as_dir" && as_dir=.
3767   for ac_exec_ext in '' $ac_executable_extensions; do
3768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769     ac_cv_prog_ac_ct_CC="cc"
3770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771     break 2
3772   fi
3773 done
3774 done
3775
3776 fi
3777 fi
3778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3779 if test -n "$ac_ct_CC"; then
3780   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3781 echo "${ECHO_T}$ac_ct_CC" >&6
3782 else
3783   echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3785 fi
3786
3787   CC=$ac_ct_CC
3788 else
3789   CC="$ac_cv_prog_CC"
3790 fi
3791
3792 fi
3793 if test -z "$CC"; then
3794   # Extract the first word of "cc", so it can be a program name with args.
3795 set dummy cc; ac_word=$2
3796 echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_prog_CC+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   if test -n "$CC"; then
3802   ac_cv_prog_CC="$CC" # Let the user override the test.
3803 else
3804   ac_prog_rejected=no
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808   IFS=$as_save_IFS
3809   test -z "$as_dir" && as_dir=.
3810   for ac_exec_ext in '' $ac_executable_extensions; do
3811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3813        ac_prog_rejected=yes
3814        continue
3815      fi
3816     ac_cv_prog_CC="cc"
3817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3818     break 2
3819   fi
3820 done
3821 done
3822
3823 if test $ac_prog_rejected = yes; then
3824   # We found a bogon in the path, so make sure we never use it.
3825   set dummy $ac_cv_prog_CC
3826   shift
3827   if test $# != 0; then
3828     # We chose a different compiler from the bogus one.
3829     # However, it has the same basename, so the bogon will be chosen
3830     # first if we set CC to just the basename; use the full file name.
3831     shift
3832     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3833   fi
3834 fi
3835 fi
3836 fi
3837 CC=$ac_cv_prog_CC
3838 if test -n "$CC"; then
3839   echo "$as_me:$LINENO: result: $CC" >&5
3840 echo "${ECHO_T}$CC" >&6
3841 else
3842   echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6
3844 fi
3845
3846 fi
3847 if test -z "$CC"; then
3848   if test -n "$ac_tool_prefix"; then
3849   for ac_prog in cl
3850   do
3851     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3853 echo "$as_me:$LINENO: checking for $ac_word" >&5
3854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855 if test "${ac_cv_prog_CC+set}" = set; then
3856   echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858   if test -n "$CC"; then
3859   ac_cv_prog_CC="$CC" # Let the user override the test.
3860 else
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866   for ac_exec_ext in '' $ac_executable_extensions; do
3867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870     break 2
3871   fi
3872 done
3873 done
3874
3875 fi
3876 fi
3877 CC=$ac_cv_prog_CC
3878 if test -n "$CC"; then
3879   echo "$as_me:$LINENO: result: $CC" >&5
3880 echo "${ECHO_T}$CC" >&6
3881 else
3882   echo "$as_me:$LINENO: result: no" >&5
3883 echo "${ECHO_T}no" >&6
3884 fi
3885
3886     test -n "$CC" && break
3887   done
3888 fi
3889 if test -z "$CC"; then
3890   ac_ct_CC=$CC
3891   for ac_prog in cl
3892 do
3893   # Extract the first word of "$ac_prog", so it can be a program name with args.
3894 set dummy $ac_prog; ac_word=$2
3895 echo "$as_me:$LINENO: checking for $ac_word" >&5
3896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3898   echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900   if test -n "$ac_ct_CC"; then
3901   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3902 else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3905 do
3906   IFS=$as_save_IFS
3907   test -z "$as_dir" && as_dir=.
3908   for ac_exec_ext in '' $ac_executable_extensions; do
3909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910     ac_cv_prog_ac_ct_CC="$ac_prog"
3911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3912     break 2
3913   fi
3914 done
3915 done
3916
3917 fi
3918 fi
3919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3920 if test -n "$ac_ct_CC"; then
3921   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3922 echo "${ECHO_T}$ac_ct_CC" >&6
3923 else
3924   echo "$as_me:$LINENO: result: no" >&5
3925 echo "${ECHO_T}no" >&6
3926 fi
3927
3928   test -n "$ac_ct_CC" && break
3929 done
3930
3931   CC=$ac_ct_CC
3932 fi
3933
3934 fi
3935
3936
3937 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3938 See \`config.log' for more details." >&5
3939 echo "$as_me: error: no acceptable C compiler found in \$PATH
3940 See \`config.log' for more details." >&2;}
3941    { (exit 1); exit 1; }; }
3942
3943 # Provide some information about the compiler.
3944 echo "$as_me:$LINENO:" \
3945      "checking for C compiler version" >&5
3946 ac_compiler=`set X $ac_compile; echo $2`
3947 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3948   (eval $ac_compiler --version </dev/null >&5) 2>&5
3949   ac_status=$?
3950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951   (exit $ac_status); }
3952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3953   (eval $ac_compiler -v </dev/null >&5) 2>&5
3954   ac_status=$?
3955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956   (exit $ac_status); }
3957 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3958   (eval $ac_compiler -V </dev/null >&5) 2>&5
3959   ac_status=$?
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); }
3962
3963 cat >conftest.$ac_ext <<_ACEOF
3964 /* confdefs.h.  */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h.  */
3969
3970 int
3971 main ()
3972 {
3973
3974   ;
3975   return 0;
3976 }
3977 _ACEOF
3978 ac_clean_files_save=$ac_clean_files
3979 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3980 # Try to create an executable without -o first, disregard a.out.
3981 # It will help us diagnose broken compilers, and finding out an intuition
3982 # of exeext.
3983 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3984 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3985 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3986 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3987   (eval $ac_link_default) 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); }; then
3991   # Find the output, starting from the most likely.  This scheme is
3992 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3993 # resort.
3994
3995 # Be careful to initialize this variable, since it used to be cached.
3996 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3997 ac_cv_exeext=
3998 # b.out is created by i960 compilers.
3999 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4000 do
4001   test -f "$ac_file" || continue
4002   case $ac_file in
4003     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4004         ;;
4005     conftest.$ac_ext )
4006         # This is the source file.
4007         ;;
4008     [ab].out )
4009         # We found the default executable, but exeext='' is most
4010         # certainly right.
4011         break;;
4012     *.* )
4013         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4014         # FIXME: I believe we export ac_cv_exeext for Libtool,
4015         # but it would be cool to find out if it's true.  Does anybody
4016         # maintain Libtool? --akim.
4017         export ac_cv_exeext
4018         break;;
4019     * )
4020         break;;
4021   esac
4022 done
4023 else
4024   echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4026
4027 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4028 See \`config.log' for more details." >&5
4029 echo "$as_me: error: C compiler cannot create executables
4030 See \`config.log' for more details." >&2;}
4031    { (exit 77); exit 77; }; }
4032 fi
4033
4034 ac_exeext=$ac_cv_exeext
4035 echo "$as_me:$LINENO: result: $ac_file" >&5
4036 echo "${ECHO_T}$ac_file" >&6
4037
4038 # Check the compiler produces executables we can run.  If not, either
4039 # the compiler is broken, or we cross compile.
4040 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4041 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4042 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4043 # If not cross compiling, check that we can run a simple program.
4044 if test "$cross_compiling" != yes; then
4045   if { ac_try='./$ac_file'
4046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047   (eval $ac_try) 2>&5
4048   ac_status=$?
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); }; }; then
4051     cross_compiling=no
4052   else
4053     if test "$cross_compiling" = maybe; then
4054         cross_compiling=yes
4055     else
4056         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4057 If you meant to cross compile, use \`--host'.
4058 See \`config.log' for more details." >&5
4059 echo "$as_me: error: cannot run C compiled programs.
4060 If you meant to cross compile, use \`--host'.
4061 See \`config.log' for more details." >&2;}
4062    { (exit 1); exit 1; }; }
4063     fi
4064   fi
4065 fi
4066 echo "$as_me:$LINENO: result: yes" >&5
4067 echo "${ECHO_T}yes" >&6
4068
4069 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4070 ac_clean_files=$ac_clean_files_save
4071 # Check the compiler produces executables we can run.  If not, either
4072 # the compiler is broken, or we cross compile.
4073 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4074 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4075 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4076 echo "${ECHO_T}$cross_compiling" >&6
4077
4078 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4079 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4081   (eval $ac_link) 2>&5
4082   ac_status=$?
4083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084   (exit $ac_status); }; then
4085   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4086 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4087 # work properly (i.e., refer to `conftest.exe'), while it won't with
4088 # `rm'.
4089 for ac_file in conftest.exe conftest conftest.*; do
4090   test -f "$ac_file" || continue
4091   case $ac_file in
4092     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4093     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4094           export ac_cv_exeext
4095           break;;
4096     * ) break;;
4097   esac
4098 done
4099 else
4100   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4101 See \`config.log' for more details." >&5
4102 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4103 See \`config.log' for more details." >&2;}
4104    { (exit 1); exit 1; }; }
4105 fi
4106
4107 rm -f conftest$ac_cv_exeext
4108 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4109 echo "${ECHO_T}$ac_cv_exeext" >&6
4110
4111 rm -f conftest.$ac_ext
4112 EXEEXT=$ac_cv_exeext
4113 ac_exeext=$EXEEXT
4114 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4115 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4116 if test "${ac_cv_objext+set}" = set; then
4117   echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119   cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h.  */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h.  */
4125
4126 int
4127 main ()
4128 {
4129
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.o conftest.obj
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136   (eval $ac_compile) 2>&5
4137   ac_status=$?
4138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139   (exit $ac_status); }; then
4140   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4141   case $ac_file in
4142     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4143     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4144        break;;
4145   esac
4146 done
4147 else
4148   echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4150
4151 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4152 See \`config.log' for more details." >&5
4153 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4154 See \`config.log' for more details." >&2;}
4155    { (exit 1); exit 1; }; }
4156 fi
4157
4158 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4159 fi
4160 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4161 echo "${ECHO_T}$ac_cv_objext" >&6
4162 OBJEXT=$ac_cv_objext
4163 ac_objext=$OBJEXT
4164 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4165 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4166 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169   cat >conftest.$ac_ext <<_ACEOF
4170 /* confdefs.h.  */
4171 _ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h.  */
4175
4176 int
4177 main ()
4178 {
4179 #ifndef __GNUC__
4180        choke me
4181 #endif
4182
4183   ;
4184   return 0;
4185 }
4186 _ACEOF
4187 rm -f conftest.$ac_objext
4188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189   (eval $ac_compile) 2>conftest.er1
4190   ac_status=$?
4191   grep -v '^ *+' conftest.er1 >conftest.err
4192   rm -f conftest.er1
4193   cat conftest.err >&5
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); } &&
4196          { ac_try='test -z "$ac_c_werror_flag"
4197                          || test ! -s conftest.err'
4198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199   (eval $ac_try) 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); }; } &&
4203          { ac_try='test -s conftest.$ac_objext'
4204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205   (eval $ac_try) 2>&5
4206   ac_status=$?
4207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); }; }; then
4209   ac_compiler_gnu=yes
4210 else
4211   echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 ac_compiler_gnu=no
4215 fi
4216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4218
4219 fi
4220 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4221 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4222 GCC=`test $ac_compiler_gnu = yes && echo yes`
4223 ac_test_CFLAGS=${CFLAGS+set}
4224 ac_save_CFLAGS=$CFLAGS
4225 CFLAGS="-g"
4226 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4227 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4228 if test "${ac_cv_prog_cc_g+set}" = set; then
4229   echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231   cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237
4238 int
4239 main ()
4240 {
4241
4242   ;
4243   return 0;
4244 }
4245 _ACEOF
4246 rm -f conftest.$ac_objext
4247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4248   (eval $ac_compile) 2>conftest.er1
4249   ac_status=$?
4250   grep -v '^ *+' conftest.er1 >conftest.err
4251   rm -f conftest.er1
4252   cat conftest.err >&5
4253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254   (exit $ac_status); } &&
4255          { ac_try='test -z "$ac_c_werror_flag"
4256                          || test ! -s conftest.err'
4257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258   (eval $ac_try) 2>&5
4259   ac_status=$?
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); }; } &&
4262          { ac_try='test -s conftest.$ac_objext'
4263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264   (eval $ac_try) 2>&5
4265   ac_status=$?
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); }; }; then
4268   ac_cv_prog_cc_g=yes
4269 else
4270   echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4272
4273 ac_cv_prog_cc_g=no
4274 fi
4275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4276 fi
4277 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4278 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4279 if test "$ac_test_CFLAGS" = set; then
4280   CFLAGS=$ac_save_CFLAGS
4281 elif test $ac_cv_prog_cc_g = yes; then
4282   if test "$GCC" = yes; then
4283     CFLAGS="-g -O2"
4284   else
4285     CFLAGS="-g"
4286   fi
4287 else
4288   if test "$GCC" = yes; then
4289     CFLAGS="-O2"
4290   else
4291     CFLAGS=
4292   fi
4293 fi
4294 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4295 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4296 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4297   echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299   ac_cv_prog_cc_stdc=no
4300 ac_save_CC=$CC
4301 cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h.  */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h.  */
4307 #include <stdarg.h>
4308 #include <stdio.h>
4309 #include <sys/types.h>
4310 #include <sys/stat.h>
4311 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4312 struct buf { int x; };
4313 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4314 static char *e (p, i)
4315      char **p;
4316      int i;
4317 {
4318   return p[i];
4319 }
4320 static char *f (char * (*g) (char **, int), char **p, ...)
4321 {
4322   char *s;
4323   va_list v;
4324   va_start (v,p);
4325   s = g (p, va_arg (v,int));
4326   va_end (v);
4327   return s;
4328 }
4329
4330 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4331    function prototypes and stuff, but not '\xHH' hex character constants.
4332    These don't provoke an error unfortunately, instead are silently treated
4333    as 'x'.  The following induces an error, until -std1 is added to get
4334    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4335    array size at least.  It's necessary to write '\x00'==0 to get something
4336    that's true only with -std1.  */
4337 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4338
4339 int test (int i, double x);
4340 struct s1 {int (*f) (int a);};
4341 struct s2 {int (*f) (double a);};
4342 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4343 int argc;
4344 char **argv;
4345 int
4346 main ()
4347 {
4348 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4349   ;
4350   return 0;
4351 }
4352 _ACEOF
4353 # Don't try gcc -ansi; that turns off useful extensions and
4354 # breaks some systems' header files.
4355 # AIX                   -qlanglvl=ansi
4356 # Ultrix and OSF/1      -std1
4357 # HP-UX 10.20 and later -Ae
4358 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4359 # SVR4                  -Xc -D__EXTENSIONS__
4360 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4361 do
4362   CC="$ac_save_CC $ac_arg"
4363   rm -f conftest.$ac_objext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365   (eval $ac_compile) 2>conftest.er1
4366   ac_status=$?
4367   grep -v '^ *+' conftest.er1 >conftest.err
4368   rm -f conftest.er1
4369   cat conftest.err >&5
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); } &&
4372          { ac_try='test -z "$ac_c_werror_flag"
4373                          || test ! -s conftest.err'
4374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375   (eval $ac_try) 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); }; } &&
4379          { ac_try='test -s conftest.$ac_objext'
4380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381   (eval $ac_try) 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); }; }; then
4385   ac_cv_prog_cc_stdc=$ac_arg
4386 break
4387 else
4388   echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4390
4391 fi
4392 rm -f conftest.err conftest.$ac_objext
4393 done
4394 rm -f conftest.$ac_ext conftest.$ac_objext
4395 CC=$ac_save_CC
4396
4397 fi
4398
4399 case "x$ac_cv_prog_cc_stdc" in
4400   x|xno)
4401     echo "$as_me:$LINENO: result: none needed" >&5
4402 echo "${ECHO_T}none needed" >&6 ;;
4403   *)
4404     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4405 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4406     CC="$CC $ac_cv_prog_cc_stdc" ;;
4407 esac
4408
4409 # Some people use a C++ compiler to compile C.  Since we use `exit',
4410 # in C++ we need to declare it.  In case someone uses the same compiler
4411 # for both compiling C and C++ we need to have the C++ compiler decide
4412 # the declaration of exit, since it's the most demanding environment.
4413 cat >conftest.$ac_ext <<_ACEOF
4414 #ifndef __cplusplus
4415   choke me
4416 #endif
4417 _ACEOF
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420   (eval $ac_compile) 2>conftest.er1
4421   ac_status=$?
4422   grep -v '^ *+' conftest.er1 >conftest.err
4423   rm -f conftest.er1
4424   cat conftest.err >&5
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); } &&
4427          { ac_try='test -z "$ac_c_werror_flag"
4428                          || test ! -s conftest.err'
4429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430   (eval $ac_try) 2>&5
4431   ac_status=$?
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); }; } &&
4434          { ac_try='test -s conftest.$ac_objext'
4435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436   (eval $ac_try) 2>&5
4437   ac_status=$?
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); }; }; then
4440   for ac_declaration in \
4441    '' \
4442    'extern "C" void std::exit (int) throw (); using std::exit;' \
4443    'extern "C" void std::exit (int); using std::exit;' \
4444    'extern "C" void exit (int) throw ();' \
4445    'extern "C" void exit (int);' \
4446    'void exit (int);'
4447 do
4448   cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454 $ac_declaration
4455 #include <stdlib.h>
4456 int
4457 main ()
4458 {
4459 exit (42);
4460   ;
4461   return 0;
4462 }
4463 _ACEOF
4464 rm -f conftest.$ac_objext
4465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4466   (eval $ac_compile) 2>conftest.er1
4467   ac_status=$?
4468   grep -v '^ *+' conftest.er1 >conftest.err
4469   rm -f conftest.er1
4470   cat conftest.err >&5
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); } &&
4473          { ac_try='test -z "$ac_c_werror_flag"
4474                          || test ! -s conftest.err'
4475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476   (eval $ac_try) 2>&5
4477   ac_status=$?
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); }; } &&
4480          { ac_try='test -s conftest.$ac_objext'
4481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482   (eval $ac_try) 2>&5
4483   ac_status=$?
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); }; }; then
4486   :
4487 else
4488   echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4490
4491 continue
4492 fi
4493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4494   cat >conftest.$ac_ext <<_ACEOF
4495 /* confdefs.h.  */
4496 _ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h.  */
4500 $ac_declaration
4501 int
4502 main ()
4503 {
4504 exit (42);
4505   ;
4506   return 0;
4507 }
4508 _ACEOF
4509 rm -f conftest.$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511   (eval $ac_compile) 2>conftest.er1
4512   ac_status=$?
4513   grep -v '^ *+' conftest.er1 >conftest.err
4514   rm -f conftest.er1
4515   cat conftest.err >&5
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); } &&
4518          { ac_try='test -z "$ac_c_werror_flag"
4519                          || test ! -s conftest.err'
4520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521   (eval $ac_try) 2>&5
4522   ac_status=$?
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); }; } &&
4525          { ac_try='test -s conftest.$ac_objext'
4526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527   (eval $ac_try) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); }; }; then
4531   break
4532 else
4533   echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4535
4536 fi
4537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4538 done
4539 rm -f conftest*
4540 if test -n "$ac_declaration"; then
4541   echo '#ifdef __cplusplus' >>confdefs.h
4542   echo $ac_declaration      >>confdefs.h
4543   echo '#endif'             >>confdefs.h
4544 fi
4545
4546 else
4547   echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4549
4550 fi
4551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4552 ac_ext=c
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557 DEPDIR="${am__leading_dot}deps"
4558
4559           ac_config_commands="$ac_config_commands depfiles"
4560
4561
4562 am_make=${MAKE-make}
4563 cat > confinc << 'END'
4564 am__doit:
4565         @echo done
4566 .PHONY: am__doit
4567 END
4568 # If we don't find an include directive, just comment out the code.
4569 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4570 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4571 am__include="#"
4572 am__quote=
4573 _am_result=none
4574 # First try GNU make style include.
4575 echo "include confinc" > confmf
4576 # We grep out `Entering directory' and `Leaving directory'
4577 # messages which can occur if `w' ends up in MAKEFLAGS.
4578 # In particular we don't look at `^make:' because GNU make might
4579 # be invoked under some other name (usually "gmake"), in which
4580 # case it prints its new name instead of `make'.
4581 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4582    am__include=include
4583    am__quote=
4584    _am_result=GNU
4585 fi
4586 # Now try BSD make style include.
4587 if test "$am__include" = "#"; then
4588    echo '.include "confinc"' > confmf
4589    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4590       am__include=.include
4591       am__quote="\""
4592       _am_result=BSD
4593    fi
4594 fi
4595
4596
4597 echo "$as_me:$LINENO: result: $_am_result" >&5
4598 echo "${ECHO_T}$_am_result" >&6
4599 rm -f confinc confmf
4600
4601 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4602 if test "${enable_dependency_tracking+set}" = set; then
4603   enableval="$enable_dependency_tracking"
4604
4605 fi;
4606 if test "x$enable_dependency_tracking" != xno; then
4607   am_depcomp="$ac_aux_dir/depcomp"
4608   AMDEPBACKSLASH='\'
4609 fi
4610
4611
4612 if test "x$enable_dependency_tracking" != xno; then
4613   AMDEP_TRUE=
4614   AMDEP_FALSE='#'
4615 else
4616   AMDEP_TRUE='#'
4617   AMDEP_FALSE=
4618 fi
4619
4620
4621
4622
4623 depcc="$CC"   am_compiler_list=
4624
4625 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4626 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4627 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4628   echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4631   # We make a subdir and do the tests there.  Otherwise we can end up
4632   # making bogus files that we don't know about and never remove.  For
4633   # instance it was reported that on HP-UX the gcc test will end up
4634   # making a dummy file named `D' -- because `-MD' means `put the output
4635   # in D'.
4636   mkdir conftest.dir
4637   # Copy depcomp to subdir because otherwise we won't find it if we're
4638   # using a relative directory.
4639   cp "$am_depcomp" conftest.dir
4640   cd conftest.dir
4641   # We will build objects and dependencies in a subdirectory because
4642   # it helps to detect inapplicable dependency modes.  For instance
4643   # both Tru64's cc and ICC support -MD to output dependencies as a
4644   # side effect of compilation, but ICC will put the dependencies in
4645   # the current directory while Tru64 will put them in the object
4646   # directory.
4647   mkdir sub
4648
4649   am_cv_CC_dependencies_compiler_type=none
4650   if test "$am_compiler_list" = ""; then
4651      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4652   fi
4653   for depmode in $am_compiler_list; do
4654     # Setup a source with many dependencies, because some compilers
4655     # like to wrap large dependency lists on column 80 (with \), and
4656     # we should not choose a depcomp mode which is confused by this.
4657     #
4658     # We need to recreate these files for each test, as the compiler may
4659     # overwrite some of them when testing with obscure command lines.
4660     # This happens at least with the AIX C compiler.
4661     : > sub/conftest.c
4662     for i in 1 2 3 4 5 6; do
4663       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4664       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4665       # Solaris 8's {/usr,}/bin/sh.
4666       touch sub/conftst$i.h
4667     done
4668     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4669
4670     case $depmode in
4671     nosideeffect)
4672       # after this tag, mechanisms are not by side-effect, so they'll
4673       # only be used when explicitly requested
4674       if test "x$enable_dependency_tracking" = xyes; then
4675         continue
4676       else
4677         break
4678       fi
4679       ;;
4680     none) break ;;
4681     esac
4682     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4683     # mode.  It turns out that the SunPro C++ compiler does not properly
4684     # handle `-M -o', and we need to detect this.
4685     if depmode=$depmode \
4686        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4687        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4688        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4689          >/dev/null 2>conftest.err &&
4690        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4691        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4692        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4693       # icc doesn't choke on unknown options, it will just issue warnings
4694       # or remarks (even with -Werror).  So we grep stderr for any message
4695       # that says an option was ignored or not supported.
4696       # When given -MP, icc 7.0 and 7.1 complain thusly:
4697       #   icc: Command line warning: ignoring option '-M'; no argument required
4698       # The diagnosis changed in icc 8.0:
4699       #   icc: Command line remark: option '-MP' not supported
4700       if (grep 'ignoring option' conftest.err ||
4701           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4702         am_cv_CC_dependencies_compiler_type=$depmode
4703         break
4704       fi
4705     fi
4706   done
4707
4708   cd ..
4709   rm -rf conftest.dir
4710 else
4711   am_cv_CC_dependencies_compiler_type=none
4712 fi
4713
4714 fi
4715 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4716 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4717 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4718
4719
4720
4721 if
4722   test "x$enable_dependency_tracking" != xno \
4723   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4724   am__fastdepCC_TRUE=
4725   am__fastdepCC_FALSE='#'
4726 else
4727   am__fastdepCC_TRUE='#'
4728   am__fastdepCC_FALSE=
4729 fi
4730
4731
4732
4733
4734
4735 DUMP_PROGRAMS="ufsdump dump backup"
4736 GETCONF_LFS="LFS"
4737
4738 dump_returns_1=
4739 xenix_tapeio=
4740 case "$target" in
4741     *-dec-osf*)
4742
4743 cat >>confdefs.h <<\_ACEOF
4744 #define STATFS_OSF1 1
4745 _ACEOF
4746
4747                         ;;
4748     *-dg-*)
4749                         DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
4750                         : ${USE_RUNDUMP=yes}
4751                         dump_returns_1=yes
4752                         ;;
4753     *-netbsd*)
4754                         ;;
4755     *-freebsd*)
4756                         ;;
4757     *-openbsd*)
4758                         ;;
4759     *-hp-*)
4760                         MT_FILE_FLAG="-t"
4761                         GETCONF_LFS="XBS5_ILP32_OFFBIG"
4762                         case "$CC" in
4763                             *gcc*)
4764                                 AMANDA_CPPFLAGS="-D__STDC_EXT__ $AMANDA_CPPFLAGS"
4765                                 ;;
4766                             *cc*)
4767                                 AMANDA_CFLAGS="-Ae $AMANDA_CFLAGS"
4768                                 ;;
4769                         esac
4770                         ;;
4771   *-ibm-aix*)
4772                         GETCONF_LFS="XBS5_ILP32_OFFBIG"
4773                         DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
4774
4775 cat >>confdefs.h <<\_ACEOF
4776 #define AIX_TAPEIO 1
4777 _ACEOF
4778
4779
4780 cat >>confdefs.h <<\_ACEOF
4781 #define AIX_BACKUP 1
4782 _ACEOF
4783
4784                         ;;
4785   m88k-motorola-sysv4)
4786                         ;;
4787   *-nextstep3)
4788                         ;;
4789   *-pc-bsdi*)
4790                         ;;
4791   *-pc-linux-*)
4792                         ;;
4793   alpha*-*-linux-*)
4794                         ;;
4795   sparc*-*-linux-*)
4796                         ;;
4797   powerpc-*-linux-*)
4798                         ;;
4799   *-sgi-irix3*)
4800                                                 CC=gcc
4801                         ;;
4802   *-sgi-irix4*)
4803                         ;;
4804   *-sgi-irix5*)
4805                         ;;
4806   *-sgi-irix6*)
4807                         ;;
4808   *-solaris2*)
4809                         ;;
4810   *-sun-sunos4.1*)
4811                         ;;
4812   *-ultrix*)
4813                         : ${USE_RUNDUMP=yes}
4814
4815 cat >>confdefs.h <<\_ACEOF
4816 #define STATFS_ULTRIX 1
4817 _ACEOF
4818
4819                         dump_returns_1=yes
4820                         ;;
4821   *-sysv4.2uw2*)
4822
4823 cat >>confdefs.h <<\_ACEOF
4824 #define UWARE_TAPEIO 1
4825 _ACEOF
4826
4827                         ;;
4828   *-sco3.2v4*)
4829                         DEV_PREFIX=/dev/
4830                         RDEV_PREFIX=/dev/
4831                         ;;
4832   *-sco3.2v5*)
4833                         xenix_tapeio=yes
4834
4835 cat >>confdefs.h <<\_ACEOF
4836 #define STATFS_SCO_OS5 1
4837 _ACEOF
4838
4839                         ;;
4840   i386-pc-isc4*)
4841                         xenix_tapeio=yes
4842                         ;;
4843   *-sni-sysv4)
4844                         ;;
4845   *-pc-cygwin)
4846
4847 cat >>confdefs.h <<\_ACEOF
4848 #define IGNORE_TAR_ERRORS 1
4849 _ACEOF
4850
4851                         # Cygwin needs PATH to find cygwin1.dll
4852
4853 cat >>confdefs.h <<\_ACEOF
4854 #define NEED_PATH_ENV 1
4855 _ACEOF
4856
4857
4858 cat >>confdefs.h <<\_ACEOF
4859 #define IGNORE_UID_CHECK 1
4860 _ACEOF
4861
4862
4863 cat >>confdefs.h <<\_ACEOF
4864 #define IGNORE_FSTAB 1
4865 _ACEOF
4866
4867
4868 cat >>confdefs.h <<\_ACEOF
4869 #define DONT_SUID_ROOT 1
4870 _ACEOF
4871
4872                         NEED_SETUID_CLIENT=false
4873                         NEED_RUNTIME_PSEUDO_RELOC=true
4874                         ;;
4875   *)
4876                         cat <<END
4877
4878 *****
4879 This machine, target type $target, is not known
4880 to be fully supported by this configure script.  If the
4881 installation of Amanda on this system succeeds or needed
4882 any patches, please email amanda-hackers@amanda.org with
4883 the patches or an indication of the sucess or failure of
4884 the Amanda installation on your system.
4885 *****
4886
4887 END
4888                 ;;
4889 esac
4890
4891 if test -n "$dump_returns_1"; then
4892
4893 cat >>confdefs.h <<\_ACEOF
4894 #define DUMP_RETURNS_1 1
4895 _ACEOF
4896
4897 fi
4898
4899 if test -n "$xenix_tapeio"; then
4900
4901 cat >>confdefs.h <<\_ACEOF
4902 #define XENIX_TAPEIO 1
4903 _ACEOF
4904
4905 fi
4906
4907 AMANDA_CFLAGS="$AMANDA_CFLAGS $KRB4INCLUDES"
4908 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS $KRB4INCLUDES"
4909 AMANDA_LDFLAGS="$AMANDA_LDFLAGS $KRB4LDFLAGS"
4910 AMANDA_LIBS="$KRB4LIBS $AMANDA_LIBS"
4911 CFLAGS="$CFLAGS $AMANDA_CFLAGS"
4912 CPPFLAGS="$CPPFLAGS $AMANDA_CPPFLAGS"
4913 LDFLAGS="$LDFLAGS $AMANDA_LDFLAGS"
4914 LIBS="$AMANDA_LIBS $LIBS"
4915
4916
4917 : ${MT_FILE_FLAG="-f"}
4918
4919
4920 cat >>confdefs.h <<_ACEOF
4921 #define MT_FILE_FLAG "$MT_FILE_FLAG"
4922 _ACEOF
4923
4924
4925
4926 ac_ext=c
4927 ac_cpp='$CPP $CPPFLAGS'
4928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4932 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4933 # On Suns, sometimes $CPP names a directory.
4934 if test -n "$CPP" && test -d "$CPP"; then
4935   CPP=
4936 fi
4937 if test -z "$CPP"; then
4938   if test "${ac_cv_prog_CPP+set}" = set; then
4939   echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941       # Double quotes because CPP needs to be expanded
4942     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4943     do
4944       ac_preproc_ok=false
4945 for ac_c_preproc_warn_flag in '' yes
4946 do
4947   # Use a header file that comes with gcc, so configuring glibc
4948   # with a fresh cross-compiler works.
4949   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4950   # <limits.h> exists even on freestanding compilers.
4951   # On the NeXT, cc -E runs the code through the compiler's parser,
4952   # not just through cpp. "Syntax error" is here to catch this case.
4953   cat >conftest.$ac_ext <<_ACEOF
4954 /* confdefs.h.  */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h.  */
4959 #ifdef __STDC__
4960 # include <limits.h>
4961 #else
4962 # include <assert.h>
4963 #endif
4964                      Syntax error
4965 _ACEOF
4966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4967   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4968   ac_status=$?
4969   grep -v '^ *+' conftest.er1 >conftest.err
4970   rm -f conftest.er1
4971   cat conftest.err >&5
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); } >/dev/null; then
4974   if test -s conftest.err; then
4975     ac_cpp_err=$ac_c_preproc_warn_flag
4976     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4977   else
4978     ac_cpp_err=
4979   fi
4980 else
4981   ac_cpp_err=yes
4982 fi
4983 if test -z "$ac_cpp_err"; then
4984   :
4985 else
4986   echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4988
4989   # Broken: fails on valid input.
4990 continue
4991 fi
4992 rm -f conftest.err conftest.$ac_ext
4993
4994   # OK, works on sane cases.  Now check whether non-existent headers
4995   # can be detected and how.
4996   cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h.  */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h.  */
5002 #include <ac_nonexistent.h>
5003 _ACEOF
5004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5006   ac_status=$?
5007   grep -v '^ *+' conftest.er1 >conftest.err
5008   rm -f conftest.er1
5009   cat conftest.err >&5
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); } >/dev/null; then
5012   if test -s conftest.err; then
5013     ac_cpp_err=$ac_c_preproc_warn_flag
5014     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5015   else
5016     ac_cpp_err=
5017   fi
5018 else
5019   ac_cpp_err=yes
5020 fi
5021 if test -z "$ac_cpp_err"; then
5022   # Broken: success on invalid input.
5023 continue
5024 else
5025   echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028   # Passes both tests.
5029 ac_preproc_ok=:
5030 break
5031 fi
5032 rm -f conftest.err conftest.$ac_ext
5033
5034 done
5035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5036 rm -f conftest.err conftest.$ac_ext
5037 if $ac_preproc_ok; then
5038   break
5039 fi
5040
5041     done
5042     ac_cv_prog_CPP=$CPP
5043
5044 fi
5045   CPP=$ac_cv_prog_CPP
5046 else
5047   ac_cv_prog_CPP=$CPP
5048 fi
5049 echo "$as_me:$LINENO: result: $CPP" >&5
5050 echo "${ECHO_T}$CPP" >&6
5051 ac_preproc_ok=false
5052 for ac_c_preproc_warn_flag in '' yes
5053 do
5054   # Use a header file that comes with gcc, so configuring glibc
5055   # with a fresh cross-compiler works.
5056   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057   # <limits.h> exists even on freestanding compilers.
5058   # On the NeXT, cc -E runs the code through the compiler's parser,
5059   # not just through cpp. "Syntax error" is here to catch this case.
5060   cat >conftest.$ac_ext <<_ACEOF
5061 /* confdefs.h.  */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h.  */
5066 #ifdef __STDC__
5067 # include <limits.h>
5068 #else
5069 # include <assert.h>
5070 #endif
5071                      Syntax error
5072 _ACEOF
5073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5074   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5075   ac_status=$?
5076   grep -v '^ *+' conftest.er1 >conftest.err
5077   rm -f conftest.er1
5078   cat conftest.err >&5
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); } >/dev/null; then
5081   if test -s conftest.err; then
5082     ac_cpp_err=$ac_c_preproc_warn_flag
5083     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5084   else
5085     ac_cpp_err=
5086   fi
5087 else
5088   ac_cpp_err=yes
5089 fi
5090 if test -z "$ac_cpp_err"; then
5091   :
5092 else
5093   echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5095
5096   # Broken: fails on valid input.
5097 continue
5098 fi
5099 rm -f conftest.err conftest.$ac_ext
5100
5101   # OK, works on sane cases.  Now check whether non-existent headers
5102   # can be detected and how.
5103   cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h.  */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h.  */
5109 #include <ac_nonexistent.h>
5110 _ACEOF
5111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5112   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5113   ac_status=$?
5114   grep -v '^ *+' conftest.er1 >conftest.err
5115   rm -f conftest.er1
5116   cat conftest.err >&5
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); } >/dev/null; then
5119   if test -s conftest.err; then
5120     ac_cpp_err=$ac_c_preproc_warn_flag
5121     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5122   else
5123     ac_cpp_err=
5124   fi
5125 else
5126   ac_cpp_err=yes
5127 fi
5128 if test -z "$ac_cpp_err"; then
5129   # Broken: success on invalid input.
5130 continue
5131 else
5132   echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135   # Passes both tests.
5136 ac_preproc_ok=:
5137 break
5138 fi
5139 rm -f conftest.err conftest.$ac_ext
5140
5141 done
5142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5143 rm -f conftest.err conftest.$ac_ext
5144 if $ac_preproc_ok; then
5145   :
5146 else
5147   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5148 See \`config.log' for more details." >&5
5149 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5150 See \`config.log' for more details." >&2;}
5151    { (exit 1); exit 1; }; }
5152 fi
5153
5154 ac_ext=c
5155 ac_cpp='$CPP $CPPFLAGS'
5156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5159
5160
5161 echo "$as_me:$LINENO: checking for egrep" >&5
5162 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5163 if test "${ac_cv_prog_egrep+set}" = set; then
5164   echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5167     then ac_cv_prog_egrep='grep -E'
5168     else ac_cv_prog_egrep='egrep'
5169     fi
5170 fi
5171 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5172 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5173  EGREP=$ac_cv_prog_egrep
5174
5175
5176 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5177 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5178 if test "${ac_cv_header_stdc+set}" = set; then
5179   echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181   cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h.  */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h.  */
5187 #include <stdlib.h>
5188 #include <stdarg.h>
5189 #include <string.h>
5190 #include <float.h>
5191
5192 int
5193 main ()
5194 {
5195
5196   ;
5197   return 0;
5198 }
5199 _ACEOF
5200 rm -f conftest.$ac_objext
5201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5202   (eval $ac_compile) 2>conftest.er1
5203   ac_status=$?
5204   grep -v '^ *+' conftest.er1 >conftest.err
5205   rm -f conftest.er1
5206   cat conftest.err >&5
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); } &&
5209          { ac_try='test -z "$ac_c_werror_flag"
5210                          || test ! -s conftest.err'
5211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212   (eval $ac_try) 2>&5
5213   ac_status=$?
5214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); }; } &&
5216          { ac_try='test -s conftest.$ac_objext'
5217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218   (eval $ac_try) 2>&5
5219   ac_status=$?
5220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); }; }; then
5222   ac_cv_header_stdc=yes
5223 else
5224   echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5226
5227 ac_cv_header_stdc=no
5228 fi
5229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5230
5231 if test $ac_cv_header_stdc = yes; then
5232   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5233   cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h.  */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h.  */
5239 #include <string.h>
5240
5241 _ACEOF
5242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5243   $EGREP "memchr" >/dev/null 2>&1; then
5244   :
5245 else
5246   ac_cv_header_stdc=no
5247 fi
5248 rm -f conftest*
5249
5250 fi
5251
5252 if test $ac_cv_header_stdc = yes; then
5253   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5254   cat >conftest.$ac_ext <<_ACEOF
5255 /* confdefs.h.  */
5256 _ACEOF
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h.  */
5260 #include <stdlib.h>
5261
5262 _ACEOF
5263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5264   $EGREP "free" >/dev/null 2>&1; then
5265   :
5266 else
5267   ac_cv_header_stdc=no
5268 fi
5269 rm -f conftest*
5270
5271 fi
5272
5273 if test $ac_cv_header_stdc = yes; then
5274   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5275   if test "$cross_compiling" = yes; then
5276   :
5277 else
5278   cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h.  */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h.  */
5284 #include <ctype.h>
5285 #if ((' ' & 0x0FF) == 0x020)
5286 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5287 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5288 #else
5289 # define ISLOWER(c) \
5290                    (('a' <= (c) && (c) <= 'i') \
5291                      || ('j' <= (c) && (c) <= 'r') \
5292                      || ('s' <= (c) && (c) <= 'z'))
5293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5294 #endif
5295
5296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5297 int
5298 main ()
5299 {
5300   int i;
5301   for (i = 0; i < 256; i++)
5302     if (XOR (islower (i), ISLOWER (i))
5303         || toupper (i) != TOUPPER (i))
5304       exit(2);
5305   exit (0);
5306 }
5307 _ACEOF
5308 rm -f conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310   (eval $ac_link) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315   (eval $ac_try) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; }; then
5319   :
5320 else
5321   echo "$as_me: program exited with status $ac_status" >&5
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325 ( exit $ac_status )
5326 ac_cv_header_stdc=no
5327 fi
5328 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5329 fi
5330 fi
5331 fi
5332 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5333 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5334 if test $ac_cv_header_stdc = yes; then
5335
5336 cat >>confdefs.h <<\_ACEOF
5337 #define STDC_HEADERS 1
5338 _ACEOF
5339
5340 fi
5341
5342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5353                   inttypes.h stdint.h unistd.h
5354 do
5355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5356 echo "$as_me:$LINENO: checking for $ac_header" >&5
5357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5359   echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361   cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h.  */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h.  */
5367 $ac_includes_default
5368
5369 #include <$ac_header>
5370 _ACEOF
5371 rm -f conftest.$ac_objext
5372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373   (eval $ac_compile) 2>conftest.er1
5374   ac_status=$?
5375   grep -v '^ *+' conftest.er1 >conftest.err
5376   rm -f conftest.er1
5377   cat conftest.err >&5
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); } &&
5380          { ac_try='test -z "$ac_c_werror_flag"
5381                          || test ! -s conftest.err'
5382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383   (eval $ac_try) 2>&5
5384   ac_status=$?
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); }; } &&
5387          { ac_try='test -s conftest.$ac_objext'
5388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389   (eval $ac_try) 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); }; }; then
5393   eval "$as_ac_Header=yes"
5394 else
5395   echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398 eval "$as_ac_Header=no"
5399 fi
5400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5401 fi
5402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5405   cat >>confdefs.h <<_ACEOF
5406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5407 _ACEOF
5408
5409 fi
5410
5411 done
5412
5413
5414 # ------ AX CREATE STDINT H -------------------------------------
5415 echo "$as_me:$LINENO: checking for stdint types" >&5
5416 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
5417 ac_stdint_h=`echo common-src/amanda-int.h`
5418 # try to shortcircuit - if the default include path of the compiler
5419 # can find a "stdint.h" header then we assume that all compilers can.
5420 if test "${ac_cv_header_stdint_t+set}" = set; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423
5424 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
5425 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
5426 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h.  */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h.  */
5433 #include <stdint.h>
5434 int
5435 main ()
5436 {
5437 int_least32_t v = 0;
5438   ;
5439   return 0;
5440 }
5441 _ACEOF
5442 rm -f conftest.$ac_objext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444   (eval $ac_compile) 2>conftest.er1
5445   ac_status=$?
5446   grep -v '^ *+' conftest.er1 >conftest.err
5447   rm -f conftest.er1
5448   cat conftest.err >&5
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); } &&
5451          { ac_try='test -z "$ac_c_werror_flag"
5452                          || test ! -s conftest.err'
5453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454   (eval $ac_try) 2>&5
5455   ac_status=$?
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); }; } &&
5458          { ac_try='test -s conftest.$ac_objext'
5459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460   (eval $ac_try) 2>&5
5461   ac_status=$?
5462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463   (exit $ac_status); }; }; then
5464   ac_cv_stdint_result="(assuming C99 compatible system)"
5465  ac_cv_header_stdint_t="stdint.h";
5466 else
5467   echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5469
5470 ac_cv_header_stdint_t=""
5471 fi
5472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473 CXXFLAGS="$old_CXXFLAGS"
5474 CPPFLAGS="$old_CPPFLAGS"
5475 CFLAGS="$old_CFLAGS"
5476 fi
5477
5478
5479 v="... $ac_cv_header_stdint_h"
5480 if test "$ac_stdint_h" = "stdint.h" ; then
5481  echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
5482 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
5483 elif test "$ac_stdint_h" = "inttypes.h" ; then
5484  echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
5485 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
5486 elif test "_$ac_cv_header_stdint_t" = "_" ; then
5487  echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
5488 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
5489 else
5490  ac_cv_header_stdint="$ac_cv_header_stdint_t"
5491  echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
5492 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
5493 fi
5494
5495 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
5496
5497
5498 inttype_headers=`echo  | sed -e 's/,/ /g'`
5499
5500 ac_cv_stdint_result="(no helpful system typedefs seen)"
5501 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
5502 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
5503 if test "${ac_cv_header_stdint_x+set}" = set; then
5504   echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506
5507  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
5508   echo "$as_me:$LINENO: result: (..)" >&5
5509 echo "${ECHO_T}(..)" >&6
5510   for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
5511    unset ac_cv_type_uintptr_t
5512    unset ac_cv_type_uint64_t
5513    echo "$as_me:$LINENO: checking for uintptr_t" >&5
5514 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5515 if test "${ac_cv_type_uintptr_t+set}" = set; then
5516   echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518   cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h.  */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h.  */
5524 #include <$i>
5525
5526 int
5527 main ()
5528 {
5529 if ((uintptr_t *) 0)
5530   return 0;
5531 if (sizeof (uintptr_t))
5532   return 0;
5533   ;
5534   return 0;
5535 }
5536 _ACEOF
5537 rm -f conftest.$ac_objext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539   (eval $ac_compile) 2>conftest.er1
5540   ac_status=$?
5541   grep -v '^ *+' conftest.er1 >conftest.err
5542   rm -f conftest.er1
5543   cat conftest.err >&5
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); } &&
5546          { ac_try='test -z "$ac_c_werror_flag"
5547                          || test ! -s conftest.err'
5548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549   (eval $ac_try) 2>&5
5550   ac_status=$?
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); }; } &&
5553          { ac_try='test -s conftest.$ac_objext'
5554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555   (eval $ac_try) 2>&5
5556   ac_status=$?
5557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558   (exit $ac_status); }; }; then
5559   ac_cv_type_uintptr_t=yes
5560 else
5561   echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5563
5564 ac_cv_type_uintptr_t=no
5565 fi
5566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5567 fi
5568 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5569 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5570 if test $ac_cv_type_uintptr_t = yes; then
5571   ac_cv_header_stdint_x=$i
5572 else
5573        continue
5574 fi
5575
5576    echo "$as_me:$LINENO: checking for uint64_t" >&5
5577 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5578 if test "${ac_cv_type_uint64_t+set}" = set; then
5579   echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581   cat >conftest.$ac_ext <<_ACEOF
5582 /* confdefs.h.  */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h.  */
5587 #include<$i>
5588
5589 int
5590 main ()
5591 {
5592 if ((uint64_t *) 0)
5593   return 0;
5594 if (sizeof (uint64_t))
5595   return 0;
5596   ;
5597   return 0;
5598 }
5599 _ACEOF
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602   (eval $ac_compile) 2>conftest.er1
5603   ac_status=$?
5604   grep -v '^ *+' conftest.er1 >conftest.err
5605   rm -f conftest.er1
5606   cat conftest.err >&5
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } &&
5609          { ac_try='test -z "$ac_c_werror_flag"
5610                          || test ! -s conftest.err'
5611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612   (eval $ac_try) 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); }; } &&
5616          { ac_try='test -s conftest.$ac_objext'
5617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618   (eval $ac_try) 2>&5
5619   ac_status=$?
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); }; }; then
5622   ac_cv_type_uint64_t=yes
5623 else
5624   echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627 ac_cv_type_uint64_t=no
5628 fi
5629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5630 fi
5631 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5632 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5633 if test $ac_cv_type_uint64_t = yes; then
5634   and64="/uint64_t"
5635 else
5636   and64=""
5637 fi
5638
5639    ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
5640    break;
5641   done
5642   echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
5643 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
5644
5645 fi
5646 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
5647 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
5648
5649 if test "_$ac_cv_header_stdint_x" = "_" ; then
5650 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
5651 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
5652 if test "${ac_cv_header_stdint_o+set}" = set; then
5653   echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655
5656  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
5657   echo "$as_me:$LINENO: result: (..)" >&5
5658 echo "${ECHO_T}(..)" >&6
5659   for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
5660    unset ac_cv_type_uint32_t
5661    unset ac_cv_type_uint64_t
5662    echo "$as_me:$LINENO: checking for uint32_t" >&5
5663 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5664 if test "${ac_cv_type_uint32_t+set}" = set; then
5665   echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667   cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h.  */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h.  */
5673 #include <$i>
5674
5675 int
5676 main ()
5677 {
5678 if ((uint32_t *) 0)
5679   return 0;
5680 if (sizeof (uint32_t))
5681   return 0;
5682   ;
5683   return 0;
5684 }
5685 _ACEOF
5686 rm -f conftest.$ac_objext
5687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5688   (eval $ac_compile) 2>conftest.er1
5689   ac_status=$?
5690   grep -v '^ *+' conftest.er1 >conftest.err
5691   rm -f conftest.er1
5692   cat conftest.err >&5
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); } &&
5695          { ac_try='test -z "$ac_c_werror_flag"
5696                          || test ! -s conftest.err'
5697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698   (eval $ac_try) 2>&5
5699   ac_status=$?
5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); }; } &&
5702          { ac_try='test -s conftest.$ac_objext'
5703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704   (eval $ac_try) 2>&5
5705   ac_status=$?
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); }; }; then
5708   ac_cv_type_uint32_t=yes
5709 else
5710   echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5712
5713 ac_cv_type_uint32_t=no
5714 fi
5715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5716 fi
5717 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5718 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5719 if test $ac_cv_type_uint32_t = yes; then
5720   ac_cv_header_stdint_o=$i
5721 else
5722        continue
5723 fi
5724
5725    echo "$as_me:$LINENO: checking for uint64_t" >&5
5726 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5727 if test "${ac_cv_type_uint64_t+set}" = set; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730   cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h.  */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h.  */
5736 #include<$i>
5737
5738 int
5739 main ()
5740 {
5741 if ((uint64_t *) 0)
5742   return 0;
5743 if (sizeof (uint64_t))
5744   return 0;
5745   ;
5746   return 0;
5747 }
5748 _ACEOF
5749 rm -f conftest.$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751   (eval $ac_compile) 2>conftest.er1
5752   ac_status=$?
5753   grep -v '^ *+' conftest.er1 >conftest.err
5754   rm -f conftest.er1
5755   cat conftest.err >&5
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); } &&
5758          { ac_try='test -z "$ac_c_werror_flag"
5759                          || test ! -s conftest.err'
5760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761   (eval $ac_try) 2>&5
5762   ac_status=$?
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); }; } &&
5765          { ac_try='test -s conftest.$ac_objext'
5766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767   (eval $ac_try) 2>&5
5768   ac_status=$?
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); }; }; then
5771   ac_cv_type_uint64_t=yes
5772 else
5773   echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5775
5776 ac_cv_type_uint64_t=no
5777 fi
5778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5779 fi
5780 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5781 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5782 if test $ac_cv_type_uint64_t = yes; then
5783   and64="/uint64_t"
5784 else
5785   and64=""
5786 fi
5787
5788    ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
5789    break;
5790   done
5791   echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
5792 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
5793
5794 fi
5795 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
5796 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
5797 fi
5798
5799 if test "_$ac_cv_header_stdint_x" = "_" ; then
5800 if test "_$ac_cv_header_stdint_o" = "_" ; then
5801 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
5802 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
5803 if test "${ac_cv_header_stdint_u+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806
5807  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
5808   echo "$as_me:$LINENO: result: (..)" >&5
5809 echo "${ECHO_T}(..)" >&6
5810   for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
5811    unset ac_cv_type_u_int32_t
5812    unset ac_cv_type_u_int64_t
5813    echo "$as_me:$LINENO: checking for u_int32_t" >&5
5814 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5815 if test "${ac_cv_type_u_int32_t+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h.  */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h.  */
5824 #include <$i>
5825
5826 int
5827 main ()
5828 {
5829 if ((u_int32_t *) 0)
5830   return 0;
5831 if (sizeof (u_int32_t))
5832   return 0;
5833   ;
5834   return 0;
5835 }
5836 _ACEOF
5837 rm -f conftest.$ac_objext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5839   (eval $ac_compile) 2>conftest.er1
5840   ac_status=$?
5841   grep -v '^ *+' conftest.er1 >conftest.err
5842   rm -f conftest.er1
5843   cat conftest.err >&5
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); } &&
5846          { ac_try='test -z "$ac_c_werror_flag"
5847                          || test ! -s conftest.err'
5848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849   (eval $ac_try) 2>&5
5850   ac_status=$?
5851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852   (exit $ac_status); }; } &&
5853          { ac_try='test -s conftest.$ac_objext'
5854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855   (eval $ac_try) 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); }; }; then
5859   ac_cv_type_u_int32_t=yes
5860 else
5861   echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864 ac_cv_type_u_int32_t=no
5865 fi
5866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5867 fi
5868 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5869 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5870 if test $ac_cv_type_u_int32_t = yes; then
5871   ac_cv_header_stdint_u=$i
5872 else
5873        continue
5874 fi
5875
5876    echo "$as_me:$LINENO: checking for u_int64_t" >&5
5877 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5878 if test "${ac_cv_type_u_int64_t+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   cat >conftest.$ac_ext <<_ACEOF
5882 /* confdefs.h.  */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h.  */
5887 #include<$i>
5888
5889 int
5890 main ()
5891 {
5892 if ((u_int64_t *) 0)
5893   return 0;
5894 if (sizeof (u_int64_t))
5895   return 0;
5896   ;
5897   return 0;
5898 }
5899 _ACEOF
5900 rm -f conftest.$ac_objext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902   (eval $ac_compile) 2>conftest.er1
5903   ac_status=$?
5904   grep -v '^ *+' conftest.er1 >conftest.err
5905   rm -f conftest.er1
5906   cat conftest.err >&5
5907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } &&
5909          { ac_try='test -z "$ac_c_werror_flag"
5910                          || test ! -s conftest.err'
5911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912   (eval $ac_try) 2>&5
5913   ac_status=$?
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); }; } &&
5916          { ac_try='test -s conftest.$ac_objext'
5917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918   (eval $ac_try) 2>&5
5919   ac_status=$?
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); }; }; then
5922   ac_cv_type_u_int64_t=yes
5923 else
5924   echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5926
5927 ac_cv_type_u_int64_t=no
5928 fi
5929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5930 fi
5931 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5932 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5933 if test $ac_cv_type_u_int64_t = yes; then
5934   and64="/u_int64_t"
5935 else
5936   and64=""
5937 fi
5938
5939    ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
5940    break;
5941   done
5942   echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
5943 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
5944
5945 fi
5946 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
5947 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
5948 fi fi
5949
5950 if test "_$ac_cv_header_stdint_x" = "_" ; then
5951    echo "$as_me:$LINENO: checking for stdint datatype model" >&5
5952 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
5953    echo "$as_me:$LINENO: result: (..)" >&5
5954 echo "${ECHO_T}(..)" >&6
5955    echo "$as_me:$LINENO: checking for char" >&5
5956 echo $ECHO_N "checking for char... $ECHO_C" >&6
5957 if test "${ac_cv_type_char+set}" = set; then
5958   echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960   cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h.  */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h.  */
5966 $ac_includes_default
5967 int
5968 main ()
5969 {
5970 if ((char *) 0)
5971   return 0;
5972 if (sizeof (char))
5973   return 0;
5974   ;
5975   return 0;
5976 }
5977 _ACEOF
5978 rm -f conftest.$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980   (eval $ac_compile) 2>conftest.er1
5981   ac_status=$?
5982   grep -v '^ *+' conftest.er1 >conftest.err
5983   rm -f conftest.er1
5984   cat conftest.err >&5
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); } &&
5987          { ac_try='test -z "$ac_c_werror_flag"
5988                          || test ! -s conftest.err'
5989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990   (eval $ac_try) 2>&5
5991   ac_status=$?
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); }; } &&
5994          { ac_try='test -s conftest.$ac_objext'
5995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996   (eval $ac_try) 2>&5
5997   ac_status=$?
5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); }; }; then
6000   ac_cv_type_char=yes
6001 else
6002   echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6004
6005 ac_cv_type_char=no
6006 fi
6007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6008 fi
6009 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
6010 echo "${ECHO_T}$ac_cv_type_char" >&6
6011
6012 echo "$as_me:$LINENO: checking size of char" >&5
6013 echo $ECHO_N "checking size of char... $ECHO_C" >&6
6014 if test "${ac_cv_sizeof_char+set}" = set; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017   if test "$ac_cv_type_char" = yes; then
6018   # The cast to unsigned long works around a bug in the HP C Compiler
6019   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6020   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6021   # This bug is HP SR number 8606223364.
6022   if test "$cross_compiling" = yes; then
6023   # Depending upon the size, compute the lo and hi bounds.
6024 cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h.  */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h.  */
6030 $ac_includes_default
6031 int
6032 main ()
6033 {
6034 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
6035 test_array [0] = 0
6036
6037   ;
6038   return 0;
6039 }
6040 _ACEOF
6041 rm -f conftest.$ac_objext
6042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6043   (eval $ac_compile) 2>conftest.er1
6044   ac_status=$?
6045   grep -v '^ *+' conftest.er1 >conftest.err
6046   rm -f conftest.er1
6047   cat conftest.err >&5
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); } &&
6050          { ac_try='test -z "$ac_c_werror_flag"
6051                          || test ! -s conftest.err'
6052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053   (eval $ac_try) 2>&5
6054   ac_status=$?
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); }; } &&
6057          { ac_try='test -s conftest.$ac_objext'
6058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059   (eval $ac_try) 2>&5
6060   ac_status=$?
6061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062   (exit $ac_status); }; }; then
6063   ac_lo=0 ac_mid=0
6064   while :; do
6065     cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h.  */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h.  */
6071 $ac_includes_default
6072 int
6073 main ()
6074 {
6075 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6076 test_array [0] = 0
6077
6078   ;
6079   return 0;
6080 }
6081 _ACEOF
6082 rm -f conftest.$ac_objext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084   (eval $ac_compile) 2>conftest.er1
6085   ac_status=$?
6086   grep -v '^ *+' conftest.er1 >conftest.err
6087   rm -f conftest.er1
6088   cat conftest.err >&5
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); } &&
6091          { ac_try='test -z "$ac_c_werror_flag"
6092                          || test ! -s conftest.err'
6093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094   (eval $ac_try) 2>&5
6095   ac_status=$?
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); }; } &&
6098          { ac_try='test -s conftest.$ac_objext'
6099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100   (eval $ac_try) 2>&5
6101   ac_status=$?
6102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); }; }; then
6104   ac_hi=$ac_mid; break
6105 else
6106   echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6108
6109 ac_lo=`expr $ac_mid + 1`
6110                     if test $ac_lo -le $ac_mid; then
6111                       ac_lo= ac_hi=
6112                       break
6113                     fi
6114                     ac_mid=`expr 2 '*' $ac_mid + 1`
6115 fi
6116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6117   done
6118 else
6119   echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6121
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h.  */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h.  */
6128 $ac_includes_default
6129 int
6130 main ()
6131 {
6132 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
6133 test_array [0] = 0
6134
6135   ;
6136   return 0;
6137 }
6138 _ACEOF
6139 rm -f conftest.$ac_objext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141   (eval $ac_compile) 2>conftest.er1
6142   ac_status=$?
6143   grep -v '^ *+' conftest.er1 >conftest.err
6144   rm -f conftest.er1
6145   cat conftest.err >&5
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); } &&
6148          { ac_try='test -z "$ac_c_werror_flag"
6149                          || test ! -s conftest.err'
6150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151   (eval $ac_try) 2>&5
6152   ac_status=$?
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); }; } &&
6155          { ac_try='test -s conftest.$ac_objext'
6156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157   (eval $ac_try) 2>&5
6158   ac_status=$?
6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); }; }; then
6161   ac_hi=-1 ac_mid=-1
6162   while :; do
6163     cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h.  */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h.  */
6169 $ac_includes_default
6170 int
6171 main ()
6172 {
6173 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
6174 test_array [0] = 0
6175
6176   ;
6177   return 0;
6178 }
6179 _ACEOF
6180 rm -f conftest.$ac_objext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6182   (eval $ac_compile) 2>conftest.er1
6183   ac_status=$?
6184   grep -v '^ *+' conftest.er1 >conftest.err
6185   rm -f conftest.er1
6186   cat conftest.err >&5
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); } &&
6189          { ac_try='test -z "$ac_c_werror_flag"
6190                          || test ! -s conftest.err'
6191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192   (eval $ac_try) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); }; } &&
6196          { ac_try='test -s conftest.$ac_objext'
6197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198   (eval $ac_try) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); }; }; then
6202   ac_lo=$ac_mid; break
6203 else
6204   echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6206
6207 ac_hi=`expr '(' $ac_mid ')' - 1`
6208                        if test $ac_mid -le $ac_hi; then
6209                          ac_lo= ac_hi=
6210                          break
6211                        fi
6212                        ac_mid=`expr 2 '*' $ac_mid`
6213 fi
6214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6215   done
6216 else
6217   echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6219
6220 ac_lo= ac_hi=
6221 fi
6222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6223 fi
6224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6225 # Binary search between lo and hi bounds.
6226 while test "x$ac_lo" != "x$ac_hi"; do
6227   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6228   cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h.  */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h.  */
6234 $ac_includes_default
6235 int
6236 main ()
6237 {
6238 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6239 test_array [0] = 0
6240
6241   ;
6242   return 0;
6243 }
6244 _ACEOF
6245 rm -f conftest.$ac_objext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247   (eval $ac_compile) 2>conftest.er1
6248   ac_status=$?
6249   grep -v '^ *+' conftest.er1 >conftest.err
6250   rm -f conftest.er1
6251   cat conftest.err >&5
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); } &&
6254          { ac_try='test -z "$ac_c_werror_flag"
6255                          || test ! -s conftest.err'
6256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257   (eval $ac_try) 2>&5
6258   ac_status=$?
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); }; } &&
6261          { ac_try='test -s conftest.$ac_objext'
6262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263   (eval $ac_try) 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); }; }; then
6267   ac_hi=$ac_mid
6268 else
6269   echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6271
6272 ac_lo=`expr '(' $ac_mid ')' + 1`
6273 fi
6274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6275 done
6276 case $ac_lo in
6277 ?*) ac_cv_sizeof_char=$ac_lo;;
6278 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6279 See \`config.log' for more details." >&5
6280 echo "$as_me: error: cannot compute sizeof (char), 77
6281 See \`config.log' for more details." >&2;}
6282    { (exit 1); exit 1; }; } ;;
6283 esac
6284 else
6285   if test "$cross_compiling" = yes; then
6286   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6287 See \`config.log' for more details." >&5
6288 echo "$as_me: error: cannot run test program while cross compiling
6289 See \`config.log' for more details." >&2;}
6290    { (exit 1); exit 1; }; }
6291 else
6292   cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h.  */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h.  */
6298 $ac_includes_default
6299 long longval () { return (long) (sizeof (char)); }
6300 unsigned long ulongval () { return (long) (sizeof (char)); }
6301 #include <stdio.h>
6302 #include <stdlib.h>
6303 int
6304 main ()
6305 {
6306
6307   FILE *f = fopen ("conftest.val", "w");
6308   if (! f)
6309     exit (1);
6310   if (((long) (sizeof (char))) < 0)
6311     {
6312       long i = longval ();
6313       if (i != ((long) (sizeof (char))))
6314         exit (1);
6315       fprintf (f, "%ld\n", i);
6316     }
6317   else
6318     {
6319       unsigned long i = ulongval ();
6320       if (i != ((long) (sizeof (char))))
6321         exit (1);
6322       fprintf (f, "%lu\n", i);
6323     }
6324   exit (ferror (f) || fclose (f) != 0);
6325
6326   ;
6327   return 0;
6328 }
6329 _ACEOF
6330 rm -f conftest$ac_exeext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6332   (eval $ac_link) 2>&5
6333   ac_status=$?
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337   (eval $ac_try) 2>&5
6338   ac_status=$?
6339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340   (exit $ac_status); }; }; then
6341   ac_cv_sizeof_char=`cat conftest.val`
6342 else
6343   echo "$as_me: program exited with status $ac_status" >&5
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6346
6347 ( exit $ac_status )
6348 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6349 See \`config.log' for more details." >&5
6350 echo "$as_me: error: cannot compute sizeof (char), 77
6351 See \`config.log' for more details." >&2;}
6352    { (exit 1); exit 1; }; }
6353 fi
6354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6355 fi
6356 fi
6357 rm -f conftest.val
6358 else
6359   ac_cv_sizeof_char=0
6360 fi
6361 fi
6362 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6363 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6364 cat >>confdefs.h <<_ACEOF
6365 #define SIZEOF_CHAR $ac_cv_sizeof_char
6366 _ACEOF
6367
6368
6369    echo "$as_me:$LINENO: checking for short" >&5
6370 echo $ECHO_N "checking for short... $ECHO_C" >&6
6371 if test "${ac_cv_type_short+set}" = set; then
6372   echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374   cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h.  */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h.  */
6380 $ac_includes_default
6381 int
6382 main ()
6383 {
6384 if ((short *) 0)
6385   return 0;
6386 if (sizeof (short))
6387   return 0;
6388   ;
6389   return 0;
6390 }
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394   (eval $ac_compile) 2>conftest.er1
6395   ac_status=$?
6396   grep -v '^ *+' conftest.er1 >conftest.err
6397   rm -f conftest.er1
6398   cat conftest.err >&5
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); } &&
6401          { ac_try='test -z "$ac_c_werror_flag"
6402                          || test ! -s conftest.err'
6403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404   (eval $ac_try) 2>&5
6405   ac_status=$?
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); }; } &&
6408          { ac_try='test -s conftest.$ac_objext'
6409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410   (eval $ac_try) 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); }; }; then
6414   ac_cv_type_short=yes
6415 else
6416   echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 ac_cv_type_short=no
6420 fi
6421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6422 fi
6423 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6424 echo "${ECHO_T}$ac_cv_type_short" >&6
6425
6426 echo "$as_me:$LINENO: checking size of short" >&5
6427 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6428 if test "${ac_cv_sizeof_short+set}" = set; then
6429   echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431   if test "$ac_cv_type_short" = yes; then
6432   # The cast to unsigned long works around a bug in the HP C Compiler
6433   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6434   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6435   # This bug is HP SR number 8606223364.
6436   if test "$cross_compiling" = yes; then
6437   # Depending upon the size, compute the lo and hi bounds.
6438 cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h.  */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h.  */
6444 $ac_includes_default
6445 int
6446 main ()
6447 {
6448 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6449 test_array [0] = 0
6450
6451   ;
6452   return 0;
6453 }
6454 _ACEOF
6455 rm -f conftest.$ac_objext
6456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6457   (eval $ac_compile) 2>conftest.er1
6458   ac_status=$?
6459   grep -v '^ *+' conftest.er1 >conftest.err
6460   rm -f conftest.er1
6461   cat conftest.err >&5
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); } &&
6464          { ac_try='test -z "$ac_c_werror_flag"
6465                          || test ! -s conftest.err'
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); }; } &&
6471          { ac_try='test -s conftest.$ac_objext'
6472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473   (eval $ac_try) 2>&5
6474   ac_status=$?
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); }; }; then
6477   ac_lo=0 ac_mid=0
6478   while :; do
6479     cat >conftest.$ac_ext <<_ACEOF
6480 /* confdefs.h.  */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h.  */
6485 $ac_includes_default
6486 int
6487 main ()
6488 {
6489 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6490 test_array [0] = 0
6491
6492   ;
6493   return 0;
6494 }
6495 _ACEOF
6496 rm -f conftest.$ac_objext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6498   (eval $ac_compile) 2>conftest.er1
6499   ac_status=$?
6500   grep -v '^ *+' conftest.er1 >conftest.err
6501   rm -f conftest.er1
6502   cat conftest.err >&5
6503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504   (exit $ac_status); } &&
6505          { ac_try='test -z "$ac_c_werror_flag"
6506                          || test ! -s conftest.err'
6507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508   (eval $ac_try) 2>&5
6509   ac_status=$?
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); }; } &&
6512          { ac_try='test -s conftest.$ac_objext'
6513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514   (eval $ac_try) 2>&5
6515   ac_status=$?
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); }; }; then
6518   ac_hi=$ac_mid; break
6519 else
6520   echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6522
6523 ac_lo=`expr $ac_mid + 1`
6524                     if test $ac_lo -le $ac_mid; then
6525                       ac_lo= ac_hi=
6526                       break
6527                     fi
6528                     ac_mid=`expr 2 '*' $ac_mid + 1`
6529 fi
6530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6531   done
6532 else
6533   echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6535
6536 cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h.  */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h.  */
6542 $ac_includes_default
6543 int
6544 main ()
6545 {
6546 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6547 test_array [0] = 0
6548
6549   ;
6550   return 0;
6551 }
6552 _ACEOF
6553 rm -f conftest.$ac_objext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555   (eval $ac_compile) 2>conftest.er1
6556   ac_status=$?
6557   grep -v '^ *+' conftest.er1 >conftest.err
6558   rm -f conftest.er1
6559   cat conftest.err >&5
6560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561   (exit $ac_status); } &&
6562          { ac_try='test -z "$ac_c_werror_flag"
6563                          || test ! -s conftest.err'
6564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565   (eval $ac_try) 2>&5
6566   ac_status=$?
6567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); }; } &&
6569          { ac_try='test -s conftest.$ac_objext'
6570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571   (eval $ac_try) 2>&5
6572   ac_status=$?
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); }; }; then
6575   ac_hi=-1 ac_mid=-1
6576   while :; do
6577     cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h.  */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h.  */
6583 $ac_includes_default
6584 int
6585 main ()
6586 {
6587 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6588 test_array [0] = 0
6589
6590   ;
6591   return 0;
6592 }
6593 _ACEOF
6594 rm -f conftest.$ac_objext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596   (eval $ac_compile) 2>conftest.er1
6597   ac_status=$?
6598   grep -v '^ *+' conftest.er1 >conftest.err
6599   rm -f conftest.er1
6600   cat conftest.err >&5
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); } &&
6603          { ac_try='test -z "$ac_c_werror_flag"
6604                          || test ! -s conftest.err'
6605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606   (eval $ac_try) 2>&5
6607   ac_status=$?
6608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609   (exit $ac_status); }; } &&
6610          { ac_try='test -s conftest.$ac_objext'
6611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612   (eval $ac_try) 2>&5
6613   ac_status=$?
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); }; }; then
6616   ac_lo=$ac_mid; break
6617 else
6618   echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621 ac_hi=`expr '(' $ac_mid ')' - 1`
6622                        if test $ac_mid -le $ac_hi; then
6623                          ac_lo= ac_hi=
6624                          break
6625                        fi
6626                        ac_mid=`expr 2 '*' $ac_mid`
6627 fi
6628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6629   done
6630 else
6631   echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6633
6634 ac_lo= ac_hi=
6635 fi
6636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6637 fi
6638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6639 # Binary search between lo and hi bounds.
6640 while test "x$ac_lo" != "x$ac_hi"; do
6641   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6642   cat >conftest.$ac_ext <<_ACEOF
6643 /* confdefs.h.  */
6644 _ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h.  */
6648 $ac_includes_default
6649 int
6650 main ()
6651 {
6652 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6653 test_array [0] = 0
6654
6655   ;
6656   return 0;
6657 }
6658 _ACEOF
6659 rm -f conftest.$ac_objext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6661   (eval $ac_compile) 2>conftest.er1
6662   ac_status=$?
6663   grep -v '^ *+' conftest.er1 >conftest.err
6664   rm -f conftest.er1
6665   cat conftest.err >&5
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); } &&
6668          { ac_try='test -z "$ac_c_werror_flag"
6669                          || test ! -s conftest.err'
6670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671   (eval $ac_try) 2>&5
6672   ac_status=$?
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); }; } &&
6675          { ac_try='test -s conftest.$ac_objext'
6676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677   (eval $ac_try) 2>&5
6678   ac_status=$?
6679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680   (exit $ac_status); }; }; then
6681   ac_hi=$ac_mid
6682 else
6683   echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6685
6686 ac_lo=`expr '(' $ac_mid ')' + 1`
6687 fi
6688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6689 done
6690 case $ac_lo in
6691 ?*) ac_cv_sizeof_short=$ac_lo;;
6692 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6693 See \`config.log' for more details." >&5
6694 echo "$as_me: error: cannot compute sizeof (short), 77
6695 See \`config.log' for more details." >&2;}
6696    { (exit 1); exit 1; }; } ;;
6697 esac
6698 else
6699   if test "$cross_compiling" = yes; then
6700   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6701 See \`config.log' for more details." >&5
6702 echo "$as_me: error: cannot run test program while cross compiling
6703 See \`config.log' for more details." >&2;}
6704    { (exit 1); exit 1; }; }
6705 else
6706   cat >conftest.$ac_ext <<_ACEOF
6707 /* confdefs.h.  */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h.  */
6712 $ac_includes_default
6713 long longval () { return (long) (sizeof (short)); }
6714 unsigned long ulongval () { return (long) (sizeof (short)); }
6715 #include <stdio.h>
6716 #include <stdlib.h>
6717 int
6718 main ()
6719 {
6720
6721   FILE *f = fopen ("conftest.val", "w");
6722   if (! f)
6723     exit (1);
6724   if (((long) (sizeof (short))) < 0)
6725     {
6726       long i = longval ();
6727       if (i != ((long) (sizeof (short))))
6728         exit (1);
6729       fprintf (f, "%ld\n", i);
6730     }
6731   else
6732     {
6733       unsigned long i = ulongval ();
6734       if (i != ((long) (sizeof (short))))
6735         exit (1);
6736       fprintf (f, "%lu\n", i);
6737     }
6738   exit (ferror (f) || fclose (f) != 0);
6739
6740   ;
6741   return 0;
6742 }
6743 _ACEOF
6744 rm -f conftest$ac_exeext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6746   (eval $ac_link) 2>&5
6747   ac_status=$?
6748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751   (eval $ac_try) 2>&5
6752   ac_status=$?
6753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754   (exit $ac_status); }; }; then
6755   ac_cv_sizeof_short=`cat conftest.val`
6756 else
6757   echo "$as_me: program exited with status $ac_status" >&5
6758 echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6760
6761 ( exit $ac_status )
6762 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6763 See \`config.log' for more details." >&5
6764 echo "$as_me: error: cannot compute sizeof (short), 77
6765 See \`config.log' for more details." >&2;}
6766    { (exit 1); exit 1; }; }
6767 fi
6768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6769 fi
6770 fi
6771 rm -f conftest.val
6772 else
6773   ac_cv_sizeof_short=0
6774 fi
6775 fi
6776 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6777 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
6778 cat >>confdefs.h <<_ACEOF
6779 #define SIZEOF_SHORT $ac_cv_sizeof_short
6780 _ACEOF
6781
6782
6783    echo "$as_me:$LINENO: checking for int" >&5
6784 echo $ECHO_N "checking for int... $ECHO_C" >&6
6785 if test "${ac_cv_type_int+set}" = set; then
6786   echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788   cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h.  */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h.  */
6794 $ac_includes_default
6795 int
6796 main ()
6797 {
6798 if ((int *) 0)
6799   return 0;
6800 if (sizeof (int))
6801   return 0;
6802   ;
6803   return 0;
6804 }
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808   (eval $ac_compile) 2>conftest.er1
6809   ac_status=$?
6810   grep -v '^ *+' conftest.er1 >conftest.err
6811   rm -f conftest.er1
6812   cat conftest.err >&5
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); } &&
6815          { ac_try='test -z "$ac_c_werror_flag"
6816                          || test ! -s conftest.err'
6817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818   (eval $ac_try) 2>&5
6819   ac_status=$?
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); }; } &&
6822          { ac_try='test -s conftest.$ac_objext'
6823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824   (eval $ac_try) 2>&5
6825   ac_status=$?
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); }; }; then
6828   ac_cv_type_int=yes
6829 else
6830   echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6832
6833 ac_cv_type_int=no
6834 fi
6835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6836 fi
6837 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6838 echo "${ECHO_T}$ac_cv_type_int" >&6
6839
6840 echo "$as_me:$LINENO: checking size of int" >&5
6841 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6842 if test "${ac_cv_sizeof_int+set}" = set; then
6843   echo $ECHO_N "(cached) $ECHO_C" >&6
6844 else
6845   if test "$ac_cv_type_int" = yes; then
6846   # The cast to unsigned long works around a bug in the HP C Compiler
6847   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6848   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6849   # This bug is HP SR number 8606223364.
6850   if test "$cross_compiling" = yes; then
6851   # Depending upon the size, compute the lo and hi bounds.
6852 cat >conftest.$ac_ext <<_ACEOF
6853 /* confdefs.h.  */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h.  */
6858 $ac_includes_default
6859 int
6860 main ()
6861 {
6862 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6863 test_array [0] = 0
6864
6865   ;
6866   return 0;
6867 }
6868 _ACEOF
6869 rm -f conftest.$ac_objext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871   (eval $ac_compile) 2>conftest.er1
6872   ac_status=$?
6873   grep -v '^ *+' conftest.er1 >conftest.err
6874   rm -f conftest.er1
6875   cat conftest.err >&5
6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877   (exit $ac_status); } &&
6878          { ac_try='test -z "$ac_c_werror_flag"
6879                          || test ! -s conftest.err'
6880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881   (eval $ac_try) 2>&5
6882   ac_status=$?
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); }; } &&
6885          { ac_try='test -s conftest.$ac_objext'
6886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887   (eval $ac_try) 2>&5
6888   ac_status=$?
6889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); }; }; then
6891   ac_lo=0 ac_mid=0
6892   while :; do
6893     cat >conftest.$ac_ext <<_ACEOF
6894 /* confdefs.h.  */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h.  */
6899 $ac_includes_default
6900 int
6901 main ()
6902 {
6903 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6904 test_array [0] = 0
6905
6906   ;
6907   return 0;
6908 }
6909 _ACEOF
6910 rm -f conftest.$ac_objext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912   (eval $ac_compile) 2>conftest.er1
6913   ac_status=$?
6914   grep -v '^ *+' conftest.er1 >conftest.err
6915   rm -f conftest.er1
6916   cat conftest.err >&5
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); } &&
6919          { ac_try='test -z "$ac_c_werror_flag"
6920                          || test ! -s conftest.err'
6921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922   (eval $ac_try) 2>&5
6923   ac_status=$?
6924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); }; } &&
6926          { ac_try='test -s conftest.$ac_objext'
6927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928   (eval $ac_try) 2>&5
6929   ac_status=$?
6930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931   (exit $ac_status); }; }; then
6932   ac_hi=$ac_mid; break
6933 else
6934   echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6936
6937 ac_lo=`expr $ac_mid + 1`
6938                     if test $ac_lo -le $ac_mid; then
6939                       ac_lo= ac_hi=
6940                       break
6941                     fi
6942                     ac_mid=`expr 2 '*' $ac_mid + 1`
6943 fi
6944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6945   done
6946 else
6947   echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6949
6950 cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h.  */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h.  */
6956 $ac_includes_default
6957 int
6958 main ()
6959 {
6960 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6961 test_array [0] = 0
6962
6963   ;
6964   return 0;
6965 }
6966 _ACEOF
6967 rm -f conftest.$ac_objext
6968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6969   (eval $ac_compile) 2>conftest.er1
6970   ac_status=$?
6971   grep -v '^ *+' conftest.er1 >conftest.err
6972   rm -f conftest.er1
6973   cat conftest.err >&5
6974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975   (exit $ac_status); } &&
6976          { ac_try='test -z "$ac_c_werror_flag"
6977                          || test ! -s conftest.err'
6978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979   (eval $ac_try) 2>&5
6980   ac_status=$?
6981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); }; } &&
6983          { ac_try='test -s conftest.$ac_objext'
6984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985   (eval $ac_try) 2>&5
6986   ac_status=$?
6987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988   (exit $ac_status); }; }; then
6989   ac_hi=-1 ac_mid=-1
6990   while :; do
6991     cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h.  */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h.  */
6997 $ac_includes_default
6998 int
6999 main ()
7000 {
7001 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7002 test_array [0] = 0
7003
7004   ;
7005   return 0;
7006 }
7007 _ACEOF
7008 rm -f conftest.$ac_objext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7010   (eval $ac_compile) 2>conftest.er1
7011   ac_status=$?
7012   grep -v '^ *+' conftest.er1 >conftest.err
7013   rm -f conftest.er1
7014   cat conftest.err >&5
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); } &&
7017          { ac_try='test -z "$ac_c_werror_flag"
7018                          || test ! -s conftest.err'
7019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020   (eval $ac_try) 2>&5
7021   ac_status=$?
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); }; } &&
7024          { ac_try='test -s conftest.$ac_objext'
7025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026   (eval $ac_try) 2>&5
7027   ac_status=$?
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); }; }; then
7030   ac_lo=$ac_mid; break
7031 else
7032   echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7034
7035 ac_hi=`expr '(' $ac_mid ')' - 1`
7036                        if test $ac_mid -le $ac_hi; then
7037                          ac_lo= ac_hi=
7038                          break
7039                        fi
7040                        ac_mid=`expr 2 '*' $ac_mid`
7041 fi
7042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7043   done
7044 else
7045   echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7047
7048 ac_lo= ac_hi=
7049 fi
7050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7051 fi
7052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7053 # Binary search between lo and hi bounds.
7054 while test "x$ac_lo" != "x$ac_hi"; do
7055   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7056   cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h.  */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h.  */
7062 $ac_includes_default
7063 int
7064 main ()
7065 {
7066 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7067 test_array [0] = 0
7068
7069   ;
7070   return 0;
7071 }
7072 _ACEOF
7073 rm -f conftest.$ac_objext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075   (eval $ac_compile) 2>conftest.er1
7076   ac_status=$?
7077   grep -v '^ *+' conftest.er1 >conftest.err
7078   rm -f conftest.er1
7079   cat conftest.err >&5
7080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081   (exit $ac_status); } &&
7082          { ac_try='test -z "$ac_c_werror_flag"
7083                          || test ! -s conftest.err'
7084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085   (eval $ac_try) 2>&5
7086   ac_status=$?
7087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088   (exit $ac_status); }; } &&
7089          { ac_try='test -s conftest.$ac_objext'
7090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091   (eval $ac_try) 2>&5
7092   ac_status=$?
7093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094   (exit $ac_status); }; }; then
7095   ac_hi=$ac_mid
7096 else
7097   echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7099
7100 ac_lo=`expr '(' $ac_mid ')' + 1`
7101 fi
7102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7103 done
7104 case $ac_lo in
7105 ?*) ac_cv_sizeof_int=$ac_lo;;
7106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7107 See \`config.log' for more details." >&5
7108 echo "$as_me: error: cannot compute sizeof (int), 77
7109 See \`config.log' for more details." >&2;}
7110    { (exit 1); exit 1; }; } ;;
7111 esac
7112 else
7113   if test "$cross_compiling" = yes; then
7114   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7115 See \`config.log' for more details." >&5
7116 echo "$as_me: error: cannot run test program while cross compiling
7117 See \`config.log' for more details." >&2;}
7118    { (exit 1); exit 1; }; }
7119 else
7120   cat >conftest.$ac_ext <<_ACEOF
7121 /* confdefs.h.  */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h.  */
7126 $ac_includes_default
7127 long longval () { return (long) (sizeof (int)); }
7128 unsigned long ulongval () { return (long) (sizeof (int)); }
7129 #include <stdio.h>
7130 #include <stdlib.h>
7131 int
7132 main ()
7133 {
7134
7135   FILE *f = fopen ("conftest.val", "w");
7136   if (! f)
7137     exit (1);
7138   if (((long) (sizeof (int))) < 0)
7139     {
7140       long i = longval ();
7141       if (i != ((long) (sizeof (int))))
7142         exit (1);
7143       fprintf (f, "%ld\n", i);
7144     }
7145   else
7146     {
7147       unsigned long i = ulongval ();
7148       if (i != ((long) (sizeof (int))))
7149         exit (1);
7150       fprintf (f, "%lu\n", i);
7151     }
7152   exit (ferror (f) || fclose (f) != 0);
7153
7154   ;
7155   return 0;
7156 }
7157 _ACEOF
7158 rm -f conftest$ac_exeext
7159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7160   (eval $ac_link) 2>&5
7161   ac_status=$?
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165   (eval $ac_try) 2>&5
7166   ac_status=$?
7167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168   (exit $ac_status); }; }; then
7169   ac_cv_sizeof_int=`cat conftest.val`
7170 else
7171   echo "$as_me: program exited with status $ac_status" >&5
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7174
7175 ( exit $ac_status )
7176 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7177 See \`config.log' for more details." >&5
7178 echo "$as_me: error: cannot compute sizeof (int), 77
7179 See \`config.log' for more details." >&2;}
7180    { (exit 1); exit 1; }; }
7181 fi
7182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7183 fi
7184 fi
7185 rm -f conftest.val
7186 else
7187   ac_cv_sizeof_int=0
7188 fi
7189 fi
7190 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7191 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7192 cat >>confdefs.h <<_ACEOF
7193 #define SIZEOF_INT $ac_cv_sizeof_int
7194 _ACEOF
7195
7196
7197    echo "$as_me:$LINENO: checking for long" >&5
7198 echo $ECHO_N "checking for long... $ECHO_C" >&6
7199 if test "${ac_cv_type_long+set}" = set; then
7200   echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202   cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h.  */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h.  */
7208 $ac_includes_default
7209 int
7210 main ()
7211 {
7212 if ((long *) 0)
7213   return 0;
7214 if (sizeof (long))
7215   return 0;
7216   ;
7217   return 0;
7218 }
7219 _ACEOF
7220 rm -f conftest.$ac_objext
7221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222   (eval $ac_compile) 2>conftest.er1
7223   ac_status=$?
7224   grep -v '^ *+' conftest.er1 >conftest.err
7225   rm -f conftest.er1
7226   cat conftest.err >&5
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); } &&
7229          { ac_try='test -z "$ac_c_werror_flag"
7230                          || test ! -s conftest.err'
7231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232   (eval $ac_try) 2>&5
7233   ac_status=$?
7234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235   (exit $ac_status); }; } &&
7236          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7242   ac_cv_type_long=yes
7243 else
7244   echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7246
7247 ac_cv_type_long=no
7248 fi
7249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7250 fi
7251 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7252 echo "${ECHO_T}$ac_cv_type_long" >&6
7253
7254 echo "$as_me:$LINENO: checking size of long" >&5
7255 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7256 if test "${ac_cv_sizeof_long+set}" = set; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259   if test "$ac_cv_type_long" = yes; then
7260   # The cast to unsigned long works around a bug in the HP C Compiler
7261   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7262   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7263   # This bug is HP SR number 8606223364.
7264   if test "$cross_compiling" = yes; then
7265   # Depending upon the size, compute the lo and hi bounds.
7266 cat >conftest.$ac_ext <<_ACEOF
7267 /* confdefs.h.  */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h.  */
7272 $ac_includes_default
7273 int
7274 main ()
7275 {
7276 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7277 test_array [0] = 0
7278
7279   ;
7280   return 0;
7281 }
7282 _ACEOF
7283 rm -f conftest.$ac_objext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285   (eval $ac_compile) 2>conftest.er1
7286   ac_status=$?
7287   grep -v '^ *+' conftest.er1 >conftest.err
7288   rm -f conftest.er1
7289   cat conftest.err >&5
7290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291   (exit $ac_status); } &&
7292          { ac_try='test -z "$ac_c_werror_flag"
7293                          || test ! -s conftest.err'
7294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295   (eval $ac_try) 2>&5
7296   ac_status=$?
7297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298   (exit $ac_status); }; } &&
7299          { ac_try='test -s conftest.$ac_objext'
7300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301   (eval $ac_try) 2>&5
7302   ac_status=$?
7303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304   (exit $ac_status); }; }; then
7305   ac_lo=0 ac_mid=0
7306   while :; do
7307     cat >conftest.$ac_ext <<_ACEOF
7308 /* confdefs.h.  */
7309 _ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h.  */
7313 $ac_includes_default
7314 int
7315 main ()
7316 {
7317 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7318 test_array [0] = 0
7319
7320   ;
7321   return 0;
7322 }
7323 _ACEOF
7324 rm -f conftest.$ac_objext
7325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7326   (eval $ac_compile) 2>conftest.er1
7327   ac_status=$?
7328   grep -v '^ *+' conftest.er1 >conftest.err
7329   rm -f conftest.er1
7330   cat conftest.err >&5
7331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); } &&
7333          { ac_try='test -z "$ac_c_werror_flag"
7334                          || test ! -s conftest.err'
7335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336   (eval $ac_try) 2>&5
7337   ac_status=$?
7338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339   (exit $ac_status); }; } &&
7340          { ac_try='test -s conftest.$ac_objext'
7341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342   (eval $ac_try) 2>&5
7343   ac_status=$?
7344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345   (exit $ac_status); }; }; then
7346   ac_hi=$ac_mid; break
7347 else
7348   echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7350
7351 ac_lo=`expr $ac_mid + 1`
7352                     if test $ac_lo -le $ac_mid; then
7353                       ac_lo= ac_hi=
7354                       break
7355                     fi
7356                     ac_mid=`expr 2 '*' $ac_mid + 1`
7357 fi
7358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7359   done
7360 else
7361   echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7363
7364 cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h.  */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h.  */
7370 $ac_includes_default
7371 int
7372 main ()
7373 {
7374 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7375 test_array [0] = 0
7376
7377   ;
7378   return 0;
7379 }
7380 _ACEOF
7381 rm -f conftest.$ac_objext
7382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7383   (eval $ac_compile) 2>conftest.er1
7384   ac_status=$?
7385   grep -v '^ *+' conftest.er1 >conftest.err
7386   rm -f conftest.er1
7387   cat conftest.err >&5
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); } &&
7390          { ac_try='test -z "$ac_c_werror_flag"
7391                          || test ! -s conftest.err'
7392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393   (eval $ac_try) 2>&5
7394   ac_status=$?
7395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); }; } &&
7397          { ac_try='test -s conftest.$ac_objext'
7398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399   (eval $ac_try) 2>&5
7400   ac_status=$?
7401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402   (exit $ac_status); }; }; then
7403   ac_hi=-1 ac_mid=-1
7404   while :; do
7405     cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h.  */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h.  */
7411 $ac_includes_default
7412 int
7413 main ()
7414 {
7415 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7416 test_array [0] = 0
7417
7418   ;
7419   return 0;
7420 }
7421 _ACEOF
7422 rm -f conftest.$ac_objext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7424   (eval $ac_compile) 2>conftest.er1
7425   ac_status=$?
7426   grep -v '^ *+' conftest.er1 >conftest.err
7427   rm -f conftest.er1
7428   cat conftest.err >&5
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); } &&
7431          { ac_try='test -z "$ac_c_werror_flag"
7432                          || test ! -s conftest.err'
7433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434   (eval $ac_try) 2>&5
7435   ac_status=$?
7436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437   (exit $ac_status); }; } &&
7438          { ac_try='test -s conftest.$ac_objext'
7439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440   (eval $ac_try) 2>&5
7441   ac_status=$?
7442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); }; }; then
7444   ac_lo=$ac_mid; break
7445 else
7446   echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7448
7449 ac_hi=`expr '(' $ac_mid ')' - 1`
7450                        if test $ac_mid -le $ac_hi; then
7451                          ac_lo= ac_hi=
7452                          break
7453                        fi
7454                        ac_mid=`expr 2 '*' $ac_mid`
7455 fi
7456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7457   done
7458 else
7459   echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7461
7462 ac_lo= ac_hi=
7463 fi
7464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7465 fi
7466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7467 # Binary search between lo and hi bounds.
7468 while test "x$ac_lo" != "x$ac_hi"; do
7469   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7470   cat >conftest.$ac_ext <<_ACEOF
7471 /* confdefs.h.  */
7472 _ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h.  */
7476 $ac_includes_default
7477 int
7478 main ()
7479 {
7480 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7481 test_array [0] = 0
7482
7483   ;
7484   return 0;
7485 }
7486 _ACEOF
7487 rm -f conftest.$ac_objext
7488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7489   (eval $ac_compile) 2>conftest.er1
7490   ac_status=$?
7491   grep -v '^ *+' conftest.er1 >conftest.err
7492   rm -f conftest.er1
7493   cat conftest.err >&5
7494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495   (exit $ac_status); } &&
7496          { ac_try='test -z "$ac_c_werror_flag"
7497                          || test ! -s conftest.err'
7498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499   (eval $ac_try) 2>&5
7500   ac_status=$?
7501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502   (exit $ac_status); }; } &&
7503          { ac_try='test -s conftest.$ac_objext'
7504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505   (eval $ac_try) 2>&5
7506   ac_status=$?
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); }; }; then
7509   ac_hi=$ac_mid
7510 else
7511   echo "$as_me: failed program was:" >&5
7512 sed 's/^/| /' conftest.$ac_ext >&5
7513
7514 ac_lo=`expr '(' $ac_mid ')' + 1`
7515 fi
7516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7517 done
7518 case $ac_lo in
7519 ?*) ac_cv_sizeof_long=$ac_lo;;
7520 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7521 See \`config.log' for more details." >&5
7522 echo "$as_me: error: cannot compute sizeof (long), 77
7523 See \`config.log' for more details." >&2;}
7524    { (exit 1); exit 1; }; } ;;
7525 esac
7526 else
7527   if test "$cross_compiling" = yes; then
7528   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7529 See \`config.log' for more details." >&5
7530 echo "$as_me: error: cannot run test program while cross compiling
7531 See \`config.log' for more details." >&2;}
7532    { (exit 1); exit 1; }; }
7533 else
7534   cat >conftest.$ac_ext <<_ACEOF
7535 /* confdefs.h.  */
7536 _ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h.  */
7540 $ac_includes_default
7541 long longval () { return (long) (sizeof (long)); }
7542 unsigned long ulongval () { return (long) (sizeof (long)); }
7543 #include <stdio.h>
7544 #include <stdlib.h>
7545 int
7546 main ()
7547 {
7548
7549   FILE *f = fopen ("conftest.val", "w");
7550   if (! f)
7551     exit (1);
7552   if (((long) (sizeof (long))) < 0)
7553     {
7554       long i = longval ();
7555       if (i != ((long) (sizeof (long))))
7556         exit (1);
7557       fprintf (f, "%ld\n", i);
7558     }
7559   else
7560     {
7561       unsigned long i = ulongval ();
7562       if (i != ((long) (sizeof (long))))
7563         exit (1);
7564       fprintf (f, "%lu\n", i);
7565     }
7566   exit (ferror (f) || fclose (f) != 0);
7567
7568   ;
7569   return 0;
7570 }
7571 _ACEOF
7572 rm -f conftest$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574   (eval $ac_link) 2>&5
7575   ac_status=$?
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579   (eval $ac_try) 2>&5
7580   ac_status=$?
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); }; }; then
7583   ac_cv_sizeof_long=`cat conftest.val`
7584 else
7585   echo "$as_me: program exited with status $ac_status" >&5
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7588
7589 ( exit $ac_status )
7590 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7591 See \`config.log' for more details." >&5
7592 echo "$as_me: error: cannot compute sizeof (long), 77
7593 See \`config.log' for more details." >&2;}
7594    { (exit 1); exit 1; }; }
7595 fi
7596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7597 fi
7598 fi
7599 rm -f conftest.val
7600 else
7601   ac_cv_sizeof_long=0
7602 fi
7603 fi
7604 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7605 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7606 cat >>confdefs.h <<_ACEOF
7607 #define SIZEOF_LONG $ac_cv_sizeof_long
7608 _ACEOF
7609
7610
7611    echo "$as_me:$LINENO: checking for void*" >&5
7612 echo $ECHO_N "checking for void*... $ECHO_C" >&6
7613 if test "${ac_cv_type_voidp+set}" = set; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   cat >conftest.$ac_ext <<_ACEOF
7617 /* confdefs.h.  */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h.  */
7622 $ac_includes_default
7623 int
7624 main ()
7625 {
7626 if ((void* *) 0)
7627   return 0;
7628 if (sizeof (void*))
7629   return 0;
7630   ;
7631   return 0;
7632 }
7633 _ACEOF
7634 rm -f conftest.$ac_objext
7635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7636   (eval $ac_compile) 2>conftest.er1
7637   ac_status=$?
7638   grep -v '^ *+' conftest.er1 >conftest.err
7639   rm -f conftest.er1
7640   cat conftest.err >&5
7641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642   (exit $ac_status); } &&
7643          { ac_try='test -z "$ac_c_werror_flag"
7644                          || test ! -s conftest.err'
7645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646   (eval $ac_try) 2>&5
7647   ac_status=$?
7648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649   (exit $ac_status); }; } &&
7650          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7656   ac_cv_type_voidp=yes
7657 else
7658   echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7660
7661 ac_cv_type_voidp=no
7662 fi
7663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7664 fi
7665 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
7666 echo "${ECHO_T}$ac_cv_type_voidp" >&6
7667
7668 echo "$as_me:$LINENO: checking size of void*" >&5
7669 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
7670 if test "${ac_cv_sizeof_voidp+set}" = set; then
7671   echo $ECHO_N "(cached) $ECHO_C" >&6
7672 else
7673   if test "$ac_cv_type_voidp" = yes; then
7674   # The cast to unsigned long works around a bug in the HP C Compiler
7675   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7676   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7677   # This bug is HP SR number 8606223364.
7678   if test "$cross_compiling" = yes; then
7679   # Depending upon the size, compute the lo and hi bounds.
7680 cat >conftest.$ac_ext <<_ACEOF
7681 /* confdefs.h.  */
7682 _ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h.  */
7686 $ac_includes_default
7687 int
7688 main ()
7689 {
7690 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
7691 test_array [0] = 0
7692
7693   ;
7694   return 0;
7695 }
7696 _ACEOF
7697 rm -f conftest.$ac_objext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7699   (eval $ac_compile) 2>conftest.er1
7700   ac_status=$?
7701   grep -v '^ *+' conftest.er1 >conftest.err
7702   rm -f conftest.er1
7703   cat conftest.err >&5
7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); } &&
7706          { ac_try='test -z "$ac_c_werror_flag"
7707                          || test ! -s conftest.err'
7708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709   (eval $ac_try) 2>&5
7710   ac_status=$?
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); }; } &&
7713          { ac_try='test -s conftest.$ac_objext'
7714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715   (eval $ac_try) 2>&5
7716   ac_status=$?
7717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718   (exit $ac_status); }; }; then
7719   ac_lo=0 ac_mid=0
7720   while :; do
7721     cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h.  */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h.  */
7727 $ac_includes_default
7728 int
7729 main ()
7730 {
7731 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
7732 test_array [0] = 0
7733
7734   ;
7735   return 0;
7736 }
7737 _ACEOF
7738 rm -f conftest.$ac_objext
7739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7740   (eval $ac_compile) 2>conftest.er1
7741   ac_status=$?
7742   grep -v '^ *+' conftest.er1 >conftest.err
7743   rm -f conftest.er1
7744   cat conftest.err >&5
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); } &&
7747          { ac_try='test -z "$ac_c_werror_flag"
7748                          || test ! -s conftest.err'
7749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750   (eval $ac_try) 2>&5
7751   ac_status=$?
7752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753   (exit $ac_status); }; } &&
7754          { ac_try='test -s conftest.$ac_objext'
7755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756   (eval $ac_try) 2>&5
7757   ac_status=$?
7758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759   (exit $ac_status); }; }; then
7760   ac_hi=$ac_mid; break
7761 else
7762   echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7764
7765 ac_lo=`expr $ac_mid + 1`
7766                     if test $ac_lo -le $ac_mid; then
7767                       ac_lo= ac_hi=
7768                       break
7769                     fi
7770                     ac_mid=`expr 2 '*' $ac_mid + 1`
7771 fi
7772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7773   done
7774 else
7775   echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7777
7778 cat >conftest.$ac_ext <<_ACEOF
7779 /* confdefs.h.  */
7780 _ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h.  */
7784 $ac_includes_default
7785 int
7786 main ()
7787 {
7788 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
7789 test_array [0] = 0
7790
7791   ;
7792   return 0;
7793 }
7794 _ACEOF
7795 rm -f conftest.$ac_objext
7796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7797   (eval $ac_compile) 2>conftest.er1
7798   ac_status=$?
7799   grep -v '^ *+' conftest.er1 >conftest.err
7800   rm -f conftest.er1
7801   cat conftest.err >&5
7802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803   (exit $ac_status); } &&
7804          { ac_try='test -z "$ac_c_werror_flag"
7805                          || test ! -s conftest.err'
7806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807   (eval $ac_try) 2>&5
7808   ac_status=$?
7809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810   (exit $ac_status); }; } &&
7811          { ac_try='test -s conftest.$ac_objext'
7812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813   (eval $ac_try) 2>&5
7814   ac_status=$?
7815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816   (exit $ac_status); }; }; then
7817   ac_hi=-1 ac_mid=-1
7818   while :; do
7819     cat >conftest.$ac_ext <<_ACEOF
7820 /* confdefs.h.  */
7821 _ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h.  */
7825 $ac_includes_default
7826 int
7827 main ()
7828 {
7829 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
7830 test_array [0] = 0
7831
7832   ;
7833   return 0;
7834 }
7835 _ACEOF
7836 rm -f conftest.$ac_objext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7838   (eval $ac_compile) 2>conftest.er1
7839   ac_status=$?
7840   grep -v '^ *+' conftest.er1 >conftest.err
7841   rm -f conftest.er1
7842   cat conftest.err >&5
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); } &&
7845          { ac_try='test -z "$ac_c_werror_flag"
7846                          || test ! -s conftest.err'
7847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848   (eval $ac_try) 2>&5
7849   ac_status=$?
7850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851   (exit $ac_status); }; } &&
7852          { ac_try='test -s conftest.$ac_objext'
7853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854   (eval $ac_try) 2>&5
7855   ac_status=$?
7856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857   (exit $ac_status); }; }; then
7858   ac_lo=$ac_mid; break
7859 else
7860   echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7862
7863 ac_hi=`expr '(' $ac_mid ')' - 1`
7864                        if test $ac_mid -le $ac_hi; then
7865                          ac_lo= ac_hi=
7866                          break
7867                        fi
7868                        ac_mid=`expr 2 '*' $ac_mid`
7869 fi
7870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7871   done
7872 else
7873   echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7875
7876 ac_lo= ac_hi=
7877 fi
7878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7879 fi
7880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7881 # Binary search between lo and hi bounds.
7882 while test "x$ac_lo" != "x$ac_hi"; do
7883   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7884   cat >conftest.$ac_ext <<_ACEOF
7885 /* confdefs.h.  */
7886 _ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h.  */
7890 $ac_includes_default
7891 int
7892 main ()
7893 {
7894 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
7895 test_array [0] = 0
7896
7897   ;
7898   return 0;
7899 }
7900 _ACEOF
7901 rm -f conftest.$ac_objext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7903   (eval $ac_compile) 2>conftest.er1
7904   ac_status=$?
7905   grep -v '^ *+' conftest.er1 >conftest.err
7906   rm -f conftest.er1
7907   cat conftest.err >&5
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); } &&
7910          { ac_try='test -z "$ac_c_werror_flag"
7911                          || test ! -s conftest.err'
7912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913   (eval $ac_try) 2>&5
7914   ac_status=$?
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); }; } &&
7917          { ac_try='test -s conftest.$ac_objext'
7918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919   (eval $ac_try) 2>&5
7920   ac_status=$?
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); }; }; then
7923   ac_hi=$ac_mid
7924 else
7925   echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7927
7928 ac_lo=`expr '(' $ac_mid ')' + 1`
7929 fi
7930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7931 done
7932 case $ac_lo in
7933 ?*) ac_cv_sizeof_voidp=$ac_lo;;
7934 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
7935 See \`config.log' for more details." >&5
7936 echo "$as_me: error: cannot compute sizeof (void*), 77
7937 See \`config.log' for more details." >&2;}
7938    { (exit 1); exit 1; }; } ;;
7939 esac
7940 else
7941   if test "$cross_compiling" = yes; then
7942   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7943 See \`config.log' for more details." >&5
7944 echo "$as_me: error: cannot run test program while cross compiling
7945 See \`config.log' for more details." >&2;}
7946    { (exit 1); exit 1; }; }
7947 else
7948   cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h.  */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h.  */
7954 $ac_includes_default
7955 long longval () { return (long) (sizeof (void*)); }
7956 unsigned long ulongval () { return (long) (sizeof (void*)); }
7957 #include <stdio.h>
7958 #include <stdlib.h>
7959 int
7960 main ()
7961 {
7962
7963   FILE *f = fopen ("conftest.val", "w");
7964   if (! f)
7965     exit (1);
7966   if (((long) (sizeof (void*))) < 0)
7967     {
7968       long i = longval ();
7969       if (i != ((long) (sizeof (void*))))
7970         exit (1);
7971       fprintf (f, "%ld\n", i);
7972     }
7973   else
7974     {
7975       unsigned long i = ulongval ();
7976       if (i != ((long) (sizeof (void*))))
7977         exit (1);
7978       fprintf (f, "%lu\n", i);
7979     }
7980   exit (ferror (f) || fclose (f) != 0);
7981
7982   ;
7983   return 0;
7984 }
7985 _ACEOF
7986 rm -f conftest$ac_exeext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7988   (eval $ac_link) 2>&5
7989   ac_status=$?
7990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993   (eval $ac_try) 2>&5
7994   ac_status=$?
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); }; }; then
7997   ac_cv_sizeof_voidp=`cat conftest.val`
7998 else
7999   echo "$as_me: program exited with status $ac_status" >&5
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8002
8003 ( exit $ac_status )
8004 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
8005 See \`config.log' for more details." >&5
8006 echo "$as_me: error: cannot compute sizeof (void*), 77
8007 See \`config.log' for more details." >&2;}
8008    { (exit 1); exit 1; }; }
8009 fi
8010 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8011 fi
8012 fi
8013 rm -f conftest.val
8014 else
8015   ac_cv_sizeof_voidp=0
8016 fi
8017 fi
8018 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8019 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
8020 cat >>confdefs.h <<_ACEOF
8021 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8022 _ACEOF
8023
8024
8025    ac_cv_stdint_char_model=""
8026    ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_char"
8027    ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_short"
8028    ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_int"
8029    ac_cv_stdint_long_model=""
8030    ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_int"
8031    ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_long"
8032    ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_voidp"
8033    name="$ac_cv_stdint_long_model"
8034    case "$ac_cv_stdint_char_model/$ac_cv_stdint_long_model" in
8035     122/242)     name="$name,  IP16 (standard 16bit machine)" ;;
8036     122/244)     name="$name,  LP32 (standard 32bit mac/win)" ;;
8037     122/*)       name="$name        (unusual int16 model)" ;;
8038     124/444)     name="$name, ILP32 (standard 32bit unixish)" ;;
8039     124/488)     name="$name,  LP64 (standard 64bit unixish)" ;;
8040     124/448)     name="$name, LLP64 (unusual  64bit unixish)" ;;
8041     124/*)       name="$name        (unusual int32 model)" ;;
8042     128/888)     name="$name, ILP64 (unusual  64bit numeric)" ;;
8043     128/*)       name="$name        (unusual int64 model)" ;;
8044     222/*|444/*) name="$name        (unusual dsptype)" ;;
8045      *)          name="$name        (very unusal model)" ;;
8046    esac
8047    echo "$as_me:$LINENO: result: combined for stdint datatype model...  $name" >&5
8048 echo "${ECHO_T}combined for stdint datatype model...  $name" >&6
8049 fi
8050
8051 if test "_$ac_cv_header_stdint_x" != "_" ; then
8052    ac_cv_header_stdint="$ac_cv_header_stdint_x"
8053 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
8054    ac_cv_header_stdint="$ac_cv_header_stdint_o"
8055 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
8056    ac_cv_header_stdint="$ac_cv_header_stdint_u"
8057 else
8058    ac_cv_header_stdint="stddef.h"
8059 fi
8060
8061 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
8062 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
8063 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
8064 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
8065 unset ac_cv_type_int_least32_t
8066 unset ac_cv_type_int_fast32_t
8067 echo "$as_me:$LINENO: checking for int_least32_t" >&5
8068 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
8069 if test "${ac_cv_type_int_least32_t+set}" = set; then
8070   echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8072   cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h.  */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h.  */
8078 #include <$ac_cv_header_stdint>
8079
8080 int
8081 main ()
8082 {
8083 if ((int_least32_t *) 0)
8084   return 0;
8085 if (sizeof (int_least32_t))
8086   return 0;
8087   ;
8088   return 0;
8089 }
8090 _ACEOF
8091 rm -f conftest.$ac_objext
8092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8093   (eval $ac_compile) 2>conftest.er1
8094   ac_status=$?
8095   grep -v '^ *+' conftest.er1 >conftest.err
8096   rm -f conftest.er1
8097   cat conftest.err >&5
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); } &&
8100          { ac_try='test -z "$ac_c_werror_flag"
8101                          || test ! -s conftest.err'
8102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103   (eval $ac_try) 2>&5
8104   ac_status=$?
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); }; } &&
8107          { ac_try='test -s conftest.$ac_objext'
8108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109   (eval $ac_try) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; }; then
8113   ac_cv_type_int_least32_t=yes
8114 else
8115   echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8117
8118 ac_cv_type_int_least32_t=no
8119 fi
8120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8121 fi
8122 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
8123 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
8124
8125 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
8126 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
8127 if test "${ac_cv_type_int_fast32_t+set}" = set; then
8128   echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130   cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h.  */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h.  */
8136 #include<$ac_cv_header_stdint>
8137
8138 int
8139 main ()
8140 {
8141 if ((int_fast32_t *) 0)
8142   return 0;
8143 if (sizeof (int_fast32_t))
8144   return 0;
8145   ;
8146   return 0;
8147 }
8148 _ACEOF
8149 rm -f conftest.$ac_objext
8150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8151   (eval $ac_compile) 2>conftest.er1
8152   ac_status=$?
8153   grep -v '^ *+' conftest.er1 >conftest.err
8154   rm -f conftest.er1
8155   cat conftest.err >&5
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); } &&
8158          { ac_try='test -z "$ac_c_werror_flag"
8159                          || test ! -s conftest.err'
8160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161   (eval $ac_try) 2>&5
8162   ac_status=$?
8163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164   (exit $ac_status); }; } &&
8165          { ac_try='test -s conftest.$ac_objext'
8166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167   (eval $ac_try) 2>&5
8168   ac_status=$?
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); }; }; then
8171   ac_cv_type_int_fast32_t=yes
8172 else
8173   echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8175
8176 ac_cv_type_int_fast32_t=no
8177 fi
8178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8179 fi
8180 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
8181 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
8182
8183 echo "$as_me:$LINENO: checking for intmax_t" >&5
8184 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8185 if test "${ac_cv_type_intmax_t+set}" = set; then
8186   echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188   cat >conftest.$ac_ext <<_ACEOF
8189 /* confdefs.h.  */
8190 _ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h.  */
8194 #include <$ac_cv_header_stdint>
8195
8196 int
8197 main ()
8198 {
8199 if ((intmax_t *) 0)
8200   return 0;
8201 if (sizeof (intmax_t))
8202   return 0;
8203   ;
8204   return 0;
8205 }
8206 _ACEOF
8207 rm -f conftest.$ac_objext
8208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8209   (eval $ac_compile) 2>conftest.er1
8210   ac_status=$?
8211   grep -v '^ *+' conftest.er1 >conftest.err
8212   rm -f conftest.er1
8213   cat conftest.err >&5
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); } &&
8216          { ac_try='test -z "$ac_c_werror_flag"
8217                          || test ! -s conftest.err'
8218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219   (eval $ac_try) 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); }; } &&
8223          { ac_try='test -s conftest.$ac_objext'
8224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225   (eval $ac_try) 2>&5
8226   ac_status=$?
8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); }; }; then
8229   ac_cv_type_intmax_t=yes
8230 else
8231   echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8233
8234 ac_cv_type_intmax_t=no
8235 fi
8236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8237 fi
8238 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
8239 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
8240
8241
8242 fi # shortcircut to system "stdint.h"
8243 # ------------------ PREPARE VARIABLES ------------------------------
8244 if test "$GCC" = "yes" ; then
8245 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
8246 else
8247 ac_cv_stdint_message="using $CC"
8248 fi
8249
8250 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
8251 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
8252
8253 # ----------------- DONE inttypes.h checks START header -------------
8254           ac_config_commands="$ac_config_commands $ac_stdint_h"
8255
8256
8257
8258 for ac_prog in ar
8259 do
8260   # Extract the first word of "$ac_prog", so it can be a program name with args.
8261 set dummy $ac_prog; ac_word=$2
8262 echo "$as_me:$LINENO: checking for $ac_word" >&5
8263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8264 if test "${ac_cv_path_AR+set}" = set; then
8265   echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267   case $AR in
8268   [\\/]* | ?:[\\/]*)
8269   ac_cv_path_AR="$AR" # Let the user override the test with a path.
8270   ;;
8271   *)
8272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $LOCSYSPATH
8274 do
8275   IFS=$as_save_IFS
8276   test -z "$as_dir" && as_dir=.
8277   for ac_exec_ext in '' $ac_executable_extensions; do
8278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8279     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
8280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8281     break 2
8282   fi
8283 done
8284 done
8285
8286   ;;
8287 esac
8288 fi
8289 AR=$ac_cv_path_AR
8290
8291 if test -n "$AR"; then
8292   echo "$as_me:$LINENO: result: $AR" >&5
8293 echo "${ECHO_T}$AR" >&6
8294 else
8295   echo "$as_me:$LINENO: result: no" >&5
8296 echo "${ECHO_T}no" >&6
8297 fi
8298
8299   test -n "$AR" && break
8300 done
8301
8302
8303 for ac_prog in gawk mawk nawk awk
8304 do
8305   # Extract the first word of "$ac_prog", so it can be a program name with args.
8306 set dummy $ac_prog; ac_word=$2
8307 echo "$as_me:$LINENO: checking for $ac_word" >&5
8308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8309 if test "${ac_cv_prog_AWK+set}" = set; then
8310   echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
8312   if test -n "$AWK"; then
8313   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318   IFS=$as_save_IFS
8319   test -z "$as_dir" && as_dir=.
8320   for ac_exec_ext in '' $ac_executable_extensions; do
8321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8322     ac_cv_prog_AWK="$ac_prog"
8323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8324     break 2
8325   fi
8326 done
8327 done
8328
8329 fi
8330 fi
8331 AWK=$ac_cv_prog_AWK
8332 if test -n "$AWK"; then
8333   echo "$as_me:$LINENO: result: $AWK" >&5
8334 echo "${ECHO_T}$AWK" >&6
8335 else
8336   echo "$as_me:$LINENO: result: no" >&5
8337 echo "${ECHO_T}no" >&6
8338 fi
8339
8340   test -n "$AWK" && break
8341 done
8342
8343
8344
8345         echo "$as_me:$LINENO: checking for $AWK command line variable assignment" >&5
8346 echo $ECHO_N "checking for $AWK command line variable assignment... $ECHO_C" >&6
8347 if test "${amanda_cv_awk_var_assignment+set}" = set; then
8348   echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350
8351                 echo 'BEGIN{print i; exit}' > conftest.awk
8352                 result=`$AWK -f conftest.awk i=xx | wc -c`
8353                 if test "$result" -le 1; then
8354                     result=`$AWK -f conftest.awk -v i=xx | wc -c`
8355                     if test "$result" -le 1; then
8356                         amanda_cv_awk_var_assignment=no
8357                     else
8358                         amanda_cv_awk_var_assignment="yes with -v"
8359                     fi
8360                 else
8361                     amanda_cv_awk_var_assignment="yes"
8362                 fi
8363                 rm -fr conftest.awk
8364
8365
8366 fi
8367 echo "$as_me:$LINENO: result: $amanda_cv_awk_var_assignment" >&5
8368 echo "${ECHO_T}$amanda_cv_awk_var_assignment" >&6
8369         AWK_VAR_ASSIGNMENT_OPT=
8370         case "$amanda_cv_awk_var_assignment" in
8371             no)
8372                 HAVE_AWK_WITH_VAR=no
8373                 ;;
8374             yes)
8375                 HAVE_AWK_WITH_VAR=yes
8376                 ;;
8377             "yes with -v")
8378                 HAVE_AWK_WITH_VAR=yes
8379                 AWK_VAR_ASSIGNMENT_OPT=-v
8380                 ;;
8381         esac
8382
8383
8384
8385 if test "$amanda_cv_awk_var_assignment" = no; then
8386     NO_AMPLOT_MODE=true
8387     { echo "$as_me:$LINENO: WARNING: *** Your $awk cannot do command line variable assignment.  Amplot will not be installed." >&5
8388 echo "$as_me: WARNING: *** Your $awk cannot do command line variable assignment.  Amplot will not be installed." >&2;}
8389 fi
8390
8391 for ac_prog in 'bison -y' byacc
8392 do
8393   # Extract the first word of "$ac_prog", so it can be a program name with args.
8394 set dummy $ac_prog; ac_word=$2
8395 echo "$as_me:$LINENO: checking for $ac_word" >&5
8396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8397 if test "${ac_cv_prog_YACC+set}" = set; then
8398   echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
8400   if test -n "$YACC"; then
8401   ac_cv_prog_YACC="$YACC" # Let the user override the test.
8402 else
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 for as_dir in $PATH
8405 do
8406   IFS=$as_save_IFS
8407   test -z "$as_dir" && as_dir=.
8408   for ac_exec_ext in '' $ac_executable_extensions; do
8409   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8410     ac_cv_prog_YACC="$ac_prog"
8411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8412     break 2
8413   fi
8414 done
8415 done
8416
8417 fi
8418 fi
8419 YACC=$ac_cv_prog_YACC
8420 if test -n "$YACC"; then
8421   echo "$as_me:$LINENO: result: $YACC" >&5
8422 echo "${ECHO_T}$YACC" >&6
8423 else
8424   echo "$as_me:$LINENO: result: no" >&5
8425 echo "${ECHO_T}no" >&6
8426 fi
8427
8428   test -n "$YACC" && break
8429 done
8430 test -n "$YACC" || YACC="yacc"
8431
8432 for ac_prog in cat
8433 do
8434   # Extract the first word of "$ac_prog", so it can be a program name with args.
8435 set dummy $ac_prog; ac_word=$2
8436 echo "$as_me:$LINENO: checking for $ac_word" >&5
8437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8438 if test "${ac_cv_path_CAT+set}" = set; then
8439   echo $ECHO_N "(cached) $ECHO_C" >&6
8440 else
8441   case $CAT in
8442   [\\/]* | ?:[\\/]*)
8443   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8444   ;;
8445   *)
8446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 for as_dir in $LOCSYSPATH
8448 do
8449   IFS=$as_save_IFS
8450   test -z "$as_dir" && as_dir=.
8451   for ac_exec_ext in '' $ac_executable_extensions; do
8452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8453     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8455     break 2
8456   fi
8457 done
8458 done
8459
8460   ;;
8461 esac
8462 fi
8463 CAT=$ac_cv_path_CAT
8464
8465 if test -n "$CAT"; then
8466   echo "$as_me:$LINENO: result: $CAT" >&5
8467 echo "${ECHO_T}$CAT" >&6
8468 else
8469   echo "$as_me:$LINENO: result: no" >&5
8470 echo "${ECHO_T}no" >&6
8471 fi
8472
8473   test -n "$CAT" && break
8474 done
8475
8476 if test -z "$CAT"; then
8477     CAT=cat
8478 fi
8479 for ac_prog in compress
8480 do
8481   # Extract the first word of "$ac_prog", so it can be a program name with args.
8482 set dummy $ac_prog; ac_word=$2
8483 echo "$as_me:$LINENO: checking for $ac_word" >&5
8484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8485 if test "${ac_cv_path_COMPRESS+set}" = set; then
8486   echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488   case $COMPRESS in
8489   [\\/]* | ?:[\\/]*)
8490   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
8491   ;;
8492   *)
8493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $LOCSYSPATH
8495 do
8496   IFS=$as_save_IFS
8497   test -z "$as_dir" && as_dir=.
8498   for ac_exec_ext in '' $ac_executable_extensions; do
8499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
8501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8502     break 2
8503   fi
8504 done
8505 done
8506
8507   ;;
8508 esac
8509 fi
8510 COMPRESS=$ac_cv_path_COMPRESS
8511
8512 if test -n "$COMPRESS"; then
8513   echo "$as_me:$LINENO: result: $COMPRESS" >&5
8514 echo "${ECHO_T}$COMPRESS" >&6
8515 else
8516   echo "$as_me:$LINENO: result: no" >&5
8517 echo "${ECHO_T}no" >&6
8518 fi
8519
8520   test -n "$COMPRESS" && break
8521 done
8522
8523 for ac_prog in dd
8524 do
8525   # Extract the first word of "$ac_prog", so it can be a program name with args.
8526 set dummy $ac_prog; ac_word=$2
8527 echo "$as_me:$LINENO: checking for $ac_word" >&5
8528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8529 if test "${ac_cv_path_DD+set}" = set; then
8530   echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532   case $DD in
8533   [\\/]* | ?:[\\/]*)
8534   ac_cv_path_DD="$DD" # Let the user override the test with a path.
8535   ;;
8536   *)
8537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 for as_dir in $LOCSYSPATH
8539 do
8540   IFS=$as_save_IFS
8541   test -z "$as_dir" && as_dir=.
8542   for ac_exec_ext in '' $ac_executable_extensions; do
8543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8544     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
8545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8546     break 2
8547   fi
8548 done
8549 done
8550
8551   ;;
8552 esac
8553 fi
8554 DD=$ac_cv_path_DD
8555
8556 if test -n "$DD"; then
8557   echo "$as_me:$LINENO: result: $DD" >&5
8558 echo "${ECHO_T}$DD" >&6
8559 else
8560   echo "$as_me:$LINENO: result: no" >&5
8561 echo "${ECHO_T}no" >&6
8562 fi
8563
8564   test -n "$DD" && break
8565 done
8566
8567 for ac_prog in egrep
8568 do
8569   # Extract the first word of "$ac_prog", so it can be a program name with args.
8570 set dummy $ac_prog; ac_word=$2
8571 echo "$as_me:$LINENO: checking for $ac_word" >&5
8572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8573 if test "${ac_cv_path_EGREP+set}" = set; then
8574   echo $ECHO_N "(cached) $ECHO_C" >&6
8575 else
8576   case $EGREP in
8577   [\\/]* | ?:[\\/]*)
8578   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
8579   ;;
8580   *)
8581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $LOCSYSPATH
8583 do
8584   IFS=$as_save_IFS
8585   test -z "$as_dir" && as_dir=.
8586   for ac_exec_ext in '' $ac_executable_extensions; do
8587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8588     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
8589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8590     break 2
8591   fi
8592 done
8593 done
8594
8595   ;;
8596 esac
8597 fi
8598 EGREP=$ac_cv_path_EGREP
8599
8600 if test -n "$EGREP"; then
8601   echo "$as_me:$LINENO: result: $EGREP" >&5
8602 echo "${ECHO_T}$EGREP" >&6
8603 else
8604   echo "$as_me:$LINENO: result: no" >&5
8605 echo "${ECHO_T}no" >&6
8606 fi
8607
8608   test -n "$EGREP" && break
8609 done
8610
8611 for ac_prog in getconf
8612 do
8613   # Extract the first word of "$ac_prog", so it can be a program name with args.
8614 set dummy $ac_prog; ac_word=$2
8615 echo "$as_me:$LINENO: checking for $ac_word" >&5
8616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8617 if test "${ac_cv_path_GETCONF+set}" = set; then
8618   echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620   case $GETCONF in
8621   [\\/]* | ?:[\\/]*)
8622   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
8623   ;;
8624   *)
8625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 for as_dir in $SYSPATH
8627 do
8628   IFS=$as_save_IFS
8629   test -z "$as_dir" && as_dir=.
8630   for ac_exec_ext in '' $ac_executable_extensions; do
8631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8632     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
8633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8634     break 2
8635   fi
8636 done
8637 done
8638
8639   ;;
8640 esac
8641 fi
8642 GETCONF=$ac_cv_path_GETCONF
8643
8644 if test -n "$GETCONF"; then
8645   echo "$as_me:$LINENO: result: $GETCONF" >&5
8646 echo "${ECHO_T}$GETCONF" >&6
8647 else
8648   echo "$as_me:$LINENO: result: no" >&5
8649 echo "${ECHO_T}no" >&6
8650 fi
8651
8652   test -n "$GETCONF" && break
8653 done
8654
8655
8656 for ac_prog in gnuplot
8657 do
8658   # Extract the first word of "$ac_prog", so it can be a program name with args.
8659 set dummy $ac_prog; ac_word=$2
8660 echo "$as_me:$LINENO: checking for $ac_word" >&5
8661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8662 if test "${ac_cv_path_GNUPLOT+set}" = set; then
8663   echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665   case $GNUPLOT in
8666   [\\/]* | ?:[\\/]*)
8667   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
8668   ;;
8669   *)
8670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671 for as_dir in $LOCSYSPATH
8672 do
8673   IFS=$as_save_IFS
8674   test -z "$as_dir" && as_dir=.
8675   for ac_exec_ext in '' $ac_executable_extensions; do
8676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8677     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
8678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8679     break 2
8680   fi
8681 done
8682 done
8683
8684   ;;
8685 esac
8686 fi
8687 GNUPLOT=$ac_cv_path_GNUPLOT
8688
8689 if test -n "$GNUPLOT"; then
8690   echo "$as_me:$LINENO: result: $GNUPLOT" >&5
8691 echo "${ECHO_T}$GNUPLOT" >&6
8692 else
8693   echo "$as_me:$LINENO: result: no" >&5
8694 echo "${ECHO_T}no" >&6
8695 fi
8696
8697   test -n "$GNUPLOT" && break
8698 done
8699
8700 if test -z "$GNUPLOT"; then
8701     NO_AMPLOT_MODE=true
8702     { echo "$as_me:$LINENO: WARNING: *** You do not have gnuplot.  Amplot will not be installed." >&5
8703 echo "$as_me: WARNING: *** You do not have gnuplot.  Amplot will not be installed." >&2;}
8704 fi
8705
8706 for ac_prog in grep
8707 do
8708   # Extract the first word of "$ac_prog", so it can be a program name with args.
8709 set dummy $ac_prog; ac_word=$2
8710 echo "$as_me:$LINENO: checking for $ac_word" >&5
8711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8712 if test "${ac_cv_path_GREP+set}" = set; then
8713   echo $ECHO_N "(cached) $ECHO_C" >&6
8714 else
8715   case $GREP in
8716   [\\/]* | ?:[\\/]*)
8717   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
8718   ;;
8719   *)
8720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 for as_dir in $LOCSYSPATH
8722 do
8723   IFS=$as_save_IFS
8724   test -z "$as_dir" && as_dir=.
8725   for ac_exec_ext in '' $ac_executable_extensions; do
8726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8727     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
8728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8729     break 2
8730   fi
8731 done
8732 done
8733
8734   ;;
8735 esac
8736 fi
8737 GREP=$ac_cv_path_GREP
8738
8739 if test -n "$GREP"; then
8740   echo "$as_me:$LINENO: result: $GREP" >&5
8741 echo "${ECHO_T}$GREP" >&6
8742 else
8743   echo "$as_me:$LINENO: result: no" >&5
8744 echo "${ECHO_T}no" >&6
8745 fi
8746
8747   test -n "$GREP" && break
8748 done
8749
8750 if test -z "$GREP"; then
8751     GREP=grep
8752 fi
8753
8754 cat >>confdefs.h <<_ACEOF
8755 #define GREP "$GREP"
8756 _ACEOF
8757
8758
8759 for ac_prog in gtar gnutar tar
8760 do
8761   # Extract the first word of "$ac_prog", so it can be a program name with args.
8762 set dummy $ac_prog; ac_word=$2
8763 echo "$as_me:$LINENO: checking for $ac_word" >&5
8764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8765 if test "${ac_cv_path_GNUTAR+set}" = set; then
8766   echo $ECHO_N "(cached) $ECHO_C" >&6
8767 else
8768   case $GNUTAR in
8769   [\\/]* | ?:[\\/]*)
8770   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
8771   ;;
8772   *)
8773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 for as_dir in $LOCSYSPATH
8775 do
8776   IFS=$as_save_IFS
8777   test -z "$as_dir" && as_dir=.
8778   for ac_exec_ext in '' $ac_executable_extensions; do
8779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8780     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
8781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8782     break 2
8783   fi
8784 done
8785 done
8786
8787   ;;
8788 esac
8789 fi
8790 GNUTAR=$ac_cv_path_GNUTAR
8791
8792 if test -n "$GNUTAR"; then
8793   echo "$as_me:$LINENO: result: $GNUTAR" >&5
8794 echo "${ECHO_T}$GNUTAR" >&6
8795 else
8796   echo "$as_me:$LINENO: result: no" >&5
8797 echo "${ECHO_T}no" >&6
8798 fi
8799
8800   test -n "$GNUTAR" && break
8801 done
8802
8803 if test ! -z "$GNUTAR"; then
8804   case "`\"$GNUTAR\" --version 2>&1`" in
8805    *GNU*tar* | *Free*paxutils* )
8806
8807 cat >>confdefs.h <<_ACEOF
8808 #define GNUTAR "$GNUTAR"
8809 _ACEOF
8810
8811                 ;;
8812    *)
8813                 { echo "$as_me:$LINENO: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&5
8814 echo "$as_me: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&2;}
8815                 GNUTAR=
8816                 ;;
8817   esac
8818 fi
8819
8820 if test "x$SAMBA_CLIENT" != "xno"
8821 then for ac_prog in smbclient
8822 do
8823   # Extract the first word of "$ac_prog", so it can be a program name with args.
8824 set dummy $ac_prog; ac_word=$2
8825 echo "$as_me:$LINENO: checking for $ac_word" >&5
8826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8827 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
8828   echo $ECHO_N "(cached) $ECHO_C" >&6
8829 else
8830   case $SAMBA_CLIENT in
8831   [\\/]* | ?:[\\/]*)
8832   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
8833   ;;
8834   *)
8835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 for as_dir in $LOCSYSPATH
8837 do
8838   IFS=$as_save_IFS
8839   test -z "$as_dir" && as_dir=.
8840   for ac_exec_ext in '' $ac_executable_extensions; do
8841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8842     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
8843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8844     break 2
8845   fi
8846 done
8847 done
8848
8849   ;;
8850 esac
8851 fi
8852 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
8853
8854 if test -n "$SAMBA_CLIENT"; then
8855   echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
8856 echo "${ECHO_T}$SAMBA_CLIENT" >&6
8857 else
8858   echo "$as_me:$LINENO: result: no" >&5
8859 echo "${ECHO_T}no" >&6
8860 fi
8861
8862   test -n "$SAMBA_CLIENT" && break
8863 done
8864
8865 else SAMBA_CLIENT=
8866 fi
8867 if test ! -z "$SAMBA_CLIENT"; then
8868   case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
8869   *"Unknown host"*)
8870                 smbversion=1
8871                 ;;
8872   *"Connection to not.a.host.name failed"*)
8873                 smbversion=2
8874                 ;;
8875   *)
8876                 { echo "$as_me:$LINENO: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
8877 echo "$as_me: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
8878                 SAMBA_CLIENT=
8879                 ;;
8880   esac
8881   if test -n "$SAMBA_CLIENT"; then
8882
8883 cat >>confdefs.h <<_ACEOF
8884 #define SAMBA_CLIENT "$SAMBA_CLIENT"
8885 _ACEOF
8886
8887
8888 cat >>confdefs.h <<_ACEOF
8889 #define SAMBA_VERSION $smbversion
8890 _ACEOF
8891
8892   fi
8893
8894 fi
8895
8896
8897 for ac_prog in gzip
8898 do
8899   # Extract the first word of "$ac_prog", so it can be a program name with args.
8900 set dummy $ac_prog; ac_word=$2
8901 echo "$as_me:$LINENO: checking for $ac_word" >&5
8902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8903 if test "${ac_cv_path_GZIP+set}" = set; then
8904   echo $ECHO_N "(cached) $ECHO_C" >&6
8905 else
8906   case $GZIP in
8907   [\\/]* | ?:[\\/]*)
8908   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8909   ;;
8910   *)
8911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912 for as_dir in $LOCSYSPATH
8913 do
8914   IFS=$as_save_IFS
8915   test -z "$as_dir" && as_dir=.
8916   for ac_exec_ext in '' $ac_executable_extensions; do
8917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8918     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8920     break 2
8921   fi
8922 done
8923 done
8924
8925   ;;
8926 esac
8927 fi
8928 GZIP=$ac_cv_path_GZIP
8929
8930 if test -n "$GZIP"; then
8931   echo "$as_me:$LINENO: result: $GZIP" >&5
8932 echo "${ECHO_T}$GZIP" >&6
8933 else
8934   echo "$as_me:$LINENO: result: no" >&5
8935 echo "${ECHO_T}no" >&6
8936 fi
8937
8938   test -n "$GZIP" && break
8939 done
8940
8941 if test "$GZIP"; then
8942
8943 cat >>confdefs.h <<\_ACEOF
8944 #define HAVE_GZIP 1
8945 _ACEOF
8946
8947     COMPRESS_PATH="$GZIP"
8948     COMPRESS_SUFFIX=".gz"
8949     COMPRESS_FAST_OPT="--fast"
8950     COMPRESS_BEST_OPT="--best"
8951     UNCOMPRESS_PATH="$GZIP"
8952     UNCOMPRESS_OPT="-dc"
8953 else
8954     if test "$COMPRESS"; then
8955         COMPRESS_PATH="$COMPRESS"
8956         COMPRESS_SUFFIX=".Z"
8957         COMPRESS_FAST_OPT="-f"
8958         COMPRESS_BEST_OPT="-f"
8959         UNCOMPRESS_PATH="$COMPRESS"
8960         UNCOMPRESS_OPT="-dc"
8961     else
8962                                 { echo "$as_me:$LINENO: WARNING: *** Cannot find either gzip or compress.  Using cat. ***" >&5
8963 echo "$as_me: WARNING: *** Cannot find either gzip or compress.  Using cat. ***" >&2;}
8964         COMPRESS_PATH="$CAT"
8965         COMPRESS_SUFFIX=""
8966         COMPRESS_FAST_OPT=""
8967         COMPRESS_BEST_OPT=""
8968         UNCOMPRESS_PATH="$CAT"
8969         UNCOMPRESS_OPT=""
8970     fi
8971 fi
8972
8973 cat >>confdefs.h <<_ACEOF
8974 #define COMPRESS_PATH "$COMPRESS_PATH"
8975 _ACEOF
8976
8977
8978 cat >>confdefs.h <<_ACEOF
8979 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
8980 _ACEOF
8981
8982
8983 cat >>confdefs.h <<_ACEOF
8984 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
8985 _ACEOF
8986
8987
8988 cat >>confdefs.h <<_ACEOF
8989 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
8990 _ACEOF
8991
8992
8993 cat >>confdefs.h <<_ACEOF
8994 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
8995 _ACEOF
8996
8997
8998 cat >>confdefs.h <<_ACEOF
8999 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
9000 _ACEOF
9001
9002
9003 for ac_prog in Mail mailx mail
9004 do
9005   # Extract the first word of "$ac_prog", so it can be a program name with args.
9006 set dummy $ac_prog; ac_word=$2
9007 echo "$as_me:$LINENO: checking for $ac_word" >&5
9008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9009 if test "${ac_cv_path_MAILER+set}" = set; then
9010   echo $ECHO_N "(cached) $ECHO_C" >&6
9011 else
9012   case $MAILER in
9013   [\\/]* | ?:[\\/]*)
9014   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
9015   ;;
9016   *)
9017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 for as_dir in $PATH
9019 do
9020   IFS=$as_save_IFS
9021   test -z "$as_dir" && as_dir=.
9022   for ac_exec_ext in '' $ac_executable_extensions; do
9023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9024     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
9025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9026     break 2
9027   fi
9028 done
9029 done
9030
9031   ;;
9032 esac
9033 fi
9034 MAILER=$ac_cv_path_MAILER
9035
9036 if test -n "$MAILER"; then
9037   echo "$as_me:$LINENO: result: $MAILER" >&5
9038 echo "${ECHO_T}$MAILER" >&6
9039 else
9040   echo "$as_me:$LINENO: result: no" >&5
9041 echo "${ECHO_T}no" >&6
9042 fi
9043
9044   test -n "$MAILER" && break
9045 done
9046
9047 if test -z "$MAILER"; then
9048     if $NO_SERVER_MODE; then
9049         MAILER="NONE"
9050         { echo "$as_me:$LINENO: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&5
9051 echo "$as_me: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&2;}
9052     else
9053         { { echo "$as_me:$LINENO: error: Set MAILER to some program that accepts -s subject user < message_file." >&5
9054 echo "$as_me: error: Set MAILER to some program that accepts -s subject user < message_file." >&2;}
9055    { (exit 1); exit 1; }; }
9056     fi
9057 fi
9058
9059 cat >>confdefs.h <<_ACEOF
9060 #define MAILER "$MAILER"
9061 _ACEOF
9062
9063
9064 for ac_prog in mt
9065 do
9066   # Extract the first word of "$ac_prog", so it can be a program name with args.
9067 set dummy $ac_prog; ac_word=$2
9068 echo "$as_me:$LINENO: checking for $ac_word" >&5
9069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9070 if test "${ac_cv_path_MT+set}" = set; then
9071   echo $ECHO_N "(cached) $ECHO_C" >&6
9072 else
9073   case $MT in
9074   [\\/]* | ?:[\\/]*)
9075   ac_cv_path_MT="$MT" # Let the user override the test with a path.
9076   ;;
9077   *)
9078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 for as_dir in $LOCSYSPATH
9080 do
9081   IFS=$as_save_IFS
9082   test -z "$as_dir" && as_dir=.
9083   for ac_exec_ext in '' $ac_executable_extensions; do
9084   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9085     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
9086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9087     break 2
9088   fi
9089 done
9090 done
9091
9092   ;;
9093 esac
9094 fi
9095 MT=$ac_cv_path_MT
9096
9097 if test -n "$MT"; then
9098   echo "$as_me:$LINENO: result: $MT" >&5
9099 echo "${ECHO_T}$MT" >&6
9100 else
9101   echo "$as_me:$LINENO: result: no" >&5
9102 echo "${ECHO_T}no" >&6
9103 fi
9104
9105   test -n "$MT" && break
9106 done
9107 test -n "$MT" || MT="mt"
9108
9109
9110 for ac_prog in chio
9111 do
9112   # Extract the first word of "$ac_prog", so it can be a program name with args.
9113 set dummy $ac_prog; ac_word=$2
9114 echo "$as_me:$LINENO: checking for $ac_word" >&5
9115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9116 if test "${ac_cv_path_CHIO+set}" = set; then
9117   echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119   case $CHIO in
9120   [\\/]* | ?:[\\/]*)
9121   ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
9122   ;;
9123   *)
9124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9125 for as_dir in $LOCSYSPATH
9126 do
9127   IFS=$as_save_IFS
9128   test -z "$as_dir" && as_dir=.
9129   for ac_exec_ext in '' $ac_executable_extensions; do
9130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9131     ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
9132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9133     break 2
9134   fi
9135 done
9136 done
9137
9138   ;;
9139 esac
9140 fi
9141 CHIO=$ac_cv_path_CHIO
9142
9143 if test -n "$CHIO"; then
9144   echo "$as_me:$LINENO: result: $CHIO" >&5
9145 echo "${ECHO_T}$CHIO" >&6
9146 else
9147   echo "$as_me:$LINENO: result: no" >&5
9148 echo "${ECHO_T}no" >&6
9149 fi
9150
9151   test -n "$CHIO" && break
9152 done
9153 test -n "$CHIO" || CHIO="chio"
9154
9155
9156 for ac_prog in chs
9157 do
9158   # Extract the first word of "$ac_prog", so it can be a program name with args.
9159 set dummy $ac_prog; ac_word=$2
9160 echo "$as_me:$LINENO: checking for $ac_word" >&5
9161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9162 if test "${ac_cv_path_CHS+set}" = set; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165   case $CHS in
9166   [\\/]* | ?:[\\/]*)
9167   ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
9168   ;;
9169   *)
9170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171 for as_dir in $LOCSYSPATH
9172 do
9173   IFS=$as_save_IFS
9174   test -z "$as_dir" && as_dir=.
9175   for ac_exec_ext in '' $ac_executable_extensions; do
9176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9177     ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
9178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9179     break 2
9180   fi
9181 done
9182 done
9183
9184   ;;
9185 esac
9186 fi
9187 CHS=$ac_cv_path_CHS
9188
9189 if test -n "$CHS"; then
9190   echo "$as_me:$LINENO: result: $CHS" >&5
9191 echo "${ECHO_T}$CHS" >&6
9192 else
9193   echo "$as_me:$LINENO: result: no" >&5
9194 echo "${ECHO_T}no" >&6
9195 fi
9196
9197   test -n "$CHS" && break
9198 done
9199 test -n "$CHS" || CHS="chs"
9200
9201
9202 for ac_prog in mtx
9203 do
9204   # Extract the first word of "$ac_prog", so it can be a program name with args.
9205 set dummy $ac_prog; ac_word=$2
9206 echo "$as_me:$LINENO: checking for $ac_word" >&5
9207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9208 if test "${ac_cv_path_MTX+set}" = set; then
9209   echo $ECHO_N "(cached) $ECHO_C" >&6
9210 else
9211   case $MTX in
9212   [\\/]* | ?:[\\/]*)
9213   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
9214   ;;
9215   *)
9216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217 for as_dir in $LOCSYSPATH
9218 do
9219   IFS=$as_save_IFS
9220   test -z "$as_dir" && as_dir=.
9221   for ac_exec_ext in '' $ac_executable_extensions; do
9222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9223     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
9224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9225     break 2
9226   fi
9227 done
9228 done
9229
9230   ;;
9231 esac
9232 fi
9233 MTX=$ac_cv_path_MTX
9234
9235 if test -n "$MTX"; then
9236   echo "$as_me:$LINENO: result: $MTX" >&5
9237 echo "${ECHO_T}$MTX" >&6
9238 else
9239   echo "$as_me:$LINENO: result: no" >&5
9240 echo "${ECHO_T}no" >&6
9241 fi
9242
9243   test -n "$MTX" && break
9244 done
9245 test -n "$MTX" || MTX="mtx"
9246
9247
9248 for ac_prog in mcutil
9249 do
9250   # Extract the first word of "$ac_prog", so it can be a program name with args.
9251 set dummy $ac_prog; ac_word=$2
9252 echo "$as_me:$LINENO: checking for $ac_word" >&5
9253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9254 if test "${ac_cv_path_MCUTIL+set}" = set; then
9255   echo $ECHO_N "(cached) $ECHO_C" >&6
9256 else
9257   case $MCUTIL in
9258   [\\/]* | ?:[\\/]*)
9259   ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
9260   ;;
9261   *)
9262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263 for as_dir in $LOCSYSPATH
9264 do
9265   IFS=$as_save_IFS
9266   test -z "$as_dir" && as_dir=.
9267   for ac_exec_ext in '' $ac_executable_extensions; do
9268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9269     ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
9270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9271     break 2
9272   fi
9273 done
9274 done
9275
9276   ;;
9277 esac
9278 fi
9279 MCUTIL=$ac_cv_path_MCUTIL
9280
9281 if test -n "$MCUTIL"; then
9282   echo "$as_me:$LINENO: result: $MCUTIL" >&5
9283 echo "${ECHO_T}$MCUTIL" >&6
9284 else
9285   echo "$as_me:$LINENO: result: no" >&5
9286 echo "${ECHO_T}no" >&6
9287 fi
9288
9289   test -n "$MCUTIL" && break
9290 done
9291 test -n "$MCUTIL" || MCUTIL="mcutil"
9292
9293
9294 for ac_prog in lpr lp
9295 do
9296   # Extract the first word of "$ac_prog", so it can be a program name with args.
9297 set dummy $ac_prog; ac_word=$2
9298 echo "$as_me:$LINENO: checking for $ac_word" >&5
9299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9300 if test "${ac_cv_path_PRINT+set}" = set; then
9301   echo $ECHO_N "(cached) $ECHO_C" >&6
9302 else
9303   case $PRINT in
9304   [\\/]* | ?:[\\/]*)
9305   ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
9306   ;;
9307   *)
9308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9309 for as_dir in $PATH
9310 do
9311   IFS=$as_save_IFS
9312   test -z "$as_dir" && as_dir=.
9313   for ac_exec_ext in '' $ac_executable_extensions; do
9314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9315     ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
9316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9317     break 2
9318   fi
9319 done
9320 done
9321
9322   ;;
9323 esac
9324 fi
9325 PRINT=$ac_cv_path_PRINT
9326
9327 if test -n "$PRINT"; then
9328   echo "$as_me:$LINENO: result: $PRINT" >&5
9329 echo "${ECHO_T}$PRINT" >&6
9330 else
9331   echo "$as_me:$LINENO: result: no" >&5
9332 echo "${ECHO_T}no" >&6
9333 fi
9334
9335   test -n "$PRINT" && break
9336 done
9337
9338 if test ! -z "$PRINT"; then
9339
9340 cat >>confdefs.h <<_ACEOF
9341 #define LPRCMD "$PRINT"
9342 _ACEOF
9343
9344     echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
9345 echo $ECHO_N "checking which flag to use to select a printer... $ECHO_C" >&6
9346 if test "${amanda_cv_printer_flag+set}" = set; then
9347   echo $ECHO_N "(cached) $ECHO_C" >&6
9348 else
9349
9350         amanda_cv_printer_flag=$PRINTER_FLAG
9351         case "$PRINT" in
9352         lpr|*/lpr) amanda_cv_printer_flag="-P";;
9353         lp|*/lp) amanda_cv_printer_flag="-d";;
9354         esac
9355
9356 fi
9357 echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
9358 echo "${ECHO_T}$amanda_cv_printer_flag" >&6
9359     if test ! -z "$amanda_cv_printer_flag"; then
9360
9361 cat >>confdefs.h <<_ACEOF
9362 #define LPRFLAG "$amanda_cv_printer_flag"
9363 _ACEOF
9364
9365     else
9366         { echo "$as_me:$LINENO: WARNING: *** WARNING: amanda will always print to the default printer" >&5
9367 echo "$as_me: WARNING: *** WARNING: amanda will always print to the default printer" >&2;}
9368     fi
9369 fi
9370
9371 for ac_prog in pcat
9372 do
9373   # Extract the first word of "$ac_prog", so it can be a program name with args.
9374 set dummy $ac_prog; ac_word=$2
9375 echo "$as_me:$LINENO: checking for $ac_word" >&5
9376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9377 if test "${ac_cv_path_PCAT+set}" = set; then
9378   echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380   case $PCAT in
9381   [\\/]* | ?:[\\/]*)
9382   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
9383   ;;
9384   *)
9385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386 for as_dir in $LOCSYSPATH
9387 do
9388   IFS=$as_save_IFS
9389   test -z "$as_dir" && as_dir=.
9390   for ac_exec_ext in '' $ac_executable_extensions; do
9391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9392     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
9393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9394     break 2
9395   fi
9396 done
9397 done
9398
9399   ;;
9400 esac
9401 fi
9402 PCAT=$ac_cv_path_PCAT
9403
9404 if test -n "$PCAT"; then
9405   echo "$as_me:$LINENO: result: $PCAT" >&5
9406 echo "${ECHO_T}$PCAT" >&6
9407 else
9408   echo "$as_me:$LINENO: result: no" >&5
9409 echo "${ECHO_T}no" >&6
9410 fi
9411
9412   test -n "$PCAT" && break
9413 done
9414
9415 for ac_prog in perl5 perl
9416 do
9417   # Extract the first word of "$ac_prog", so it can be a program name with args.
9418 set dummy $ac_prog; ac_word=$2
9419 echo "$as_me:$LINENO: checking for $ac_word" >&5
9420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9421 if test "${ac_cv_path_PERL+set}" = set; then
9422   echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424   case $PERL in
9425   [\\/]* | ?:[\\/]*)
9426   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9427   ;;
9428   *)
9429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430 for as_dir in $LOCSYSPATH
9431 do
9432   IFS=$as_save_IFS
9433   test -z "$as_dir" && as_dir=.
9434   for ac_exec_ext in '' $ac_executable_extensions; do
9435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9436     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9438     break 2
9439   fi
9440 done
9441 done
9442
9443   ;;
9444 esac
9445 fi
9446 PERL=$ac_cv_path_PERL
9447
9448 if test -n "$PERL"; then
9449   echo "$as_me:$LINENO: result: $PERL" >&5
9450 echo "${ECHO_T}$PERL" >&6
9451 else
9452   echo "$as_me:$LINENO: result: no" >&5
9453 echo "${ECHO_T}no" >&6
9454 fi
9455
9456   test -n "$PERL" && break
9457 done
9458
9459
9460
9461 for ac_prog in $DUMP_PROGRAMS
9462 do
9463   # Extract the first word of "$ac_prog", so it can be a program name with args.
9464 set dummy $ac_prog; ac_word=$2
9465 echo "$as_me:$LINENO: checking for $ac_word" >&5
9466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9467 if test "${ac_cv_path_DUMP+set}" = set; then
9468   echo $ECHO_N "(cached) $ECHO_C" >&6
9469 else
9470   case $DUMP in
9471   [\\/]* | ?:[\\/]*)
9472   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
9473   ;;
9474   *)
9475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476 for as_dir in $SYSLOCPATH
9477 do
9478   IFS=$as_save_IFS
9479   test -z "$as_dir" && as_dir=.
9480   for ac_exec_ext in '' $ac_executable_extensions; do
9481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9482     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
9483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9484     break 2
9485   fi
9486 done
9487 done
9488
9489   ;;
9490 esac
9491 fi
9492 DUMP=$ac_cv_path_DUMP
9493
9494 if test -n "$DUMP"; then
9495   echo "$as_me:$LINENO: result: $DUMP" >&5
9496 echo "${ECHO_T}$DUMP" >&6
9497 else
9498   echo "$as_me:$LINENO: result: no" >&5
9499 echo "${ECHO_T}no" >&6
9500 fi
9501
9502   test -n "$DUMP" && break
9503 done
9504
9505 for ac_prog in ufsrestore restore
9506 do
9507   # Extract the first word of "$ac_prog", so it can be a program name with args.
9508 set dummy $ac_prog; ac_word=$2
9509 echo "$as_me:$LINENO: checking for $ac_word" >&5
9510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9511 if test "${ac_cv_path_RESTORE+set}" = set; then
9512   echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514   case $RESTORE in
9515   [\\/]* | ?:[\\/]*)
9516   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
9517   ;;
9518   *)
9519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520 for as_dir in $SYSLOCPATH
9521 do
9522   IFS=$as_save_IFS
9523   test -z "$as_dir" && as_dir=.
9524   for ac_exec_ext in '' $ac_executable_extensions; do
9525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9526     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
9527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9528     break 2
9529   fi
9530 done
9531 done
9532
9533   ;;
9534 esac
9535 fi
9536 RESTORE=$ac_cv_path_RESTORE
9537
9538 if test -n "$RESTORE"; then
9539   echo "$as_me:$LINENO: result: $RESTORE" >&5
9540 echo "${ECHO_T}$RESTORE" >&6
9541 else
9542   echo "$as_me:$LINENO: result: no" >&5
9543 echo "${ECHO_T}no" >&6
9544 fi
9545
9546   test -n "$RESTORE" && break
9547 done
9548
9549 if test "$DUMP" -a "$RESTORE"; then
9550
9551 cat >>confdefs.h <<_ACEOF
9552 #define DUMP "$DUMP"
9553 _ACEOF
9554
9555
9556 cat >>confdefs.h <<_ACEOF
9557 #define RESTORE "$RESTORE"
9558 _ACEOF
9559
9560     if test -x $DUMP; then
9561         echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
9562 echo $ECHO_N "checking whether $DUMP supports -E or -S for estimates... $ECHO_C" >&6
9563 if test "${amanda_cv_dump_estimate+set}" = set; then
9564   echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566
9567                 case "$DUMP" in
9568                 *dump)
9569                     { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
9570                         | $GREP -v Dumping
9571                         | $GREP -v Date
9572                         | $GREP -v Label >conftest.d-E 2>&1'
9573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574   (eval $ac_try) 2>&5
9575   ac_status=$?
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); }; }
9578                     cat conftest.d-E >&5
9579                     { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
9580                         | $GREP -v Dumping
9581                         | $GREP -v Date
9582                         | $GREP -v Label >conftest.d-S 2>&1'
9583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584   (eval $ac_try) 2>&5
9585   ac_status=$?
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); }; }
9588                     cat conftest.d-S >&5
9589                     { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
9590                         | $GREP -v Dumping
9591                         | $GREP -v Date
9592                         | $GREP -v Label >conftest.d 2>&1'
9593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594   (eval $ac_try) 2>&5
9595   ac_status=$?
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); }; }
9598                     cat conftest.d >&5
9599                     if { ac_try='cmp conftest.d-E conftest.d 1>&2'
9600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601   (eval $ac_try) 2>&5
9602   ac_status=$?
9603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604   (exit $ac_status); }; }; then
9605                         amanda_cv_dump_estimate=E
9606                     elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
9607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608   (eval $ac_try) 2>&5
9609   ac_status=$?
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); }; }; then
9612                         amanda_cv_dump_estimate=S
9613                     else
9614                         amanda_cv_dump_estimate=no
9615                     fi
9616                     rm -f conftest.d conftest.d-E conftest.d-S
9617                   ;;
9618                 *) amanda_cv_dump_estimate=no
9619                   ;;
9620                 esac
9621
9622 fi
9623 echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
9624 echo "${ECHO_T}$amanda_cv_dump_estimate" >&6
9625     else
9626         { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&5
9627 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&2;}
9628         amanda_cv_dump_estimate=no
9629     fi
9630     if test "$amanda_cv_dump_estimate" != no; then
9631
9632 cat >>confdefs.h <<_ACEOF
9633 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
9634 _ACEOF
9635
9636     fi
9637
9638
9639 # Check whether --with-dump-honor-nodump or --without-dump-honor-nodump was given.
9640 if test "${with_dump_honor_nodump+set}" = set; then
9641   withval="$with_dump_honor_nodump"
9642    if test -x $DUMP; then
9643         echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
9644 echo $ECHO_N "checking whether $DUMP supports -h (honor nodump flag)... $ECHO_C" >&6
9645 if test "${amanda_cv_honor_nodump+set}" = set; then
9646   echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648
9649             case "$DUMP" in
9650             *dump)
9651                 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
9652                     | $GREP -v Dumping
9653                     | $GREP -v Date
9654                     | $GREP -v Label >conftest.d-h 2>&1'
9655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656   (eval $ac_try) 2>&5
9657   ac_status=$?
9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); }; }
9660                 cat conftest.d-h >&5
9661                 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
9662                     | $GREP -v Dumping
9663                     | $GREP -v Date
9664                     | $GREP -v Label >conftest.d 2>&1'
9665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666   (eval $ac_try) 2>&5
9667   ac_status=$?
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); }; }
9670                 cat conftest.d >&5
9671                 if { ac_try='diff conftest.d-h conftest.d 1>&2'
9672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673   (eval $ac_try) 2>&5
9674   ac_status=$?
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); }; }; then
9677                     amanda_cv_honor_nodump=yes
9678                 else
9679                     amanda_cv_honor_nodump=no
9680                 fi
9681                 rm -f conftest.d conftest.d-h
9682               ;;
9683             *) amanda_cv_honor_nodump=no
9684               ;;
9685             esac
9686
9687 fi
9688 echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
9689 echo "${ECHO_T}$amanda_cv_honor_nodump" >&6
9690       else
9691         { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -h test" >&5
9692 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -h test" >&2;}
9693         amanda_cv_honor_nodump=no
9694       fi
9695       if test "$amanda_cv_honor_nodump" = yes; then
9696
9697 cat >>confdefs.h <<\_ACEOF
9698 #define HAVE_HONOR_NODUMP 1
9699 _ACEOF
9700
9701       fi
9702
9703 fi;
9704 fi
9705
9706 for ac_prog in xfsdump
9707 do
9708   # Extract the first word of "$ac_prog", so it can be a program name with args.
9709 set dummy $ac_prog; ac_word=$2
9710 echo "$as_me:$LINENO: checking for $ac_word" >&5
9711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9712 if test "${ac_cv_path_XFSDUMP+set}" = set; then
9713   echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715   case $XFSDUMP in
9716   [\\/]* | ?:[\\/]*)
9717   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
9718   ;;
9719   *)
9720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721 for as_dir in $SYSLOCPATH
9722 do
9723   IFS=$as_save_IFS
9724   test -z "$as_dir" && as_dir=.
9725   for ac_exec_ext in '' $ac_executable_extensions; do
9726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9727     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
9728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9729     break 2
9730   fi
9731 done
9732 done
9733
9734   ;;
9735 esac
9736 fi
9737 XFSDUMP=$ac_cv_path_XFSDUMP
9738
9739 if test -n "$XFSDUMP"; then
9740   echo "$as_me:$LINENO: result: $XFSDUMP" >&5
9741 echo "${ECHO_T}$XFSDUMP" >&6
9742 else
9743   echo "$as_me:$LINENO: result: no" >&5
9744 echo "${ECHO_T}no" >&6
9745 fi
9746
9747   test -n "$XFSDUMP" && break
9748 done
9749
9750 for ac_prog in xfsrestore
9751 do
9752   # Extract the first word of "$ac_prog", so it can be a program name with args.
9753 set dummy $ac_prog; ac_word=$2
9754 echo "$as_me:$LINENO: checking for $ac_word" >&5
9755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9756 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
9757   echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759   case $XFSRESTORE in
9760   [\\/]* | ?:[\\/]*)
9761   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
9762   ;;
9763   *)
9764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9765 for as_dir in $SYSLOCPATH
9766 do
9767   IFS=$as_save_IFS
9768   test -z "$as_dir" && as_dir=.
9769   for ac_exec_ext in '' $ac_executable_extensions; do
9770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9771     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
9772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9773     break 2
9774   fi
9775 done
9776 done
9777
9778   ;;
9779 esac
9780 fi
9781 XFSRESTORE=$ac_cv_path_XFSRESTORE
9782
9783 if test -n "$XFSRESTORE"; then
9784   echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
9785 echo "${ECHO_T}$XFSRESTORE" >&6
9786 else
9787   echo "$as_me:$LINENO: result: no" >&5
9788 echo "${ECHO_T}no" >&6
9789 fi
9790
9791   test -n "$XFSRESTORE" && break
9792 done
9793
9794 if test "$XFSDUMP" -a "$XFSRESTORE"; then
9795
9796 cat >>confdefs.h <<_ACEOF
9797 #define XFSDUMP "$XFSDUMP"
9798 _ACEOF
9799
9800
9801 cat >>confdefs.h <<_ACEOF
9802 #define XFSRESTORE "$XFSRESTORE"
9803 _ACEOF
9804
9805     { echo "$as_me:$LINENO: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&5
9806 echo "$as_me: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&2;}
9807     { echo "$as_me:$LINENO: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&5
9808 echo "$as_me: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&2;}
9809 fi
9810
9811 VXSYSLOCPATH="$SYSLOCPATH:/usr/lib/fs/vxfs"
9812 for ac_prog in vxdump
9813 do
9814   # Extract the first word of "$ac_prog", so it can be a program name with args.
9815 set dummy $ac_prog; ac_word=$2
9816 echo "$as_me:$LINENO: checking for $ac_word" >&5
9817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9818 if test "${ac_cv_path_VXDUMP+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   case $VXDUMP in
9822   [\\/]* | ?:[\\/]*)
9823   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
9824   ;;
9825   *)
9826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $VXSYSLOCPATH
9828 do
9829   IFS=$as_save_IFS
9830   test -z "$as_dir" && as_dir=.
9831   for ac_exec_ext in '' $ac_executable_extensions; do
9832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9833     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
9834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9835     break 2
9836   fi
9837 done
9838 done
9839
9840   ;;
9841 esac
9842 fi
9843 VXDUMP=$ac_cv_path_VXDUMP
9844
9845 if test -n "$VXDUMP"; then
9846   echo "$as_me:$LINENO: result: $VXDUMP" >&5
9847 echo "${ECHO_T}$VXDUMP" >&6
9848 else
9849   echo "$as_me:$LINENO: result: no" >&5
9850 echo "${ECHO_T}no" >&6
9851 fi
9852
9853   test -n "$VXDUMP" && break
9854 done
9855
9856 for ac_prog in vxrestore
9857 do
9858   # Extract the first word of "$ac_prog", so it can be a program name with args.
9859 set dummy $ac_prog; ac_word=$2
9860 echo "$as_me:$LINENO: checking for $ac_word" >&5
9861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9862 if test "${ac_cv_path_VXRESTORE+set}" = set; then
9863   echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865   case $VXRESTORE in
9866   [\\/]* | ?:[\\/]*)
9867   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
9868   ;;
9869   *)
9870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $VXSYSLOCPATH
9872 do
9873   IFS=$as_save_IFS
9874   test -z "$as_dir" && as_dir=.
9875   for ac_exec_ext in '' $ac_executable_extensions; do
9876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
9878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9879     break 2
9880   fi
9881 done
9882 done
9883
9884   ;;
9885 esac
9886 fi
9887 VXRESTORE=$ac_cv_path_VXRESTORE
9888
9889 if test -n "$VXRESTORE"; then
9890   echo "$as_me:$LINENO: result: $VXRESTORE" >&5
9891 echo "${ECHO_T}$VXRESTORE" >&6
9892 else
9893   echo "$as_me:$LINENO: result: no" >&5
9894 echo "${ECHO_T}no" >&6
9895 fi
9896
9897   test -n "$VXRESTORE" && break
9898 done
9899
9900 if test "$VXDUMP" -a "$VXRESTORE"; then
9901
9902 cat >>confdefs.h <<_ACEOF
9903 #define VXDUMP "$VXDUMP"
9904 _ACEOF
9905
9906
9907 cat >>confdefs.h <<_ACEOF
9908 #define VXRESTORE "$VXRESTORE"
9909 _ACEOF
9910
9911 fi
9912
9913 for ac_prog in vdump
9914 do
9915   # Extract the first word of "$ac_prog", so it can be a program name with args.
9916 set dummy $ac_prog; ac_word=$2
9917 echo "$as_me:$LINENO: checking for $ac_word" >&5
9918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9919 if test "${ac_cv_path_VDUMP+set}" = set; then
9920   echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922   case $VDUMP in
9923   [\\/]* | ?:[\\/]*)
9924   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
9925   ;;
9926   *)
9927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928 for as_dir in $SYSLOCPATH
9929 do
9930   IFS=$as_save_IFS
9931   test -z "$as_dir" && as_dir=.
9932   for ac_exec_ext in '' $ac_executable_extensions; do
9933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9934     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
9935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9936     break 2
9937   fi
9938 done
9939 done
9940
9941   ;;
9942 esac
9943 fi
9944 VDUMP=$ac_cv_path_VDUMP
9945
9946 if test -n "$VDUMP"; then
9947   echo "$as_me:$LINENO: result: $VDUMP" >&5
9948 echo "${ECHO_T}$VDUMP" >&6
9949 else
9950   echo "$as_me:$LINENO: result: no" >&5
9951 echo "${ECHO_T}no" >&6
9952 fi
9953
9954   test -n "$VDUMP" && break
9955 done
9956
9957 for ac_prog in vrestore
9958 do
9959   # Extract the first word of "$ac_prog", so it can be a program name with args.
9960 set dummy $ac_prog; ac_word=$2
9961 echo "$as_me:$LINENO: checking for $ac_word" >&5
9962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9963 if test "${ac_cv_path_VRESTORE+set}" = set; then
9964   echo $ECHO_N "(cached) $ECHO_C" >&6
9965 else
9966   case $VRESTORE in
9967   [\\/]* | ?:[\\/]*)
9968   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
9969   ;;
9970   *)
9971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $SYSLOCPATH
9973 do
9974   IFS=$as_save_IFS
9975   test -z "$as_dir" && as_dir=.
9976   for ac_exec_ext in '' $ac_executable_extensions; do
9977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9978     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
9979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9980     break 2
9981   fi
9982 done
9983 done
9984
9985   ;;
9986 esac
9987 fi
9988 VRESTORE=$ac_cv_path_VRESTORE
9989
9990 if test -n "$VRESTORE"; then
9991   echo "$as_me:$LINENO: result: $VRESTORE" >&5
9992 echo "${ECHO_T}$VRESTORE" >&6
9993 else
9994   echo "$as_me:$LINENO: result: no" >&5
9995 echo "${ECHO_T}no" >&6
9996 fi
9997
9998   test -n "$VRESTORE" && break
9999 done
10000
10001 if test "$VDUMP" -a "$VRESTORE"; then
10002
10003 cat >>confdefs.h <<_ACEOF
10004 #define VDUMP "$VDUMP"
10005 _ACEOF
10006
10007
10008 cat >>confdefs.h <<_ACEOF
10009 #define VRESTORE "$VRESTORE"
10010 _ACEOF
10011
10012 fi
10013
10014 if test "$PCAT"; then
10015     AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
10016 else
10017     AMPLOT_CAT_PACK=
10018 fi
10019 if test "$COMPRESS"; then
10020     AMPLOT_COMPRESS=$COMPRESS
10021     AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
10022 else
10023     AMPLOT_CAT_COMPRESS=
10024 fi
10025 if test "$GZIP"; then
10026     AMPLOT_COMPRESS=$GZIP
10027     AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
10028 else
10029     AMPLOT_CAT_GZIP=
10030 fi
10031
10032
10033
10034
10035
10036 GZIP=
10037
10038 need_resetofs=yes
10039 echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
10040 echo $ECHO_N "checking for large file compilation CFLAGS... $ECHO_C" >&6
10041 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
10042   echo $ECHO_N "(cached) $ECHO_C" >&6
10043 else
10044
10045         amanda_cv_LFS_CFLAGS=
10046         if test "$GETCONF"; then
10047             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
10048                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
10049                 need_resetofs=no
10050             fi
10051         fi
10052
10053
10054 fi
10055 echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
10056 echo "${ECHO_T}$amanda_cv_LFS_CFLAGS" >&6
10057 echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
10058 echo $ECHO_N "checking for large file compilation LDFLAGS... $ECHO_C" >&6
10059 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
10060   echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062
10063         amanda_cv_LFS_LDFLAGS=
10064         if test "$GETCONF"; then
10065             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
10066                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
10067                 need_resetofs=no
10068             fi
10069         fi
10070
10071
10072 fi
10073 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
10074 echo "${ECHO_T}$amanda_cv_LFS_LDFLAGS" >&6
10075 echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
10076 echo $ECHO_N "checking for large file compilation LIBS... $ECHO_C" >&6
10077 if test "${amanda_cv_LFS_LIBS+set}" = set; then
10078   echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080
10081         amanda_cv_LFS_LIBS=
10082         if test "$GETCONF"; then
10083             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
10084                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
10085                 need_resetofs=no
10086             fi
10087         fi
10088
10089
10090 fi
10091 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
10092 echo "${ECHO_T}$amanda_cv_LFS_LIBS" >&6
10093 if test "$need_resetofs" = yes; then
10094
10095 cat >>confdefs.h <<\_ACEOF
10096 #define NEED_RESETOFS 1
10097 _ACEOF
10098
10099 fi
10100 CFLAGS="$amanda_cv_LFS_CFLAGS $CFLAGS"
10101 CPPFLAGS="$amanda_cv_LFS_CFLAGS $CPPFLAGS"
10102 LDFLAGS="$amanda_cv_LFS_LDFLAGS $LDFLAGS"
10103 LIBS="$amanda_cv_LFS_LIBS $LIBS"
10104
10105 # Check whether --enable-shared or --disable-shared was given.
10106 if test "${enable_shared+set}" = set; then
10107   enableval="$enable_shared"
10108   p=${PACKAGE-default}
10109     case $enableval in
10110     yes) enable_shared=yes ;;
10111     no) enable_shared=no ;;
10112     *)
10113       enable_shared=no
10114       # Look at the argument we got.  We use all the common list separators.
10115       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10116       for pkg in $enableval; do
10117         IFS="$lt_save_ifs"
10118         if test "X$pkg" = "X$p"; then
10119           enable_shared=yes
10120         fi
10121       done
10122       IFS="$lt_save_ifs"
10123       ;;
10124     esac
10125 else
10126   enable_shared=yes
10127 fi;
10128
10129 # Check whether --enable-static or --disable-static was given.
10130 if test "${enable_static+set}" = set; then
10131   enableval="$enable_static"
10132   p=${PACKAGE-default}
10133     case $enableval in
10134     yes) enable_static=yes ;;
10135     no) enable_static=no ;;
10136     *)
10137      enable_static=no
10138       # Look at the argument we got.  We use all the common list separators.
10139       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10140       for pkg in $enableval; do
10141         IFS="$lt_save_ifs"
10142         if test "X$pkg" = "X$p"; then
10143           enable_static=yes
10144         fi
10145       done
10146       IFS="$lt_save_ifs"
10147       ;;
10148     esac
10149 else
10150   enable_static=yes
10151 fi;
10152
10153 # Check whether --enable-fast-install or --disable-fast-install was given.
10154 if test "${enable_fast_install+set}" = set; then
10155   enableval="$enable_fast_install"
10156   p=${PACKAGE-default}
10157     case $enableval in
10158     yes) enable_fast_install=yes ;;
10159     no) enable_fast_install=no ;;
10160     *)
10161       enable_fast_install=no
10162       # Look at the argument we got.  We use all the common list separators.
10163       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10164       for pkg in $enableval; do
10165         IFS="$lt_save_ifs"
10166         if test "X$pkg" = "X$p"; then
10167           enable_fast_install=yes
10168         fi
10169       done
10170       IFS="$lt_save_ifs"
10171       ;;
10172     esac
10173 else
10174   enable_fast_install=yes
10175 fi;
10176
10177 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10178 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10179 if test "${lt_cv_path_SED+set}" = set; then
10180   echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182   # Loop through the user's path and test for sed and gsed.
10183 # Then use that list of sed's as ones to test for truncation.
10184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185 for as_dir in $PATH
10186 do
10187   IFS=$as_save_IFS
10188   test -z "$as_dir" && as_dir=.
10189   for lt_ac_prog in sed gsed; do
10190     for ac_exec_ext in '' $ac_executable_extensions; do
10191       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10192         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10193       fi
10194     done
10195   done
10196 done
10197 lt_ac_max=0
10198 lt_ac_count=0
10199 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10200 # along with /bin/sed that truncates output.
10201 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10202   test ! -f $lt_ac_sed && break
10203   cat /dev/null > conftest.in
10204   lt_ac_count=0
10205   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10206   # Check for GNU sed and select it if it is found.
10207   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10208     lt_cv_path_SED=$lt_ac_sed
10209     break
10210   fi
10211   while true; do
10212     cat conftest.in conftest.in >conftest.tmp
10213     mv conftest.tmp conftest.in
10214     cp conftest.in conftest.nl
10215     echo >>conftest.nl
10216     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10217     cmp -s conftest.out conftest.nl || break
10218     # 10000 chars as input seems more than enough
10219     test $lt_ac_count -gt 10 && break
10220     lt_ac_count=`expr $lt_ac_count + 1`
10221     if test $lt_ac_count -gt $lt_ac_max; then
10222       lt_ac_max=$lt_ac_count
10223       lt_cv_path_SED=$lt_ac_sed
10224     fi
10225   done
10226 done
10227 SED=$lt_cv_path_SED
10228
10229 fi
10230
10231 echo "$as_me:$LINENO: result: $SED" >&5
10232 echo "${ECHO_T}$SED" >&6
10233
10234
10235 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10236 if test "${with_gnu_ld+set}" = set; then
10237   withval="$with_gnu_ld"
10238   test "$withval" = no || with_gnu_ld=yes
10239 else
10240   with_gnu_ld=no
10241 fi;
10242 ac_prog=ld
10243 if test "$GCC" = yes; then
10244   # Check if gcc -print-prog-name=ld gives a path.
10245   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10246 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10247   case $host in
10248   *-*-mingw*)
10249     # gcc leaves a trailing carriage return which upsets mingw
10250     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10251   *)
10252     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10253   esac
10254   case $ac_prog in
10255     # Accept absolute paths.
10256     [\\/]* | ?:[\\/]*)
10257       re_direlt='/[^/][^/]*/\.\./'
10258       # Canonicalize the pathname of ld
10259       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10260       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10261         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10262       done
10263       test -z "$LD" && LD="$ac_prog"
10264       ;;
10265   "")
10266     # If it fails, then pretend we aren't using GCC.
10267     ac_prog=ld
10268     ;;
10269   *)
10270     # If it is relative, then search for the first ld in PATH.
10271     with_gnu_ld=unknown
10272     ;;
10273   esac
10274 elif test "$with_gnu_ld" = yes; then
10275   echo "$as_me:$LINENO: checking for GNU ld" >&5
10276 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10277 else
10278   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10279 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10280 fi
10281 if test "${lt_cv_path_LD+set}" = set; then
10282   echo $ECHO_N "(cached) $ECHO_C" >&6
10283 else
10284   if test -z "$LD"; then
10285   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10286   for ac_dir in $PATH; do
10287     IFS="$lt_save_ifs"
10288     test -z "$ac_dir" && ac_dir=.
10289     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10290       lt_cv_path_LD="$ac_dir/$ac_prog"
10291       # Check to see if the program is GNU ld.  I'd rather use --version,
10292       # but apparently some GNU ld's only accept -v.
10293       # Break only if it was the GNU/non-GNU ld that we prefer.
10294       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10295       *GNU* | *'with BFD'*)
10296         test "$with_gnu_ld" != no && break
10297         ;;
10298       *)
10299         test "$with_gnu_ld" != yes && break
10300         ;;
10301       esac
10302     fi
10303   done
10304   IFS="$lt_save_ifs"
10305 else
10306   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10307 fi
10308 fi
10309
10310 LD="$lt_cv_path_LD"
10311 if test -n "$LD"; then
10312   echo "$as_me:$LINENO: result: $LD" >&5
10313 echo "${ECHO_T}$LD" >&6
10314 else
10315   echo "$as_me:$LINENO: result: no" >&5
10316 echo "${ECHO_T}no" >&6
10317 fi
10318 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10319 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10320    { (exit 1); exit 1; }; }
10321 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10322 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10323 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10324   echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10327 case `$LD -v 2>&1 </dev/null` in
10328 *GNU* | *'with BFD'*)
10329   lt_cv_prog_gnu_ld=yes
10330   ;;
10331 *)
10332   lt_cv_prog_gnu_ld=no
10333   ;;
10334 esac
10335 fi
10336 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10337 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10338 with_gnu_ld=$lt_cv_prog_gnu_ld
10339
10340
10341 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10342 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10343 if test "${lt_cv_ld_reload_flag+set}" = set; then
10344   echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346   lt_cv_ld_reload_flag='-r'
10347 fi
10348 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10349 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10350 reload_flag=$lt_cv_ld_reload_flag
10351 case $reload_flag in
10352 "" | " "*) ;;
10353 *) reload_flag=" $reload_flag" ;;
10354 esac
10355 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10356
10357 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
10358 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
10359 if test "${lt_cv_path_NM+set}" = set; then
10360   echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362   if test -n "$NM"; then
10363   # Let the user override the test.
10364   lt_cv_path_NM="$NM"
10365 else
10366   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10367   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
10368     IFS="$lt_save_ifs"
10369     test -z "$ac_dir" && ac_dir=.
10370     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
10371     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10372       # Check to see if the nm accepts a BSD-compat flag.
10373       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10374       #   nm: unknown option "B" ignored
10375       # Tru64's nm complains that /dev/null is an invalid object file
10376       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10377       */dev/null* | *'Invalid file or object type'*)
10378         lt_cv_path_NM="$tmp_nm -B"
10379         break
10380         ;;
10381       *)
10382         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10383         */dev/null*)
10384           lt_cv_path_NM="$tmp_nm -p"
10385           break
10386           ;;
10387         *)
10388           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10389           continue # so that we can try to find one that supports BSD flags
10390           ;;
10391         esac
10392       esac
10393     fi
10394   done
10395   IFS="$lt_save_ifs"
10396   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10397 fi
10398 fi
10399 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10400 echo "${ECHO_T}$lt_cv_path_NM" >&6
10401 NM="$lt_cv_path_NM"
10402
10403 echo "$as_me:$LINENO: checking whether ln -s works" >&5
10404 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10405 LN_S=$as_ln_s
10406 if test "$LN_S" = "ln -s"; then
10407   echo "$as_me:$LINENO: result: yes" >&5
10408 echo "${ECHO_T}yes" >&6
10409 else
10410   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10411 echo "${ECHO_T}no, using $LN_S" >&6
10412 fi
10413
10414 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10415 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10416 if test "${lt_cv_deplibs_check_method+set}" = set; then
10417   echo $ECHO_N "(cached) $ECHO_C" >&6
10418 else
10419   lt_cv_file_magic_cmd='$MAGIC_CMD'
10420 lt_cv_file_magic_test_file=
10421 lt_cv_deplibs_check_method='unknown'
10422 # Need to set the preceding variable on all platforms that support
10423 # interlibrary dependencies.
10424 # 'none' -- dependencies not supported.
10425 # `unknown' -- same as none, but documents that we really don't know.
10426 # 'pass_all' -- all dependencies passed with no checks.
10427 # 'test_compile' -- check by making test program.
10428 # 'file_magic [[regex]]' -- check by looking for files in library path
10429 # which responds to the $file_magic_cmd with a given extended regex.
10430 # If you have `file' or equivalent on your system and you're not sure
10431 # whether `pass_all' will *always* work, you probably want this one.
10432
10433 case $host_os in
10434 aix4* | aix5*)
10435   lt_cv_deplibs_check_method=pass_all
10436   ;;
10437
10438 beos*)
10439   lt_cv_deplibs_check_method=pass_all
10440   ;;
10441
10442 bsdi4*)
10443   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10444   lt_cv_file_magic_cmd='/usr/bin/file -L'
10445   lt_cv_file_magic_test_file=/shlib/libc.so
10446   ;;
10447
10448 cygwin*)
10449   # func_win32_libid is a shell function defined in ltmain.sh
10450   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10451   lt_cv_file_magic_cmd='func_win32_libid'
10452   ;;
10453
10454 mingw* | pw32*)
10455   # Base MSYS/MinGW do not provide the 'file' command needed by
10456   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10457   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10458   lt_cv_file_magic_cmd='$OBJDUMP -f'
10459   ;;
10460
10461 darwin* | rhapsody*)
10462   lt_cv_deplibs_check_method=pass_all
10463   ;;
10464
10465 freebsd* | kfreebsd*-gnu)
10466   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10467     case $host_cpu in
10468     i*86 )
10469       # Not sure whether the presence of OpenBSD here was a mistake.
10470       # Let's accept both of them until this is cleared up.
10471       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10472       lt_cv_file_magic_cmd=/usr/bin/file
10473       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10474       ;;
10475     esac
10476   else
10477     lt_cv_deplibs_check_method=pass_all
10478   fi
10479   ;;
10480
10481 gnu*)
10482   lt_cv_deplibs_check_method=pass_all
10483   ;;
10484
10485 hpux10.20* | hpux11*)
10486   lt_cv_file_magic_cmd=/usr/bin/file
10487   case "$host_cpu" in
10488   ia64*)
10489     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10490     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10491     ;;
10492   hppa*64*)
10493     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]'
10494     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10495     ;;
10496   *)
10497     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10498     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10499     ;;
10500   esac
10501   ;;
10502
10503 irix5* | irix6* | nonstopux*)
10504   case $LD in
10505   *-32|*"-32 ") libmagic=32-bit;;
10506   *-n32|*"-n32 ") libmagic=N32;;
10507   *-64|*"-64 ") libmagic=64-bit;;
10508   *) libmagic=never-match;;
10509   esac
10510   lt_cv_deplibs_check_method=pass_all
10511   ;;
10512
10513 # This must be Linux ELF.
10514 linux*)
10515   case $host_cpu in
10516   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
10517     lt_cv_deplibs_check_method=pass_all ;;
10518   *)
10519     # glibc up to 2.1.1 does not perform some relocations on ARM
10520     # this will be overridden with pass_all, but let us keep it just in case
10521     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
10522   esac
10523   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
10524   lt_cv_deplibs_check_method=pass_all
10525   ;;
10526
10527 netbsd*)
10528   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10529     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10530   else
10531     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10532   fi
10533   ;;
10534
10535 newos6*)
10536   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10537   lt_cv_file_magic_cmd=/usr/bin/file
10538   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10539   ;;
10540
10541 nto-qnx*)
10542   lt_cv_deplibs_check_method=unknown
10543   ;;
10544
10545 openbsd*)
10546   lt_cv_file_magic_cmd=/usr/bin/file
10547   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10548   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10549     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
10550   else
10551     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
10552   fi
10553   ;;
10554
10555 osf3* | osf4* | osf5*)
10556   lt_cv_deplibs_check_method=pass_all
10557   ;;
10558
10559 sco3.2v5*)
10560   lt_cv_deplibs_check_method=pass_all
10561   ;;
10562
10563 solaris*)
10564   lt_cv_deplibs_check_method=pass_all
10565   ;;
10566
10567 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10568   case $host_vendor in
10569   motorola)
10570     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]'
10571     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10572     ;;
10573   ncr)
10574     lt_cv_deplibs_check_method=pass_all
10575     ;;
10576   sequent)
10577     lt_cv_file_magic_cmd='/bin/file'
10578     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10579     ;;
10580   sni)
10581     lt_cv_file_magic_cmd='/bin/file'
10582     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10583     lt_cv_file_magic_test_file=/lib/libc.so
10584     ;;
10585   siemens)
10586     lt_cv_deplibs_check_method=pass_all
10587     ;;
10588   esac
10589   ;;
10590
10591 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10592   lt_cv_deplibs_check_method=pass_all
10593   ;;
10594 esac
10595
10596 fi
10597 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10598 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10599 file_magic_cmd=$lt_cv_file_magic_cmd
10600 deplibs_check_method=$lt_cv_deplibs_check_method
10601 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10602
10603
10604 # If no C compiler was specified, use CC.
10605 LTCC=${LTCC-"$CC"}
10606
10607 # Allow CC to be a program name with arguments.
10608 compiler=$CC
10609
10610 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10611 if test "${enable_libtool_lock+set}" = set; then
10612   enableval="$enable_libtool_lock"
10613
10614 fi;
10615 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10616
10617 # Some flags need to be propagated to the compiler or linker for good
10618 # libtool support.
10619 case $host in
10620 ia64-*-hpux*)
10621   # Find out which ABI we are using.
10622   echo 'int i;' > conftest.$ac_ext
10623   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10624   (eval $ac_compile) 2>&5
10625   ac_status=$?
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); }; then
10628     case `/usr/bin/file conftest.$ac_objext` in
10629     *ELF-32*)
10630       HPUX_IA64_MODE="32"
10631       ;;
10632     *ELF-64*)
10633       HPUX_IA64_MODE="64"
10634       ;;
10635     esac
10636   fi
10637   rm -rf conftest*
10638   ;;
10639 *-*-irix6*)
10640   # Find out which ABI we are using.
10641   echo '#line 10641 "configure"' > conftest.$ac_ext
10642   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643   (eval $ac_compile) 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); }; then
10647    if test "$lt_cv_prog_gnu_ld" = yes; then
10648     case `/usr/bin/file conftest.$ac_objext` in
10649     *32-bit*)
10650       LD="${LD-ld} -melf32bsmip"
10651       ;;
10652     *N32*)
10653       LD="${LD-ld} -melf32bmipn32"
10654       ;;
10655     *64-bit*)
10656       LD="${LD-ld} -melf64bmip"
10657       ;;
10658     esac
10659    else
10660     case `/usr/bin/file conftest.$ac_objext` in
10661     *32-bit*)
10662       LD="${LD-ld} -32"
10663       ;;
10664     *N32*)
10665       LD="${LD-ld} -n32"
10666       ;;
10667     *64-bit*)
10668       LD="${LD-ld} -64"
10669       ;;
10670     esac
10671    fi
10672   fi
10673   rm -rf conftest*
10674   ;;
10675
10676 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10677   # Find out which ABI we are using.
10678   echo 'int i;' > conftest.$ac_ext
10679   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10680   (eval $ac_compile) 2>&5
10681   ac_status=$?
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); }; then
10684     case "`/usr/bin/file conftest.o`" in
10685     *32-bit*)
10686       case $host in
10687         x86_64-*linux*)
10688           LD="${LD-ld} -m elf_i386"
10689           ;;
10690         ppc64-*linux*|powerpc64-*linux*)
10691           LD="${LD-ld} -m elf32ppclinux"
10692           ;;
10693         s390x-*linux*)
10694           LD="${LD-ld} -m elf_s390"
10695           ;;
10696         sparc64-*linux*)
10697           LD="${LD-ld} -m elf32_sparc"
10698           ;;
10699       esac
10700       ;;
10701     *64-bit*)
10702       case $host in
10703         x86_64-*linux*)
10704           LD="${LD-ld} -m elf_x86_64"
10705           ;;
10706         ppc*-*linux*|powerpc*-*linux*)
10707           LD="${LD-ld} -m elf64ppc"
10708           ;;
10709         s390*-*linux*)
10710           LD="${LD-ld} -m elf64_s390"
10711           ;;
10712         sparc*-*linux*)
10713           LD="${LD-ld} -m elf64_sparc"
10714           ;;
10715       esac
10716       ;;
10717     esac
10718   fi
10719   rm -rf conftest*
10720   ;;
10721
10722 *-*-sco3.2v5*)
10723   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10724   SAVE_CFLAGS="$CFLAGS"
10725   CFLAGS="$CFLAGS -belf"
10726   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10727 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10728 if test "${lt_cv_cc_needs_belf+set}" = set; then
10729   echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731   ac_ext=c
10732 ac_cpp='$CPP $CPPFLAGS'
10733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10736
10737      cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743
10744 int
10745 main ()
10746 {
10747
10748   ;
10749   return 0;
10750 }
10751 _ACEOF
10752 rm -f conftest.$ac_objext conftest$ac_exeext
10753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10754   (eval $ac_link) 2>conftest.er1
10755   ac_status=$?
10756   grep -v '^ *+' conftest.er1 >conftest.err
10757   rm -f conftest.er1
10758   cat conftest.err >&5
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); } &&
10761          { ac_try='test -z "$ac_c_werror_flag"
10762                          || test ! -s conftest.err'
10763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764   (eval $ac_try) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; } &&
10768          { ac_try='test -s conftest$ac_exeext'
10769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770   (eval $ac_try) 2>&5
10771   ac_status=$?
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); }; }; then
10774   lt_cv_cc_needs_belf=yes
10775 else
10776   echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10778
10779 lt_cv_cc_needs_belf=no
10780 fi
10781 rm -f conftest.err conftest.$ac_objext \
10782       conftest$ac_exeext conftest.$ac_ext
10783      ac_ext=c
10784 ac_cpp='$CPP $CPPFLAGS'
10785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10788
10789 fi
10790 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10791 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10792   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10793     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10794     CFLAGS="$SAVE_CFLAGS"
10795   fi
10796   ;;
10797
10798 esac
10799
10800 need_locks="$enable_libtool_lock"
10801
10802
10803
10804 for ac_header in dlfcn.h
10805 do
10806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10808   echo "$as_me:$LINENO: checking for $ac_header" >&5
10809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10811   echo $ECHO_N "(cached) $ECHO_C" >&6
10812 fi
10813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10815 else
10816   # Is the header compilable?
10817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10819 cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h.  */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h.  */
10825 $ac_includes_default
10826 #include <$ac_header>
10827 _ACEOF
10828 rm -f conftest.$ac_objext
10829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10830   (eval $ac_compile) 2>conftest.er1
10831   ac_status=$?
10832   grep -v '^ *+' conftest.er1 >conftest.err
10833   rm -f conftest.er1
10834   cat conftest.err >&5
10835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836   (exit $ac_status); } &&
10837          { ac_try='test -z "$ac_c_werror_flag"
10838                          || test ! -s conftest.err'
10839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840   (eval $ac_try) 2>&5
10841   ac_status=$?
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); }; } &&
10844          { ac_try='test -s conftest.$ac_objext'
10845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846   (eval $ac_try) 2>&5
10847   ac_status=$?
10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); }; }; then
10850   ac_header_compiler=yes
10851 else
10852   echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10854
10855 ac_header_compiler=no
10856 fi
10857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10859 echo "${ECHO_T}$ac_header_compiler" >&6
10860
10861 # Is the header present?
10862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10864 cat >conftest.$ac_ext <<_ACEOF
10865 /* confdefs.h.  */
10866 _ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h.  */
10870 #include <$ac_header>
10871 _ACEOF
10872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10873   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10874   ac_status=$?
10875   grep -v '^ *+' conftest.er1 >conftest.err
10876   rm -f conftest.er1
10877   cat conftest.err >&5
10878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879   (exit $ac_status); } >/dev/null; then
10880   if test -s conftest.err; then
10881     ac_cpp_err=$ac_c_preproc_warn_flag
10882     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10883   else
10884     ac_cpp_err=
10885   fi
10886 else
10887   ac_cpp_err=yes
10888 fi
10889 if test -z "$ac_cpp_err"; then
10890   ac_header_preproc=yes
10891 else
10892   echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10894
10895   ac_header_preproc=no
10896 fi
10897 rm -f conftest.err conftest.$ac_ext
10898 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10899 echo "${ECHO_T}$ac_header_preproc" >&6
10900
10901 # So?  What about this header?
10902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10903   yes:no: )
10904     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10908     ac_header_preproc=yes
10909     ;;
10910   no:yes:* )
10911     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10913     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10914 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10915     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10917     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10918 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10921     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10923     (
10924       cat <<\_ASBOX
10925 ## ------------------------------------------ ##
10926 ## Report this to the AC_PACKAGE_NAME lists.  ##
10927 ## ------------------------------------------ ##
10928 _ASBOX
10929     ) |
10930       sed "s/^/$as_me: WARNING:     /" >&2
10931     ;;
10932 esac
10933 echo "$as_me:$LINENO: checking for $ac_header" >&5
10934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10936   echo $ECHO_N "(cached) $ECHO_C" >&6
10937 else
10938   eval "$as_ac_Header=\$ac_header_preproc"
10939 fi
10940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10942
10943 fi
10944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10945   cat >>confdefs.h <<_ACEOF
10946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10947 _ACEOF
10948
10949 fi
10950
10951 done
10952
10953 ac_ext=cc
10954 ac_cpp='$CXXCPP $CPPFLAGS'
10955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10958 if test -n "$ac_tool_prefix"; then
10959   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10960   do
10961     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10962 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10963 echo "$as_me:$LINENO: checking for $ac_word" >&5
10964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10965 if test "${ac_cv_prog_CXX+set}" = set; then
10966   echo $ECHO_N "(cached) $ECHO_C" >&6
10967 else
10968   if test -n "$CXX"; then
10969   ac_cv_prog_CXX="$CXX" # Let the user override the test.
10970 else
10971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in $PATH
10973 do
10974   IFS=$as_save_IFS
10975   test -z "$as_dir" && as_dir=.
10976   for ac_exec_ext in '' $ac_executable_extensions; do
10977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10978     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10980     break 2
10981   fi
10982 done
10983 done
10984
10985 fi
10986 fi
10987 CXX=$ac_cv_prog_CXX
10988 if test -n "$CXX"; then
10989   echo "$as_me:$LINENO: result: $CXX" >&5
10990 echo "${ECHO_T}$CXX" >&6
10991 else
10992   echo "$as_me:$LINENO: result: no" >&5
10993 echo "${ECHO_T}no" >&6
10994 fi
10995
10996     test -n "$CXX" && break
10997   done
10998 fi
10999 if test -z "$CXX"; then
11000   ac_ct_CXX=$CXX
11001   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11002 do
11003   # Extract the first word of "$ac_prog", so it can be a program name with args.
11004 set dummy $ac_prog; ac_word=$2
11005 echo "$as_me:$LINENO: checking for $ac_word" >&5
11006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11007 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11008   echo $ECHO_N "(cached) $ECHO_C" >&6
11009 else
11010   if test -n "$ac_ct_CXX"; then
11011   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11012 else
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11015 do
11016   IFS=$as_save_IFS
11017   test -z "$as_dir" && as_dir=.
11018   for ac_exec_ext in '' $ac_executable_extensions; do
11019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020     ac_cv_prog_ac_ct_CXX="$ac_prog"
11021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11022     break 2
11023   fi
11024 done
11025 done
11026
11027 fi
11028 fi
11029 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11030 if test -n "$ac_ct_CXX"; then
11031   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11032 echo "${ECHO_T}$ac_ct_CXX" >&6
11033 else
11034   echo "$as_me:$LINENO: result: no" >&5
11035 echo "${ECHO_T}no" >&6
11036 fi
11037
11038   test -n "$ac_ct_CXX" && break
11039 done
11040 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11041
11042   CXX=$ac_ct_CXX
11043 fi
11044
11045
11046 # Provide some information about the compiler.
11047 echo "$as_me:$LINENO:" \
11048      "checking for C++ compiler version" >&5
11049 ac_compiler=`set X $ac_compile; echo $2`
11050 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11051   (eval $ac_compiler --version </dev/null >&5) 2>&5
11052   ac_status=$?
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); }
11055 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11056   (eval $ac_compiler -v </dev/null >&5) 2>&5
11057   ac_status=$?
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); }
11060 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11061   (eval $ac_compiler -V </dev/null >&5) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }
11065
11066 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11067 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11068 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11069   echo $ECHO_N "(cached) $ECHO_C" >&6
11070 else
11071   cat >conftest.$ac_ext <<_ACEOF
11072 /* confdefs.h.  */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h.  */
11077
11078 int
11079 main ()
11080 {
11081 #ifndef __GNUC__
11082        choke me
11083 #endif
11084
11085   ;
11086   return 0;
11087 }
11088 _ACEOF
11089 rm -f conftest.$ac_objext
11090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11091   (eval $ac_compile) 2>conftest.er1
11092   ac_status=$?
11093   grep -v '^ *+' conftest.er1 >conftest.err
11094   rm -f conftest.er1
11095   cat conftest.err >&5
11096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097   (exit $ac_status); } &&
11098          { ac_try='test -z "$ac_cxx_werror_flag"
11099                          || test ! -s conftest.err'
11100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101   (eval $ac_try) 2>&5
11102   ac_status=$?
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); }; } &&
11105          { ac_try='test -s conftest.$ac_objext'
11106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107   (eval $ac_try) 2>&5
11108   ac_status=$?
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); }; }; then
11111   ac_compiler_gnu=yes
11112 else
11113   echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11115
11116 ac_compiler_gnu=no
11117 fi
11118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11119 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11120
11121 fi
11122 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11123 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11124 GXX=`test $ac_compiler_gnu = yes && echo yes`
11125 ac_test_CXXFLAGS=${CXXFLAGS+set}
11126 ac_save_CXXFLAGS=$CXXFLAGS
11127 CXXFLAGS="-g"
11128 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11129 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11130 if test "${ac_cv_prog_cxx_g+set}" = set; then
11131   echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133   cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h.  */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h.  */
11139
11140 int
11141 main ()
11142 {
11143
11144   ;
11145   return 0;
11146 }
11147 _ACEOF
11148 rm -f conftest.$ac_objext
11149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11150   (eval $ac_compile) 2>conftest.er1
11151   ac_status=$?
11152   grep -v '^ *+' conftest.er1 >conftest.err
11153   rm -f conftest.er1
11154   cat conftest.err >&5
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); } &&
11157          { ac_try='test -z "$ac_cxx_werror_flag"
11158                          || test ! -s conftest.err'
11159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160   (eval $ac_try) 2>&5
11161   ac_status=$?
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); }; } &&
11164          { ac_try='test -s conftest.$ac_objext'
11165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166   (eval $ac_try) 2>&5
11167   ac_status=$?
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); }; }; then
11170   ac_cv_prog_cxx_g=yes
11171 else
11172   echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11174
11175 ac_cv_prog_cxx_g=no
11176 fi
11177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11178 fi
11179 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11180 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11181 if test "$ac_test_CXXFLAGS" = set; then
11182   CXXFLAGS=$ac_save_CXXFLAGS
11183 elif test $ac_cv_prog_cxx_g = yes; then
11184   if test "$GXX" = yes; then
11185     CXXFLAGS="-g -O2"
11186   else
11187     CXXFLAGS="-g"
11188   fi
11189 else
11190   if test "$GXX" = yes; then
11191     CXXFLAGS="-O2"
11192   else
11193     CXXFLAGS=
11194   fi
11195 fi
11196 for ac_declaration in \
11197    '' \
11198    'extern "C" void std::exit (int) throw (); using std::exit;' \
11199    'extern "C" void std::exit (int); using std::exit;' \
11200    'extern "C" void exit (int) throw ();' \
11201    'extern "C" void exit (int);' \
11202    'void exit (int);'
11203 do
11204   cat >conftest.$ac_ext <<_ACEOF
11205 /* confdefs.h.  */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h.  */
11210 $ac_declaration
11211 #include <stdlib.h>
11212 int
11213 main ()
11214 {
11215 exit (42);
11216   ;
11217   return 0;
11218 }
11219 _ACEOF
11220 rm -f conftest.$ac_objext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11222   (eval $ac_compile) 2>conftest.er1
11223   ac_status=$?
11224   grep -v '^ *+' conftest.er1 >conftest.err
11225   rm -f conftest.er1
11226   cat conftest.err >&5
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); } &&
11229          { ac_try='test -z "$ac_cxx_werror_flag"
11230                          || test ! -s conftest.err'
11231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232   (eval $ac_try) 2>&5
11233   ac_status=$?
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); }; } &&
11236          { ac_try='test -s conftest.$ac_objext'
11237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238   (eval $ac_try) 2>&5
11239   ac_status=$?
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); }; }; then
11242   :
11243 else
11244   echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11246
11247 continue
11248 fi
11249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11250   cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h.  */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h.  */
11256 $ac_declaration
11257 int
11258 main ()
11259 {
11260 exit (42);
11261   ;
11262   return 0;
11263 }
11264 _ACEOF
11265 rm -f conftest.$ac_objext
11266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11267   (eval $ac_compile) 2>conftest.er1
11268   ac_status=$?
11269   grep -v '^ *+' conftest.er1 >conftest.err
11270   rm -f conftest.er1
11271   cat conftest.err >&5
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); } &&
11274          { ac_try='test -z "$ac_cxx_werror_flag"
11275                          || test ! -s conftest.err'
11276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277   (eval $ac_try) 2>&5
11278   ac_status=$?
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); }; } &&
11281          { ac_try='test -s conftest.$ac_objext'
11282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283   (eval $ac_try) 2>&5
11284   ac_status=$?
11285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286   (exit $ac_status); }; }; then
11287   break
11288 else
11289   echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11291
11292 fi
11293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11294 done
11295 rm -f conftest*
11296 if test -n "$ac_declaration"; then
11297   echo '#ifdef __cplusplus' >>confdefs.h
11298   echo $ac_declaration      >>confdefs.h
11299   echo '#endif'             >>confdefs.h
11300 fi
11301
11302 ac_ext=cc
11303 ac_cpp='$CXXCPP $CPPFLAGS'
11304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11307
11308 depcc="$CXX"  am_compiler_list=
11309
11310 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11311 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
11312 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11313   echo $ECHO_N "(cached) $ECHO_C" >&6
11314 else
11315   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11316   # We make a subdir and do the tests there.  Otherwise we can end up
11317   # making bogus files that we don't know about and never remove.  For
11318   # instance it was reported that on HP-UX the gcc test will end up
11319   # making a dummy file named `D' -- because `-MD' means `put the output
11320   # in D'.
11321   mkdir conftest.dir
11322   # Copy depcomp to subdir because otherwise we won't find it if we're
11323   # using a relative directory.
11324   cp "$am_depcomp" conftest.dir
11325   cd conftest.dir
11326   # We will build objects and dependencies in a subdirectory because
11327   # it helps to detect inapplicable dependency modes.  For instance
11328   # both Tru64's cc and ICC support -MD to output dependencies as a
11329   # side effect of compilation, but ICC will put the dependencies in
11330   # the current directory while Tru64 will put them in the object
11331   # directory.
11332   mkdir sub
11333
11334   am_cv_CXX_dependencies_compiler_type=none
11335   if test "$am_compiler_list" = ""; then
11336      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11337   fi
11338   for depmode in $am_compiler_list; do
11339     # Setup a source with many dependencies, because some compilers
11340     # like to wrap large dependency lists on column 80 (with \), and
11341     # we should not choose a depcomp mode which is confused by this.
11342     #
11343     # We need to recreate these files for each test, as the compiler may
11344     # overwrite some of them when testing with obscure command lines.
11345     # This happens at least with the AIX C compiler.
11346     : > sub/conftest.c
11347     for i in 1 2 3 4 5 6; do
11348       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11349       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11350       # Solaris 8's {/usr,}/bin/sh.
11351       touch sub/conftst$i.h
11352     done
11353     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11354
11355     case $depmode in
11356     nosideeffect)
11357       # after this tag, mechanisms are not by side-effect, so they'll
11358       # only be used when explicitly requested
11359       if test "x$enable_dependency_tracking" = xyes; then
11360         continue
11361       else
11362         break
11363       fi
11364       ;;
11365     none) break ;;
11366     esac
11367     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11368     # mode.  It turns out that the SunPro C++ compiler does not properly
11369     # handle `-M -o', and we need to detect this.
11370     if depmode=$depmode \
11371        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11372        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11373        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11374          >/dev/null 2>conftest.err &&
11375        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11376        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11377        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11378       # icc doesn't choke on unknown options, it will just issue warnings
11379       # or remarks (even with -Werror).  So we grep stderr for any message
11380       # that says an option was ignored or not supported.
11381       # When given -MP, icc 7.0 and 7.1 complain thusly:
11382       #   icc: Command line warning: ignoring option '-M'; no argument required
11383       # The diagnosis changed in icc 8.0:
11384       #   icc: Command line remark: option '-MP' not supported
11385       if (grep 'ignoring option' conftest.err ||
11386           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11387         am_cv_CXX_dependencies_compiler_type=$depmode
11388         break
11389       fi
11390     fi
11391   done
11392
11393   cd ..
11394   rm -rf conftest.dir
11395 else
11396   am_cv_CXX_dependencies_compiler_type=none
11397 fi
11398
11399 fi
11400 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11401 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
11402 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11403
11404
11405
11406 if
11407   test "x$enable_dependency_tracking" != xno \
11408   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11409   am__fastdepCXX_TRUE=
11410   am__fastdepCXX_FALSE='#'
11411 else
11412   am__fastdepCXX_TRUE='#'
11413   am__fastdepCXX_FALSE=
11414 fi
11415
11416
11417 ac_ext=cc
11418 ac_cpp='$CXXCPP $CPPFLAGS'
11419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11422 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11423 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11424 if test -z "$CXXCPP"; then
11425   if test "${ac_cv_prog_CXXCPP+set}" = set; then
11426   echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428       # Double quotes because CXXCPP needs to be expanded
11429     for CXXCPP in "$CXX -E" "/lib/cpp"
11430     do
11431       ac_preproc_ok=false
11432 for ac_cxx_preproc_warn_flag in '' yes
11433 do
11434   # Use a header file that comes with gcc, so configuring glibc
11435   # with a fresh cross-compiler works.
11436   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11437   # <limits.h> exists even on freestanding compilers.
11438   # On the NeXT, cc -E runs the code through the compiler's parser,
11439   # not just through cpp. "Syntax error" is here to catch this case.
11440   cat >conftest.$ac_ext <<_ACEOF
11441 /* confdefs.h.  */
11442 _ACEOF
11443 cat confdefs.h >>conftest.$ac_ext
11444 cat >>conftest.$ac_ext <<_ACEOF
11445 /* end confdefs.h.  */
11446 #ifdef __STDC__
11447 # include <limits.h>
11448 #else
11449 # include <assert.h>
11450 #endif
11451                      Syntax error
11452 _ACEOF
11453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11454   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11455   ac_status=$?
11456   grep -v '^ *+' conftest.er1 >conftest.err
11457   rm -f conftest.er1
11458   cat conftest.err >&5
11459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460   (exit $ac_status); } >/dev/null; then
11461   if test -s conftest.err; then
11462     ac_cpp_err=$ac_cxx_preproc_warn_flag
11463     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11464   else
11465     ac_cpp_err=
11466   fi
11467 else
11468   ac_cpp_err=yes
11469 fi
11470 if test -z "$ac_cpp_err"; then
11471   :
11472 else
11473   echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11475
11476   # Broken: fails on valid input.
11477 continue
11478 fi
11479 rm -f conftest.err conftest.$ac_ext
11480
11481   # OK, works on sane cases.  Now check whether non-existent headers
11482   # can be detected and how.
11483   cat >conftest.$ac_ext <<_ACEOF
11484 /* confdefs.h.  */
11485 _ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h.  */
11489 #include <ac_nonexistent.h>
11490 _ACEOF
11491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11493   ac_status=$?
11494   grep -v '^ *+' conftest.er1 >conftest.err
11495   rm -f conftest.er1
11496   cat conftest.err >&5
11497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498   (exit $ac_status); } >/dev/null; then
11499   if test -s conftest.err; then
11500     ac_cpp_err=$ac_cxx_preproc_warn_flag
11501     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11502   else
11503     ac_cpp_err=
11504   fi
11505 else
11506   ac_cpp_err=yes
11507 fi
11508 if test -z "$ac_cpp_err"; then
11509   # Broken: success on invalid input.
11510 continue
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515   # Passes both tests.
11516 ac_preproc_ok=:
11517 break
11518 fi
11519 rm -f conftest.err conftest.$ac_ext
11520
11521 done
11522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11523 rm -f conftest.err conftest.$ac_ext
11524 if $ac_preproc_ok; then
11525   break
11526 fi
11527
11528     done
11529     ac_cv_prog_CXXCPP=$CXXCPP
11530
11531 fi
11532   CXXCPP=$ac_cv_prog_CXXCPP
11533 else
11534   ac_cv_prog_CXXCPP=$CXXCPP
11535 fi
11536 echo "$as_me:$LINENO: result: $CXXCPP" >&5
11537 echo "${ECHO_T}$CXXCPP" >&6
11538 ac_preproc_ok=false
11539 for ac_cxx_preproc_warn_flag in '' yes
11540 do
11541   # Use a header file that comes with gcc, so configuring glibc
11542   # with a fresh cross-compiler works.
11543   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11544   # <limits.h> exists even on freestanding compilers.
11545   # On the NeXT, cc -E runs the code through the compiler's parser,
11546   # not just through cpp. "Syntax error" is here to catch this case.
11547   cat >conftest.$ac_ext <<_ACEOF
11548 /* confdefs.h.  */
11549 _ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h.  */
11553 #ifdef __STDC__
11554 # include <limits.h>
11555 #else
11556 # include <assert.h>
11557 #endif
11558                      Syntax error
11559 _ACEOF
11560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11561   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11562   ac_status=$?
11563   grep -v '^ *+' conftest.er1 >conftest.err
11564   rm -f conftest.er1
11565   cat conftest.err >&5
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); } >/dev/null; then
11568   if test -s conftest.err; then
11569     ac_cpp_err=$ac_cxx_preproc_warn_flag
11570     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11571   else
11572     ac_cpp_err=
11573   fi
11574 else
11575   ac_cpp_err=yes
11576 fi
11577 if test -z "$ac_cpp_err"; then
11578   :
11579 else
11580   echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11582
11583   # Broken: fails on valid input.
11584 continue
11585 fi
11586 rm -f conftest.err conftest.$ac_ext
11587
11588   # OK, works on sane cases.  Now check whether non-existent headers
11589   # can be detected and how.
11590   cat >conftest.$ac_ext <<_ACEOF
11591 /* confdefs.h.  */
11592 _ACEOF
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h.  */
11596 #include <ac_nonexistent.h>
11597 _ACEOF
11598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11599   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11600   ac_status=$?
11601   grep -v '^ *+' conftest.er1 >conftest.err
11602   rm -f conftest.er1
11603   cat conftest.err >&5
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); } >/dev/null; then
11606   if test -s conftest.err; then
11607     ac_cpp_err=$ac_cxx_preproc_warn_flag
11608     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11609   else
11610     ac_cpp_err=
11611   fi
11612 else
11613   ac_cpp_err=yes
11614 fi
11615 if test -z "$ac_cpp_err"; then
11616   # Broken: success on invalid input.
11617 continue
11618 else
11619   echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11621
11622   # Passes both tests.
11623 ac_preproc_ok=:
11624 break
11625 fi
11626 rm -f conftest.err conftest.$ac_ext
11627
11628 done
11629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11630 rm -f conftest.err conftest.$ac_ext
11631 if $ac_preproc_ok; then
11632   :
11633 else
11634   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11635 See \`config.log' for more details." >&5
11636 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11637 See \`config.log' for more details." >&2;}
11638    { (exit 1); exit 1; }; }
11639 fi
11640
11641 ac_ext=cc
11642 ac_cpp='$CXXCPP $CPPFLAGS'
11643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11646
11647
11648 ac_ext=f
11649 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11650 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11651 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11652 if test -n "$ac_tool_prefix"; then
11653   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11654   do
11655     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11657 echo "$as_me:$LINENO: checking for $ac_word" >&5
11658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11659 if test "${ac_cv_prog_F77+set}" = set; then
11660   echo $ECHO_N "(cached) $ECHO_C" >&6
11661 else
11662   if test -n "$F77"; then
11663   ac_cv_prog_F77="$F77" # Let the user override the test.
11664 else
11665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666 for as_dir in $PATH
11667 do
11668   IFS=$as_save_IFS
11669   test -z "$as_dir" && as_dir=.
11670   for ac_exec_ext in '' $ac_executable_extensions; do
11671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11672     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11674     break 2
11675   fi
11676 done
11677 done
11678
11679 fi
11680 fi
11681 F77=$ac_cv_prog_F77
11682 if test -n "$F77"; then
11683   echo "$as_me:$LINENO: result: $F77" >&5
11684 echo "${ECHO_T}$F77" >&6
11685 else
11686   echo "$as_me:$LINENO: result: no" >&5
11687 echo "${ECHO_T}no" >&6
11688 fi
11689
11690     test -n "$F77" && break
11691   done
11692 fi
11693 if test -z "$F77"; then
11694   ac_ct_F77=$F77
11695   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11696 do
11697   # Extract the first word of "$ac_prog", so it can be a program name with args.
11698 set dummy $ac_prog; ac_word=$2
11699 echo "$as_me:$LINENO: checking for $ac_word" >&5
11700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11701 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11702   echo $ECHO_N "(cached) $ECHO_C" >&6
11703 else
11704   if test -n "$ac_ct_F77"; then
11705   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11706 else
11707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in $PATH
11709 do
11710   IFS=$as_save_IFS
11711   test -z "$as_dir" && as_dir=.
11712   for ac_exec_ext in '' $ac_executable_extensions; do
11713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11714     ac_cv_prog_ac_ct_F77="$ac_prog"
11715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11716     break 2
11717   fi
11718 done
11719 done
11720
11721 fi
11722 fi
11723 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11724 if test -n "$ac_ct_F77"; then
11725   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11726 echo "${ECHO_T}$ac_ct_F77" >&6
11727 else
11728   echo "$as_me:$LINENO: result: no" >&5
11729 echo "${ECHO_T}no" >&6
11730 fi
11731
11732   test -n "$ac_ct_F77" && break
11733 done
11734
11735   F77=$ac_ct_F77
11736 fi
11737
11738
11739 # Provide some information about the compiler.
11740 echo "$as_me:11740:" \
11741      "checking for Fortran 77 compiler version" >&5
11742 ac_compiler=`set X $ac_compile; echo $2`
11743 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11744   (eval $ac_compiler --version </dev/null >&5) 2>&5
11745   ac_status=$?
11746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); }
11748 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11749   (eval $ac_compiler -v </dev/null >&5) 2>&5
11750   ac_status=$?
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); }
11753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11754   (eval $ac_compiler -V </dev/null >&5) 2>&5
11755   ac_status=$?
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); }
11758 rm -f a.out
11759
11760 # If we don't use `.F' as extension, the preprocessor is not run on the
11761 # input file.  (Note that this only needs to work for GNU compilers.)
11762 ac_save_ext=$ac_ext
11763 ac_ext=F
11764 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11765 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11766 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11767   echo $ECHO_N "(cached) $ECHO_C" >&6
11768 else
11769   cat >conftest.$ac_ext <<_ACEOF
11770       program main
11771 #ifndef __GNUC__
11772        choke me
11773 #endif
11774
11775       end
11776 _ACEOF
11777 rm -f conftest.$ac_objext
11778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11779   (eval $ac_compile) 2>conftest.er1
11780   ac_status=$?
11781   grep -v '^ *+' conftest.er1 >conftest.err
11782   rm -f conftest.er1
11783   cat conftest.err >&5
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); } &&
11786          { ac_try='test -z "$ac_f77_werror_flag"
11787                          || test ! -s conftest.err'
11788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789   (eval $ac_try) 2>&5
11790   ac_status=$?
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); }; } &&
11793          { ac_try='test -s conftest.$ac_objext'
11794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795   (eval $ac_try) 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); }; }; then
11799   ac_compiler_gnu=yes
11800 else
11801   echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11803
11804 ac_compiler_gnu=no
11805 fi
11806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11807 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11808
11809 fi
11810 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11811 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11812 ac_ext=$ac_save_ext
11813 ac_test_FFLAGS=${FFLAGS+set}
11814 ac_save_FFLAGS=$FFLAGS
11815 FFLAGS=
11816 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11817 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11818 if test "${ac_cv_prog_f77_g+set}" = set; then
11819   echo $ECHO_N "(cached) $ECHO_C" >&6
11820 else
11821   FFLAGS=-g
11822 cat >conftest.$ac_ext <<_ACEOF
11823       program main
11824
11825       end
11826 _ACEOF
11827 rm -f conftest.$ac_objext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829   (eval $ac_compile) 2>conftest.er1
11830   ac_status=$?
11831   grep -v '^ *+' conftest.er1 >conftest.err
11832   rm -f conftest.er1
11833   cat conftest.err >&5
11834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); } &&
11836          { ac_try='test -z "$ac_f77_werror_flag"
11837                          || test ! -s conftest.err'
11838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839   (eval $ac_try) 2>&5
11840   ac_status=$?
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); }; } &&
11843          { ac_try='test -s conftest.$ac_objext'
11844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845   (eval $ac_try) 2>&5
11846   ac_status=$?
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); }; }; then
11849   ac_cv_prog_f77_g=yes
11850 else
11851   echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11853
11854 ac_cv_prog_f77_g=no
11855 fi
11856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11857
11858 fi
11859 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11860 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11861 if test "$ac_test_FFLAGS" = set; then
11862   FFLAGS=$ac_save_FFLAGS
11863 elif test $ac_cv_prog_f77_g = yes; then
11864   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11865     FFLAGS="-g -O2"
11866   else
11867     FFLAGS="-g"
11868   fi
11869 else
11870   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11871     FFLAGS="-O2"
11872   else
11873     FFLAGS=
11874   fi
11875 fi
11876
11877 G77=`test $ac_compiler_gnu = yes && echo yes`
11878 ac_ext=c
11879 ac_cpp='$CPP $CPPFLAGS'
11880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11883
11884
11885
11886 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11887
11888 # find the maximum length of command line arguments
11889 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11890 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11891 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894     i=0
11895   teststring="ABCD"
11896
11897   case $build_os in
11898   msdosdjgpp*)
11899     # On DJGPP, this test can blow up pretty badly due to problems in libc
11900     # (any single argument exceeding 2000 bytes causes a buffer overrun
11901     # during glob expansion).  Even if it were fixed, the result of this
11902     # check would be larger than it should be.
11903     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11904     ;;
11905
11906   gnu*)
11907     # Under GNU Hurd, this test is not required because there is
11908     # no limit to the length of command line arguments.
11909     # Libtool will interpret -1 as no limit whatsoever
11910     lt_cv_sys_max_cmd_len=-1;
11911     ;;
11912
11913   cygwin* | mingw*)
11914     # On Win9x/ME, this test blows up -- it succeeds, but takes
11915     # about 5 minutes as the teststring grows exponentially.
11916     # Worse, since 9x/ME are not pre-emptively multitasking,
11917     # you end up with a "frozen" computer, even though with patience
11918     # the test eventually succeeds (with a max line length of 256k).
11919     # Instead, let's just punt: use the minimum linelength reported by
11920     # all of the supported platforms: 8192 (on NT/2K/XP).
11921     lt_cv_sys_max_cmd_len=8192;
11922     ;;
11923
11924   amigaos*)
11925     # On AmigaOS with pdksh, this test takes hours, literally.
11926     # So we just punt and use a minimum line length of 8192.
11927     lt_cv_sys_max_cmd_len=8192;
11928     ;;
11929
11930  *)
11931     # If test is not a shell built-in, we'll probably end up computing a
11932     # maximum length that is only half of the actual maximum length, but
11933     # we can't tell.
11934     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11935                = "XX$teststring") >/dev/null 2>&1 &&
11936             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11937             lt_cv_sys_max_cmd_len=$new_result &&
11938             test $i != 17 # 1/2 MB should be enough
11939     do
11940       i=`expr $i + 1`
11941       teststring=$teststring$teststring
11942     done
11943     teststring=
11944     # Add a significant safety factor because C++ compilers can tack on massive
11945     # amounts of additional arguments before passing them to the linker.
11946     # It appears as though 1/2 is a usable value.
11947     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11948     ;;
11949   esac
11950
11951 fi
11952
11953 if test -n $lt_cv_sys_max_cmd_len ; then
11954   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11955 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11956 else
11957   echo "$as_me:$LINENO: result: none" >&5
11958 echo "${ECHO_T}none" >&6
11959 fi
11960
11961
11962
11963
11964 # Check for command to grab the raw symbol name followed by C symbol from nm.
11965 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11966 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11967 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11968   echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970
11971 # These are sane defaults that work on at least a few old systems.
11972 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11973
11974 # Character class describing NM global symbol codes.
11975 symcode='[BCDEGRST]'
11976
11977 # Regexp to match symbols that can be accessed directly from C.
11978 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11979
11980 # Transform the above into a raw symbol and a C symbol.
11981 symxfrm='\1 \2\3 \3'
11982
11983 # Transform an extracted symbol line into a proper C declaration
11984 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11985
11986 # Transform an extracted symbol line into symbol name and symbol address
11987 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'"
11988
11989 # Define system-specific variables.
11990 case $host_os in
11991 aix*)
11992   symcode='[BCDT]'
11993   ;;
11994 cygwin* | mingw* | pw32*)
11995   symcode='[ABCDGISTW]'
11996   ;;
11997 hpux*) # Its linker distinguishes data from code symbols
11998   if test "$host_cpu" = ia64; then
11999     symcode='[ABCDEGRST]'
12000   fi
12001   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12002   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'"
12003   ;;
12004 irix* | nonstopux*)
12005   symcode='[BCDEGRST]'
12006   ;;
12007 osf*)
12008   symcode='[BCDEGQRST]'
12009   ;;
12010 solaris* | sysv5*)
12011   symcode='[BDRT]'
12012   ;;
12013 sysv4)
12014   symcode='[DFNSTU]'
12015   ;;
12016 esac
12017
12018 # Handle CRLF in mingw tool chain
12019 opt_cr=
12020 case $build_os in
12021 mingw*)
12022   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12023   ;;
12024 esac
12025
12026 # If we're using GNU nm, then use its standard symbol codes.
12027 case `$NM -V 2>&1` in
12028 *GNU* | *'with BFD'*)
12029   symcode='[ABCDGIRSTW]' ;;
12030 esac
12031
12032 # Try without a prefix undercore, then with it.
12033 for ac_symprfx in "" "_"; do
12034
12035   # Write the raw and C identifiers.
12036   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
12037
12038   # Check to see that the pipe works correctly.
12039   pipe_works=no
12040
12041   rm -f conftest*
12042   cat > conftest.$ac_ext <<EOF
12043 #ifdef __cplusplus
12044 extern "C" {
12045 #endif
12046 char nm_test_var;
12047 void nm_test_func(){}
12048 #ifdef __cplusplus
12049 }
12050 #endif
12051 int main(){nm_test_var='a';nm_test_func();return(0);}
12052 EOF
12053
12054   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12055   (eval $ac_compile) 2>&5
12056   ac_status=$?
12057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058   (exit $ac_status); }; then
12059     # Now try to grab the symbols.
12060     nlist=conftest.nm
12061     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12062   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12063   ac_status=$?
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); } && test -s "$nlist"; then
12066       # Try sorting and uniquifying the output.
12067       if sort "$nlist" | uniq > "$nlist"T; then
12068         mv -f "$nlist"T "$nlist"
12069       else
12070         rm -f "$nlist"T
12071       fi
12072
12073       # Make sure that we snagged all the symbols we need.
12074       if grep ' nm_test_var$' "$nlist" >/dev/null; then
12075         if grep ' nm_test_func$' "$nlist" >/dev/null; then
12076           cat <<EOF > conftest.$ac_ext
12077 #ifdef __cplusplus
12078 extern "C" {
12079 #endif
12080
12081 EOF
12082           # Now generate the symbol file.
12083           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12084
12085           cat <<EOF >> conftest.$ac_ext
12086 #if defined (__STDC__) && __STDC__
12087 # define lt_ptr_t void *
12088 #else
12089 # define lt_ptr_t char *
12090 # define const
12091 #endif
12092
12093 /* The mapping between symbol names and symbols. */
12094 const struct {
12095   const char *name;
12096   lt_ptr_t address;
12097 }
12098 lt_preloaded_symbols[] =
12099 {
12100 EOF
12101           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12102           cat <<\EOF >> conftest.$ac_ext
12103   {0, (lt_ptr_t) 0}
12104 };
12105
12106 #ifdef __cplusplus
12107 }
12108 #endif
12109 EOF
12110           # Now try linking the two files.
12111           mv conftest.$ac_objext conftstm.$ac_objext
12112           lt_save_LIBS="$LIBS"
12113           lt_save_CFLAGS="$CFLAGS"
12114           LIBS="conftstm.$ac_objext"
12115           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12116           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12117   (eval $ac_link) 2>&5
12118   ac_status=$?
12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); } && test -s conftest${ac_exeext}; then
12121             pipe_works=yes
12122           fi
12123           LIBS="$lt_save_LIBS"
12124           CFLAGS="$lt_save_CFLAGS"
12125         else
12126           echo "cannot find nm_test_func in $nlist" >&5
12127         fi
12128       else
12129         echo "cannot find nm_test_var in $nlist" >&5
12130       fi
12131     else
12132       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12133     fi
12134   else
12135     echo "$progname: failed program was:" >&5
12136     cat conftest.$ac_ext >&5
12137   fi
12138   rm -f conftest* conftst*
12139
12140   # Do not use the global_symbol_pipe unless it works.
12141   if test "$pipe_works" = yes; then
12142     break
12143   else
12144     lt_cv_sys_global_symbol_pipe=
12145   fi
12146 done
12147
12148 fi
12149
12150 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12151   lt_cv_sys_global_symbol_to_cdecl=
12152 fi
12153 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12154   echo "$as_me:$LINENO: result: failed" >&5
12155 echo "${ECHO_T}failed" >&6
12156 else
12157   echo "$as_me:$LINENO: result: ok" >&5
12158 echo "${ECHO_T}ok" >&6
12159 fi
12160
12161 echo "$as_me:$LINENO: checking for objdir" >&5
12162 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
12163 if test "${lt_cv_objdir+set}" = set; then
12164   echo $ECHO_N "(cached) $ECHO_C" >&6
12165 else
12166   rm -f .libs 2>/dev/null
12167 mkdir .libs 2>/dev/null
12168 if test -d .libs; then
12169   lt_cv_objdir=.libs
12170 else
12171   # MS-DOS does not allow filenames that begin with a dot.
12172   lt_cv_objdir=_libs
12173 fi
12174 rmdir .libs 2>/dev/null
12175 fi
12176 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12177 echo "${ECHO_T}$lt_cv_objdir" >&6
12178 objdir=$lt_cv_objdir
12179
12180
12181
12182
12183
12184 case $host_os in
12185 aix3*)
12186   # AIX sometimes has problems with the GCC collect2 program.  For some
12187   # reason, if we set the COLLECT_NAMES environment variable, the problems
12188   # vanish in a puff of smoke.
12189   if test "X${COLLECT_NAMES+set}" != Xset; then
12190     COLLECT_NAMES=
12191     export COLLECT_NAMES
12192   fi
12193   ;;
12194 esac
12195
12196 # Sed substitution that helps us do robust quoting.  It backslashifies
12197 # metacharacters that are still active within double-quoted strings.
12198 Xsed='sed -e s/^X//'
12199 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12200
12201 # Same as above, but do not quote variable references.
12202 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12203
12204 # Sed substitution to delay expansion of an escaped shell variable in a
12205 # double_quote_subst'ed string.
12206 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12207
12208 # Sed substitution to avoid accidental globbing in evaled expressions
12209 no_glob_subst='s/\*/\\\*/g'
12210
12211 # Constants:
12212 rm="rm -f"
12213
12214 # Global variables:
12215 default_ofile=libtool
12216 can_build_shared=yes
12217
12218 # All known linkers require a `.a' archive for static linking (except M$VC,
12219 # which needs '.lib').
12220 libext=a
12221 ltmain="$ac_aux_dir/ltmain.sh"
12222 ofile="$default_ofile"
12223 with_gnu_ld="$lt_cv_prog_gnu_ld"
12224
12225 if test -n "$ac_tool_prefix"; then
12226   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12227 set dummy ${ac_tool_prefix}ar; ac_word=$2
12228 echo "$as_me:$LINENO: checking for $ac_word" >&5
12229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12230 if test "${ac_cv_prog_AR+set}" = set; then
12231   echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233   if test -n "$AR"; then
12234   ac_cv_prog_AR="$AR" # Let the user override the test.
12235 else
12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 for as_dir in $PATH
12238 do
12239   IFS=$as_save_IFS
12240   test -z "$as_dir" && as_dir=.
12241   for ac_exec_ext in '' $ac_executable_extensions; do
12242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243     ac_cv_prog_AR="${ac_tool_prefix}ar"
12244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12245     break 2
12246   fi
12247 done
12248 done
12249
12250 fi
12251 fi
12252 AR=$ac_cv_prog_AR
12253 if test -n "$AR"; then
12254   echo "$as_me:$LINENO: result: $AR" >&5
12255 echo "${ECHO_T}$AR" >&6
12256 else
12257   echo "$as_me:$LINENO: result: no" >&5
12258 echo "${ECHO_T}no" >&6
12259 fi
12260
12261 fi
12262 if test -z "$ac_cv_prog_AR"; then
12263   ac_ct_AR=$AR
12264   # Extract the first word of "ar", so it can be a program name with args.
12265 set dummy ar; ac_word=$2
12266 echo "$as_me:$LINENO: checking for $ac_word" >&5
12267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12268 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12269   echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271   if test -n "$ac_ct_AR"; then
12272   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12273 else
12274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275 for as_dir in $PATH
12276 do
12277   IFS=$as_save_IFS
12278   test -z "$as_dir" && as_dir=.
12279   for ac_exec_ext in '' $ac_executable_extensions; do
12280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12281     ac_cv_prog_ac_ct_AR="ar"
12282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12283     break 2
12284   fi
12285 done
12286 done
12287
12288   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
12289 fi
12290 fi
12291 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12292 if test -n "$ac_ct_AR"; then
12293   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12294 echo "${ECHO_T}$ac_ct_AR" >&6
12295 else
12296   echo "$as_me:$LINENO: result: no" >&5
12297 echo "${ECHO_T}no" >&6
12298 fi
12299
12300   AR=$ac_ct_AR
12301 else
12302   AR="$ac_cv_prog_AR"
12303 fi
12304
12305 if test -n "$ac_tool_prefix"; then
12306   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12307 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12308 echo "$as_me:$LINENO: checking for $ac_word" >&5
12309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12310 if test "${ac_cv_prog_RANLIB+set}" = set; then
12311   echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313   if test -n "$RANLIB"; then
12314   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12315 else
12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12318 do
12319   IFS=$as_save_IFS
12320   test -z "$as_dir" && as_dir=.
12321   for ac_exec_ext in '' $ac_executable_extensions; do
12322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12323     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12325     break 2
12326   fi
12327 done
12328 done
12329
12330 fi
12331 fi
12332 RANLIB=$ac_cv_prog_RANLIB
12333 if test -n "$RANLIB"; then
12334   echo "$as_me:$LINENO: result: $RANLIB" >&5
12335 echo "${ECHO_T}$RANLIB" >&6
12336 else
12337   echo "$as_me:$LINENO: result: no" >&5
12338 echo "${ECHO_T}no" >&6
12339 fi
12340
12341 fi
12342 if test -z "$ac_cv_prog_RANLIB"; then
12343   ac_ct_RANLIB=$RANLIB
12344   # Extract the first word of "ranlib", so it can be a program name with args.
12345 set dummy ranlib; ac_word=$2
12346 echo "$as_me:$LINENO: checking for $ac_word" >&5
12347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12348 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12349   echo $ECHO_N "(cached) $ECHO_C" >&6
12350 else
12351   if test -n "$ac_ct_RANLIB"; then
12352   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12353 else
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355 for as_dir in $PATH
12356 do
12357   IFS=$as_save_IFS
12358   test -z "$as_dir" && as_dir=.
12359   for ac_exec_ext in '' $ac_executable_extensions; do
12360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12361     ac_cv_prog_ac_ct_RANLIB="ranlib"
12362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12363     break 2
12364   fi
12365 done
12366 done
12367
12368   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12369 fi
12370 fi
12371 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12372 if test -n "$ac_ct_RANLIB"; then
12373   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12374 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12375 else
12376   echo "$as_me:$LINENO: result: no" >&5
12377 echo "${ECHO_T}no" >&6
12378 fi
12379
12380   RANLIB=$ac_ct_RANLIB
12381 else
12382   RANLIB="$ac_cv_prog_RANLIB"
12383 fi
12384
12385 if test -n "$ac_tool_prefix"; then
12386   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12387 set dummy ${ac_tool_prefix}strip; ac_word=$2
12388 echo "$as_me:$LINENO: checking for $ac_word" >&5
12389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12390 if test "${ac_cv_prog_STRIP+set}" = set; then
12391   echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393   if test -n "$STRIP"; then
12394   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12395 else
12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12398 do
12399   IFS=$as_save_IFS
12400   test -z "$as_dir" && as_dir=.
12401   for ac_exec_ext in '' $ac_executable_extensions; do
12402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12403     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12405     break 2
12406   fi
12407 done
12408 done
12409
12410 fi
12411 fi
12412 STRIP=$ac_cv_prog_STRIP
12413 if test -n "$STRIP"; then
12414   echo "$as_me:$LINENO: result: $STRIP" >&5
12415 echo "${ECHO_T}$STRIP" >&6
12416 else
12417   echo "$as_me:$LINENO: result: no" >&5
12418 echo "${ECHO_T}no" >&6
12419 fi
12420
12421 fi
12422 if test -z "$ac_cv_prog_STRIP"; then
12423   ac_ct_STRIP=$STRIP
12424   # Extract the first word of "strip", so it can be a program name with args.
12425 set dummy strip; ac_word=$2
12426 echo "$as_me:$LINENO: checking for $ac_word" >&5
12427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12428 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12429   echo $ECHO_N "(cached) $ECHO_C" >&6
12430 else
12431   if test -n "$ac_ct_STRIP"; then
12432   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12433 else
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12436 do
12437   IFS=$as_save_IFS
12438   test -z "$as_dir" && as_dir=.
12439   for ac_exec_ext in '' $ac_executable_extensions; do
12440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12441     ac_cv_prog_ac_ct_STRIP="strip"
12442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12443     break 2
12444   fi
12445 done
12446 done
12447
12448   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12449 fi
12450 fi
12451 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12452 if test -n "$ac_ct_STRIP"; then
12453   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12454 echo "${ECHO_T}$ac_ct_STRIP" >&6
12455 else
12456   echo "$as_me:$LINENO: result: no" >&5
12457 echo "${ECHO_T}no" >&6
12458 fi
12459
12460   STRIP=$ac_ct_STRIP
12461 else
12462   STRIP="$ac_cv_prog_STRIP"
12463 fi
12464
12465
12466 old_CC="$CC"
12467 old_CFLAGS="$CFLAGS"
12468
12469 # Set sane defaults for various variables
12470 test -z "$AR" && AR=ar
12471 test -z "$AR_FLAGS" && AR_FLAGS=cru
12472 test -z "$AS" && AS=as
12473 test -z "$CC" && CC=cc
12474 test -z "$LTCC" && LTCC=$CC
12475 test -z "$DLLTOOL" && DLLTOOL=dlltool
12476 test -z "$LD" && LD=ld
12477 test -z "$LN_S" && LN_S="ln -s"
12478 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12479 test -z "$NM" && NM=nm
12480 test -z "$SED" && SED=sed
12481 test -z "$OBJDUMP" && OBJDUMP=objdump
12482 test -z "$RANLIB" && RANLIB=:
12483 test -z "$STRIP" && STRIP=:
12484 test -z "$ac_objext" && ac_objext=o
12485
12486 # Determine commands to create old-style static archives.
12487 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
12488 old_postinstall_cmds='chmod 644 $oldlib'
12489 old_postuninstall_cmds=
12490
12491 if test -n "$RANLIB"; then
12492   case $host_os in
12493   openbsd*)
12494     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12495     ;;
12496   *)
12497     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12498     ;;
12499   esac
12500   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12501 fi
12502
12503 # Only perform the check for file, if the check method requires it
12504 case $deplibs_check_method in
12505 file_magic*)
12506   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12507     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12508 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12509 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12510   echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512   case $MAGIC_CMD in
12513 [\\/*] |  ?:[\\/]*)
12514   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12515   ;;
12516 *)
12517   lt_save_MAGIC_CMD="$MAGIC_CMD"
12518   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12519   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12520   for ac_dir in $ac_dummy; do
12521     IFS="$lt_save_ifs"
12522     test -z "$ac_dir" && ac_dir=.
12523     if test -f $ac_dir/${ac_tool_prefix}file; then
12524       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12525       if test -n "$file_magic_test_file"; then
12526         case $deplibs_check_method in
12527         "file_magic "*)
12528           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12529           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12530           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12531             $EGREP "$file_magic_regex" > /dev/null; then
12532             :
12533           else
12534             cat <<EOF 1>&2
12535
12536 *** Warning: the command libtool uses to detect shared libraries,
12537 *** $file_magic_cmd, produces output that libtool cannot recognize.
12538 *** The result is that libtool may fail to recognize shared libraries
12539 *** as such.  This will affect the creation of libtool libraries that
12540 *** depend on shared libraries, but programs linked with such libtool
12541 *** libraries will work regardless of this problem.  Nevertheless, you
12542 *** may want to report the problem to your system manager and/or to
12543 *** bug-libtool@gnu.org
12544
12545 EOF
12546           fi ;;
12547         esac
12548       fi
12549       break
12550     fi
12551   done
12552   IFS="$lt_save_ifs"
12553   MAGIC_CMD="$lt_save_MAGIC_CMD"
12554   ;;
12555 esac
12556 fi
12557
12558 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12559 if test -n "$MAGIC_CMD"; then
12560   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12561 echo "${ECHO_T}$MAGIC_CMD" >&6
12562 else
12563   echo "$as_me:$LINENO: result: no" >&5
12564 echo "${ECHO_T}no" >&6
12565 fi
12566
12567 if test -z "$lt_cv_path_MAGIC_CMD"; then
12568   if test -n "$ac_tool_prefix"; then
12569     echo "$as_me:$LINENO: checking for file" >&5
12570 echo $ECHO_N "checking for file... $ECHO_C" >&6
12571 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12572   echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574   case $MAGIC_CMD in
12575 [\\/*] |  ?:[\\/]*)
12576   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12577   ;;
12578 *)
12579   lt_save_MAGIC_CMD="$MAGIC_CMD"
12580   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12581   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12582   for ac_dir in $ac_dummy; do
12583     IFS="$lt_save_ifs"
12584     test -z "$ac_dir" && ac_dir=.
12585     if test -f $ac_dir/file; then
12586       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12587       if test -n "$file_magic_test_file"; then
12588         case $deplibs_check_method in
12589         "file_magic "*)
12590           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12591           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12592           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12593             $EGREP "$file_magic_regex" > /dev/null; then
12594             :
12595           else
12596             cat <<EOF 1>&2
12597
12598 *** Warning: the command libtool uses to detect shared libraries,
12599 *** $file_magic_cmd, produces output that libtool cannot recognize.
12600 *** The result is that libtool may fail to recognize shared libraries
12601 *** as such.  This will affect the creation of libtool libraries that
12602 *** depend on shared libraries, but programs linked with such libtool
12603 *** libraries will work regardless of this problem.  Nevertheless, you
12604 *** may want to report the problem to your system manager and/or to
12605 *** bug-libtool@gnu.org
12606
12607 EOF
12608           fi ;;
12609         esac
12610       fi
12611       break
12612     fi
12613   done
12614   IFS="$lt_save_ifs"
12615   MAGIC_CMD="$lt_save_MAGIC_CMD"
12616   ;;
12617 esac
12618 fi
12619
12620 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12621 if test -n "$MAGIC_CMD"; then
12622   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12623 echo "${ECHO_T}$MAGIC_CMD" >&6
12624 else
12625   echo "$as_me:$LINENO: result: no" >&5
12626 echo "${ECHO_T}no" >&6
12627 fi
12628
12629   else
12630     MAGIC_CMD=:
12631   fi
12632 fi
12633
12634   fi
12635   ;;
12636 esac
12637
12638 enable_dlopen=no
12639 enable_win32_dll=no
12640
12641 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12642 if test "${enable_libtool_lock+set}" = set; then
12643   enableval="$enable_libtool_lock"
12644
12645 fi;
12646 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12647
12648
12649 # Check whether --with-pic or --without-pic was given.
12650 if test "${with_pic+set}" = set; then
12651   withval="$with_pic"
12652   pic_mode="$withval"
12653 else
12654   pic_mode=default
12655 fi;
12656 test -z "$pic_mode" && pic_mode=default
12657
12658 # Use C for the default configuration in the libtool script
12659 tagname=
12660 lt_save_CC="$CC"
12661 ac_ext=c
12662 ac_cpp='$CPP $CPPFLAGS'
12663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12666
12667
12668 # Source file extension for C test sources.
12669 ac_ext=c
12670
12671 # Object file extension for compiled C test sources.
12672 objext=o
12673 objext=$objext
12674
12675 # Code to be used in simple compile tests
12676 lt_simple_compile_test_code="int some_variable = 0;\n"
12677
12678 # Code to be used in simple link tests
12679 lt_simple_link_test_code='int main(){return(0);}\n'
12680
12681
12682 # If no C compiler was specified, use CC.
12683 LTCC=${LTCC-"$CC"}
12684
12685 # Allow CC to be a program name with arguments.
12686 compiler=$CC
12687
12688
12689 #
12690 # Check for any special shared library compilation flags.
12691 #
12692 lt_prog_cc_shlib=
12693 if test "$GCC" = no; then
12694   case $host_os in
12695   sco3.2v5*)
12696     lt_prog_cc_shlib='-belf'
12697     ;;
12698   esac
12699 fi
12700 if test -n "$lt_prog_cc_shlib"; then
12701   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12702 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12703   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
12704   else
12705     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12706 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12707     lt_cv_prog_cc_can_build_shared=no
12708   fi
12709 fi
12710
12711
12712 #
12713 # Check to make sure the static flag actually works.
12714 #
12715 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12716 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12717 if test "${lt_prog_compiler_static_works+set}" = set; then
12718   echo $ECHO_N "(cached) $ECHO_C" >&6
12719 else
12720   lt_prog_compiler_static_works=no
12721    save_LDFLAGS="$LDFLAGS"
12722    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12723    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12724    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12725      # The compiler can only warn and ignore the option if not recognized
12726      # So say no if there are warnings
12727      if test -s conftest.err; then
12728        # Append any errors to the config.log.
12729        cat conftest.err 1>&5
12730      else
12731        lt_prog_compiler_static_works=yes
12732      fi
12733    fi
12734    $rm conftest*
12735    LDFLAGS="$save_LDFLAGS"
12736
12737 fi
12738 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12739 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12740
12741 if test x"$lt_prog_compiler_static_works" = xyes; then
12742     :
12743 else
12744     lt_prog_compiler_static=
12745 fi
12746
12747
12748
12749 ## CAVEAT EMPTOR:
12750 ## There is no encapsulation within the following macros, do not change
12751 ## the running order or otherwise move them around unless you know exactly
12752 ## what you are doing...
12753
12754 lt_prog_compiler_no_builtin_flag=
12755
12756 if test "$GCC" = yes; then
12757   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12758
12759
12760 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12761 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12762 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12763   echo $ECHO_N "(cached) $ECHO_C" >&6
12764 else
12765   lt_cv_prog_compiler_rtti_exceptions=no
12766   ac_outfile=conftest.$ac_objext
12767    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12768    lt_compiler_flag="-fno-rtti -fno-exceptions"
12769    # Insert the option either (1) after the last *FLAGS variable, or
12770    # (2) before a word containing "conftest.", or (3) at the end.
12771    # Note that $ac_compile itself does not contain backslashes and begins
12772    # with a dollar sign (not a hyphen), so the echo should work correctly.
12773    # The option is referenced via a variable to avoid confusing sed.
12774    lt_compile=`echo "$ac_compile" | $SED \
12775    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12776    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12777    -e 's:$: $lt_compiler_flag:'`
12778    (eval echo "\"\$as_me:12778: $lt_compile\"" >&5)
12779    (eval "$lt_compile" 2>conftest.err)
12780    ac_status=$?
12781    cat conftest.err >&5
12782    echo "$as_me:12782: \$? = $ac_status" >&5
12783    if (exit $ac_status) && test -s "$ac_outfile"; then
12784      # The compiler can only warn and ignore the option if not recognized
12785      # So say no if there are warnings
12786      if test ! -s conftest.err; then
12787        lt_cv_prog_compiler_rtti_exceptions=yes
12788      fi
12789    fi
12790    $rm conftest*
12791
12792 fi
12793 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12794 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12795
12796 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12797     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12798 else
12799     :
12800 fi
12801
12802 fi
12803
12804 lt_prog_compiler_wl=
12805 lt_prog_compiler_pic=
12806 lt_prog_compiler_static=
12807
12808 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12809 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12810
12811   if test "$GCC" = yes; then
12812     lt_prog_compiler_wl='-Wl,'
12813     lt_prog_compiler_static='-static'
12814
12815     case $host_os in
12816       aix*)
12817       # All AIX code is PIC.
12818       if test "$host_cpu" = ia64; then
12819         # AIX 5 now supports IA64 processor
12820         lt_prog_compiler_static='-Bstatic'
12821       fi
12822       ;;
12823
12824     amigaos*)
12825       # FIXME: we need at least 68020 code to build shared libraries, but
12826       # adding the `-m68020' flag to GCC prevents building anything better,
12827       # like `-m68040'.
12828       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12829       ;;
12830
12831     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12832       # PIC is the default for these OSes.
12833       ;;
12834
12835     mingw* | pw32* | os2*)
12836       # This hack is so that the source file can tell whether it is being
12837       # built for inclusion in a dll (and should export symbols for example).
12838       lt_prog_compiler_pic='-DDLL_EXPORT'
12839       ;;
12840
12841     darwin* | rhapsody*)
12842       # PIC is the default on this platform
12843       # Common symbols not allowed in MH_DYLIB files
12844       lt_prog_compiler_pic='-fno-common'
12845       ;;
12846
12847     msdosdjgpp*)
12848       # Just because we use GCC doesn't mean we suddenly get shared libraries
12849       # on systems that don't support them.
12850       lt_prog_compiler_can_build_shared=no
12851       enable_shared=no
12852       ;;
12853
12854     sysv4*MP*)
12855       if test -d /usr/nec; then
12856         lt_prog_compiler_pic=-Kconform_pic
12857       fi
12858       ;;
12859
12860     hpux*)
12861       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12862       # not for PA HP-UX.
12863       case "$host_cpu" in
12864       hppa*64*|ia64*)
12865         # +Z the default
12866         ;;
12867       *)
12868         lt_prog_compiler_pic='-fPIC'
12869         ;;
12870       esac
12871       ;;
12872
12873     *)
12874       lt_prog_compiler_pic='-fPIC'
12875       ;;
12876     esac
12877   else
12878     # PORTME Check for flag to pass linker flags through the system compiler.
12879     case $host_os in
12880     aix*)
12881       lt_prog_compiler_wl='-Wl,'
12882       if test "$host_cpu" = ia64; then
12883         # AIX 5 now supports IA64 processor
12884         lt_prog_compiler_static='-Bstatic'
12885       else
12886         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12887       fi
12888       ;;
12889
12890     mingw* | pw32* | os2*)
12891       # This hack is so that the source file can tell whether it is being
12892       # built for inclusion in a dll (and should export symbols for example).
12893       lt_prog_compiler_pic='-DDLL_EXPORT'
12894       ;;
12895
12896     hpux9* | hpux10* | hpux11*)
12897       lt_prog_compiler_wl='-Wl,'
12898       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12899       # not for PA HP-UX.
12900       case "$host_cpu" in
12901       hppa*64*|ia64*)
12902         # +Z the default
12903         ;;
12904       *)
12905         lt_prog_compiler_pic='+Z'
12906         ;;
12907       esac
12908       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12909       lt_prog_compiler_static='${wl}-a ${wl}archive'
12910       ;;
12911
12912     irix5* | irix6* | nonstopux*)
12913       lt_prog_compiler_wl='-Wl,'
12914       # PIC (with -KPIC) is the default.
12915       lt_prog_compiler_static='-non_shared'
12916       ;;
12917
12918     newsos6)
12919       lt_prog_compiler_pic='-KPIC'
12920       lt_prog_compiler_static='-Bstatic'
12921       ;;
12922
12923     linux*)
12924       case $CC in
12925       icc* | ecc*)
12926         lt_prog_compiler_wl='-Wl,'
12927         lt_prog_compiler_pic='-KPIC'
12928         lt_prog_compiler_static='-static'
12929         ;;
12930       ccc*)
12931         lt_prog_compiler_wl='-Wl,'
12932         # All Alpha code is PIC.
12933         lt_prog_compiler_static='-non_shared'
12934         ;;
12935       esac
12936       ;;
12937
12938     osf3* | osf4* | osf5*)
12939       lt_prog_compiler_wl='-Wl,'
12940       # All OSF/1 code is PIC.
12941       lt_prog_compiler_static='-non_shared'
12942       ;;
12943
12944     sco3.2v5*)
12945       lt_prog_compiler_pic='-Kpic'
12946       lt_prog_compiler_static='-dn'
12947       ;;
12948
12949     solaris*)
12950       lt_prog_compiler_wl='-Wl,'
12951       lt_prog_compiler_pic='-KPIC'
12952       lt_prog_compiler_static='-Bstatic'
12953       ;;
12954
12955     sunos4*)
12956       lt_prog_compiler_wl='-Qoption ld '
12957       lt_prog_compiler_pic='-PIC'
12958       lt_prog_compiler_static='-Bstatic'
12959       ;;
12960
12961     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12962       lt_prog_compiler_wl='-Wl,'
12963       lt_prog_compiler_pic='-KPIC'
12964       lt_prog_compiler_static='-Bstatic'
12965       ;;
12966
12967     sysv4*MP*)
12968       if test -d /usr/nec ;then
12969         lt_prog_compiler_pic='-Kconform_pic'
12970         lt_prog_compiler_static='-Bstatic'
12971       fi
12972       ;;
12973
12974     uts4*)
12975       lt_prog_compiler_pic='-pic'
12976       lt_prog_compiler_static='-Bstatic'
12977       ;;
12978
12979     *)
12980       lt_prog_compiler_can_build_shared=no
12981       ;;
12982     esac
12983   fi
12984
12985 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12986 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12987
12988 #
12989 # Check to make sure the PIC flag actually works.
12990 #
12991 if test -n "$lt_prog_compiler_pic"; then
12992
12993 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12994 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12995 if test "${lt_prog_compiler_pic_works+set}" = set; then
12996   echo $ECHO_N "(cached) $ECHO_C" >&6
12997 else
12998   lt_prog_compiler_pic_works=no
12999   ac_outfile=conftest.$ac_objext
13000    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13001    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13002    # Insert the option either (1) after the last *FLAGS variable, or
13003    # (2) before a word containing "conftest.", or (3) at the end.
13004    # Note that $ac_compile itself does not contain backslashes and begins
13005    # with a dollar sign (not a hyphen), so the echo should work correctly.
13006    # The option is referenced via a variable to avoid confusing sed.
13007    lt_compile=`echo "$ac_compile" | $SED \
13008    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13009    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13010    -e 's:$: $lt_compiler_flag:'`
13011    (eval echo "\"\$as_me:13011: $lt_compile\"" >&5)
13012    (eval "$lt_compile" 2>conftest.err)
13013    ac_status=$?
13014    cat conftest.err >&5
13015    echo "$as_me:13015: \$? = $ac_status" >&5
13016    if (exit $ac_status) && test -s "$ac_outfile"; then
13017      # The compiler can only warn and ignore the option if not recognized
13018      # So say no if there are warnings
13019      if test ! -s conftest.err; then
13020        lt_prog_compiler_pic_works=yes
13021      fi
13022    fi
13023    $rm conftest*
13024
13025 fi
13026 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13027 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
13028
13029 if test x"$lt_prog_compiler_pic_works" = xyes; then
13030     case $lt_prog_compiler_pic in
13031      "" | " "*) ;;
13032      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13033      esac
13034 else
13035     lt_prog_compiler_pic=
13036      lt_prog_compiler_can_build_shared=no
13037 fi
13038
13039 fi
13040 case "$host_os" in
13041   # For platforms which do not support PIC, -DPIC is meaningless:
13042   *djgpp*)
13043     lt_prog_compiler_pic=
13044     ;;
13045   *)
13046     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13047     ;;
13048 esac
13049
13050 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13051 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13052 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13053   echo $ECHO_N "(cached) $ECHO_C" >&6
13054 else
13055   lt_cv_prog_compiler_c_o=no
13056    $rm -r conftest 2>/dev/null
13057    mkdir conftest
13058    cd conftest
13059    mkdir out
13060    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13061
13062    lt_compiler_flag="-o out/conftest2.$ac_objext"
13063    # Insert the option either (1) after the last *FLAGS variable, or
13064    # (2) before a word containing "conftest.", or (3) at the end.
13065    # Note that $ac_compile itself does not contain backslashes and begins
13066    # with a dollar sign (not a hyphen), so the echo should work correctly.
13067    lt_compile=`echo "$ac_compile" | $SED \
13068    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13069    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13070    -e 's:$: $lt_compiler_flag:'`
13071    (eval echo "\"\$as_me:13071: $lt_compile\"" >&5)
13072    (eval "$lt_compile" 2>out/conftest.err)
13073    ac_status=$?
13074    cat out/conftest.err >&5
13075    echo "$as_me:13075: \$? = $ac_status" >&5
13076    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13077    then
13078      # The compiler can only warn and ignore the option if not recognized
13079      # So say no if there are warnings
13080      if test ! -s out/conftest.err; then
13081        lt_cv_prog_compiler_c_o=yes
13082      fi
13083    fi
13084    chmod u+w .
13085    $rm conftest*
13086    # SGI C++ compiler will create directory out/ii_files/ for
13087    # template instantiation
13088    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13089    $rm out/* && rmdir out
13090    cd ..
13091    rmdir conftest
13092    $rm conftest*
13093
13094 fi
13095 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
13097
13098
13099 hard_links="nottested"
13100 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13101   # do not overwrite the value of need_locks provided by the user
13102   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13103 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13104   hard_links=yes
13105   $rm conftest*
13106   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13107   touch conftest.a
13108   ln conftest.a conftest.b 2>&5 || hard_links=no
13109   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13110   echo "$as_me:$LINENO: result: $hard_links" >&5
13111 echo "${ECHO_T}$hard_links" >&6
13112   if test "$hard_links" = no; then
13113     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13114 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13115     need_locks=warn
13116   fi
13117 else
13118   need_locks=no
13119 fi
13120
13121 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13123
13124   runpath_var=
13125   allow_undefined_flag=
13126   enable_shared_with_static_runtimes=no
13127   archive_cmds=
13128   archive_expsym_cmds=
13129   old_archive_From_new_cmds=
13130   old_archive_from_expsyms_cmds=
13131   export_dynamic_flag_spec=
13132   whole_archive_flag_spec=
13133   thread_safe_flag_spec=
13134   hardcode_libdir_flag_spec=
13135   hardcode_libdir_flag_spec_ld=
13136   hardcode_libdir_separator=
13137   hardcode_direct=no
13138   hardcode_minus_L=no
13139   hardcode_shlibpath_var=unsupported
13140   link_all_deplibs=unknown
13141   hardcode_automatic=no
13142   module_cmds=
13143   module_expsym_cmds=
13144   always_export_symbols=no
13145   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13146   # include_expsyms should be a list of space-separated symbols to be *always*
13147   # included in the symbol list
13148   include_expsyms=
13149   # exclude_expsyms can be an extended regexp of symbols to exclude
13150   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13151   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13152   # as well as any symbol that contains `d'.
13153   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13154   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13155   # platforms (ab)use it in PIC code, but their linkers get confused if
13156   # the symbol is explicitly referenced.  Since portable code cannot
13157   # rely on this symbol name, it's probably fine to never include it in
13158   # preloaded symbol tables.
13159   extract_expsyms_cmds=
13160
13161   case $host_os in
13162   cygwin* | mingw* | pw32*)
13163     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13164     # When not using gcc, we currently assume that we are using
13165     # Microsoft Visual C++.
13166     if test "$GCC" != yes; then
13167       with_gnu_ld=no
13168     fi
13169     ;;
13170   openbsd*)
13171     with_gnu_ld=no
13172     ;;
13173   esac
13174
13175   ld_shlibs=yes
13176   if test "$with_gnu_ld" = yes; then
13177     # If archive_cmds runs LD, not CC, wlarc should be empty
13178     wlarc='${wl}'
13179
13180     # See if GNU ld supports shared libraries.
13181     case $host_os in
13182     aix3* | aix4* | aix5*)
13183       # On AIX/PPC, the GNU linker is very broken
13184       if test "$host_cpu" != ia64; then
13185         ld_shlibs=no
13186         cat <<EOF 1>&2
13187
13188 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13189 *** to be unable to reliably create shared libraries on AIX.
13190 *** Therefore, libtool is disabling shared libraries support.  If you
13191 *** really care for shared libraries, you may want to modify your PATH
13192 *** so that a non-GNU linker is found, and then restart.
13193
13194 EOF
13195       fi
13196       ;;
13197
13198     amigaos*)
13199       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)'
13200       hardcode_libdir_flag_spec='-L$libdir'
13201       hardcode_minus_L=yes
13202
13203       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13204       # that the semantics of dynamic libraries on AmigaOS, at least up
13205       # to version 4, is to share data among multiple programs linked
13206       # with the same dynamic library.  Since this doesn't match the
13207       # behavior of shared libraries on other platforms, we can't use
13208       # them.
13209       ld_shlibs=no
13210       ;;
13211
13212     beos*)
13213       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13214         allow_undefined_flag=unsupported
13215         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13216         # support --undefined.  This deserves some investigation.  FIXME
13217         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13218       else
13219         ld_shlibs=no
13220       fi
13221       ;;
13222
13223     cygwin* | mingw* | pw32*)
13224       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13225       # as there is no search path for DLLs.
13226       hardcode_libdir_flag_spec='-L$libdir'
13227       allow_undefined_flag=unsupported
13228       always_export_symbols=no
13229       enable_shared_with_static_runtimes=yes
13230       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13231
13232       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13233         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13234         # If the export-symbols file already is a .def file (1st line
13235         # is EXPORTS), use it as is; otherwise, prepend...
13236         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13237           cp $export_symbols $output_objdir/$soname.def;
13238         else
13239           echo EXPORTS > $output_objdir/$soname.def;
13240           cat $export_symbols >> $output_objdir/$soname.def;
13241         fi~
13242         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13243       else
13244         ld_shlibs=no
13245       fi
13246       ;;
13247
13248     netbsd*)
13249       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13250         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13251         wlarc=
13252       else
13253         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13254         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13255       fi
13256       ;;
13257
13258     solaris* | sysv5*)
13259       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13260         ld_shlibs=no
13261         cat <<EOF 1>&2
13262
13263 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13264 *** create shared libraries on Solaris systems.  Therefore, libtool
13265 *** is disabling shared libraries support.  We urge you to upgrade GNU
13266 *** binutils to release 2.9.1 or newer.  Another option is to modify
13267 *** your PATH or compiler configuration so that the native linker is
13268 *** used, and then restart.
13269
13270 EOF
13271       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13272         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13273         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13274       else
13275         ld_shlibs=no
13276       fi
13277       ;;
13278
13279     sunos4*)
13280       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13281       wlarc=
13282       hardcode_direct=yes
13283       hardcode_shlibpath_var=no
13284       ;;
13285
13286   linux*)
13287     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13288         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13289         archive_cmds="$tmp_archive_cmds"
13290       supports_anon_versioning=no
13291       case `$LD -v 2>/dev/null` in
13292         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13293         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13294         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13295         *\ 2.11.*) ;; # other 2.11 versions
13296         *) supports_anon_versioning=yes ;;
13297       esac
13298       if test $supports_anon_versioning = yes; then
13299         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
13300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13301 $echo "local: *; };" >> $output_objdir/$libname.ver~
13302         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13303       else
13304         archive_expsym_cmds="$tmp_archive_cmds"
13305       fi
13306     else
13307       ld_shlibs=no
13308     fi
13309     ;;
13310
13311     *)
13312       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13313         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13314         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13315       else
13316         ld_shlibs=no
13317       fi
13318       ;;
13319     esac
13320
13321     if test "$ld_shlibs" = yes; then
13322       runpath_var=LD_RUN_PATH
13323       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13324       export_dynamic_flag_spec='${wl}--export-dynamic'
13325       # ancient GNU ld didn't support --whole-archive et. al.
13326       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13327         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13328       else
13329         whole_archive_flag_spec=
13330       fi
13331     fi
13332   else
13333     # PORTME fill in a description of your system's linker (not GNU ld)
13334     case $host_os in
13335     aix3*)
13336       allow_undefined_flag=unsupported
13337       always_export_symbols=yes
13338       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'
13339       # Note: this linker hardcodes the directories in LIBPATH if there
13340       # are no directories specified by -L.
13341       hardcode_minus_L=yes
13342       if test "$GCC" = yes && test -z "$link_static_flag"; then
13343         # Neither direct hardcoding nor static linking is supported with a
13344         # broken collect2.
13345         hardcode_direct=unsupported
13346       fi
13347       ;;
13348
13349     aix4* | aix5*)
13350       if test "$host_cpu" = ia64; then
13351         # On IA64, the linker does run time linking by default, so we don't
13352         # have to do anything special.
13353         aix_use_runtimelinking=no
13354         exp_sym_flag='-Bexport'
13355         no_entry_flag=""
13356       else
13357         # If we're using GNU nm, then we don't want the "-C" option.
13358         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13359         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13360           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'
13361         else
13362           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'
13363         fi
13364         aix_use_runtimelinking=no
13365
13366         # Test if we are trying to use run time linking or normal
13367         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13368         # need to do runtime linking.
13369         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13370           for ld_flag in $LDFLAGS; do
13371           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13372             aix_use_runtimelinking=yes
13373             break
13374           fi
13375           done
13376         esac
13377
13378         exp_sym_flag='-bexport'
13379         no_entry_flag='-bnoentry'
13380       fi
13381
13382       # When large executables or shared objects are built, AIX ld can
13383       # have problems creating the table of contents.  If linking a library
13384       # or program results in "error TOC overflow" add -mminimal-toc to
13385       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13386       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13387
13388       archive_cmds=''
13389       hardcode_direct=yes
13390       hardcode_libdir_separator=':'
13391       link_all_deplibs=yes
13392
13393       if test "$GCC" = yes; then
13394         case $host_os in aix4.012|aix4.012.*)
13395         # We only want to do this on AIX 4.2 and lower, the check
13396         # below for broken collect2 doesn't work under 4.3+
13397           collect2name=`${CC} -print-prog-name=collect2`
13398           if test -f "$collect2name" && \
13399            strings "$collect2name" | grep resolve_lib_name >/dev/null
13400           then
13401           # We have reworked collect2
13402           hardcode_direct=yes
13403           else
13404           # We have old collect2
13405           hardcode_direct=unsupported
13406           # It fails to find uninstalled libraries when the uninstalled
13407           # path is not listed in the libpath.  Setting hardcode_minus_L
13408           # to unsupported forces relinking
13409           hardcode_minus_L=yes
13410           hardcode_libdir_flag_spec='-L$libdir'
13411           hardcode_libdir_separator=
13412           fi
13413         esac
13414         shared_flag='-shared'
13415       else
13416         # not using gcc
13417         if test "$host_cpu" = ia64; then
13418         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13419         # chokes on -Wl,-G. The following line is correct:
13420           shared_flag='-G'
13421         else
13422         if test "$aix_use_runtimelinking" = yes; then
13423             shared_flag='${wl}-G'
13424           else
13425             shared_flag='${wl}-bM:SRE'
13426         fi
13427         fi
13428       fi
13429
13430       # It seems that -bexpall does not export symbols beginning with
13431       # underscore (_), so it is better to generate a list of symbols to export.
13432       always_export_symbols=yes
13433       if test "$aix_use_runtimelinking" = yes; then
13434         # Warning - without using the other runtime loading flags (-brtl),
13435         # -berok will link without error, but may produce a broken library.
13436         allow_undefined_flag='-berok'
13437        # Determine the default libpath from the value encoded in an empty executable.
13438        cat >conftest.$ac_ext <<_ACEOF
13439 /* confdefs.h.  */
13440 _ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h.  */
13444
13445 int
13446 main ()
13447 {
13448
13449   ;
13450   return 0;
13451 }
13452 _ACEOF
13453 rm -f conftest.$ac_objext conftest$ac_exeext
13454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13455   (eval $ac_link) 2>conftest.er1
13456   ac_status=$?
13457   grep -v '^ *+' conftest.er1 >conftest.err
13458   rm -f conftest.er1
13459   cat conftest.err >&5
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); } &&
13462          { ac_try='test -z "$ac_c_werror_flag"
13463                          || test ! -s conftest.err'
13464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465   (eval $ac_try) 2>&5
13466   ac_status=$?
13467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468   (exit $ac_status); }; } &&
13469          { ac_try='test -s conftest$ac_exeext'
13470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471   (eval $ac_try) 2>&5
13472   ac_status=$?
13473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474   (exit $ac_status); }; }; then
13475
13476 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13477 }'`
13478 # Check for a 64-bit object if we didn't find anything.
13479 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; }
13480 }'`; fi
13481 else
13482   echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13484
13485 fi
13486 rm -f conftest.err conftest.$ac_objext \
13487       conftest$ac_exeext conftest.$ac_ext
13488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13489
13490        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13491         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"
13492        else
13493         if test "$host_cpu" = ia64; then
13494           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13495           allow_undefined_flag="-z nodefs"
13496           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"
13497         else
13498          # Determine the default libpath from the value encoded in an empty executable.
13499          cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h.  */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h.  */
13505
13506 int
13507 main ()
13508 {
13509
13510   ;
13511   return 0;
13512 }
13513 _ACEOF
13514 rm -f conftest.$ac_objext conftest$ac_exeext
13515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13516   (eval $ac_link) 2>conftest.er1
13517   ac_status=$?
13518   grep -v '^ *+' conftest.er1 >conftest.err
13519   rm -f conftest.er1
13520   cat conftest.err >&5
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); } &&
13523          { ac_try='test -z "$ac_c_werror_flag"
13524                          || test ! -s conftest.err'
13525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526   (eval $ac_try) 2>&5
13527   ac_status=$?
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); }; } &&
13530          { ac_try='test -s conftest$ac_exeext'
13531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532   (eval $ac_try) 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); }; }; then
13536
13537 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13538 }'`
13539 # Check for a 64-bit object if we didn't find anything.
13540 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; }
13541 }'`; fi
13542 else
13543   echo "$as_me: failed program was:" >&5
13544 sed 's/^/| /' conftest.$ac_ext >&5
13545
13546 fi
13547 rm -f conftest.err conftest.$ac_objext \
13548       conftest$ac_exeext conftest.$ac_ext
13549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13550
13551          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13552           # Warning - without using the other run time loading flags,
13553           # -berok will link without error, but may produce a broken library.
13554           no_undefined_flag=' ${wl}-bernotok'
13555           allow_undefined_flag=' ${wl}-berok'
13556           # -bexpall does not export symbols beginning with underscore (_)
13557           always_export_symbols=yes
13558           # Exported symbols can be pulled into shared objects from archives
13559           whole_archive_flag_spec=' '
13560           archive_cmds_need_lc=yes
13561           # This is similar to how AIX traditionally builds it's shared libraries.
13562           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'
13563         fi
13564       fi
13565       ;;
13566
13567     amigaos*)
13568       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)'
13569       hardcode_libdir_flag_spec='-L$libdir'
13570       hardcode_minus_L=yes
13571       # see comment about different semantics on the GNU ld section
13572       ld_shlibs=no
13573       ;;
13574
13575     bsdi4*)
13576       export_dynamic_flag_spec=-rdynamic
13577       ;;
13578
13579     cygwin* | mingw* | pw32*)
13580       # When not using gcc, we currently assume that we are using
13581       # Microsoft Visual C++.
13582       # hardcode_libdir_flag_spec is actually meaningless, as there is
13583       # no search path for DLLs.
13584       hardcode_libdir_flag_spec=' '
13585       allow_undefined_flag=unsupported
13586       # Tell ltmain to make .lib files, not .a files.
13587       libext=lib
13588       # Tell ltmain to make .dll files, not .so files.
13589       shrext_cmds=".dll"
13590       # FIXME: Setting linknames here is a bad hack.
13591       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13592       # The linker will automatically build a .lib file if we build a DLL.
13593       old_archive_From_new_cmds='true'
13594       # FIXME: Should let the user specify the lib program.
13595       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13596       fix_srcfile_path='`cygpath -w "$srcfile"`'
13597       enable_shared_with_static_runtimes=yes
13598       ;;
13599
13600     darwin* | rhapsody*)
13601     if test "$GXX" = yes ; then
13602       archive_cmds_need_lc=no
13603       case "$host_os" in
13604       rhapsody* | darwin1.[012])
13605         allow_undefined_flag='-undefined suppress'
13606         ;;
13607       *) # Darwin 1.3 on
13608       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13609         allow_undefined_flag='-flat_namespace -undefined suppress'
13610       else
13611         case ${MACOSX_DEPLOYMENT_TARGET} in
13612           10.[012])
13613             allow_undefined_flag='-flat_namespace -undefined suppress'
13614             ;;
13615           10.*)
13616             allow_undefined_flag='-undefined dynamic_lookup'
13617             ;;
13618         esac
13619       fi
13620         ;;
13621       esac
13622         lt_int_apple_cc_single_mod=no
13623         output_verbose_link_cmd='echo'
13624         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13625           lt_int_apple_cc_single_mod=yes
13626         fi
13627         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13628           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13629         else
13630         archive_cmds='$CC -r ${wl}-bind_at_load -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'
13631       fi
13632       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13633       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13634         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13635           archive_expsym_cmds='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}'
13636         else
13637           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13638         fi
13639           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}'
13640       hardcode_direct=no
13641       hardcode_automatic=yes
13642       hardcode_shlibpath_var=unsupported
13643       whole_archive_flag_spec='-all_load $convenience'
13644       link_all_deplibs=yes
13645     else
13646       ld_shlibs=no
13647     fi
13648       ;;
13649
13650     dgux*)
13651       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13652       hardcode_libdir_flag_spec='-L$libdir'
13653       hardcode_shlibpath_var=no
13654       ;;
13655
13656     freebsd1*)
13657       ld_shlibs=no
13658       ;;
13659
13660     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13661     # support.  Future versions do this automatically, but an explicit c++rt0.o
13662     # does not break anything, and helps significantly (at the cost of a little
13663     # extra space).
13664     freebsd2.2*)
13665       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13666       hardcode_libdir_flag_spec='-R$libdir'
13667       hardcode_direct=yes
13668       hardcode_shlibpath_var=no
13669       ;;
13670
13671     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13672     freebsd2*)
13673       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13674       hardcode_direct=yes
13675       hardcode_minus_L=yes
13676       hardcode_shlibpath_var=no
13677       ;;
13678
13679     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13680     freebsd* | kfreebsd*-gnu)
13681       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13682       hardcode_libdir_flag_spec='-R$libdir'
13683       hardcode_direct=yes
13684       hardcode_shlibpath_var=no
13685       ;;
13686
13687     hpux9*)
13688       if test "$GCC" = yes; then
13689         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'
13690       else
13691         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'
13692       fi
13693       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13694       hardcode_libdir_separator=:
13695       hardcode_direct=yes
13696
13697       # hardcode_minus_L: Not really in the search PATH,
13698       # but as the default location of the library.
13699       hardcode_minus_L=yes
13700       export_dynamic_flag_spec='${wl}-E'
13701       ;;
13702
13703     hpux10* | hpux11*)
13704       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13705         case "$host_cpu" in
13706         hppa*64*|ia64*)
13707           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13708           ;;
13709         *)
13710           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13711           ;;
13712         esac
13713       else
13714         case "$host_cpu" in
13715         hppa*64*|ia64*)
13716           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13717           ;;
13718         *)
13719           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13720           ;;
13721         esac
13722       fi
13723       if test "$with_gnu_ld" = no; then
13724         case "$host_cpu" in
13725         hppa*64*)
13726           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13727           hardcode_libdir_flag_spec_ld='+b $libdir'
13728           hardcode_libdir_separator=:
13729           hardcode_direct=no
13730           hardcode_shlibpath_var=no
13731           ;;
13732         ia64*)
13733           hardcode_libdir_flag_spec='-L$libdir'
13734           hardcode_direct=no
13735           hardcode_shlibpath_var=no
13736
13737           # hardcode_minus_L: Not really in the search PATH,
13738           # but as the default location of the library.
13739           hardcode_minus_L=yes
13740           ;;
13741         *)
13742           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13743           hardcode_libdir_separator=:
13744           hardcode_direct=yes
13745           export_dynamic_flag_spec='${wl}-E'
13746
13747           # hardcode_minus_L: Not really in the search PATH,
13748           # but as the default location of the library.
13749           hardcode_minus_L=yes
13750           ;;
13751         esac
13752       fi
13753       ;;
13754
13755     irix5* | irix6* | nonstopux*)
13756       if test "$GCC" = yes; then
13757         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'
13758       else
13759         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'
13760         hardcode_libdir_flag_spec_ld='-rpath $libdir'
13761       fi
13762       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13763       hardcode_libdir_separator=:
13764       link_all_deplibs=yes
13765       ;;
13766
13767     netbsd*)
13768       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13769         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13770       else
13771         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13772       fi
13773       hardcode_libdir_flag_spec='-R$libdir'
13774       hardcode_direct=yes
13775       hardcode_shlibpath_var=no
13776       ;;
13777
13778     newsos6)
13779       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13780       hardcode_direct=yes
13781       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13782       hardcode_libdir_separator=:
13783       hardcode_shlibpath_var=no
13784       ;;
13785
13786     openbsd*)
13787       hardcode_direct=yes
13788       hardcode_shlibpath_var=no
13789       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13790         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13791         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13792         export_dynamic_flag_spec='${wl}-E'
13793       else
13794        case $host_os in
13795          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13796            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13797            hardcode_libdir_flag_spec='-R$libdir'
13798            ;;
13799          *)
13800            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13801            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13802            ;;
13803        esac
13804       fi
13805       ;;
13806
13807     os2*)
13808       hardcode_libdir_flag_spec='-L$libdir'
13809       hardcode_minus_L=yes
13810       allow_undefined_flag=unsupported
13811       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'
13812       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13813       ;;
13814
13815     osf3*)
13816       if test "$GCC" = yes; then
13817         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13818         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'
13819       else
13820         allow_undefined_flag=' -expect_unresolved \*'
13821         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'
13822       fi
13823       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13824       hardcode_libdir_separator=:
13825       ;;
13826
13827     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13828       if test "$GCC" = yes; then
13829         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13830         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'
13831         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13832       else
13833         allow_undefined_flag=' -expect_unresolved \*'
13834         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'
13835         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13836         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13837
13838         # Both c and cxx compiler support -rpath directly
13839         hardcode_libdir_flag_spec='-rpath $libdir'
13840       fi
13841       hardcode_libdir_separator=:
13842       ;;
13843
13844     sco3.2v5*)
13845       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846       hardcode_shlibpath_var=no
13847       export_dynamic_flag_spec='${wl}-Bexport'
13848       runpath_var=LD_RUN_PATH
13849       hardcode_runpath_var=yes
13850       ;;
13851
13852     solaris*)
13853       no_undefined_flag=' -z text'
13854       if test "$GCC" = yes; then
13855         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13856         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13857           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13858       else
13859         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13860         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13861         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13862       fi
13863       hardcode_libdir_flag_spec='-R$libdir'
13864       hardcode_shlibpath_var=no
13865       case $host_os in
13866       solaris2.[0-5] | solaris2.[0-5].*) ;;
13867       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13868         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13869       esac
13870       link_all_deplibs=yes
13871       ;;
13872
13873     sunos4*)
13874       if test "x$host_vendor" = xsequent; then
13875         # Use $CC to link under sequent, because it throws in some extra .o
13876         # files that make .init and .fini sections work.
13877         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13878       else
13879         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13880       fi
13881       hardcode_libdir_flag_spec='-L$libdir'
13882       hardcode_direct=yes
13883       hardcode_minus_L=yes
13884       hardcode_shlibpath_var=no
13885       ;;
13886
13887     sysv4)
13888       case $host_vendor in
13889         sni)
13890           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13891           hardcode_direct=yes # is this really true???
13892         ;;
13893         siemens)
13894           ## LD is ld it makes a PLAMLIB
13895           ## CC just makes a GrossModule.
13896           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13897           reload_cmds='$CC -r -o $output$reload_objs'
13898           hardcode_direct=no
13899         ;;
13900         motorola)
13901           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13902           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13903         ;;
13904       esac
13905       runpath_var='LD_RUN_PATH'
13906       hardcode_shlibpath_var=no
13907       ;;
13908
13909     sysv4.3*)
13910       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13911       hardcode_shlibpath_var=no
13912       export_dynamic_flag_spec='-Bexport'
13913       ;;
13914
13915     sysv4*MP*)
13916       if test -d /usr/nec; then
13917         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13918         hardcode_shlibpath_var=no
13919         runpath_var=LD_RUN_PATH
13920         hardcode_runpath_var=yes
13921         ld_shlibs=yes
13922       fi
13923       ;;
13924
13925     sysv4.2uw2*)
13926       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13927       hardcode_direct=yes
13928       hardcode_minus_L=no
13929       hardcode_shlibpath_var=no
13930       hardcode_runpath_var=yes
13931       runpath_var=LD_RUN_PATH
13932       ;;
13933
13934    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13935       no_undefined_flag='${wl}-z ${wl}text'
13936       if test "$GCC" = yes; then
13937         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13938       else
13939         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13940       fi
13941       runpath_var='LD_RUN_PATH'
13942       hardcode_shlibpath_var=no
13943       ;;
13944
13945     sysv5*)
13946       no_undefined_flag=' -z text'
13947       # $CC -shared without GNU ld will not create a library from C++
13948       # object files and a static libstdc++, better avoid it by now
13949       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13950       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13951                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13952       hardcode_libdir_flag_spec=
13953       hardcode_shlibpath_var=no
13954       runpath_var='LD_RUN_PATH'
13955       ;;
13956
13957     uts4*)
13958       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13959       hardcode_libdir_flag_spec='-L$libdir'
13960       hardcode_shlibpath_var=no
13961       ;;
13962
13963     *)
13964       ld_shlibs=no
13965       ;;
13966     esac
13967   fi
13968
13969 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13970 echo "${ECHO_T}$ld_shlibs" >&6
13971 test "$ld_shlibs" = no && can_build_shared=no
13972
13973 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13974 if test "$GCC" = yes; then
13975   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13976 fi
13977
13978 #
13979 # Do we need to explicitly link libc?
13980 #
13981 case "x$archive_cmds_need_lc" in
13982 x|xyes)
13983   # Assume -lc should be added
13984   archive_cmds_need_lc=yes
13985
13986   if test "$enable_shared" = yes && test "$GCC" = yes; then
13987     case $archive_cmds in
13988     *'~'*)
13989       # FIXME: we may have to deal with multi-command sequences.
13990       ;;
13991     '$CC '*)
13992       # Test whether the compiler implicitly links with -lc since on some
13993       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13994       # to ld, don't add -lc before -lgcc.
13995       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13996 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13997       $rm conftest*
13998       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13999
14000       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14001   (eval $ac_compile) 2>&5
14002   ac_status=$?
14003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004   (exit $ac_status); } 2>conftest.err; then
14005         soname=conftest
14006         lib=conftest
14007         libobjs=conftest.$ac_objext
14008         deplibs=
14009         wl=$lt_prog_compiler_wl
14010         compiler_flags=-v
14011         linker_flags=-v
14012         verstring=
14013         output_objdir=.
14014         libname=conftest
14015         lt_save_allow_undefined_flag=$allow_undefined_flag
14016         allow_undefined_flag=
14017         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14018   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14019   ac_status=$?
14020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); }
14022         then
14023           archive_cmds_need_lc=no
14024         else
14025           archive_cmds_need_lc=yes
14026         fi
14027         allow_undefined_flag=$lt_save_allow_undefined_flag
14028       else
14029         cat conftest.err 1>&5
14030       fi
14031       $rm conftest*
14032       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14033 echo "${ECHO_T}$archive_cmds_need_lc" >&6
14034       ;;
14035     esac
14036   fi
14037   ;;
14038 esac
14039
14040 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14041 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14042 library_names_spec=
14043 libname_spec='lib$name'
14044 soname_spec=
14045 shrext_cmds=".so"
14046 postinstall_cmds=
14047 postuninstall_cmds=
14048 finish_cmds=
14049 finish_eval=
14050 shlibpath_var=
14051 shlibpath_overrides_runpath=unknown
14052 version_type=none
14053 dynamic_linker="$host_os ld.so"
14054 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14055 if test "$GCC" = yes; then
14056   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14057   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14058     # if the path contains ";" then we assume it to be the separator
14059     # otherwise default to the standard path separator (i.e. ":") - it is
14060     # assumed that no part of a normal pathname contains ";" but that should
14061     # okay in the real world where ";" in dirpaths is itself problematic.
14062     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14063   else
14064     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14065   fi
14066 else
14067   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14068 fi
14069 need_lib_prefix=unknown
14070 hardcode_into_libs=no
14071
14072 # when you set need_version to no, make sure it does not cause -set_version
14073 # flags to be left without arguments
14074 need_version=unknown
14075
14076 case $host_os in
14077 aix3*)
14078   version_type=linux
14079   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14080   shlibpath_var=LIBPATH
14081
14082   # AIX 3 has no versioning support, so we append a major version to the name.
14083   soname_spec='${libname}${release}${shared_ext}$major'
14084   ;;
14085
14086 aix4* | aix5*)
14087   version_type=linux
14088   need_lib_prefix=no
14089   need_version=no
14090   hardcode_into_libs=yes
14091   if test "$host_cpu" = ia64; then
14092     # AIX 5 supports IA64
14093     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14094     shlibpath_var=LD_LIBRARY_PATH
14095   else
14096     # With GCC up to 2.95.x, collect2 would create an import file
14097     # for dependence libraries.  The import file would start with
14098     # the line `#! .'.  This would cause the generated library to
14099     # depend on `.', always an invalid library.  This was fixed in
14100     # development snapshots of GCC prior to 3.0.
14101     case $host_os in
14102       aix4 | aix4.[01] | aix4.[01].*)
14103       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14104            echo ' yes '
14105            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14106         :
14107       else
14108         can_build_shared=no
14109       fi
14110       ;;
14111     esac
14112     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14113     # soname into executable. Probably we can add versioning support to
14114     # collect2, so additional links can be useful in future.
14115     if test "$aix_use_runtimelinking" = yes; then
14116       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14117       # instead of lib<name>.a to let people know that these are not
14118       # typical AIX shared libraries.
14119       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14120     else
14121       # We preserve .a as extension for shared libraries through AIX4.2
14122       # and later when we are not doing run time linking.
14123       library_names_spec='${libname}${release}.a $libname.a'
14124       soname_spec='${libname}${release}${shared_ext}$major'
14125     fi
14126     shlibpath_var=LIBPATH
14127   fi
14128   ;;
14129
14130 amigaos*)
14131   library_names_spec='$libname.ixlibrary $libname.a'
14132   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14133   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'
14134   ;;
14135
14136 beos*)
14137   library_names_spec='${libname}${shared_ext}'
14138   dynamic_linker="$host_os ld.so"
14139   shlibpath_var=LIBRARY_PATH
14140   ;;
14141
14142 bsdi4*)
14143   version_type=linux
14144   need_version=no
14145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14146   soname_spec='${libname}${release}${shared_ext}$major'
14147   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14148   shlibpath_var=LD_LIBRARY_PATH
14149   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14150   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14151   # the default ld.so.conf also contains /usr/contrib/lib and
14152   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14153   # libtool to hard-code these into programs
14154   ;;
14155
14156 cygwin* | mingw* | pw32*)
14157   version_type=windows
14158   shrext_cmds=".dll"
14159   need_version=no
14160   need_lib_prefix=no
14161
14162   case $GCC,$host_os in
14163   yes,cygwin* | yes,mingw* | yes,pw32*)
14164     library_names_spec='$libname.dll.a'
14165     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14166     postinstall_cmds='base_file=`basename \${file}`~
14167       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14168       dldir=$destdir/`dirname \$dlpath`~
14169       test -d \$dldir || mkdir -p \$dldir~
14170       $install_prog $dir/$dlname \$dldir/$dlname'
14171     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14172       dlpath=$dir/\$dldll~
14173        $rm \$dlpath'
14174     shlibpath_overrides_runpath=yes
14175
14176     case $host_os in
14177     cygwin*)
14178       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14179       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14180       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14181       ;;
14182     mingw*)
14183       # MinGW DLLs use traditional 'lib' prefix
14184       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14185       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14186       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14187         # It is most probably a Windows format PATH printed by
14188         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14189         # path with ; separators, and with drive letters. We can handle the
14190         # drive letters (cygwin fileutils understands them), so leave them,
14191         # especially as we might pass files found there to a mingw objdump,
14192         # which wouldn't understand a cygwinified path. Ahh.
14193         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14194       else
14195         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14196       fi
14197       ;;
14198     pw32*)
14199       # pw32 DLLs use 'pw' prefix rather than 'lib'
14200       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14201       ;;
14202     esac
14203     ;;
14204
14205   *)
14206     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14207     ;;
14208   esac
14209   dynamic_linker='Win32 ld.exe'
14210   # FIXME: first we should search . and the directory the executable is in
14211   shlibpath_var=PATH
14212   ;;
14213
14214 darwin* | rhapsody*)
14215   dynamic_linker="$host_os dyld"
14216   version_type=darwin
14217   need_lib_prefix=no
14218   need_version=no
14219   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14220   soname_spec='${libname}${release}${major}$shared_ext'
14221   shlibpath_overrides_runpath=yes
14222   shlibpath_var=DYLD_LIBRARY_PATH
14223   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14224   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14225   if test "$GCC" = yes; then
14226     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"`
14227   else
14228     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14229   fi
14230   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14231   ;;
14232
14233 dgux*)
14234   version_type=linux
14235   need_lib_prefix=no
14236   need_version=no
14237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14238   soname_spec='${libname}${release}${shared_ext}$major'
14239   shlibpath_var=LD_LIBRARY_PATH
14240   ;;
14241
14242 freebsd1*)
14243   dynamic_linker=no
14244   ;;
14245
14246 kfreebsd*-gnu)
14247   version_type=linux
14248   need_lib_prefix=no
14249   need_version=no
14250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14251   soname_spec='${libname}${release}${shared_ext}$major'
14252   shlibpath_var=LD_LIBRARY_PATH
14253   shlibpath_overrides_runpath=no
14254   hardcode_into_libs=yes
14255   dynamic_linker='GNU ld.so'
14256   ;;
14257
14258 freebsd*)
14259   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14260   version_type=freebsd-$objformat
14261   case $version_type in
14262     freebsd-elf*)
14263       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14264       need_version=no
14265       need_lib_prefix=no
14266       ;;
14267     freebsd-*)
14268       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14269       need_version=yes
14270       ;;
14271   esac
14272   shlibpath_var=LD_LIBRARY_PATH
14273   case $host_os in
14274   freebsd2*)
14275     shlibpath_overrides_runpath=yes
14276     ;;
14277   freebsd3.01* | freebsdelf3.01*)
14278     shlibpath_overrides_runpath=yes
14279     hardcode_into_libs=yes
14280     ;;
14281   *) # from 3.2 on
14282     shlibpath_overrides_runpath=no
14283     hardcode_into_libs=yes
14284     ;;
14285   esac
14286   ;;
14287
14288 gnu*)
14289   version_type=linux
14290   need_lib_prefix=no
14291   need_version=no
14292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14293   soname_spec='${libname}${release}${shared_ext}$major'
14294   shlibpath_var=LD_LIBRARY_PATH
14295   hardcode_into_libs=yes
14296   ;;
14297
14298 hpux9* | hpux10* | hpux11*)
14299   # Give a soname corresponding to the major version so that dld.sl refuses to
14300   # link against other versions.
14301   version_type=sunos
14302   need_lib_prefix=no
14303   need_version=no
14304   case "$host_cpu" in
14305   ia64*)
14306     shrext_cmds='.so'
14307     hardcode_into_libs=yes
14308     dynamic_linker="$host_os dld.so"
14309     shlibpath_var=LD_LIBRARY_PATH
14310     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14311     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14312     soname_spec='${libname}${release}${shared_ext}$major'
14313     if test "X$HPUX_IA64_MODE" = X32; then
14314       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14315     else
14316       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14317     fi
14318     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14319     ;;
14320    hppa*64*)
14321      shrext_cmds='.sl'
14322      hardcode_into_libs=yes
14323      dynamic_linker="$host_os dld.sl"
14324      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14325      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14326      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14327      soname_spec='${libname}${release}${shared_ext}$major'
14328      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14329      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14330      ;;
14331    *)
14332     shrext_cmds='.sl'
14333     dynamic_linker="$host_os dld.sl"
14334     shlibpath_var=SHLIB_PATH
14335     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14336     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14337     soname_spec='${libname}${release}${shared_ext}$major'
14338     ;;
14339   esac
14340   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14341   postinstall_cmds='chmod 555 $lib'
14342   ;;
14343
14344 irix5* | irix6* | nonstopux*)
14345   case $host_os in
14346     nonstopux*) version_type=nonstopux ;;
14347     *)
14348         if test "$lt_cv_prog_gnu_ld" = yes; then
14349                 version_type=linux
14350         else
14351                 version_type=irix
14352         fi ;;
14353   esac
14354   need_lib_prefix=no
14355   need_version=no
14356   soname_spec='${libname}${release}${shared_ext}$major'
14357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14358   case $host_os in
14359   irix5* | nonstopux*)
14360     libsuff= shlibsuff=
14361     ;;
14362   *)
14363     case $LD in # libtool.m4 will add one of these switches to LD
14364     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14365       libsuff= shlibsuff= libmagic=32-bit;;
14366     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14367       libsuff=32 shlibsuff=N32 libmagic=N32;;
14368     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14369       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14370     *) libsuff= shlibsuff= libmagic=never-match;;
14371     esac
14372     ;;
14373   esac
14374   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14375   shlibpath_overrides_runpath=no
14376   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14377   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14378   hardcode_into_libs=yes
14379   ;;
14380
14381 # No shared lib support for Linux oldld, aout, or coff.
14382 linux*oldld* | linux*aout* | linux*coff*)
14383   dynamic_linker=no
14384   ;;
14385
14386 # This must be Linux ELF.
14387 linux*)
14388   version_type=linux
14389   need_lib_prefix=no
14390   need_version=no
14391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14392   soname_spec='${libname}${release}${shared_ext}$major'
14393   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14394   shlibpath_var=LD_LIBRARY_PATH
14395   shlibpath_overrides_runpath=no
14396   # This implies no fast_install, which is unacceptable.
14397   # Some rework will be needed to allow for fast_install
14398   # before this can be enabled.
14399   hardcode_into_libs=yes
14400
14401   # Append ld.so.conf contents to the search path
14402   if test -f /etc/ld.so.conf; then
14403     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14404     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14405   fi
14406
14407   # We used to test for /lib/ld.so.1 and disable shared libraries on
14408   # powerpc, because MkLinux only supported shared libraries with the
14409   # GNU dynamic linker.  Since this was broken with cross compilers,
14410   # most powerpc-linux boxes support dynamic linking these days and
14411   # people can always --disable-shared, the test was removed, and we
14412   # assume the GNU/Linux dynamic linker is in use.
14413   dynamic_linker='GNU/Linux ld.so'
14414   ;;
14415
14416 knetbsd*-gnu)
14417   version_type=linux
14418   need_lib_prefix=no
14419   need_version=no
14420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14421   soname_spec='${libname}${release}${shared_ext}$major'
14422   shlibpath_var=LD_LIBRARY_PATH
14423   shlibpath_overrides_runpath=no
14424   hardcode_into_libs=yes
14425   dynamic_linker='GNU ld.so'
14426   ;;
14427
14428 netbsd*)
14429   version_type=sunos
14430   need_lib_prefix=no
14431   need_version=no
14432   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14434     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14435     dynamic_linker='NetBSD (a.out) ld.so'
14436   else
14437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14438     soname_spec='${libname}${release}${shared_ext}$major'
14439     dynamic_linker='NetBSD ld.elf_so'
14440   fi
14441   shlibpath_var=LD_LIBRARY_PATH
14442   shlibpath_overrides_runpath=yes
14443   hardcode_into_libs=yes
14444   ;;
14445
14446 newsos6)
14447   version_type=linux
14448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449   shlibpath_var=LD_LIBRARY_PATH
14450   shlibpath_overrides_runpath=yes
14451   ;;
14452
14453 nto-qnx*)
14454   version_type=linux
14455   need_lib_prefix=no
14456   need_version=no
14457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458   soname_spec='${libname}${release}${shared_ext}$major'
14459   shlibpath_var=LD_LIBRARY_PATH
14460   shlibpath_overrides_runpath=yes
14461   ;;
14462
14463 openbsd*)
14464   version_type=sunos
14465   need_lib_prefix=no
14466   need_version=yes
14467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14468   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14469   shlibpath_var=LD_LIBRARY_PATH
14470   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14471     case $host_os in
14472       openbsd2.[89] | openbsd2.[89].*)
14473         shlibpath_overrides_runpath=no
14474         ;;
14475       *)
14476         shlibpath_overrides_runpath=yes
14477         ;;
14478       esac
14479   else
14480     shlibpath_overrides_runpath=yes
14481   fi
14482   ;;
14483
14484 os2*)
14485   libname_spec='$name'
14486   shrext_cmds=".dll"
14487   need_lib_prefix=no
14488   library_names_spec='$libname${shared_ext} $libname.a'
14489   dynamic_linker='OS/2 ld.exe'
14490   shlibpath_var=LIBPATH
14491   ;;
14492
14493 osf3* | osf4* | osf5*)
14494   version_type=osf
14495   need_lib_prefix=no
14496   need_version=no
14497   soname_spec='${libname}${release}${shared_ext}$major'
14498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499   shlibpath_var=LD_LIBRARY_PATH
14500   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14501   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14502   ;;
14503
14504 sco3.2v5*)
14505   version_type=osf
14506   soname_spec='${libname}${release}${shared_ext}$major'
14507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508   shlibpath_var=LD_LIBRARY_PATH
14509   ;;
14510
14511 solaris*)
14512   version_type=linux
14513   need_lib_prefix=no
14514   need_version=no
14515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516   soname_spec='${libname}${release}${shared_ext}$major'
14517   shlibpath_var=LD_LIBRARY_PATH
14518   shlibpath_overrides_runpath=yes
14519   hardcode_into_libs=yes
14520   # ldd complains unless libraries are executable
14521   postinstall_cmds='chmod +x $lib'
14522   ;;
14523
14524 sunos4*)
14525   version_type=sunos
14526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14527   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14528   shlibpath_var=LD_LIBRARY_PATH
14529   shlibpath_overrides_runpath=yes
14530   if test "$with_gnu_ld" = yes; then
14531     need_lib_prefix=no
14532   fi
14533   need_version=yes
14534   ;;
14535
14536 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14537   version_type=linux
14538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539   soname_spec='${libname}${release}${shared_ext}$major'
14540   shlibpath_var=LD_LIBRARY_PATH
14541   case $host_vendor in
14542     sni)
14543       shlibpath_overrides_runpath=no
14544       need_lib_prefix=no
14545       export_dynamic_flag_spec='${wl}-Blargedynsym'
14546       runpath_var=LD_RUN_PATH
14547       ;;
14548     siemens)
14549       need_lib_prefix=no
14550       ;;
14551     motorola)
14552       need_lib_prefix=no
14553       need_version=no
14554       shlibpath_overrides_runpath=no
14555       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14556       ;;
14557   esac
14558   ;;
14559
14560 sysv4*MP*)
14561   if test -d /usr/nec ;then
14562     version_type=linux
14563     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14564     soname_spec='$libname${shared_ext}.$major'
14565     shlibpath_var=LD_LIBRARY_PATH
14566   fi
14567   ;;
14568
14569 uts4*)
14570   version_type=linux
14571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14572   soname_spec='${libname}${release}${shared_ext}$major'
14573   shlibpath_var=LD_LIBRARY_PATH
14574   ;;
14575
14576 *)
14577   dynamic_linker=no
14578   ;;
14579 esac
14580 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14581 echo "${ECHO_T}$dynamic_linker" >&6
14582 test "$dynamic_linker" = no && can_build_shared=no
14583
14584 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14585 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14586 hardcode_action=
14587 if test -n "$hardcode_libdir_flag_spec" || \
14588    test -n "$runpath_var " || \
14589    test "X$hardcode_automatic"="Xyes" ; then
14590
14591   # We can hardcode non-existant directories.
14592   if test "$hardcode_direct" != no &&
14593      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14594      # have to relink, otherwise we might link with an installed library
14595      # when we should be linking with a yet-to-be-installed one
14596      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14597      test "$hardcode_minus_L" != no; then
14598     # Linking always hardcodes the temporary library directory.
14599     hardcode_action=relink
14600   else
14601     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14602     hardcode_action=immediate
14603   fi
14604 else
14605   # We cannot hardcode anything, or else we can only hardcode existing
14606   # directories.
14607   hardcode_action=unsupported
14608 fi
14609 echo "$as_me:$LINENO: result: $hardcode_action" >&5
14610 echo "${ECHO_T}$hardcode_action" >&6
14611
14612 if test "$hardcode_action" = relink; then
14613   # Fast installation is not supported
14614   enable_fast_install=no
14615 elif test "$shlibpath_overrides_runpath" = yes ||
14616      test "$enable_shared" = no; then
14617   # Fast installation is not necessary
14618   enable_fast_install=needless
14619 fi
14620
14621 striplib=
14622 old_striplib=
14623 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14624 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14625 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14626   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14627   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14628   echo "$as_me:$LINENO: result: yes" >&5
14629 echo "${ECHO_T}yes" >&6
14630 else
14631 # FIXME - insert some real tests, host_os isn't really good enough
14632   case $host_os in
14633    darwin*)
14634        if test -n "$STRIP" ; then
14635          striplib="$STRIP -x"
14636          echo "$as_me:$LINENO: result: yes" >&5
14637 echo "${ECHO_T}yes" >&6
14638        else
14639   echo "$as_me:$LINENO: result: no" >&5
14640 echo "${ECHO_T}no" >&6
14641 fi
14642        ;;
14643    *)
14644   echo "$as_me:$LINENO: result: no" >&5
14645 echo "${ECHO_T}no" >&6
14646     ;;
14647   esac
14648 fi
14649
14650 if test "x$enable_dlopen" != xyes; then
14651   enable_dlopen=unknown
14652   enable_dlopen_self=unknown
14653   enable_dlopen_self_static=unknown
14654 else
14655   lt_cv_dlopen=no
14656   lt_cv_dlopen_libs=
14657
14658   case $host_os in
14659   beos*)
14660     lt_cv_dlopen="load_add_on"
14661     lt_cv_dlopen_libs=
14662     lt_cv_dlopen_self=yes
14663     ;;
14664
14665   mingw* | pw32*)
14666     lt_cv_dlopen="LoadLibrary"
14667     lt_cv_dlopen_libs=
14668    ;;
14669
14670   cygwin*)
14671     lt_cv_dlopen="dlopen"
14672     lt_cv_dlopen_libs=
14673    ;;
14674
14675   darwin*)
14676   # if libdl is installed we need to link against it
14677     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14678 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14679 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14680   echo $ECHO_N "(cached) $ECHO_C" >&6
14681 else
14682   ac_check_lib_save_LIBS=$LIBS
14683 LIBS="-ldl  $LIBS"
14684 cat >conftest.$ac_ext <<_ACEOF
14685 /* confdefs.h.  */
14686 _ACEOF
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h.  */
14690
14691 /* Override any gcc2 internal prototype to avoid an error.  */
14692 #ifdef __cplusplus
14693 extern "C"
14694 #endif
14695 /* We use char because int might match the return type of a gcc2
14696    builtin and then its argument prototype would still apply.  */
14697 char dlopen ();
14698 int
14699 main ()
14700 {
14701 dlopen ();
14702   ;
14703   return 0;
14704 }
14705 _ACEOF
14706 rm -f conftest.$ac_objext conftest$ac_exeext
14707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14708   (eval $ac_link) 2>conftest.er1
14709   ac_status=$?
14710   grep -v '^ *+' conftest.er1 >conftest.err
14711   rm -f conftest.er1
14712   cat conftest.err >&5
14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714   (exit $ac_status); } &&
14715          { ac_try='test -z "$ac_c_werror_flag"
14716                          || test ! -s conftest.err'
14717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718   (eval $ac_try) 2>&5
14719   ac_status=$?
14720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721   (exit $ac_status); }; } &&
14722          { ac_try='test -s conftest$ac_exeext'
14723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724   (eval $ac_try) 2>&5
14725   ac_status=$?
14726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727   (exit $ac_status); }; }; then
14728   ac_cv_lib_dl_dlopen=yes
14729 else
14730   echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14732
14733 ac_cv_lib_dl_dlopen=no
14734 fi
14735 rm -f conftest.err conftest.$ac_objext \
14736       conftest$ac_exeext conftest.$ac_ext
14737 LIBS=$ac_check_lib_save_LIBS
14738 fi
14739 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14740 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14741 if test $ac_cv_lib_dl_dlopen = yes; then
14742   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14743 else
14744
14745     lt_cv_dlopen="dyld"
14746     lt_cv_dlopen_libs=
14747     lt_cv_dlopen_self=yes
14748
14749 fi
14750
14751    ;;
14752
14753   *)
14754     echo "$as_me:$LINENO: checking for shl_load" >&5
14755 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14756 if test "${ac_cv_func_shl_load+set}" = set; then
14757   echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759   cat >conftest.$ac_ext <<_ACEOF
14760 /* confdefs.h.  */
14761 _ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h.  */
14765 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14767 #define shl_load innocuous_shl_load
14768
14769 /* System header to define __stub macros and hopefully few prototypes,
14770     which can conflict with char shl_load (); below.
14771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14772     <limits.h> exists even on freestanding compilers.  */
14773
14774 #ifdef __STDC__
14775 # include <limits.h>
14776 #else
14777 # include <assert.h>
14778 #endif
14779
14780 #undef shl_load
14781
14782 /* Override any gcc2 internal prototype to avoid an error.  */
14783 #ifdef __cplusplus
14784 extern "C"
14785 {
14786 #endif
14787 /* We use char because int might match the return type of a gcc2
14788    builtin and then its argument prototype would still apply.  */
14789 char shl_load ();
14790 /* The GNU C library defines this for functions which it implements
14791     to always fail with ENOSYS.  Some functions are actually named
14792     something starting with __ and the normal name is an alias.  */
14793 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14794 choke me
14795 #else
14796 char (*f) () = shl_load;
14797 #endif
14798 #ifdef __cplusplus
14799 }
14800 #endif
14801
14802 int
14803 main ()
14804 {
14805 return f != shl_load;
14806   ;
14807   return 0;
14808 }
14809 _ACEOF
14810 rm -f conftest.$ac_objext conftest$ac_exeext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14812   (eval $ac_link) 2>conftest.er1
14813   ac_status=$?
14814   grep -v '^ *+' conftest.er1 >conftest.err
14815   rm -f conftest.er1
14816   cat conftest.err >&5
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); } &&
14819          { ac_try='test -z "$ac_c_werror_flag"
14820                          || test ! -s conftest.err'
14821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822   (eval $ac_try) 2>&5
14823   ac_status=$?
14824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); }; } &&
14826          { ac_try='test -s conftest$ac_exeext'
14827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828   (eval $ac_try) 2>&5
14829   ac_status=$?
14830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831   (exit $ac_status); }; }; then
14832   ac_cv_func_shl_load=yes
14833 else
14834   echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14836
14837 ac_cv_func_shl_load=no
14838 fi
14839 rm -f conftest.err conftest.$ac_objext \
14840       conftest$ac_exeext conftest.$ac_ext
14841 fi
14842 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14843 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14844 if test $ac_cv_func_shl_load = yes; then
14845   lt_cv_dlopen="shl_load"
14846 else
14847   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14848 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14849 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14850   echo $ECHO_N "(cached) $ECHO_C" >&6
14851 else
14852   ac_check_lib_save_LIBS=$LIBS
14853 LIBS="-ldld  $LIBS"
14854 cat >conftest.$ac_ext <<_ACEOF
14855 /* confdefs.h.  */
14856 _ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h.  */
14860
14861 /* Override any gcc2 internal prototype to avoid an error.  */
14862 #ifdef __cplusplus
14863 extern "C"
14864 #endif
14865 /* We use char because int might match the return type of a gcc2
14866    builtin and then its argument prototype would still apply.  */
14867 char shl_load ();
14868 int
14869 main ()
14870 {
14871 shl_load ();
14872   ;
14873   return 0;
14874 }
14875 _ACEOF
14876 rm -f conftest.$ac_objext conftest$ac_exeext
14877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14878   (eval $ac_link) 2>conftest.er1
14879   ac_status=$?
14880   grep -v '^ *+' conftest.er1 >conftest.err
14881   rm -f conftest.er1
14882   cat conftest.err >&5
14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); } &&
14885          { ac_try='test -z "$ac_c_werror_flag"
14886                          || test ! -s conftest.err'
14887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888   (eval $ac_try) 2>&5
14889   ac_status=$?
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); }; } &&
14892          { ac_try='test -s conftest$ac_exeext'
14893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894   (eval $ac_try) 2>&5
14895   ac_status=$?
14896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897   (exit $ac_status); }; }; then
14898   ac_cv_lib_dld_shl_load=yes
14899 else
14900   echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14902
14903 ac_cv_lib_dld_shl_load=no
14904 fi
14905 rm -f conftest.err conftest.$ac_objext \
14906       conftest$ac_exeext conftest.$ac_ext
14907 LIBS=$ac_check_lib_save_LIBS
14908 fi
14909 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14910 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14911 if test $ac_cv_lib_dld_shl_load = yes; then
14912   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14913 else
14914   echo "$as_me:$LINENO: checking for dlopen" >&5
14915 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14916 if test "${ac_cv_func_dlopen+set}" = set; then
14917   echo $ECHO_N "(cached) $ECHO_C" >&6
14918 else
14919   cat >conftest.$ac_ext <<_ACEOF
14920 /* confdefs.h.  */
14921 _ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h.  */
14925 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14927 #define dlopen innocuous_dlopen
14928
14929 /* System header to define __stub macros and hopefully few prototypes,
14930     which can conflict with char dlopen (); below.
14931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14932     <limits.h> exists even on freestanding compilers.  */
14933
14934 #ifdef __STDC__
14935 # include <limits.h>
14936 #else
14937 # include <assert.h>
14938 #endif
14939
14940 #undef dlopen
14941
14942 /* Override any gcc2 internal prototype to avoid an error.  */
14943 #ifdef __cplusplus
14944 extern "C"
14945 {
14946 #endif
14947 /* We use char because int might match the return type of a gcc2
14948    builtin and then its argument prototype would still apply.  */
14949 char dlopen ();
14950 /* The GNU C library defines this for functions which it implements
14951     to always fail with ENOSYS.  Some functions are actually named
14952     something starting with __ and the normal name is an alias.  */
14953 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14954 choke me
14955 #else
14956 char (*f) () = dlopen;
14957 #endif
14958 #ifdef __cplusplus
14959 }
14960 #endif
14961
14962 int
14963 main ()
14964 {
14965 return f != dlopen;
14966   ;
14967   return 0;
14968 }
14969 _ACEOF
14970 rm -f conftest.$ac_objext conftest$ac_exeext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14972   (eval $ac_link) 2>conftest.er1
14973   ac_status=$?
14974   grep -v '^ *+' conftest.er1 >conftest.err
14975   rm -f conftest.er1
14976   cat conftest.err >&5
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); } &&
14979          { ac_try='test -z "$ac_c_werror_flag"
14980                          || test ! -s conftest.err'
14981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982   (eval $ac_try) 2>&5
14983   ac_status=$?
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); }; } &&
14986          { ac_try='test -s conftest$ac_exeext'
14987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988   (eval $ac_try) 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; }; then
14992   ac_cv_func_dlopen=yes
14993 else
14994   echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14996
14997 ac_cv_func_dlopen=no
14998 fi
14999 rm -f conftest.err conftest.$ac_objext \
15000       conftest$ac_exeext conftest.$ac_ext
15001 fi
15002 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15003 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15004 if test $ac_cv_func_dlopen = yes; then
15005   lt_cv_dlopen="dlopen"
15006 else
15007   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15008 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15009 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15010   echo $ECHO_N "(cached) $ECHO_C" >&6
15011 else
15012   ac_check_lib_save_LIBS=$LIBS
15013 LIBS="-ldl  $LIBS"
15014 cat >conftest.$ac_ext <<_ACEOF
15015 /* confdefs.h.  */
15016 _ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h.  */
15020
15021 /* Override any gcc2 internal prototype to avoid an error.  */
15022 #ifdef __cplusplus
15023 extern "C"
15024 #endif
15025 /* We use char because int might match the return type of a gcc2
15026    builtin and then its argument prototype would still apply.  */
15027 char dlopen ();
15028 int
15029 main ()
15030 {
15031 dlopen ();
15032   ;
15033   return 0;
15034 }
15035 _ACEOF
15036 rm -f conftest.$ac_objext conftest$ac_exeext
15037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15038   (eval $ac_link) 2>conftest.er1
15039   ac_status=$?
15040   grep -v '^ *+' conftest.er1 >conftest.err
15041   rm -f conftest.er1
15042   cat conftest.err >&5
15043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044   (exit $ac_status); } &&
15045          { ac_try='test -z "$ac_c_werror_flag"
15046                          || test ! -s conftest.err'
15047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048   (eval $ac_try) 2>&5
15049   ac_status=$?
15050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051   (exit $ac_status); }; } &&
15052          { ac_try='test -s conftest$ac_exeext'
15053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054   (eval $ac_try) 2>&5
15055   ac_status=$?
15056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057   (exit $ac_status); }; }; then
15058   ac_cv_lib_dl_dlopen=yes
15059 else
15060   echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15062
15063 ac_cv_lib_dl_dlopen=no
15064 fi
15065 rm -f conftest.err conftest.$ac_objext \
15066       conftest$ac_exeext conftest.$ac_ext
15067 LIBS=$ac_check_lib_save_LIBS
15068 fi
15069 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15070 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15071 if test $ac_cv_lib_dl_dlopen = yes; then
15072   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15073 else
15074   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15075 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15076 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15077   echo $ECHO_N "(cached) $ECHO_C" >&6
15078 else
15079   ac_check_lib_save_LIBS=$LIBS
15080 LIBS="-lsvld  $LIBS"
15081 cat >conftest.$ac_ext <<_ACEOF
15082 /* confdefs.h.  */
15083 _ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h.  */
15087
15088 /* Override any gcc2 internal prototype to avoid an error.  */
15089 #ifdef __cplusplus
15090 extern "C"
15091 #endif
15092 /* We use char because int might match the return type of a gcc2
15093    builtin and then its argument prototype would still apply.  */
15094 char dlopen ();
15095 int
15096 main ()
15097 {
15098 dlopen ();
15099   ;
15100   return 0;
15101 }
15102 _ACEOF
15103 rm -f conftest.$ac_objext conftest$ac_exeext
15104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15105   (eval $ac_link) 2>conftest.er1
15106   ac_status=$?
15107   grep -v '^ *+' conftest.er1 >conftest.err
15108   rm -f conftest.er1
15109   cat conftest.err >&5
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); } &&
15112          { ac_try='test -z "$ac_c_werror_flag"
15113                          || test ! -s conftest.err'
15114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115   (eval $ac_try) 2>&5
15116   ac_status=$?
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); }; } &&
15119          { ac_try='test -s conftest$ac_exeext'
15120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121   (eval $ac_try) 2>&5
15122   ac_status=$?
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); }; }; then
15125   ac_cv_lib_svld_dlopen=yes
15126 else
15127   echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15129
15130 ac_cv_lib_svld_dlopen=no
15131 fi
15132 rm -f conftest.err conftest.$ac_objext \
15133       conftest$ac_exeext conftest.$ac_ext
15134 LIBS=$ac_check_lib_save_LIBS
15135 fi
15136 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15137 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15138 if test $ac_cv_lib_svld_dlopen = yes; then
15139   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15140 else
15141   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15142 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15143 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15144   echo $ECHO_N "(cached) $ECHO_C" >&6
15145 else
15146   ac_check_lib_save_LIBS=$LIBS
15147 LIBS="-ldld  $LIBS"
15148 cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h.  */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h.  */
15154
15155 /* Override any gcc2 internal prototype to avoid an error.  */
15156 #ifdef __cplusplus
15157 extern "C"
15158 #endif
15159 /* We use char because int might match the return type of a gcc2
15160    builtin and then its argument prototype would still apply.  */
15161 char dld_link ();
15162 int
15163 main ()
15164 {
15165 dld_link ();
15166   ;
15167   return 0;
15168 }
15169 _ACEOF
15170 rm -f conftest.$ac_objext conftest$ac_exeext
15171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15172   (eval $ac_link) 2>conftest.er1
15173   ac_status=$?
15174   grep -v '^ *+' conftest.er1 >conftest.err
15175   rm -f conftest.er1
15176   cat conftest.err >&5
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); } &&
15179          { ac_try='test -z "$ac_c_werror_flag"
15180                          || test ! -s conftest.err'
15181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182   (eval $ac_try) 2>&5
15183   ac_status=$?
15184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185   (exit $ac_status); }; } &&
15186          { ac_try='test -s conftest$ac_exeext'
15187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188   (eval $ac_try) 2>&5
15189   ac_status=$?
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); }; }; then
15192   ac_cv_lib_dld_dld_link=yes
15193 else
15194   echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15196
15197 ac_cv_lib_dld_dld_link=no
15198 fi
15199 rm -f conftest.err conftest.$ac_objext \
15200       conftest$ac_exeext conftest.$ac_ext
15201 LIBS=$ac_check_lib_save_LIBS
15202 fi
15203 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15204 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15205 if test $ac_cv_lib_dld_dld_link = yes; then
15206   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15207 fi
15208
15209
15210 fi
15211
15212
15213 fi
15214
15215
15216 fi
15217
15218
15219 fi
15220
15221
15222 fi
15223
15224     ;;
15225   esac
15226
15227   if test "x$lt_cv_dlopen" != xno; then
15228     enable_dlopen=yes
15229   else
15230     enable_dlopen=no
15231   fi
15232
15233   case $lt_cv_dlopen in
15234   dlopen)
15235     save_CPPFLAGS="$CPPFLAGS"
15236     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15237
15238     save_LDFLAGS="$LDFLAGS"
15239     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15240
15241     save_LIBS="$LIBS"
15242     LIBS="$lt_cv_dlopen_libs $LIBS"
15243
15244     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15245 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15246 if test "${lt_cv_dlopen_self+set}" = set; then
15247   echo $ECHO_N "(cached) $ECHO_C" >&6
15248 else
15249           if test "$cross_compiling" = yes; then :
15250   lt_cv_dlopen_self=cross
15251 else
15252   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15253   lt_status=$lt_dlunknown
15254   cat > conftest.$ac_ext <<EOF
15255 #line 15255 "configure"
15256 #include "confdefs.h"
15257
15258 #if HAVE_DLFCN_H
15259 #include <dlfcn.h>
15260 #endif
15261
15262 #include <stdio.h>
15263
15264 #ifdef RTLD_GLOBAL
15265 #  define LT_DLGLOBAL           RTLD_GLOBAL
15266 #else
15267 #  ifdef DL_GLOBAL
15268 #    define LT_DLGLOBAL         DL_GLOBAL
15269 #  else
15270 #    define LT_DLGLOBAL         0
15271 #  endif
15272 #endif
15273
15274 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15275    find out it does not work in some platform. */
15276 #ifndef LT_DLLAZY_OR_NOW
15277 #  ifdef RTLD_LAZY
15278 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15279 #  else
15280 #    ifdef DL_LAZY
15281 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15282 #    else
15283 #      ifdef RTLD_NOW
15284 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15285 #      else
15286 #        ifdef DL_NOW
15287 #          define LT_DLLAZY_OR_NOW      DL_NOW
15288 #        else
15289 #          define LT_DLLAZY_OR_NOW      0
15290 #        endif
15291 #      endif
15292 #    endif
15293 #  endif
15294 #endif
15295
15296 #ifdef __cplusplus
15297 extern "C" void exit (int);
15298 #endif
15299
15300 void fnord() { int i=42;}
15301 int main ()
15302 {
15303   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15304   int status = $lt_dlunknown;
15305
15306   if (self)
15307     {
15308       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15309       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15310       /* dlclose (self); */
15311     }
15312
15313     exit (status);
15314 }
15315 EOF
15316   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15317   (eval $ac_link) 2>&5
15318   ac_status=$?
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15321     (./conftest; exit; ) 2>/dev/null
15322     lt_status=$?
15323     case x$lt_status in
15324       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15325       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15326       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15327     esac
15328   else :
15329     # compilation failed
15330     lt_cv_dlopen_self=no
15331   fi
15332 fi
15333 rm -fr conftest*
15334
15335
15336 fi
15337 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15338 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15339
15340     if test "x$lt_cv_dlopen_self" = xyes; then
15341       LDFLAGS="$LDFLAGS $link_static_flag"
15342       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15343 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15344 if test "${lt_cv_dlopen_self_static+set}" = set; then
15345   echo $ECHO_N "(cached) $ECHO_C" >&6
15346 else
15347           if test "$cross_compiling" = yes; then :
15348   lt_cv_dlopen_self_static=cross
15349 else
15350   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15351   lt_status=$lt_dlunknown
15352   cat > conftest.$ac_ext <<EOF
15353 #line 15353 "configure"
15354 #include "confdefs.h"
15355
15356 #if HAVE_DLFCN_H
15357 #include <dlfcn.h>
15358 #endif
15359
15360 #include <stdio.h>
15361
15362 #ifdef RTLD_GLOBAL
15363 #  define LT_DLGLOBAL           RTLD_GLOBAL
15364 #else
15365 #  ifdef DL_GLOBAL
15366 #    define LT_DLGLOBAL         DL_GLOBAL
15367 #  else
15368 #    define LT_DLGLOBAL         0
15369 #  endif
15370 #endif
15371
15372 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15373    find out it does not work in some platform. */
15374 #ifndef LT_DLLAZY_OR_NOW
15375 #  ifdef RTLD_LAZY
15376 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15377 #  else
15378 #    ifdef DL_LAZY
15379 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15380 #    else
15381 #      ifdef RTLD_NOW
15382 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15383 #      else
15384 #        ifdef DL_NOW
15385 #          define LT_DLLAZY_OR_NOW      DL_NOW
15386 #        else
15387 #          define LT_DLLAZY_OR_NOW      0
15388 #        endif
15389 #      endif
15390 #    endif
15391 #  endif
15392 #endif
15393
15394 #ifdef __cplusplus
15395 extern "C" void exit (int);
15396 #endif
15397
15398 void fnord() { int i=42;}
15399 int main ()
15400 {
15401   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15402   int status = $lt_dlunknown;
15403
15404   if (self)
15405     {
15406       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15407       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15408       /* dlclose (self); */
15409     }
15410
15411     exit (status);
15412 }
15413 EOF
15414   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15415   (eval $ac_link) 2>&5
15416   ac_status=$?
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15419     (./conftest; exit; ) 2>/dev/null
15420     lt_status=$?
15421     case x$lt_status in
15422       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15423       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15424       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15425     esac
15426   else :
15427     # compilation failed
15428     lt_cv_dlopen_self_static=no
15429   fi
15430 fi
15431 rm -fr conftest*
15432
15433
15434 fi
15435 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15436 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15437     fi
15438
15439     CPPFLAGS="$save_CPPFLAGS"
15440     LDFLAGS="$save_LDFLAGS"
15441     LIBS="$save_LIBS"
15442     ;;
15443   esac
15444
15445   case $lt_cv_dlopen_self in
15446   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15447   *) enable_dlopen_self=unknown ;;
15448   esac
15449
15450   case $lt_cv_dlopen_self_static in
15451   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15452   *) enable_dlopen_self_static=unknown ;;
15453   esac
15454 fi
15455
15456
15457 # Report which librarie types wil actually be built
15458 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15459 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15460 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15461 echo "${ECHO_T}$can_build_shared" >&6
15462
15463 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15464 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15465 test "$can_build_shared" = "no" && enable_shared=no
15466
15467 # On AIX, shared libraries and static libraries use the same namespace, and
15468 # are all built from PIC.
15469 case "$host_os" in
15470 aix3*)
15471   test "$enable_shared" = yes && enable_static=no
15472   if test -n "$RANLIB"; then
15473     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15474     postinstall_cmds='$RANLIB $lib'
15475   fi
15476   ;;
15477
15478 aix4* | aix5*)
15479   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15480     test "$enable_shared" = yes && enable_static=no
15481   fi
15482   ;;
15483   darwin* | rhapsody*)
15484   if test "$GCC" = yes; then
15485     archive_cmds_need_lc=no
15486     case "$host_os" in
15487     rhapsody* | darwin1.[012])
15488       allow_undefined_flag='-undefined suppress'
15489       ;;
15490     *) # Darwin 1.3 on
15491       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15492         allow_undefined_flag='-flat_namespace -undefined suppress'
15493       else
15494         case ${MACOSX_DEPLOYMENT_TARGET} in
15495           10.[012])
15496             allow_undefined_flag='-flat_namespace -undefined suppress'
15497             ;;
15498           10.*)
15499             allow_undefined_flag='-undefined dynamic_lookup'
15500             ;;
15501         esac
15502       fi
15503       ;;
15504     esac
15505     output_verbose_link_cmd='echo'
15506     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
15507     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15508     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15509     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}'
15510     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}'
15511     hardcode_direct=no
15512     hardcode_automatic=yes
15513     hardcode_shlibpath_var=unsupported
15514     whole_archive_flag_spec='-all_load $convenience'
15515     link_all_deplibs=yes
15516   else
15517     ld_shlibs=no
15518   fi
15519     ;;
15520 esac
15521 echo "$as_me:$LINENO: result: $enable_shared" >&5
15522 echo "${ECHO_T}$enable_shared" >&6
15523
15524 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15525 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15526 # Make sure either enable_shared or enable_static is yes.
15527 test "$enable_shared" = yes || enable_static=yes
15528 echo "$as_me:$LINENO: result: $enable_static" >&5
15529 echo "${ECHO_T}$enable_static" >&6
15530
15531 # The else clause should only fire when bootstrapping the
15532 # libtool distribution, otherwise you forgot to ship ltmain.sh
15533 # with your package, and you will get complaints that there are
15534 # no rules to generate ltmain.sh.
15535 if test -f "$ltmain"; then
15536   # See if we are running on zsh, and set the options which allow our commands through
15537   # without removal of \ escapes.
15538   if test -n "${ZSH_VERSION+set}" ; then
15539     setopt NO_GLOB_SUBST
15540   fi
15541   # Now quote all the things that may contain metacharacters while being
15542   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15543   # variables and quote the copies for generation of the libtool script.
15544   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15545     SED SHELL STRIP \
15546     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15547     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15548     deplibs_check_method reload_flag reload_cmds need_locks \
15549     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15550     lt_cv_sys_global_symbol_to_c_name_address \
15551     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15552     old_postinstall_cmds old_postuninstall_cmds \
15553     compiler \
15554     CC \
15555     LD \
15556     lt_prog_compiler_wl \
15557     lt_prog_compiler_pic \
15558     lt_prog_compiler_static \
15559     lt_prog_compiler_no_builtin_flag \
15560     export_dynamic_flag_spec \
15561     thread_safe_flag_spec \
15562     whole_archive_flag_spec \
15563     enable_shared_with_static_runtimes \
15564     old_archive_cmds \
15565     old_archive_from_new_cmds \
15566     predep_objects \
15567     postdep_objects \
15568     predeps \
15569     postdeps \
15570     compiler_lib_search_path \
15571     archive_cmds \
15572     archive_expsym_cmds \
15573     postinstall_cmds \
15574     postuninstall_cmds \
15575     old_archive_from_expsyms_cmds \
15576     allow_undefined_flag \
15577     no_undefined_flag \
15578     export_symbols_cmds \
15579     hardcode_libdir_flag_spec \
15580     hardcode_libdir_flag_spec_ld \
15581     hardcode_libdir_separator \
15582     hardcode_automatic \
15583     module_cmds \
15584     module_expsym_cmds \
15585     lt_cv_prog_compiler_c_o \
15586     exclude_expsyms \
15587     include_expsyms; do
15588
15589     case $var in
15590     old_archive_cmds | \
15591     old_archive_from_new_cmds | \
15592     archive_cmds | \
15593     archive_expsym_cmds | \
15594     module_cmds | \
15595     module_expsym_cmds | \
15596     old_archive_from_expsyms_cmds | \
15597     export_symbols_cmds | \
15598     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15599     postinstall_cmds | postuninstall_cmds | \
15600     old_postinstall_cmds | old_postuninstall_cmds | \
15601     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15602       # Double-quote double-evaled strings.
15603       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15604       ;;
15605     *)
15606       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15607       ;;
15608     esac
15609   done
15610
15611   case $lt_echo in
15612   *'\$0 --fallback-echo"')
15613     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15614     ;;
15615   esac
15616
15617 cfgfile="${ofile}T"
15618   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15619   $rm -f "$cfgfile"
15620   { echo "$as_me:$LINENO: creating $ofile" >&5
15621 echo "$as_me: creating $ofile" >&6;}
15622
15623   cat <<__EOF__ >> "$cfgfile"
15624 #! $SHELL
15625
15626 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15627 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15628 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15629 #
15630 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15631 # Free Software Foundation, Inc.
15632 #
15633 # This file is part of GNU Libtool:
15634 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15635 #
15636 # This program is free software; you can redistribute it and/or modify
15637 # it under the terms of the GNU General Public License as published by
15638 # the Free Software Foundation; either version 2 of the License, or
15639 # (at your option) any later version.
15640 #
15641 # This program is distributed in the hope that it will be useful, but
15642 # WITHOUT ANY WARRANTY; without even the implied warranty of
15643 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15644 # General Public License for more details.
15645 #
15646 # You should have received a copy of the GNU General Public License
15647 # along with this program; if not, write to the Free Software
15648 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15649 #
15650 # As a special exception to the GNU General Public License, if you
15651 # distribute this file as part of a program that contains a
15652 # configuration script generated by Autoconf, you may include it under
15653 # the same distribution terms that you use for the rest of that program.
15654
15655 # A sed program that does not truncate output.
15656 SED=$lt_SED
15657
15658 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15659 Xsed="$SED -e s/^X//"
15660
15661 # The HP-UX ksh and POSIX shell print the target directory to stdout
15662 # if CDPATH is set.
15663 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
15664
15665 # The names of the tagged configurations supported by this script.
15666 available_tags=
15667
15668 # ### BEGIN LIBTOOL CONFIG
15669
15670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15671
15672 # Shell to use when invoking shell scripts.
15673 SHELL=$lt_SHELL
15674
15675 # Whether or not to build shared libraries.
15676 build_libtool_libs=$enable_shared
15677
15678 # Whether or not to build static libraries.
15679 build_old_libs=$enable_static
15680
15681 # Whether or not to add -lc for building shared libraries.
15682 build_libtool_need_lc=$archive_cmds_need_lc
15683
15684 # Whether or not to disallow shared libs when runtime libs are static
15685 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15686
15687 # Whether or not to optimize for fast installation.
15688 fast_install=$enable_fast_install
15689
15690 # The host system.
15691 host_alias=$host_alias
15692 host=$host
15693
15694 # An echo program that does not interpret backslashes.
15695 echo=$lt_echo
15696
15697 # The archiver.
15698 AR=$lt_AR
15699 AR_FLAGS=$lt_AR_FLAGS
15700
15701 # A C compiler.
15702 LTCC=$lt_LTCC
15703
15704 # A language-specific compiler.
15705 CC=$lt_compiler
15706
15707 # Is the compiler the GNU C compiler?
15708 with_gcc=$GCC
15709
15710 # An ERE matcher.
15711 EGREP=$lt_EGREP
15712
15713 # The linker used to build libraries.
15714 LD=$lt_LD
15715
15716 # Whether we need hard or soft links.
15717 LN_S=$lt_LN_S
15718
15719 # A BSD-compatible nm program.
15720 NM=$lt_NM
15721
15722 # A symbol stripping program
15723 STRIP=$lt_STRIP
15724
15725 # Used to examine libraries when file_magic_cmd begins "file"
15726 MAGIC_CMD=$MAGIC_CMD
15727
15728 # Used on cygwin: DLL creation program.
15729 DLLTOOL="$DLLTOOL"
15730
15731 # Used on cygwin: object dumper.
15732 OBJDUMP="$OBJDUMP"
15733
15734 # Used on cygwin: assembler.
15735 AS="$AS"
15736
15737 # The name of the directory that contains temporary libtool files.
15738 objdir=$objdir
15739
15740 # How to create reloadable object files.
15741 reload_flag=$lt_reload_flag
15742 reload_cmds=$lt_reload_cmds
15743
15744 # How to pass a linker flag through the compiler.
15745 wl=$lt_lt_prog_compiler_wl
15746
15747 # Object file suffix (normally "o").
15748 objext="$ac_objext"
15749
15750 # Old archive suffix (normally "a").
15751 libext="$libext"
15752
15753 # Shared library suffix (normally ".so").
15754 shrext_cmds='$shrext_cmds'
15755
15756 # Executable file suffix (normally "").
15757 exeext="$exeext"
15758
15759 # Additional compiler flags for building library objects.
15760 pic_flag=$lt_lt_prog_compiler_pic
15761 pic_mode=$pic_mode
15762
15763 # What is the maximum length of a command?
15764 max_cmd_len=$lt_cv_sys_max_cmd_len
15765
15766 # Does compiler simultaneously support -c and -o options?
15767 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15768
15769 # Must we lock files when doing compilation ?
15770 need_locks=$lt_need_locks
15771
15772 # Do we need the lib prefix for modules?
15773 need_lib_prefix=$need_lib_prefix
15774
15775 # Do we need a version for libraries?
15776 need_version=$need_version
15777
15778 # Whether dlopen is supported.
15779 dlopen_support=$enable_dlopen
15780
15781 # Whether dlopen of programs is supported.
15782 dlopen_self=$enable_dlopen_self
15783
15784 # Whether dlopen of statically linked programs is supported.
15785 dlopen_self_static=$enable_dlopen_self_static
15786
15787 # Compiler flag to prevent dynamic linking.
15788 link_static_flag=$lt_lt_prog_compiler_static
15789
15790 # Compiler flag to turn off builtin functions.
15791 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15792
15793 # Compiler flag to allow reflexive dlopens.
15794 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15795
15796 # Compiler flag to generate shared objects directly from archives.
15797 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15798
15799 # Compiler flag to generate thread-safe objects.
15800 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15801
15802 # Library versioning type.
15803 version_type=$version_type
15804
15805 # Format of library name prefix.
15806 libname_spec=$lt_libname_spec
15807
15808 # List of archive names.  First name is the real one, the rest are links.
15809 # The last name is the one that the linker finds with -lNAME.
15810 library_names_spec=$lt_library_names_spec
15811
15812 # The coded name of the library, if different from the real name.
15813 soname_spec=$lt_soname_spec
15814
15815 # Commands used to build and install an old-style archive.
15816 RANLIB=$lt_RANLIB
15817 old_archive_cmds=$lt_old_archive_cmds
15818 old_postinstall_cmds=$lt_old_postinstall_cmds
15819 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15820
15821 # Create an old-style archive from a shared archive.
15822 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15823
15824 # Create a temporary old-style archive to link instead of a shared archive.
15825 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15826
15827 # Commands used to build and install a shared archive.
15828 archive_cmds=$lt_archive_cmds
15829 archive_expsym_cmds=$lt_archive_expsym_cmds
15830 postinstall_cmds=$lt_postinstall_cmds
15831 postuninstall_cmds=$lt_postuninstall_cmds
15832
15833 # Commands used to build a loadable module (assumed same as above if empty)
15834 module_cmds=$lt_module_cmds
15835 module_expsym_cmds=$lt_module_expsym_cmds
15836
15837 # Commands to strip libraries.
15838 old_striplib=$lt_old_striplib
15839 striplib=$lt_striplib
15840
15841 # Dependencies to place before the objects being linked to create a
15842 # shared library.
15843 predep_objects=$lt_predep_objects
15844
15845 # Dependencies to place after the objects being linked to create a
15846 # shared library.
15847 postdep_objects=$lt_postdep_objects
15848
15849 # Dependencies to place before the objects being linked to create a
15850 # shared library.
15851 predeps=$lt_predeps
15852
15853 # Dependencies to place after the objects being linked to create a
15854 # shared library.
15855 postdeps=$lt_postdeps
15856
15857 # The library search path used internally by the compiler when linking
15858 # a shared library.
15859 compiler_lib_search_path=$lt_compiler_lib_search_path
15860
15861 # Method to check whether dependent libraries are shared objects.
15862 deplibs_check_method=$lt_deplibs_check_method
15863
15864 # Command to use when deplibs_check_method == file_magic.
15865 file_magic_cmd=$lt_file_magic_cmd
15866
15867 # Flag that allows shared libraries with undefined symbols to be built.
15868 allow_undefined_flag=$lt_allow_undefined_flag
15869
15870 # Flag that forces no undefined symbols.
15871 no_undefined_flag=$lt_no_undefined_flag
15872
15873 # Commands used to finish a libtool library installation in a directory.
15874 finish_cmds=$lt_finish_cmds
15875
15876 # Same as above, but a single script fragment to be evaled but not shown.
15877 finish_eval=$lt_finish_eval
15878
15879 # Take the output of nm and produce a listing of raw symbols and C names.
15880 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15881
15882 # Transform the output of nm in a proper C declaration
15883 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15884
15885 # Transform the output of nm in a C name address pair
15886 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15887
15888 # This is the shared library runtime path variable.
15889 runpath_var=$runpath_var
15890
15891 # This is the shared library path variable.
15892 shlibpath_var=$shlibpath_var
15893
15894 # Is shlibpath searched before the hard-coded library search path?
15895 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15896
15897 # How to hardcode a shared library path into an executable.
15898 hardcode_action=$hardcode_action
15899
15900 # Whether we should hardcode library paths into libraries.
15901 hardcode_into_libs=$hardcode_into_libs
15902
15903 # Flag to hardcode \$libdir into a binary during linking.
15904 # This must work even if \$libdir does not exist.
15905 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15906
15907 # If ld is used when linking, flag to hardcode \$libdir into
15908 # a binary during linking. This must work even if \$libdir does
15909 # not exist.
15910 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15911
15912 # Whether we need a single -rpath flag with a separated argument.
15913 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15914
15915 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15916 # resulting binary.
15917 hardcode_direct=$hardcode_direct
15918
15919 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15920 # resulting binary.
15921 hardcode_minus_L=$hardcode_minus_L
15922
15923 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15924 # the resulting binary.
15925 hardcode_shlibpath_var=$hardcode_shlibpath_var
15926
15927 # Set to yes if building a shared library automatically hardcodes DIR into the library
15928 # and all subsequent libraries and executables linked against it.
15929 hardcode_automatic=$hardcode_automatic
15930
15931 # Variables whose values should be saved in libtool wrapper scripts and
15932 # restored at relink time.
15933 variables_saved_for_relink="$variables_saved_for_relink"
15934
15935 # Whether libtool must link a program against all its dependency libraries.
15936 link_all_deplibs=$link_all_deplibs
15937
15938 # Compile-time system search path for libraries
15939 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15940
15941 # Run-time system search path for libraries
15942 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15943
15944 # Fix the shell variable \$srcfile for the compiler.
15945 fix_srcfile_path="$fix_srcfile_path"
15946
15947 # Set to yes if exported symbols are required.
15948 always_export_symbols=$always_export_symbols
15949
15950 # The commands to list exported symbols.
15951 export_symbols_cmds=$lt_export_symbols_cmds
15952
15953 # The commands to extract the exported symbol list from a shared archive.
15954 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15955
15956 # Symbols that should not be listed in the preloaded symbols.
15957 exclude_expsyms=$lt_exclude_expsyms
15958
15959 # Symbols that must always be exported.
15960 include_expsyms=$lt_include_expsyms
15961
15962 # ### END LIBTOOL CONFIG
15963
15964 __EOF__
15965
15966
15967   case $host_os in
15968   aix3*)
15969     cat <<\EOF >> "$cfgfile"
15970
15971 # AIX sometimes has problems with the GCC collect2 program.  For some
15972 # reason, if we set the COLLECT_NAMES environment variable, the problems
15973 # vanish in a puff of smoke.
15974 if test "X${COLLECT_NAMES+set}" != Xset; then
15975   COLLECT_NAMES=
15976   export COLLECT_NAMES
15977 fi
15978 EOF
15979     ;;
15980   esac
15981
15982   # We use sed instead of cat because bash on DJGPP gets confused if
15983   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15984   # text mode, it properly converts lines to CR/LF.  This bash problem
15985   # is reportedly fixed, but why not run on old versions too?
15986   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15987
15988   mv -f "$cfgfile" "$ofile" || \
15989     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15990   chmod +x "$ofile"
15991
15992 else
15993   # If there is no Makefile yet, we rely on a make rule to execute
15994   # `config.status --recheck' to rerun these tests and create the
15995   # libtool script then.
15996   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15997   if test -f "$ltmain_in"; then
15998     test -f Makefile && make "$ltmain"
15999   fi
16000 fi
16001
16002
16003 ac_ext=c
16004 ac_cpp='$CPP $CPPFLAGS'
16005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16008
16009 CC="$lt_save_CC"
16010
16011
16012 # Check whether --with-tags or --without-tags was given.
16013 if test "${with_tags+set}" = set; then
16014   withval="$with_tags"
16015   tagnames="$withval"
16016 fi;
16017
16018 if test -f "$ltmain" && test -n "$tagnames"; then
16019   if test ! -f "${ofile}"; then
16020     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16021 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16022   fi
16023
16024   if test -z "$LTCC"; then
16025     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16026     if test -z "$LTCC"; then
16027       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16028 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16029     else
16030       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16031 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16032     fi
16033   fi
16034
16035   # Extract list of available tagged configurations in $ofile.
16036   # Note that this assumes the entire list is on one line.
16037   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16038
16039   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16040   for tagname in $tagnames; do
16041     IFS="$lt_save_ifs"
16042     # Check whether tagname contains only valid characters
16043     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16044     "") ;;
16045     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16046 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16047    { (exit 1); exit 1; }; }
16048         ;;
16049     esac
16050
16051     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16052     then
16053       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16054 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16055    { (exit 1); exit 1; }; }
16056     fi
16057
16058     # Update the list of available tags.
16059     if test -n "$tagname"; then
16060       echo appending configuration tag \"$tagname\" to $ofile
16061
16062       case $tagname in
16063       CXX)
16064         if test -n "$CXX" && test "X$CXX" != "Xno"; then
16065           ac_ext=cc
16066 ac_cpp='$CXXCPP $CPPFLAGS'
16067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16070
16071
16072
16073
16074 archive_cmds_need_lc_CXX=no
16075 allow_undefined_flag_CXX=
16076 always_export_symbols_CXX=no
16077 archive_expsym_cmds_CXX=
16078 export_dynamic_flag_spec_CXX=
16079 hardcode_direct_CXX=no
16080 hardcode_libdir_flag_spec_CXX=
16081 hardcode_libdir_flag_spec_ld_CXX=
16082 hardcode_libdir_separator_CXX=
16083 hardcode_minus_L_CXX=no
16084 hardcode_automatic_CXX=no
16085 module_cmds_CXX=
16086 module_expsym_cmds_CXX=
16087 link_all_deplibs_CXX=unknown
16088 old_archive_cmds_CXX=$old_archive_cmds
16089 no_undefined_flag_CXX=
16090 whole_archive_flag_spec_CXX=
16091 enable_shared_with_static_runtimes_CXX=no
16092
16093 # Dependencies to place before and after the object being linked:
16094 predep_objects_CXX=
16095 postdep_objects_CXX=
16096 predeps_CXX=
16097 postdeps_CXX=
16098 compiler_lib_search_path_CXX=
16099
16100 # Source file extension for C++ test sources.
16101 ac_ext=cc
16102
16103 # Object file extension for compiled C++ test sources.
16104 objext=o
16105 objext_CXX=$objext
16106
16107 # Code to be used in simple compile tests
16108 lt_simple_compile_test_code="int some_variable = 0;\n"
16109
16110 # Code to be used in simple link tests
16111 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
16112
16113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16114
16115 # If no C compiler was specified, use CC.
16116 LTCC=${LTCC-"$CC"}
16117
16118 # Allow CC to be a program name with arguments.
16119 compiler=$CC
16120
16121
16122 # Allow CC to be a program name with arguments.
16123 lt_save_CC=$CC
16124 lt_save_LD=$LD
16125 lt_save_GCC=$GCC
16126 GCC=$GXX
16127 lt_save_with_gnu_ld=$with_gnu_ld
16128 lt_save_path_LD=$lt_cv_path_LD
16129 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16130   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16131 else
16132   unset lt_cv_prog_gnu_ld
16133 fi
16134 if test -n "${lt_cv_path_LDCXX+set}"; then
16135   lt_cv_path_LD=$lt_cv_path_LDCXX
16136 else
16137   unset lt_cv_path_LD
16138 fi
16139 test -z "${LDCXX+set}" || LD=$LDCXX
16140 CC=${CXX-"c++"}
16141 compiler=$CC
16142 compiler_CXX=$CC
16143 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
16144
16145 # We don't want -fno-exception wen compiling C++ code, so set the
16146 # no_builtin_flag separately
16147 if test "$GXX" = yes; then
16148   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16149 else
16150   lt_prog_compiler_no_builtin_flag_CXX=
16151 fi
16152
16153 if test "$GXX" = yes; then
16154   # Set up default GNU C++ configuration
16155
16156
16157 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16158 if test "${with_gnu_ld+set}" = set; then
16159   withval="$with_gnu_ld"
16160   test "$withval" = no || with_gnu_ld=yes
16161 else
16162   with_gnu_ld=no
16163 fi;
16164 ac_prog=ld
16165 if test "$GCC" = yes; then
16166   # Check if gcc -print-prog-name=ld gives a path.
16167   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16168 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
16169   case $host in
16170   *-*-mingw*)
16171     # gcc leaves a trailing carriage return which upsets mingw
16172     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16173   *)
16174     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16175   esac
16176   case $ac_prog in
16177     # Accept absolute paths.
16178     [\\/]* | ?:[\\/]*)
16179       re_direlt='/[^/][^/]*/\.\./'
16180       # Canonicalize the pathname of ld
16181       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
16182       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16183         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
16184       done
16185       test -z "$LD" && LD="$ac_prog"
16186       ;;
16187   "")
16188     # If it fails, then pretend we aren't using GCC.
16189     ac_prog=ld
16190     ;;
16191   *)
16192     # If it is relative, then search for the first ld in PATH.
16193     with_gnu_ld=unknown
16194     ;;
16195   esac
16196 elif test "$with_gnu_ld" = yes; then
16197   echo "$as_me:$LINENO: checking for GNU ld" >&5
16198 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16199 else
16200   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16201 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16202 fi
16203 if test "${lt_cv_path_LD+set}" = set; then
16204   echo $ECHO_N "(cached) $ECHO_C" >&6
16205 else
16206   if test -z "$LD"; then
16207   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16208   for ac_dir in $PATH; do
16209     IFS="$lt_save_ifs"
16210     test -z "$ac_dir" && ac_dir=.
16211     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16212       lt_cv_path_LD="$ac_dir/$ac_prog"
16213       # Check to see if the program is GNU ld.  I'd rather use --version,
16214       # but apparently some GNU ld's only accept -v.
16215       # Break only if it was the GNU/non-GNU ld that we prefer.
16216       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16217       *GNU* | *'with BFD'*)
16218         test "$with_gnu_ld" != no && break
16219         ;;
16220       *)
16221         test "$with_gnu_ld" != yes && break
16222         ;;
16223       esac
16224     fi
16225   done
16226   IFS="$lt_save_ifs"
16227 else
16228   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16229 fi
16230 fi
16231
16232 LD="$lt_cv_path_LD"
16233 if test -n "$LD"; then
16234   echo "$as_me:$LINENO: result: $LD" >&5
16235 echo "${ECHO_T}$LD" >&6
16236 else
16237   echo "$as_me:$LINENO: result: no" >&5
16238 echo "${ECHO_T}no" >&6
16239 fi
16240 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16241 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16242    { (exit 1); exit 1; }; }
16243 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16244 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16245 if test "${lt_cv_prog_gnu_ld+set}" = set; then
16246   echo $ECHO_N "(cached) $ECHO_C" >&6
16247 else
16248   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16249 case `$LD -v 2>&1 </dev/null` in
16250 *GNU* | *'with BFD'*)
16251   lt_cv_prog_gnu_ld=yes
16252   ;;
16253 *)
16254   lt_cv_prog_gnu_ld=no
16255   ;;
16256 esac
16257 fi
16258 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16259 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
16260 with_gnu_ld=$lt_cv_prog_gnu_ld
16261
16262
16263
16264   # Check if GNU C++ uses GNU ld as the underlying linker, since the
16265   # archiving commands below assume that GNU ld is being used.
16266   if test "$with_gnu_ld" = yes; then
16267     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16268     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'
16269
16270     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16271     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16272
16273     # If archive_cmds runs LD, not CC, wlarc should be empty
16274     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16275     #     investigate it a little bit more. (MM)
16276     wlarc='${wl}'
16277
16278     # ancient GNU ld didn't support --whole-archive et. al.
16279     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
16280         grep 'no-whole-archive' > /dev/null; then
16281       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16282     else
16283       whole_archive_flag_spec_CXX=
16284     fi
16285   else
16286     with_gnu_ld=no
16287     wlarc=
16288
16289     # A generic and very simple default shared library creation
16290     # command for GNU C++ for the case where it uses the native
16291     # linker, instead of GNU ld.  If possible, this setting should
16292     # overridden to take advantage of the native linker features on
16293     # the platform it is being used on.
16294     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16295   fi
16296
16297   # Commands to make compiler produce verbose output that lists
16298   # what "hidden" libraries, object files and flags are used when
16299   # linking a shared library.
16300   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16301
16302 else
16303   GXX=no
16304   with_gnu_ld=no
16305   wlarc=
16306 fi
16307
16308 # PORTME: fill in a description of your system's C++ link characteristics
16309 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16310 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16311 ld_shlibs_CXX=yes
16312 case $host_os in
16313   aix3*)
16314     # FIXME: insert proper C++ library support
16315     ld_shlibs_CXX=no
16316     ;;
16317   aix4* | aix5*)
16318     if test "$host_cpu" = ia64; then
16319       # On IA64, the linker does run time linking by default, so we don't
16320       # have to do anything special.
16321       aix_use_runtimelinking=no
16322       exp_sym_flag='-Bexport'
16323       no_entry_flag=""
16324     else
16325       aix_use_runtimelinking=no
16326
16327       # Test if we are trying to use run time linking or normal
16328       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16329       # need to do runtime linking.
16330       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16331         for ld_flag in $LDFLAGS; do
16332           case $ld_flag in
16333           *-brtl*)
16334             aix_use_runtimelinking=yes
16335             break
16336             ;;
16337           esac
16338         done
16339       esac
16340
16341       exp_sym_flag='-bexport'
16342       no_entry_flag='-bnoentry'
16343     fi
16344
16345     # When large executables or shared objects are built, AIX ld can
16346     # have problems creating the table of contents.  If linking a library
16347     # or program results in "error TOC overflow" add -mminimal-toc to
16348     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16349     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16350
16351     archive_cmds_CXX=''
16352     hardcode_direct_CXX=yes
16353     hardcode_libdir_separator_CXX=':'
16354     link_all_deplibs_CXX=yes
16355
16356     if test "$GXX" = yes; then
16357       case $host_os in aix4.012|aix4.012.*)
16358       # We only want to do this on AIX 4.2 and lower, the check
16359       # below for broken collect2 doesn't work under 4.3+
16360         collect2name=`${CC} -print-prog-name=collect2`
16361         if test -f "$collect2name" && \
16362            strings "$collect2name" | grep resolve_lib_name >/dev/null
16363         then
16364           # We have reworked collect2
16365           hardcode_direct_CXX=yes
16366         else
16367           # We have old collect2
16368           hardcode_direct_CXX=unsupported
16369           # It fails to find uninstalled libraries when the uninstalled
16370           # path is not listed in the libpath.  Setting hardcode_minus_L
16371           # to unsupported forces relinking
16372           hardcode_minus_L_CXX=yes
16373           hardcode_libdir_flag_spec_CXX='-L$libdir'
16374           hardcode_libdir_separator_CXX=
16375         fi
16376       esac
16377       shared_flag='-shared'
16378     else
16379       # not using gcc
16380       if test "$host_cpu" = ia64; then
16381         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16382         # chokes on -Wl,-G. The following line is correct:
16383         shared_flag='-G'
16384       else
16385         if test "$aix_use_runtimelinking" = yes; then
16386           shared_flag='${wl}-G'
16387         else
16388           shared_flag='${wl}-bM:SRE'
16389         fi
16390       fi
16391     fi
16392
16393     # It seems that -bexpall does not export symbols beginning with
16394     # underscore (_), so it is better to generate a list of symbols to export.
16395     always_export_symbols_CXX=yes
16396     if test "$aix_use_runtimelinking" = yes; then
16397       # Warning - without using the other runtime loading flags (-brtl),
16398       # -berok will link without error, but may produce a broken library.
16399       allow_undefined_flag_CXX='-berok'
16400       # Determine the default libpath from the value encoded in an empty executable.
16401       cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h.  */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h.  */
16407
16408 int
16409 main ()
16410 {
16411
16412   ;
16413   return 0;
16414 }
16415 _ACEOF
16416 rm -f conftest.$ac_objext conftest$ac_exeext
16417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16418   (eval $ac_link) 2>conftest.er1
16419   ac_status=$?
16420   grep -v '^ *+' conftest.er1 >conftest.err
16421   rm -f conftest.er1
16422   cat conftest.err >&5
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); } &&
16425          { ac_try='test -z "$ac_cxx_werror_flag"
16426                          || test ! -s conftest.err'
16427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428   (eval $ac_try) 2>&5
16429   ac_status=$?
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); }; } &&
16432          { ac_try='test -s conftest$ac_exeext'
16433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434   (eval $ac_try) 2>&5
16435   ac_status=$?
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); }; }; then
16438
16439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16440 }'`
16441 # Check for a 64-bit object if we didn't find anything.
16442 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; }
16443 }'`; fi
16444 else
16445   echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16447
16448 fi
16449 rm -f conftest.err conftest.$ac_objext \
16450       conftest$ac_exeext conftest.$ac_ext
16451 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16452
16453       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16454
16455       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"
16456      else
16457       if test "$host_cpu" = ia64; then
16458         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16459         allow_undefined_flag_CXX="-z nodefs"
16460         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"
16461       else
16462         # Determine the default libpath from the value encoded in an empty executable.
16463         cat >conftest.$ac_ext <<_ACEOF
16464 /* confdefs.h.  */
16465 _ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h.  */
16469
16470 int
16471 main ()
16472 {
16473
16474   ;
16475   return 0;
16476 }
16477 _ACEOF
16478 rm -f conftest.$ac_objext conftest$ac_exeext
16479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16480   (eval $ac_link) 2>conftest.er1
16481   ac_status=$?
16482   grep -v '^ *+' conftest.er1 >conftest.err
16483   rm -f conftest.er1
16484   cat conftest.err >&5
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); } &&
16487          { ac_try='test -z "$ac_cxx_werror_flag"
16488                          || test ! -s conftest.err'
16489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490   (eval $ac_try) 2>&5
16491   ac_status=$?
16492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493   (exit $ac_status); }; } &&
16494          { ac_try='test -s conftest$ac_exeext'
16495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496   (eval $ac_try) 2>&5
16497   ac_status=$?
16498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); }; }; then
16500
16501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16502 }'`
16503 # Check for a 64-bit object if we didn't find anything.
16504 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; }
16505 }'`; fi
16506 else
16507   echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16509
16510 fi
16511 rm -f conftest.err conftest.$ac_objext \
16512       conftest$ac_exeext conftest.$ac_ext
16513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16514
16515         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16516         # Warning - without using the other run time loading flags,
16517         # -berok will link without error, but may produce a broken library.
16518         no_undefined_flag_CXX=' ${wl}-bernotok'
16519         allow_undefined_flag_CXX=' ${wl}-berok'
16520         # -bexpall does not export symbols beginning with underscore (_)
16521         always_export_symbols_CXX=yes
16522         # Exported symbols can be pulled into shared objects from archives
16523         whole_archive_flag_spec_CXX=' '
16524         archive_cmds_need_lc_CXX=yes
16525         # This is similar to how AIX traditionally builds it's shared libraries.
16526         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'
16527       fi
16528     fi
16529     ;;
16530   chorus*)
16531     case $cc_basename in
16532       *)
16533         # FIXME: insert proper C++ library support
16534         ld_shlibs_CXX=no
16535         ;;
16536     esac
16537     ;;
16538
16539   cygwin* | mingw* | pw32*)
16540     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16541     # as there is no search path for DLLs.
16542     hardcode_libdir_flag_spec_CXX='-L$libdir'
16543     allow_undefined_flag_CXX=unsupported
16544     always_export_symbols_CXX=no
16545     enable_shared_with_static_runtimes_CXX=yes
16546
16547     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16548       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'
16549       # If the export-symbols file already is a .def file (1st line
16550       # is EXPORTS), use it as is; otherwise, prepend...
16551       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16552         cp $export_symbols $output_objdir/$soname.def;
16553       else
16554         echo EXPORTS > $output_objdir/$soname.def;
16555         cat $export_symbols >> $output_objdir/$soname.def;
16556       fi~
16557       $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'
16558     else
16559       ld_shlibs_CXX=no
16560     fi
16561   ;;
16562
16563   darwin* | rhapsody*)
16564   if test "$GXX" = yes; then
16565     archive_cmds_need_lc_CXX=no
16566     case "$host_os" in
16567     rhapsody* | darwin1.[012])
16568       allow_undefined_flag_CXX='-undefined suppress'
16569       ;;
16570     *) # Darwin 1.3 on
16571       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16572         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
16573       else
16574         case ${MACOSX_DEPLOYMENT_TARGET} in
16575           10.[012])
16576             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
16577             ;;
16578           10.*)
16579             allow_undefined_flag_CXX='-undefined dynamic_lookup'
16580             ;;
16581         esac
16582       fi
16583       ;;
16584     esac
16585     lt_int_apple_cc_single_mod=no
16586     output_verbose_link_cmd='echo'
16587     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16588       lt_int_apple_cc_single_mod=yes
16589     fi
16590     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16591       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16592     else
16593       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
16594     fi
16595     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16596
16597     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16598     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16599       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}'
16600     else
16601       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16602     fi
16603     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}'
16604     hardcode_direct_CXX=no
16605     hardcode_automatic_CXX=yes
16606     hardcode_shlibpath_var_CXX=unsupported
16607     whole_archive_flag_spec_CXX='-all_load $convenience'
16608     link_all_deplibs_CXX=yes
16609   else
16610     ld_shlibs_CXX=no
16611   fi
16612     ;;
16613
16614   dgux*)
16615     case $cc_basename in
16616       ec++)
16617         # FIXME: insert proper C++ library support
16618         ld_shlibs_CXX=no
16619         ;;
16620       ghcx)
16621         # Green Hills C++ Compiler
16622         # FIXME: insert proper C++ library support
16623         ld_shlibs_CXX=no
16624         ;;
16625       *)
16626         # FIXME: insert proper C++ library support
16627         ld_shlibs_CXX=no
16628         ;;
16629     esac
16630     ;;
16631   freebsd12*)
16632     # C++ shared libraries reported to be fairly broken before switch to ELF
16633     ld_shlibs_CXX=no
16634     ;;
16635   freebsd-elf*)
16636     archive_cmds_need_lc_CXX=no
16637     ;;
16638   freebsd* | kfreebsd*-gnu)
16639     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16640     # conventions
16641     ld_shlibs_CXX=yes
16642     ;;
16643   gnu*)
16644     ;;
16645   hpux9*)
16646     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16647     hardcode_libdir_separator_CXX=:
16648     export_dynamic_flag_spec_CXX='${wl}-E'
16649     hardcode_direct_CXX=yes
16650     hardcode_minus_L_CXX=yes # Not in the search PATH,
16651                                 # but as the default
16652                                 # location of the library.
16653
16654     case $cc_basename in
16655     CC)
16656       # FIXME: insert proper C++ library support
16657       ld_shlibs_CXX=no
16658       ;;
16659     aCC)
16660       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'
16661       # Commands to make compiler produce verbose output that lists
16662       # what "hidden" libraries, object files and flags are used when
16663       # linking a shared library.
16664       #
16665       # There doesn't appear to be a way to prevent this compiler from
16666       # explicitly linking system object files so we need to strip them
16667       # from the output so that they don't get included in the library
16668       # dependencies.
16669       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'
16670       ;;
16671     *)
16672       if test "$GXX" = yes; then
16673         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'
16674       else
16675         # FIXME: insert proper C++ library support
16676         ld_shlibs_CXX=no
16677       fi
16678       ;;
16679     esac
16680     ;;
16681   hpux10*|hpux11*)
16682     if test $with_gnu_ld = no; then
16683       case "$host_cpu" in
16684       hppa*64*)
16685         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16686         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16687         hardcode_libdir_separator_CXX=:
16688         ;;
16689       ia64*)
16690         hardcode_libdir_flag_spec_CXX='-L$libdir'
16691         ;;
16692       *)
16693         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16694         hardcode_libdir_separator_CXX=:
16695         export_dynamic_flag_spec_CXX='${wl}-E'
16696         ;;
16697       esac
16698     fi
16699     case "$host_cpu" in
16700     hppa*64*)
16701       hardcode_direct_CXX=no
16702       hardcode_shlibpath_var_CXX=no
16703       ;;
16704     ia64*)
16705       hardcode_direct_CXX=no
16706       hardcode_shlibpath_var_CXX=no
16707       hardcode_minus_L_CXX=yes # Not in the search PATH,
16708                                               # but as the default
16709                                               # location of the library.
16710       ;;
16711     *)
16712       hardcode_direct_CXX=yes
16713       hardcode_minus_L_CXX=yes # Not in the search PATH,
16714                                               # but as the default
16715                                               # location of the library.
16716       ;;
16717     esac
16718
16719     case $cc_basename in
16720       CC)
16721         # FIXME: insert proper C++ library support
16722         ld_shlibs_CXX=no
16723         ;;
16724       aCC)
16725         case "$host_cpu" in
16726         hppa*64*|ia64*)
16727           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16728           ;;
16729         *)
16730           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16731           ;;
16732         esac
16733         # Commands to make compiler produce verbose output that lists
16734         # what "hidden" libraries, object files and flags are used when
16735         # linking a shared library.
16736         #
16737         # There doesn't appear to be a way to prevent this compiler from
16738         # explicitly linking system object files so we need to strip them
16739         # from the output so that they don't get included in the library
16740         # dependencies.
16741         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'
16742         ;;
16743       *)
16744         if test "$GXX" = yes; then
16745           if test $with_gnu_ld = no; then
16746             case "$host_cpu" in
16747             ia64*|hppa*64*)
16748               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16749               ;;
16750             *)
16751               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'
16752               ;;
16753             esac
16754           fi
16755         else
16756           # FIXME: insert proper C++ library support
16757           ld_shlibs_CXX=no
16758         fi
16759         ;;
16760     esac
16761     ;;
16762   irix5* | irix6*)
16763     case $cc_basename in
16764       CC)
16765         # SGI C++
16766         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 ${objdir}/so_locations -o $lib'
16767
16768         # Archives containing C++ object files must be created using
16769         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16770         # necessary to make sure instantiated templates are included
16771         # in the archive.
16772         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16773         ;;
16774       *)
16775         if test "$GXX" = yes; then
16776           if test "$with_gnu_ld" = no; then
16777             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}${objdir}/so_locations -o $lib'
16778           else
16779             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'
16780           fi
16781         fi
16782         link_all_deplibs_CXX=yes
16783         ;;
16784     esac
16785     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16786     hardcode_libdir_separator_CXX=:
16787     ;;
16788   linux*)
16789     case $cc_basename in
16790       KCC)
16791         # Kuck and Associates, Inc. (KAI) C++ Compiler
16792
16793         # KCC will only create a shared library if the output file
16794         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16795         # to its proper name (with version) after linking.
16796         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'
16797         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'
16798         # Commands to make compiler produce verbose output that lists
16799         # what "hidden" libraries, object files and flags are used when
16800         # linking a shared library.
16801         #
16802         # There doesn't appear to be a way to prevent this compiler from
16803         # explicitly linking system object files so we need to strip them
16804         # from the output so that they don't get included in the library
16805         # dependencies.
16806         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'
16807
16808         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16809         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16810
16811         # Archives containing C++ object files must be created using
16812         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16813         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16814         ;;
16815       icpc)
16816         # Intel C++
16817         with_gnu_ld=yes
16818         archive_cmds_need_lc_CXX=no
16819         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16820         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'
16821         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16822         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16823         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16824         ;;
16825       cxx)
16826         # Compaq C++
16827         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16828         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'
16829
16830         runpath_var=LD_RUN_PATH
16831         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16832         hardcode_libdir_separator_CXX=:
16833
16834         # Commands to make compiler produce verbose output that lists
16835         # what "hidden" libraries, object files and flags are used when
16836         # linking a shared library.
16837         #
16838         # There doesn't appear to be a way to prevent this compiler from
16839         # explicitly linking system object files so we need to strip them
16840         # from the output so that they don't get included in the library
16841         # dependencies.
16842         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'
16843         ;;
16844     esac
16845     ;;
16846   lynxos*)
16847     # FIXME: insert proper C++ library support
16848     ld_shlibs_CXX=no
16849     ;;
16850   m88k*)
16851     # FIXME: insert proper C++ library support
16852     ld_shlibs_CXX=no
16853     ;;
16854   mvs*)
16855     case $cc_basename in
16856       cxx)
16857         # FIXME: insert proper C++ library support
16858         ld_shlibs_CXX=no
16859         ;;
16860       *)
16861         # FIXME: insert proper C++ library support
16862         ld_shlibs_CXX=no
16863         ;;
16864     esac
16865     ;;
16866   netbsd*)
16867     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16868       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16869       wlarc=
16870       hardcode_libdir_flag_spec_CXX='-R$libdir'
16871       hardcode_direct_CXX=yes
16872       hardcode_shlibpath_var_CXX=no
16873     fi
16874     # Workaround some broken pre-1.5 toolchains
16875     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16876     ;;
16877   osf3*)
16878     case $cc_basename in
16879       KCC)
16880         # Kuck and Associates, Inc. (KAI) C++ Compiler
16881
16882         # KCC will only create a shared library if the output file
16883         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16884         # to its proper name (with version) after linking.
16885         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'
16886
16887         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16888         hardcode_libdir_separator_CXX=:
16889
16890         # Archives containing C++ object files must be created using
16891         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16892         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16893
16894         ;;
16895       RCC)
16896         # Rational C++ 2.4.1
16897         # FIXME: insert proper C++ library support
16898         ld_shlibs_CXX=no
16899         ;;
16900       cxx)
16901         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16902         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 ${objdir}/so_locations -o $lib'
16903
16904         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16905         hardcode_libdir_separator_CXX=:
16906
16907         # Commands to make compiler produce verbose output that lists
16908         # what "hidden" libraries, object files and flags are used when
16909         # linking a shared library.
16910         #
16911         # There doesn't appear to be a way to prevent this compiler from
16912         # explicitly linking system object files so we need to strip them
16913         # from the output so that they don't get included in the library
16914         # dependencies.
16915         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'
16916         ;;
16917       *)
16918         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16919           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16920           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}${objdir}/so_locations -o $lib'
16921
16922           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16923           hardcode_libdir_separator_CXX=:
16924
16925           # Commands to make compiler produce verbose output that lists
16926           # what "hidden" libraries, object files and flags are used when
16927           # linking a shared library.
16928           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16929
16930         else
16931           # FIXME: insert proper C++ library support
16932           ld_shlibs_CXX=no
16933         fi
16934         ;;
16935     esac
16936     ;;
16937   osf4* | osf5*)
16938     case $cc_basename in
16939       KCC)
16940         # Kuck and Associates, Inc. (KAI) C++ Compiler
16941
16942         # KCC will only create a shared library if the output file
16943         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16944         # to its proper name (with version) after linking.
16945         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'
16946
16947         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16948         hardcode_libdir_separator_CXX=:
16949
16950         # Archives containing C++ object files must be created using
16951         # the KAI C++ compiler.
16952         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16953         ;;
16954       RCC)
16955         # Rational C++ 2.4.1
16956         # FIXME: insert proper C++ library support
16957         ld_shlibs_CXX=no
16958         ;;
16959       cxx)
16960         allow_undefined_flag_CXX=' -expect_unresolved \*'
16961         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 ${objdir}/so_locations -o $lib'
16962         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16963           echo "-hidden">> $lib.exp~
16964           $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 $objdir/so_locations -o $lib~
16965           $rm $lib.exp'
16966
16967         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16968         hardcode_libdir_separator_CXX=:
16969
16970         # Commands to make compiler produce verbose output that lists
16971         # what "hidden" libraries, object files and flags are used when
16972         # linking a shared library.
16973         #
16974         # There doesn't appear to be a way to prevent this compiler from
16975         # explicitly linking system object files so we need to strip them
16976         # from the output so that they don't get included in the library
16977         # dependencies.
16978         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'
16979         ;;
16980       *)
16981         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16982           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16983          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}${objdir}/so_locations -o $lib'
16984
16985           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16986           hardcode_libdir_separator_CXX=:
16987
16988           # Commands to make compiler produce verbose output that lists
16989           # what "hidden" libraries, object files and flags are used when
16990           # linking a shared library.
16991           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16992
16993         else
16994           # FIXME: insert proper C++ library support
16995           ld_shlibs_CXX=no
16996         fi
16997         ;;
16998     esac
16999     ;;
17000   psos*)
17001     # FIXME: insert proper C++ library support
17002     ld_shlibs_CXX=no
17003     ;;
17004   sco*)
17005     archive_cmds_need_lc_CXX=no
17006     case $cc_basename in
17007       CC)
17008         # FIXME: insert proper C++ library support
17009         ld_shlibs_CXX=no
17010         ;;
17011       *)
17012         # FIXME: insert proper C++ library support
17013         ld_shlibs_CXX=no
17014         ;;
17015     esac
17016     ;;
17017   sunos4*)
17018     case $cc_basename in
17019       CC)
17020         # Sun C++ 4.x
17021         # FIXME: insert proper C++ library support
17022         ld_shlibs_CXX=no
17023         ;;
17024       lcc)
17025         # Lucid
17026         # FIXME: insert proper C++ library support
17027         ld_shlibs_CXX=no
17028         ;;
17029       *)
17030         # FIXME: insert proper C++ library support
17031         ld_shlibs_CXX=no
17032         ;;
17033     esac
17034     ;;
17035   solaris*)
17036     case $cc_basename in
17037       CC)
17038         # Sun C++ 4.2, 5.x and Centerline C++
17039         no_undefined_flag_CXX=' -zdefs'
17040         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17041         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17042         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17043
17044         hardcode_libdir_flag_spec_CXX='-R$libdir'
17045         hardcode_shlibpath_var_CXX=no
17046         case $host_os in
17047           solaris2.0-5 | solaris2.0-5.*) ;;
17048           *)
17049             # The C++ compiler is used as linker so we must use $wl
17050             # flag to pass the commands to the underlying system
17051             # linker.
17052             # Supported since Solaris 2.6 (maybe 2.5.1?)
17053             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17054             ;;
17055         esac
17056         link_all_deplibs_CXX=yes
17057
17058         # Commands to make compiler produce verbose output that lists
17059         # what "hidden" libraries, object files and flags are used when
17060         # linking a shared library.
17061         #
17062         # There doesn't appear to be a way to prevent this compiler from
17063         # explicitly linking system object files so we need to strip them
17064         # from the output so that they don't get included in the library
17065         # dependencies.
17066         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
17067
17068         # Archives containing C++ object files must be created using
17069         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17070         # necessary to make sure instantiated templates are included
17071         # in the archive.
17072         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17073         ;;
17074       gcx)
17075         # Green Hills C++ Compiler
17076         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17077
17078         # The C++ compiler must be used to create the archive.
17079         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17080         ;;
17081       *)
17082         # GNU C++ compiler with Solaris linker
17083         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17084           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17085           if $CC --version | grep -v '^2\.7' > /dev/null; then
17086             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17087             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17088                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17089
17090             # Commands to make compiler produce verbose output that lists
17091             # what "hidden" libraries, object files and flags are used when
17092             # linking a shared library.
17093             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17094           else
17095             # g++ 2.7 appears to require `-G' NOT `-shared' on this
17096             # platform.
17097             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17098             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17099                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17100
17101             # Commands to make compiler produce verbose output that lists
17102             # what "hidden" libraries, object files and flags are used when
17103             # linking a shared library.
17104             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17105           fi
17106
17107           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17108         fi
17109         ;;
17110     esac
17111     ;;
17112   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17113     archive_cmds_need_lc_CXX=no
17114     ;;
17115   tandem*)
17116     case $cc_basename in
17117       NCC)
17118         # NonStop-UX NCC 3.20
17119         # FIXME: insert proper C++ library support
17120         ld_shlibs_CXX=no
17121         ;;
17122       *)
17123         # FIXME: insert proper C++ library support
17124         ld_shlibs_CXX=no
17125         ;;
17126     esac
17127     ;;
17128   vxworks*)
17129     # FIXME: insert proper C++ library support
17130     ld_shlibs_CXX=no
17131     ;;
17132   *)
17133     # FIXME: insert proper C++ library support
17134     ld_shlibs_CXX=no
17135     ;;
17136 esac
17137 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17138 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17139 test "$ld_shlibs_CXX" = no && can_build_shared=no
17140
17141 GCC_CXX="$GXX"
17142 LD_CXX="$LD"
17143
17144 ## CAVEAT EMPTOR:
17145 ## There is no encapsulation within the following macros, do not change
17146 ## the running order or otherwise move them around unless you know exactly
17147 ## what you are doing...
17148
17149 cat > conftest.$ac_ext <<EOF
17150 class Foo
17151 {
17152 public:
17153   Foo (void) { a = 0; }
17154 private:
17155   int a;
17156 };
17157 EOF
17158
17159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17160   (eval $ac_compile) 2>&5
17161   ac_status=$?
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); }; then
17164   # Parse the compiler output and extract the necessary
17165   # objects, libraries and library flags.
17166
17167   # Sentinel used to keep track of whether or not we are before
17168   # the conftest object file.
17169   pre_test_object_deps_done=no
17170
17171   # The `*' in the case matches for architectures that use `case' in
17172   # $output_verbose_cmd can trigger glob expansion during the loop
17173   # eval without this substitution.
17174   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
17175
17176   for p in `eval $output_verbose_link_cmd`; do
17177     case $p in
17178
17179     -L* | -R* | -l*)
17180        # Some compilers place space between "-{L,R}" and the path.
17181        # Remove the space.
17182        if test $p = "-L" \
17183           || test $p = "-R"; then
17184          prev=$p
17185          continue
17186        else
17187          prev=
17188        fi
17189
17190        if test "$pre_test_object_deps_done" = no; then
17191          case $p in
17192          -L* | -R*)
17193            # Internal compiler library paths should come after those
17194            # provided the user.  The postdeps already come after the
17195            # user supplied libs so there is no need to process them.
17196            if test -z "$compiler_lib_search_path_CXX"; then
17197              compiler_lib_search_path_CXX="${prev}${p}"
17198            else
17199              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17200            fi
17201            ;;
17202          # The "-l" case would never come before the object being
17203          # linked, so don't bother handling this case.
17204          esac
17205        else
17206          if test -z "$postdeps_CXX"; then
17207            postdeps_CXX="${prev}${p}"
17208          else
17209            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17210          fi
17211        fi
17212        ;;
17213
17214     *.$objext)
17215        # This assumes that the test object file only shows up
17216        # once in the compiler output.
17217        if test "$p" = "conftest.$objext"; then
17218          pre_test_object_deps_done=yes
17219          continue
17220        fi
17221
17222        if test "$pre_test_object_deps_done" = no; then
17223          if test -z "$predep_objects_CXX"; then
17224            predep_objects_CXX="$p"
17225          else
17226            predep_objects_CXX="$predep_objects_CXX $p"
17227          fi
17228        else
17229          if test -z "$postdep_objects_CXX"; then
17230            postdep_objects_CXX="$p"
17231          else
17232            postdep_objects_CXX="$postdep_objects_CXX $p"
17233          fi
17234        fi
17235        ;;
17236
17237     *) ;; # Ignore the rest.
17238
17239     esac
17240   done
17241
17242   # Clean up.
17243   rm -f a.out a.exe
17244 else
17245   echo "libtool.m4: error: problem compiling CXX test program"
17246 fi
17247
17248 $rm -f confest.$objext
17249
17250 case " $postdeps_CXX " in
17251 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17252 esac
17253
17254 lt_prog_compiler_wl_CXX=
17255 lt_prog_compiler_pic_CXX=
17256 lt_prog_compiler_static_CXX=
17257
17258 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17259 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17260
17261   # C++ specific cases for pic, static, wl, etc.
17262   if test "$GXX" = yes; then
17263     lt_prog_compiler_wl_CXX='-Wl,'
17264     lt_prog_compiler_static_CXX='-static'
17265
17266     case $host_os in
17267     aix*)
17268       # All AIX code is PIC.
17269       if test "$host_cpu" = ia64; then
17270         # AIX 5 now supports IA64 processor
17271         lt_prog_compiler_static_CXX='-Bstatic'
17272       fi
17273       ;;
17274     amigaos*)
17275       # FIXME: we need at least 68020 code to build shared libraries, but
17276       # adding the `-m68020' flag to GCC prevents building anything better,
17277       # like `-m68040'.
17278       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17279       ;;
17280     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17281       # PIC is the default for these OSes.
17282       ;;
17283     mingw* | os2* | pw32*)
17284       # This hack is so that the source file can tell whether it is being
17285       # built for inclusion in a dll (and should export symbols for example).
17286       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
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_CXX='-fno-common'
17292       ;;
17293     *djgpp*)
17294       # DJGPP does not support shared libraries at all
17295       lt_prog_compiler_pic_CXX=
17296       ;;
17297     sysv4*MP*)
17298       if test -d /usr/nec; then
17299         lt_prog_compiler_pic_CXX=-Kconform_pic
17300       fi
17301       ;;
17302     hpux*)
17303       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17304       # not for PA HP-UX.
17305       case "$host_cpu" in
17306       hppa*64*|ia64*)
17307         ;;
17308       *)
17309         lt_prog_compiler_pic_CXX='-fPIC'
17310         ;;
17311       esac
17312       ;;
17313     *)
17314       lt_prog_compiler_pic_CXX='-fPIC'
17315       ;;
17316     esac
17317   else
17318     case $host_os in
17319       aix4* | aix5*)
17320         # All AIX code is PIC.
17321         if test "$host_cpu" = ia64; then
17322           # AIX 5 now supports IA64 processor
17323           lt_prog_compiler_static_CXX='-Bstatic'
17324         else
17325           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17326         fi
17327         ;;
17328       chorus*)
17329         case $cc_basename in
17330         cxch68)
17331           # Green Hills C++ Compiler
17332           # _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"
17333           ;;
17334         esac
17335         ;;
17336       dgux*)
17337         case $cc_basename in
17338           ec++)
17339             lt_prog_compiler_pic_CXX='-KPIC'
17340             ;;
17341           ghcx)
17342             # Green Hills C++ Compiler
17343             lt_prog_compiler_pic_CXX='-pic'
17344             ;;
17345           *)
17346             ;;
17347         esac
17348         ;;
17349       freebsd* | kfreebsd*-gnu)
17350         # FreeBSD uses GNU C++
17351         ;;
17352       hpux9* | hpux10* | hpux11*)
17353         case $cc_basename in
17354           CC)
17355             lt_prog_compiler_wl_CXX='-Wl,'
17356             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17357             if test "$host_cpu" != ia64; then
17358               lt_prog_compiler_pic_CXX='+Z'
17359             fi
17360             ;;
17361           aCC)
17362             lt_prog_compiler_wl_CXX='-Wl,'
17363             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17364             case "$host_cpu" in
17365             hppa*64*|ia64*)
17366               # +Z the default
17367               ;;
17368             *)
17369               lt_prog_compiler_pic_CXX='+Z'
17370               ;;
17371             esac
17372             ;;
17373           *)
17374             ;;
17375         esac
17376         ;;
17377       irix5* | irix6* | nonstopux*)
17378         case $cc_basename in
17379           CC)
17380             lt_prog_compiler_wl_CXX='-Wl,'
17381             lt_prog_compiler_static_CXX='-non_shared'
17382             # CC pic flag -KPIC is the default.
17383             ;;
17384           *)
17385             ;;
17386         esac
17387         ;;
17388       linux*)
17389         case $cc_basename in
17390           KCC)
17391             # KAI C++ Compiler
17392             lt_prog_compiler_wl_CXX='--backend -Wl,'
17393             lt_prog_compiler_pic_CXX='-fPIC'
17394             ;;
17395           icpc)
17396             # Intel C++
17397             lt_prog_compiler_wl_CXX='-Wl,'
17398             lt_prog_compiler_pic_CXX='-KPIC'
17399             lt_prog_compiler_static_CXX='-static'
17400             ;;
17401           cxx)
17402             # Compaq C++
17403             # Make sure the PIC flag is empty.  It appears that all Alpha
17404             # Linux and Compaq Tru64 Unix objects are PIC.
17405             lt_prog_compiler_pic_CXX=
17406             lt_prog_compiler_static_CXX='-non_shared'
17407             ;;
17408           *)
17409             ;;
17410         esac
17411         ;;
17412       lynxos*)
17413         ;;
17414       m88k*)
17415         ;;
17416       mvs*)
17417         case $cc_basename in
17418           cxx)
17419             lt_prog_compiler_pic_CXX='-W c,exportall'
17420             ;;
17421           *)
17422             ;;
17423         esac
17424         ;;
17425       netbsd*)
17426         ;;
17427       osf3* | osf4* | osf5*)
17428         case $cc_basename in
17429           KCC)
17430             lt_prog_compiler_wl_CXX='--backend -Wl,'
17431             ;;
17432           RCC)
17433             # Rational C++ 2.4.1
17434             lt_prog_compiler_pic_CXX='-pic'
17435             ;;
17436           cxx)
17437             # Digital/Compaq C++
17438             lt_prog_compiler_wl_CXX='-Wl,'
17439             # Make sure the PIC flag is empty.  It appears that all Alpha
17440             # Linux and Compaq Tru64 Unix objects are PIC.
17441             lt_prog_compiler_pic_CXX=
17442             lt_prog_compiler_static_CXX='-non_shared'
17443             ;;
17444           *)
17445             ;;
17446         esac
17447         ;;
17448       psos*)
17449         ;;
17450       sco*)
17451         case $cc_basename in
17452           CC)
17453             lt_prog_compiler_pic_CXX='-fPIC'
17454             ;;
17455           *)
17456             ;;
17457         esac
17458         ;;
17459       solaris*)
17460         case $cc_basename in
17461           CC)
17462             # Sun C++ 4.2, 5.x and Centerline C++
17463             lt_prog_compiler_pic_CXX='-KPIC'
17464             lt_prog_compiler_static_CXX='-Bstatic'
17465             lt_prog_compiler_wl_CXX='-Qoption ld '
17466             ;;
17467           gcx)
17468             # Green Hills C++ Compiler
17469             lt_prog_compiler_pic_CXX='-PIC'
17470             ;;
17471           *)
17472             ;;
17473         esac
17474         ;;
17475       sunos4*)
17476         case $cc_basename in
17477           CC)
17478             # Sun C++ 4.x
17479             lt_prog_compiler_pic_CXX='-pic'
17480             lt_prog_compiler_static_CXX='-Bstatic'
17481             ;;
17482           lcc)
17483             # Lucid
17484             lt_prog_compiler_pic_CXX='-pic'
17485             ;;
17486           *)
17487             ;;
17488         esac
17489         ;;
17490       tandem*)
17491         case $cc_basename in
17492           NCC)
17493             # NonStop-UX NCC 3.20
17494             lt_prog_compiler_pic_CXX='-KPIC'
17495             ;;
17496           *)
17497             ;;
17498         esac
17499         ;;
17500       unixware*)
17501         ;;
17502       vxworks*)
17503         ;;
17504       *)
17505         lt_prog_compiler_can_build_shared_CXX=no
17506         ;;
17507     esac
17508   fi
17509
17510 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17511 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17512
17513 #
17514 # Check to make sure the PIC flag actually works.
17515 #
17516 if test -n "$lt_prog_compiler_pic_CXX"; then
17517
17518 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17519 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17520 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17521   echo $ECHO_N "(cached) $ECHO_C" >&6
17522 else
17523   lt_prog_compiler_pic_works_CXX=no
17524   ac_outfile=conftest.$ac_objext
17525    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17526    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17527    # Insert the option either (1) after the last *FLAGS variable, or
17528    # (2) before a word containing "conftest.", or (3) at the end.
17529    # Note that $ac_compile itself does not contain backslashes and begins
17530    # with a dollar sign (not a hyphen), so the echo should work correctly.
17531    # The option is referenced via a variable to avoid confusing sed.
17532    lt_compile=`echo "$ac_compile" | $SED \
17533    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17535    -e 's:$: $lt_compiler_flag:'`
17536    (eval echo "\"\$as_me:17536: $lt_compile\"" >&5)
17537    (eval "$lt_compile" 2>conftest.err)
17538    ac_status=$?
17539    cat conftest.err >&5
17540    echo "$as_me:17540: \$? = $ac_status" >&5
17541    if (exit $ac_status) && test -s "$ac_outfile"; then
17542      # The compiler can only warn and ignore the option if not recognized
17543      # So say no if there are warnings
17544      if test ! -s conftest.err; then
17545        lt_prog_compiler_pic_works_CXX=yes
17546      fi
17547    fi
17548    $rm conftest*
17549
17550 fi
17551 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17552 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17553
17554 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17555     case $lt_prog_compiler_pic_CXX in
17556      "" | " "*) ;;
17557      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17558      esac
17559 else
17560     lt_prog_compiler_pic_CXX=
17561      lt_prog_compiler_can_build_shared_CXX=no
17562 fi
17563
17564 fi
17565 case "$host_os" in
17566   # For platforms which do not support PIC, -DPIC is meaningless:
17567   *djgpp*)
17568     lt_prog_compiler_pic_CXX=
17569     ;;
17570   *)
17571     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17572     ;;
17573 esac
17574
17575 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17576 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17577 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17578   echo $ECHO_N "(cached) $ECHO_C" >&6
17579 else
17580   lt_cv_prog_compiler_c_o_CXX=no
17581    $rm -r conftest 2>/dev/null
17582    mkdir conftest
17583    cd conftest
17584    mkdir out
17585    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17586
17587    lt_compiler_flag="-o out/conftest2.$ac_objext"
17588    # Insert the option either (1) after the last *FLAGS variable, or
17589    # (2) before a word containing "conftest.", or (3) at the end.
17590    # Note that $ac_compile itself does not contain backslashes and begins
17591    # with a dollar sign (not a hyphen), so the echo should work correctly.
17592    lt_compile=`echo "$ac_compile" | $SED \
17593    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17595    -e 's:$: $lt_compiler_flag:'`
17596    (eval echo "\"\$as_me:17596: $lt_compile\"" >&5)
17597    (eval "$lt_compile" 2>out/conftest.err)
17598    ac_status=$?
17599    cat out/conftest.err >&5
17600    echo "$as_me:17600: \$? = $ac_status" >&5
17601    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17602    then
17603      # The compiler can only warn and ignore the option if not recognized
17604      # So say no if there are warnings
17605      if test ! -s out/conftest.err; then
17606        lt_cv_prog_compiler_c_o_CXX=yes
17607      fi
17608    fi
17609    chmod u+w .
17610    $rm conftest*
17611    # SGI C++ compiler will create directory out/ii_files/ for
17612    # template instantiation
17613    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17614    $rm out/* && rmdir out
17615    cd ..
17616    rmdir conftest
17617    $rm conftest*
17618
17619 fi
17620 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17621 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17622
17623
17624 hard_links="nottested"
17625 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17626   # do not overwrite the value of need_locks provided by the user
17627   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17628 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17629   hard_links=yes
17630   $rm conftest*
17631   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17632   touch conftest.a
17633   ln conftest.a conftest.b 2>&5 || hard_links=no
17634   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17635   echo "$as_me:$LINENO: result: $hard_links" >&5
17636 echo "${ECHO_T}$hard_links" >&6
17637   if test "$hard_links" = no; then
17638     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17639 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17640     need_locks=warn
17641   fi
17642 else
17643   need_locks=no
17644 fi
17645
17646 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17647 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17648
17649   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17650   case $host_os in
17651   aix4* | aix5*)
17652     # If we're using GNU nm, then we don't want the "-C" option.
17653     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17654     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17655       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'
17656     else
17657       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'
17658     fi
17659     ;;
17660   pw32*)
17661     export_symbols_cmds_CXX="$ltdll_cmds"
17662   ;;
17663   cygwin* | mingw*)
17664     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17665   ;;
17666   *)
17667     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17668   ;;
17669   esac
17670
17671 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17672 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17673 test "$ld_shlibs_CXX" = no && can_build_shared=no
17674
17675 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17676 if test "$GCC" = yes; then
17677   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17678 fi
17679
17680 #
17681 # Do we need to explicitly link libc?
17682 #
17683 case "x$archive_cmds_need_lc_CXX" in
17684 x|xyes)
17685   # Assume -lc should be added
17686   archive_cmds_need_lc_CXX=yes
17687
17688   if test "$enable_shared" = yes && test "$GCC" = yes; then
17689     case $archive_cmds_CXX in
17690     *'~'*)
17691       # FIXME: we may have to deal with multi-command sequences.
17692       ;;
17693     '$CC '*)
17694       # Test whether the compiler implicitly links with -lc since on some
17695       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17696       # to ld, don't add -lc before -lgcc.
17697       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17698 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17699       $rm conftest*
17700       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17701
17702       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17703   (eval $ac_compile) 2>&5
17704   ac_status=$?
17705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706   (exit $ac_status); } 2>conftest.err; then
17707         soname=conftest
17708         lib=conftest
17709         libobjs=conftest.$ac_objext
17710         deplibs=
17711         wl=$lt_prog_compiler_wl_CXX
17712         compiler_flags=-v
17713         linker_flags=-v
17714         verstring=
17715         output_objdir=.
17716         libname=conftest
17717         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17718         allow_undefined_flag_CXX=
17719         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17720   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17721   ac_status=$?
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); }
17724         then
17725           archive_cmds_need_lc_CXX=no
17726         else
17727           archive_cmds_need_lc_CXX=yes
17728         fi
17729         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17730       else
17731         cat conftest.err 1>&5
17732       fi
17733       $rm conftest*
17734       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17735 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17736       ;;
17737     esac
17738   fi
17739   ;;
17740 esac
17741
17742 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17743 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17744 library_names_spec=
17745 libname_spec='lib$name'
17746 soname_spec=
17747 shrext_cmds=".so"
17748 postinstall_cmds=
17749 postuninstall_cmds=
17750 finish_cmds=
17751 finish_eval=
17752 shlibpath_var=
17753 shlibpath_overrides_runpath=unknown
17754 version_type=none
17755 dynamic_linker="$host_os ld.so"
17756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17757 if test "$GCC" = yes; then
17758   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17759   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17760     # if the path contains ";" then we assume it to be the separator
17761     # otherwise default to the standard path separator (i.e. ":") - it is
17762     # assumed that no part of a normal pathname contains ";" but that should
17763     # okay in the real world where ";" in dirpaths is itself problematic.
17764     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17765   else
17766     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17767   fi
17768 else
17769   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17770 fi
17771 need_lib_prefix=unknown
17772 hardcode_into_libs=no
17773
17774 # when you set need_version to no, make sure it does not cause -set_version
17775 # flags to be left without arguments
17776 need_version=unknown
17777
17778 case $host_os in
17779 aix3*)
17780   version_type=linux
17781   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17782   shlibpath_var=LIBPATH
17783
17784   # AIX 3 has no versioning support, so we append a major version to the name.
17785   soname_spec='${libname}${release}${shared_ext}$major'
17786   ;;
17787
17788 aix4* | aix5*)
17789   version_type=linux
17790   need_lib_prefix=no
17791   need_version=no
17792   hardcode_into_libs=yes
17793   if test "$host_cpu" = ia64; then
17794     # AIX 5 supports IA64
17795     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17796     shlibpath_var=LD_LIBRARY_PATH
17797   else
17798     # With GCC up to 2.95.x, collect2 would create an import file
17799     # for dependence libraries.  The import file would start with
17800     # the line `#! .'.  This would cause the generated library to
17801     # depend on `.', always an invalid library.  This was fixed in
17802     # development snapshots of GCC prior to 3.0.
17803     case $host_os in
17804       aix4 | aix4.[01] | aix4.[01].*)
17805       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17806            echo ' yes '
17807            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17808         :
17809       else
17810         can_build_shared=no
17811       fi
17812       ;;
17813     esac
17814     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17815     # soname into executable. Probably we can add versioning support to
17816     # collect2, so additional links can be useful in future.
17817     if test "$aix_use_runtimelinking" = yes; then
17818       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17819       # instead of lib<name>.a to let people know that these are not
17820       # typical AIX shared libraries.
17821       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17822     else
17823       # We preserve .a as extension for shared libraries through AIX4.2
17824       # and later when we are not doing run time linking.
17825       library_names_spec='${libname}${release}.a $libname.a'
17826       soname_spec='${libname}${release}${shared_ext}$major'
17827     fi
17828     shlibpath_var=LIBPATH
17829   fi
17830   ;;
17831
17832 amigaos*)
17833   library_names_spec='$libname.ixlibrary $libname.a'
17834   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17835   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'
17836   ;;
17837
17838 beos*)
17839   library_names_spec='${libname}${shared_ext}'
17840   dynamic_linker="$host_os ld.so"
17841   shlibpath_var=LIBRARY_PATH
17842   ;;
17843
17844 bsdi4*)
17845   version_type=linux
17846   need_version=no
17847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848   soname_spec='${libname}${release}${shared_ext}$major'
17849   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17850   shlibpath_var=LD_LIBRARY_PATH
17851   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17852   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17853   # the default ld.so.conf also contains /usr/contrib/lib and
17854   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17855   # libtool to hard-code these into programs
17856   ;;
17857
17858 cygwin* | mingw* | pw32*)
17859   version_type=windows
17860   shrext_cmds=".dll"
17861   need_version=no
17862   need_lib_prefix=no
17863
17864   case $GCC,$host_os in
17865   yes,cygwin* | yes,mingw* | yes,pw32*)
17866     library_names_spec='$libname.dll.a'
17867     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17868     postinstall_cmds='base_file=`basename \${file}`~
17869       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17870       dldir=$destdir/`dirname \$dlpath`~
17871       test -d \$dldir || mkdir -p \$dldir~
17872       $install_prog $dir/$dlname \$dldir/$dlname'
17873     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17874       dlpath=$dir/\$dldll~
17875        $rm \$dlpath'
17876     shlibpath_overrides_runpath=yes
17877
17878     case $host_os in
17879     cygwin*)
17880       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17881       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17882       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17883       ;;
17884     mingw*)
17885       # MinGW DLLs use traditional 'lib' prefix
17886       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17887       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17888       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17889         # It is most probably a Windows format PATH printed by
17890         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17891         # path with ; separators, and with drive letters. We can handle the
17892         # drive letters (cygwin fileutils understands them), so leave them,
17893         # especially as we might pass files found there to a mingw objdump,
17894         # which wouldn't understand a cygwinified path. Ahh.
17895         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17896       else
17897         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17898       fi
17899       ;;
17900     pw32*)
17901       # pw32 DLLs use 'pw' prefix rather than 'lib'
17902       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17903       ;;
17904     esac
17905     ;;
17906
17907   *)
17908     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17909     ;;
17910   esac
17911   dynamic_linker='Win32 ld.exe'
17912   # FIXME: first we should search . and the directory the executable is in
17913   shlibpath_var=PATH
17914   ;;
17915
17916 darwin* | rhapsody*)
17917   dynamic_linker="$host_os dyld"
17918   version_type=darwin
17919   need_lib_prefix=no
17920   need_version=no
17921   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17922   soname_spec='${libname}${release}${major}$shared_ext'
17923   shlibpath_overrides_runpath=yes
17924   shlibpath_var=DYLD_LIBRARY_PATH
17925   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17926   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17927   if test "$GCC" = yes; then
17928     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"`
17929   else
17930     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17931   fi
17932   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17933   ;;
17934
17935 dgux*)
17936   version_type=linux
17937   need_lib_prefix=no
17938   need_version=no
17939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17940   soname_spec='${libname}${release}${shared_ext}$major'
17941   shlibpath_var=LD_LIBRARY_PATH
17942   ;;
17943
17944 freebsd1*)
17945   dynamic_linker=no
17946   ;;
17947
17948 kfreebsd*-gnu)
17949   version_type=linux
17950   need_lib_prefix=no
17951   need_version=no
17952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17953   soname_spec='${libname}${release}${shared_ext}$major'
17954   shlibpath_var=LD_LIBRARY_PATH
17955   shlibpath_overrides_runpath=no
17956   hardcode_into_libs=yes
17957   dynamic_linker='GNU ld.so'
17958   ;;
17959
17960 freebsd*)
17961   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17962   version_type=freebsd-$objformat
17963   case $version_type in
17964     freebsd-elf*)
17965       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17966       need_version=no
17967       need_lib_prefix=no
17968       ;;
17969     freebsd-*)
17970       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17971       need_version=yes
17972       ;;
17973   esac
17974   shlibpath_var=LD_LIBRARY_PATH
17975   case $host_os in
17976   freebsd2*)
17977     shlibpath_overrides_runpath=yes
17978     ;;
17979   freebsd3.01* | freebsdelf3.01*)
17980     shlibpath_overrides_runpath=yes
17981     hardcode_into_libs=yes
17982     ;;
17983   *) # from 3.2 on
17984     shlibpath_overrides_runpath=no
17985     hardcode_into_libs=yes
17986     ;;
17987   esac
17988   ;;
17989
17990 gnu*)
17991   version_type=linux
17992   need_lib_prefix=no
17993   need_version=no
17994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17995   soname_spec='${libname}${release}${shared_ext}$major'
17996   shlibpath_var=LD_LIBRARY_PATH
17997   hardcode_into_libs=yes
17998   ;;
17999
18000 hpux9* | hpux10* | hpux11*)
18001   # Give a soname corresponding to the major version so that dld.sl refuses to
18002   # link against other versions.
18003   version_type=sunos
18004   need_lib_prefix=no
18005   need_version=no
18006   case "$host_cpu" in
18007   ia64*)
18008     shrext_cmds='.so'
18009     hardcode_into_libs=yes
18010     dynamic_linker="$host_os dld.so"
18011     shlibpath_var=LD_LIBRARY_PATH
18012     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18013     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18014     soname_spec='${libname}${release}${shared_ext}$major'
18015     if test "X$HPUX_IA64_MODE" = X32; then
18016       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18017     else
18018       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18019     fi
18020     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18021     ;;
18022    hppa*64*)
18023      shrext_cmds='.sl'
18024      hardcode_into_libs=yes
18025      dynamic_linker="$host_os dld.sl"
18026      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18027      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18028      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18029      soname_spec='${libname}${release}${shared_ext}$major'
18030      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18031      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18032      ;;
18033    *)
18034     shrext_cmds='.sl'
18035     dynamic_linker="$host_os dld.sl"
18036     shlibpath_var=SHLIB_PATH
18037     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18038     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18039     soname_spec='${libname}${release}${shared_ext}$major'
18040     ;;
18041   esac
18042   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18043   postinstall_cmds='chmod 555 $lib'
18044   ;;
18045
18046 irix5* | irix6* | nonstopux*)
18047   case $host_os in
18048     nonstopux*) version_type=nonstopux ;;
18049     *)
18050         if test "$lt_cv_prog_gnu_ld" = yes; then
18051                 version_type=linux
18052         else
18053                 version_type=irix
18054         fi ;;
18055   esac
18056   need_lib_prefix=no
18057   need_version=no
18058   soname_spec='${libname}${release}${shared_ext}$major'
18059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18060   case $host_os in
18061   irix5* | nonstopux*)
18062     libsuff= shlibsuff=
18063     ;;
18064   *)
18065     case $LD in # libtool.m4 will add one of these switches to LD
18066     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18067       libsuff= shlibsuff= libmagic=32-bit;;
18068     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18069       libsuff=32 shlibsuff=N32 libmagic=N32;;
18070     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18071       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18072     *) libsuff= shlibsuff= libmagic=never-match;;
18073     esac
18074     ;;
18075   esac
18076   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18077   shlibpath_overrides_runpath=no
18078   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18079   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18080   hardcode_into_libs=yes
18081   ;;
18082
18083 # No shared lib support for Linux oldld, aout, or coff.
18084 linux*oldld* | linux*aout* | linux*coff*)
18085   dynamic_linker=no
18086   ;;
18087
18088 # This must be Linux ELF.
18089 linux*)
18090   version_type=linux
18091   need_lib_prefix=no
18092   need_version=no
18093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18094   soname_spec='${libname}${release}${shared_ext}$major'
18095   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18096   shlibpath_var=LD_LIBRARY_PATH
18097   shlibpath_overrides_runpath=no
18098   # This implies no fast_install, which is unacceptable.
18099   # Some rework will be needed to allow for fast_install
18100   # before this can be enabled.
18101   hardcode_into_libs=yes
18102
18103   # Append ld.so.conf contents to the search path
18104   if test -f /etc/ld.so.conf; then
18105     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18106     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18107   fi
18108
18109   # We used to test for /lib/ld.so.1 and disable shared libraries on
18110   # powerpc, because MkLinux only supported shared libraries with the
18111   # GNU dynamic linker.  Since this was broken with cross compilers,
18112   # most powerpc-linux boxes support dynamic linking these days and
18113   # people can always --disable-shared, the test was removed, and we
18114   # assume the GNU/Linux dynamic linker is in use.
18115   dynamic_linker='GNU/Linux ld.so'
18116   ;;
18117
18118 knetbsd*-gnu)
18119   version_type=linux
18120   need_lib_prefix=no
18121   need_version=no
18122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18123   soname_spec='${libname}${release}${shared_ext}$major'
18124   shlibpath_var=LD_LIBRARY_PATH
18125   shlibpath_overrides_runpath=no
18126   hardcode_into_libs=yes
18127   dynamic_linker='GNU ld.so'
18128   ;;
18129
18130 netbsd*)
18131   version_type=sunos
18132   need_lib_prefix=no
18133   need_version=no
18134   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18135     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18136     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18137     dynamic_linker='NetBSD (a.out) ld.so'
18138   else
18139     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18140     soname_spec='${libname}${release}${shared_ext}$major'
18141     dynamic_linker='NetBSD ld.elf_so'
18142   fi
18143   shlibpath_var=LD_LIBRARY_PATH
18144   shlibpath_overrides_runpath=yes
18145   hardcode_into_libs=yes
18146   ;;
18147
18148 newsos6)
18149   version_type=linux
18150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18151   shlibpath_var=LD_LIBRARY_PATH
18152   shlibpath_overrides_runpath=yes
18153   ;;
18154
18155 nto-qnx*)
18156   version_type=linux
18157   need_lib_prefix=no
18158   need_version=no
18159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18160   soname_spec='${libname}${release}${shared_ext}$major'
18161   shlibpath_var=LD_LIBRARY_PATH
18162   shlibpath_overrides_runpath=yes
18163   ;;
18164
18165 openbsd*)
18166   version_type=sunos
18167   need_lib_prefix=no
18168   need_version=yes
18169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18170   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18171   shlibpath_var=LD_LIBRARY_PATH
18172   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18173     case $host_os in
18174       openbsd2.[89] | openbsd2.[89].*)
18175         shlibpath_overrides_runpath=no
18176         ;;
18177       *)
18178         shlibpath_overrides_runpath=yes
18179         ;;
18180       esac
18181   else
18182     shlibpath_overrides_runpath=yes
18183   fi
18184   ;;
18185
18186 os2*)
18187   libname_spec='$name'
18188   shrext_cmds=".dll"
18189   need_lib_prefix=no
18190   library_names_spec='$libname${shared_ext} $libname.a'
18191   dynamic_linker='OS/2 ld.exe'
18192   shlibpath_var=LIBPATH
18193   ;;
18194
18195 osf3* | osf4* | osf5*)
18196   version_type=osf
18197   need_lib_prefix=no
18198   need_version=no
18199   soname_spec='${libname}${release}${shared_ext}$major'
18200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18201   shlibpath_var=LD_LIBRARY_PATH
18202   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18203   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18204   ;;
18205
18206 sco3.2v5*)
18207   version_type=osf
18208   soname_spec='${libname}${release}${shared_ext}$major'
18209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18210   shlibpath_var=LD_LIBRARY_PATH
18211   ;;
18212
18213 solaris*)
18214   version_type=linux
18215   need_lib_prefix=no
18216   need_version=no
18217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18218   soname_spec='${libname}${release}${shared_ext}$major'
18219   shlibpath_var=LD_LIBRARY_PATH
18220   shlibpath_overrides_runpath=yes
18221   hardcode_into_libs=yes
18222   # ldd complains unless libraries are executable
18223   postinstall_cmds='chmod +x $lib'
18224   ;;
18225
18226 sunos4*)
18227   version_type=sunos
18228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18229   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18230   shlibpath_var=LD_LIBRARY_PATH
18231   shlibpath_overrides_runpath=yes
18232   if test "$with_gnu_ld" = yes; then
18233     need_lib_prefix=no
18234   fi
18235   need_version=yes
18236   ;;
18237
18238 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18239   version_type=linux
18240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18241   soname_spec='${libname}${release}${shared_ext}$major'
18242   shlibpath_var=LD_LIBRARY_PATH
18243   case $host_vendor in
18244     sni)
18245       shlibpath_overrides_runpath=no
18246       need_lib_prefix=no
18247       export_dynamic_flag_spec='${wl}-Blargedynsym'
18248       runpath_var=LD_RUN_PATH
18249       ;;
18250     siemens)
18251       need_lib_prefix=no
18252       ;;
18253     motorola)
18254       need_lib_prefix=no
18255       need_version=no
18256       shlibpath_overrides_runpath=no
18257       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18258       ;;
18259   esac
18260   ;;
18261
18262 sysv4*MP*)
18263   if test -d /usr/nec ;then
18264     version_type=linux
18265     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18266     soname_spec='$libname${shared_ext}.$major'
18267     shlibpath_var=LD_LIBRARY_PATH
18268   fi
18269   ;;
18270
18271 uts4*)
18272   version_type=linux
18273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18274   soname_spec='${libname}${release}${shared_ext}$major'
18275   shlibpath_var=LD_LIBRARY_PATH
18276   ;;
18277
18278 *)
18279   dynamic_linker=no
18280   ;;
18281 esac
18282 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18283 echo "${ECHO_T}$dynamic_linker" >&6
18284 test "$dynamic_linker" = no && can_build_shared=no
18285
18286 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18287 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18288 hardcode_action_CXX=
18289 if test -n "$hardcode_libdir_flag_spec_CXX" || \
18290    test -n "$runpath_var CXX" || \
18291    test "X$hardcode_automatic_CXX"="Xyes" ; then
18292
18293   # We can hardcode non-existant directories.
18294   if test "$hardcode_direct_CXX" != no &&
18295      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18296      # have to relink, otherwise we might link with an installed library
18297      # when we should be linking with a yet-to-be-installed one
18298      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18299      test "$hardcode_minus_L_CXX" != no; then
18300     # Linking always hardcodes the temporary library directory.
18301     hardcode_action_CXX=relink
18302   else
18303     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18304     hardcode_action_CXX=immediate
18305   fi
18306 else
18307   # We cannot hardcode anything, or else we can only hardcode existing
18308   # directories.
18309   hardcode_action_CXX=unsupported
18310 fi
18311 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18312 echo "${ECHO_T}$hardcode_action_CXX" >&6
18313
18314 if test "$hardcode_action_CXX" = relink; then
18315   # Fast installation is not supported
18316   enable_fast_install=no
18317 elif test "$shlibpath_overrides_runpath" = yes ||
18318      test "$enable_shared" = no; then
18319   # Fast installation is not necessary
18320   enable_fast_install=needless
18321 fi
18322
18323 striplib=
18324 old_striplib=
18325 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18326 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18327 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18328   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18329   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18330   echo "$as_me:$LINENO: result: yes" >&5
18331 echo "${ECHO_T}yes" >&6
18332 else
18333 # FIXME - insert some real tests, host_os isn't really good enough
18334   case $host_os in
18335    darwin*)
18336        if test -n "$STRIP" ; then
18337          striplib="$STRIP -x"
18338          echo "$as_me:$LINENO: result: yes" >&5
18339 echo "${ECHO_T}yes" >&6
18340        else
18341   echo "$as_me:$LINENO: result: no" >&5
18342 echo "${ECHO_T}no" >&6
18343 fi
18344        ;;
18345    *)
18346   echo "$as_me:$LINENO: result: no" >&5
18347 echo "${ECHO_T}no" >&6
18348     ;;
18349   esac
18350 fi
18351
18352 if test "x$enable_dlopen" != xyes; then
18353   enable_dlopen=unknown
18354   enable_dlopen_self=unknown
18355   enable_dlopen_self_static=unknown
18356 else
18357   lt_cv_dlopen=no
18358   lt_cv_dlopen_libs=
18359
18360   case $host_os in
18361   beos*)
18362     lt_cv_dlopen="load_add_on"
18363     lt_cv_dlopen_libs=
18364     lt_cv_dlopen_self=yes
18365     ;;
18366
18367   mingw* | pw32*)
18368     lt_cv_dlopen="LoadLibrary"
18369     lt_cv_dlopen_libs=
18370    ;;
18371
18372   cygwin*)
18373     lt_cv_dlopen="dlopen"
18374     lt_cv_dlopen_libs=
18375    ;;
18376
18377   darwin*)
18378   # if libdl is installed we need to link against it
18379     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18380 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18381 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18382   echo $ECHO_N "(cached) $ECHO_C" >&6
18383 else
18384   ac_check_lib_save_LIBS=$LIBS
18385 LIBS="-ldl  $LIBS"
18386 cat >conftest.$ac_ext <<_ACEOF
18387 /* confdefs.h.  */
18388 _ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h.  */
18392
18393 /* Override any gcc2 internal prototype to avoid an error.  */
18394 #ifdef __cplusplus
18395 extern "C"
18396 #endif
18397 /* We use char because int might match the return type of a gcc2
18398    builtin and then its argument prototype would still apply.  */
18399 char dlopen ();
18400 int
18401 main ()
18402 {
18403 dlopen ();
18404   ;
18405   return 0;
18406 }
18407 _ACEOF
18408 rm -f conftest.$ac_objext conftest$ac_exeext
18409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18410   (eval $ac_link) 2>conftest.er1
18411   ac_status=$?
18412   grep -v '^ *+' conftest.er1 >conftest.err
18413   rm -f conftest.er1
18414   cat conftest.err >&5
18415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416   (exit $ac_status); } &&
18417          { ac_try='test -z "$ac_cxx_werror_flag"
18418                          || test ! -s conftest.err'
18419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420   (eval $ac_try) 2>&5
18421   ac_status=$?
18422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); }; } &&
18424          { ac_try='test -s conftest$ac_exeext'
18425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426   (eval $ac_try) 2>&5
18427   ac_status=$?
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); }; }; then
18430   ac_cv_lib_dl_dlopen=yes
18431 else
18432   echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18434
18435 ac_cv_lib_dl_dlopen=no
18436 fi
18437 rm -f conftest.err conftest.$ac_objext \
18438       conftest$ac_exeext conftest.$ac_ext
18439 LIBS=$ac_check_lib_save_LIBS
18440 fi
18441 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18442 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18443 if test $ac_cv_lib_dl_dlopen = yes; then
18444   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18445 else
18446
18447     lt_cv_dlopen="dyld"
18448     lt_cv_dlopen_libs=
18449     lt_cv_dlopen_self=yes
18450
18451 fi
18452
18453    ;;
18454
18455   *)
18456     echo "$as_me:$LINENO: checking for shl_load" >&5
18457 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18458 if test "${ac_cv_func_shl_load+set}" = set; then
18459   echo $ECHO_N "(cached) $ECHO_C" >&6
18460 else
18461   cat >conftest.$ac_ext <<_ACEOF
18462 /* confdefs.h.  */
18463 _ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h.  */
18467 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18469 #define shl_load innocuous_shl_load
18470
18471 /* System header to define __stub macros and hopefully few prototypes,
18472     which can conflict with char shl_load (); below.
18473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18474     <limits.h> exists even on freestanding compilers.  */
18475
18476 #ifdef __STDC__
18477 # include <limits.h>
18478 #else
18479 # include <assert.h>
18480 #endif
18481
18482 #undef shl_load
18483
18484 /* Override any gcc2 internal prototype to avoid an error.  */
18485 #ifdef __cplusplus
18486 extern "C"
18487 {
18488 #endif
18489 /* We use char because int might match the return type of a gcc2
18490    builtin and then its argument prototype would still apply.  */
18491 char shl_load ();
18492 /* The GNU C library defines this for functions which it implements
18493     to always fail with ENOSYS.  Some functions are actually named
18494     something starting with __ and the normal name is an alias.  */
18495 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18496 choke me
18497 #else
18498 char (*f) () = shl_load;
18499 #endif
18500 #ifdef __cplusplus
18501 }
18502 #endif
18503
18504 int
18505 main ()
18506 {
18507 return f != shl_load;
18508   ;
18509   return 0;
18510 }
18511 _ACEOF
18512 rm -f conftest.$ac_objext conftest$ac_exeext
18513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18514   (eval $ac_link) 2>conftest.er1
18515   ac_status=$?
18516   grep -v '^ *+' conftest.er1 >conftest.err
18517   rm -f conftest.er1
18518   cat conftest.err >&5
18519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520   (exit $ac_status); } &&
18521          { ac_try='test -z "$ac_cxx_werror_flag"
18522                          || test ! -s conftest.err'
18523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524   (eval $ac_try) 2>&5
18525   ac_status=$?
18526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527   (exit $ac_status); }; } &&
18528          { ac_try='test -s conftest$ac_exeext'
18529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530   (eval $ac_try) 2>&5
18531   ac_status=$?
18532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533   (exit $ac_status); }; }; then
18534   ac_cv_func_shl_load=yes
18535 else
18536   echo "$as_me: failed program was:" >&5
18537 sed 's/^/| /' conftest.$ac_ext >&5
18538
18539 ac_cv_func_shl_load=no
18540 fi
18541 rm -f conftest.err conftest.$ac_objext \
18542       conftest$ac_exeext conftest.$ac_ext
18543 fi
18544 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18545 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18546 if test $ac_cv_func_shl_load = yes; then
18547   lt_cv_dlopen="shl_load"
18548 else
18549   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18550 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18551 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18552   echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554   ac_check_lib_save_LIBS=$LIBS
18555 LIBS="-ldld  $LIBS"
18556 cat >conftest.$ac_ext <<_ACEOF
18557 /* confdefs.h.  */
18558 _ACEOF
18559 cat confdefs.h >>conftest.$ac_ext
18560 cat >>conftest.$ac_ext <<_ACEOF
18561 /* end confdefs.h.  */
18562
18563 /* Override any gcc2 internal prototype to avoid an error.  */
18564 #ifdef __cplusplus
18565 extern "C"
18566 #endif
18567 /* We use char because int might match the return type of a gcc2
18568    builtin and then its argument prototype would still apply.  */
18569 char shl_load ();
18570 int
18571 main ()
18572 {
18573 shl_load ();
18574   ;
18575   return 0;
18576 }
18577 _ACEOF
18578 rm -f conftest.$ac_objext conftest$ac_exeext
18579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18580   (eval $ac_link) 2>conftest.er1
18581   ac_status=$?
18582   grep -v '^ *+' conftest.er1 >conftest.err
18583   rm -f conftest.er1
18584   cat conftest.err >&5
18585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586   (exit $ac_status); } &&
18587          { ac_try='test -z "$ac_cxx_werror_flag"
18588                          || test ! -s conftest.err'
18589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590   (eval $ac_try) 2>&5
18591   ac_status=$?
18592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593   (exit $ac_status); }; } &&
18594          { ac_try='test -s conftest$ac_exeext'
18595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596   (eval $ac_try) 2>&5
18597   ac_status=$?
18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599   (exit $ac_status); }; }; then
18600   ac_cv_lib_dld_shl_load=yes
18601 else
18602   echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18604
18605 ac_cv_lib_dld_shl_load=no
18606 fi
18607 rm -f conftest.err conftest.$ac_objext \
18608       conftest$ac_exeext conftest.$ac_ext
18609 LIBS=$ac_check_lib_save_LIBS
18610 fi
18611 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18612 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18613 if test $ac_cv_lib_dld_shl_load = yes; then
18614   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18615 else
18616   echo "$as_me:$LINENO: checking for dlopen" >&5
18617 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18618 if test "${ac_cv_func_dlopen+set}" = set; then
18619   echo $ECHO_N "(cached) $ECHO_C" >&6
18620 else
18621   cat >conftest.$ac_ext <<_ACEOF
18622 /* confdefs.h.  */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h.  */
18627 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18629 #define dlopen innocuous_dlopen
18630
18631 /* System header to define __stub macros and hopefully few prototypes,
18632     which can conflict with char dlopen (); below.
18633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18634     <limits.h> exists even on freestanding compilers.  */
18635
18636 #ifdef __STDC__
18637 # include <limits.h>
18638 #else
18639 # include <assert.h>
18640 #endif
18641
18642 #undef dlopen
18643
18644 /* Override any gcc2 internal prototype to avoid an error.  */
18645 #ifdef __cplusplus
18646 extern "C"
18647 {
18648 #endif
18649 /* We use char because int might match the return type of a gcc2
18650    builtin and then its argument prototype would still apply.  */
18651 char dlopen ();
18652 /* The GNU C library defines this for functions which it implements
18653     to always fail with ENOSYS.  Some functions are actually named
18654     something starting with __ and the normal name is an alias.  */
18655 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18656 choke me
18657 #else
18658 char (*f) () = dlopen;
18659 #endif
18660 #ifdef __cplusplus
18661 }
18662 #endif
18663
18664 int
18665 main ()
18666 {
18667 return f != dlopen;
18668   ;
18669   return 0;
18670 }
18671 _ACEOF
18672 rm -f conftest.$ac_objext conftest$ac_exeext
18673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18674   (eval $ac_link) 2>conftest.er1
18675   ac_status=$?
18676   grep -v '^ *+' conftest.er1 >conftest.err
18677   rm -f conftest.er1
18678   cat conftest.err >&5
18679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); } &&
18681          { ac_try='test -z "$ac_cxx_werror_flag"
18682                          || test ! -s conftest.err'
18683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684   (eval $ac_try) 2>&5
18685   ac_status=$?
18686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687   (exit $ac_status); }; } &&
18688          { ac_try='test -s conftest$ac_exeext'
18689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690   (eval $ac_try) 2>&5
18691   ac_status=$?
18692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693   (exit $ac_status); }; }; then
18694   ac_cv_func_dlopen=yes
18695 else
18696   echo "$as_me: failed program was:" >&5
18697 sed 's/^/| /' conftest.$ac_ext >&5
18698
18699 ac_cv_func_dlopen=no
18700 fi
18701 rm -f conftest.err conftest.$ac_objext \
18702       conftest$ac_exeext conftest.$ac_ext
18703 fi
18704 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18705 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18706 if test $ac_cv_func_dlopen = yes; then
18707   lt_cv_dlopen="dlopen"
18708 else
18709   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18710 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18711 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18712   echo $ECHO_N "(cached) $ECHO_C" >&6
18713 else
18714   ac_check_lib_save_LIBS=$LIBS
18715 LIBS="-ldl  $LIBS"
18716 cat >conftest.$ac_ext <<_ACEOF
18717 /* confdefs.h.  */
18718 _ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h.  */
18722
18723 /* Override any gcc2 internal prototype to avoid an error.  */
18724 #ifdef __cplusplus
18725 extern "C"
18726 #endif
18727 /* We use char because int might match the return type of a gcc2
18728    builtin and then its argument prototype would still apply.  */
18729 char dlopen ();
18730 int
18731 main ()
18732 {
18733 dlopen ();
18734   ;
18735   return 0;
18736 }
18737 _ACEOF
18738 rm -f conftest.$ac_objext conftest$ac_exeext
18739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18740   (eval $ac_link) 2>conftest.er1
18741   ac_status=$?
18742   grep -v '^ *+' conftest.er1 >conftest.err
18743   rm -f conftest.er1
18744   cat conftest.err >&5
18745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746   (exit $ac_status); } &&
18747          { ac_try='test -z "$ac_cxx_werror_flag"
18748                          || test ! -s conftest.err'
18749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18750   (eval $ac_try) 2>&5
18751   ac_status=$?
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); }; } &&
18754          { ac_try='test -s conftest$ac_exeext'
18755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756   (eval $ac_try) 2>&5
18757   ac_status=$?
18758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759   (exit $ac_status); }; }; then
18760   ac_cv_lib_dl_dlopen=yes
18761 else
18762   echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18764
18765 ac_cv_lib_dl_dlopen=no
18766 fi
18767 rm -f conftest.err conftest.$ac_objext \
18768       conftest$ac_exeext conftest.$ac_ext
18769 LIBS=$ac_check_lib_save_LIBS
18770 fi
18771 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18772 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18773 if test $ac_cv_lib_dl_dlopen = yes; then
18774   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18775 else
18776   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18777 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18778 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18779   echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781   ac_check_lib_save_LIBS=$LIBS
18782 LIBS="-lsvld  $LIBS"
18783 cat >conftest.$ac_ext <<_ACEOF
18784 /* confdefs.h.  */
18785 _ACEOF
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h.  */
18789
18790 /* Override any gcc2 internal prototype to avoid an error.  */
18791 #ifdef __cplusplus
18792 extern "C"
18793 #endif
18794 /* We use char because int might match the return type of a gcc2
18795    builtin and then its argument prototype would still apply.  */
18796 char dlopen ();
18797 int
18798 main ()
18799 {
18800 dlopen ();
18801   ;
18802   return 0;
18803 }
18804 _ACEOF
18805 rm -f conftest.$ac_objext conftest$ac_exeext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18807   (eval $ac_link) 2>conftest.er1
18808   ac_status=$?
18809   grep -v '^ *+' conftest.er1 >conftest.err
18810   rm -f conftest.er1
18811   cat conftest.err >&5
18812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813   (exit $ac_status); } &&
18814          { ac_try='test -z "$ac_cxx_werror_flag"
18815                          || test ! -s conftest.err'
18816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817   (eval $ac_try) 2>&5
18818   ac_status=$?
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); }; } &&
18821          { ac_try='test -s conftest$ac_exeext'
18822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823   (eval $ac_try) 2>&5
18824   ac_status=$?
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); }; }; then
18827   ac_cv_lib_svld_dlopen=yes
18828 else
18829   echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18831
18832 ac_cv_lib_svld_dlopen=no
18833 fi
18834 rm -f conftest.err conftest.$ac_objext \
18835       conftest$ac_exeext conftest.$ac_ext
18836 LIBS=$ac_check_lib_save_LIBS
18837 fi
18838 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18839 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18840 if test $ac_cv_lib_svld_dlopen = yes; then
18841   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18842 else
18843   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18844 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18845 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18846   echo $ECHO_N "(cached) $ECHO_C" >&6
18847 else
18848   ac_check_lib_save_LIBS=$LIBS
18849 LIBS="-ldld  $LIBS"
18850 cat >conftest.$ac_ext <<_ACEOF
18851 /* confdefs.h.  */
18852 _ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h.  */
18856
18857 /* Override any gcc2 internal prototype to avoid an error.  */
18858 #ifdef __cplusplus
18859 extern "C"
18860 #endif
18861 /* We use char because int might match the return type of a gcc2
18862    builtin and then its argument prototype would still apply.  */
18863 char dld_link ();
18864 int
18865 main ()
18866 {
18867 dld_link ();
18868   ;
18869   return 0;
18870 }
18871 _ACEOF
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18874   (eval $ac_link) 2>conftest.er1
18875   ac_status=$?
18876   grep -v '^ *+' conftest.er1 >conftest.err
18877   rm -f conftest.er1
18878   cat conftest.err >&5
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); } &&
18881          { ac_try='test -z "$ac_cxx_werror_flag"
18882                          || test ! -s conftest.err'
18883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884   (eval $ac_try) 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); }; } &&
18888          { ac_try='test -s conftest$ac_exeext'
18889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890   (eval $ac_try) 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; }; then
18894   ac_cv_lib_dld_dld_link=yes
18895 else
18896   echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18898
18899 ac_cv_lib_dld_dld_link=no
18900 fi
18901 rm -f conftest.err conftest.$ac_objext \
18902       conftest$ac_exeext conftest.$ac_ext
18903 LIBS=$ac_check_lib_save_LIBS
18904 fi
18905 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18906 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18907 if test $ac_cv_lib_dld_dld_link = yes; then
18908   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18909 fi
18910
18911
18912 fi
18913
18914
18915 fi
18916
18917
18918 fi
18919
18920
18921 fi
18922
18923
18924 fi
18925
18926     ;;
18927   esac
18928
18929   if test "x$lt_cv_dlopen" != xno; then
18930     enable_dlopen=yes
18931   else
18932     enable_dlopen=no
18933   fi
18934
18935   case $lt_cv_dlopen in
18936   dlopen)
18937     save_CPPFLAGS="$CPPFLAGS"
18938     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18939
18940     save_LDFLAGS="$LDFLAGS"
18941     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18942
18943     save_LIBS="$LIBS"
18944     LIBS="$lt_cv_dlopen_libs $LIBS"
18945
18946     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18947 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18948 if test "${lt_cv_dlopen_self+set}" = set; then
18949   echo $ECHO_N "(cached) $ECHO_C" >&6
18950 else
18951           if test "$cross_compiling" = yes; then :
18952   lt_cv_dlopen_self=cross
18953 else
18954   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18955   lt_status=$lt_dlunknown
18956   cat > conftest.$ac_ext <<EOF
18957 #line 18957 "configure"
18958 #include "confdefs.h"
18959
18960 #if HAVE_DLFCN_H
18961 #include <dlfcn.h>
18962 #endif
18963
18964 #include <stdio.h>
18965
18966 #ifdef RTLD_GLOBAL
18967 #  define LT_DLGLOBAL           RTLD_GLOBAL
18968 #else
18969 #  ifdef DL_GLOBAL
18970 #    define LT_DLGLOBAL         DL_GLOBAL
18971 #  else
18972 #    define LT_DLGLOBAL         0
18973 #  endif
18974 #endif
18975
18976 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18977    find out it does not work in some platform. */
18978 #ifndef LT_DLLAZY_OR_NOW
18979 #  ifdef RTLD_LAZY
18980 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18981 #  else
18982 #    ifdef DL_LAZY
18983 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18984 #    else
18985 #      ifdef RTLD_NOW
18986 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18987 #      else
18988 #        ifdef DL_NOW
18989 #          define LT_DLLAZY_OR_NOW      DL_NOW
18990 #        else
18991 #          define LT_DLLAZY_OR_NOW      0
18992 #        endif
18993 #      endif
18994 #    endif
18995 #  endif
18996 #endif
18997
18998 #ifdef __cplusplus
18999 extern "C" void exit (int);
19000 #endif
19001
19002 void fnord() { int i=42;}
19003 int main ()
19004 {
19005   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19006   int status = $lt_dlunknown;
19007
19008   if (self)
19009     {
19010       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19011       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19012       /* dlclose (self); */
19013     }
19014
19015     exit (status);
19016 }
19017 EOF
19018   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19019   (eval $ac_link) 2>&5
19020   ac_status=$?
19021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19023     (./conftest; exit; ) 2>/dev/null
19024     lt_status=$?
19025     case x$lt_status in
19026       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19027       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19028       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19029     esac
19030   else :
19031     # compilation failed
19032     lt_cv_dlopen_self=no
19033   fi
19034 fi
19035 rm -fr conftest*
19036
19037
19038 fi
19039 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19040 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19041
19042     if test "x$lt_cv_dlopen_self" = xyes; then
19043       LDFLAGS="$LDFLAGS $link_static_flag"
19044       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19045 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19046 if test "${lt_cv_dlopen_self_static+set}" = set; then
19047   echo $ECHO_N "(cached) $ECHO_C" >&6
19048 else
19049           if test "$cross_compiling" = yes; then :
19050   lt_cv_dlopen_self_static=cross
19051 else
19052   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19053   lt_status=$lt_dlunknown
19054   cat > conftest.$ac_ext <<EOF
19055 #line 19055 "configure"
19056 #include "confdefs.h"
19057
19058 #if HAVE_DLFCN_H
19059 #include <dlfcn.h>
19060 #endif
19061
19062 #include <stdio.h>
19063
19064 #ifdef RTLD_GLOBAL
19065 #  define LT_DLGLOBAL           RTLD_GLOBAL
19066 #else
19067 #  ifdef DL_GLOBAL
19068 #    define LT_DLGLOBAL         DL_GLOBAL
19069 #  else
19070 #    define LT_DLGLOBAL         0
19071 #  endif
19072 #endif
19073
19074 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19075    find out it does not work in some platform. */
19076 #ifndef LT_DLLAZY_OR_NOW
19077 #  ifdef RTLD_LAZY
19078 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19079 #  else
19080 #    ifdef DL_LAZY
19081 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19082 #    else
19083 #      ifdef RTLD_NOW
19084 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19085 #      else
19086 #        ifdef DL_NOW
19087 #          define LT_DLLAZY_OR_NOW      DL_NOW
19088 #        else
19089 #          define LT_DLLAZY_OR_NOW      0
19090 #        endif
19091 #      endif
19092 #    endif
19093 #  endif
19094 #endif
19095
19096 #ifdef __cplusplus
19097 extern "C" void exit (int);
19098 #endif
19099
19100 void fnord() { int i=42;}
19101 int main ()
19102 {
19103   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19104   int status = $lt_dlunknown;
19105
19106   if (self)
19107     {
19108       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19109       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19110       /* dlclose (self); */
19111     }
19112
19113     exit (status);
19114 }
19115 EOF
19116   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19117   (eval $ac_link) 2>&5
19118   ac_status=$?
19119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19121     (./conftest; exit; ) 2>/dev/null
19122     lt_status=$?
19123     case x$lt_status in
19124       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19125       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19126       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19127     esac
19128   else :
19129     # compilation failed
19130     lt_cv_dlopen_self_static=no
19131   fi
19132 fi
19133 rm -fr conftest*
19134
19135
19136 fi
19137 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19138 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19139     fi
19140
19141     CPPFLAGS="$save_CPPFLAGS"
19142     LDFLAGS="$save_LDFLAGS"
19143     LIBS="$save_LIBS"
19144     ;;
19145   esac
19146
19147   case $lt_cv_dlopen_self in
19148   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19149   *) enable_dlopen_self=unknown ;;
19150   esac
19151
19152   case $lt_cv_dlopen_self_static in
19153   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19154   *) enable_dlopen_self_static=unknown ;;
19155   esac
19156 fi
19157
19158
19159 # The else clause should only fire when bootstrapping the
19160 # libtool distribution, otherwise you forgot to ship ltmain.sh
19161 # with your package, and you will get complaints that there are
19162 # no rules to generate ltmain.sh.
19163 if test -f "$ltmain"; then
19164   # See if we are running on zsh, and set the options which allow our commands through
19165   # without removal of \ escapes.
19166   if test -n "${ZSH_VERSION+set}" ; then
19167     setopt NO_GLOB_SUBST
19168   fi
19169   # Now quote all the things that may contain metacharacters while being
19170   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19171   # variables and quote the copies for generation of the libtool script.
19172   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19173     SED SHELL STRIP \
19174     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19175     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19176     deplibs_check_method reload_flag reload_cmds need_locks \
19177     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19178     lt_cv_sys_global_symbol_to_c_name_address \
19179     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19180     old_postinstall_cmds old_postuninstall_cmds \
19181     compiler_CXX \
19182     CC_CXX \
19183     LD_CXX \
19184     lt_prog_compiler_wl_CXX \
19185     lt_prog_compiler_pic_CXX \
19186     lt_prog_compiler_static_CXX \
19187     lt_prog_compiler_no_builtin_flag_CXX \
19188     export_dynamic_flag_spec_CXX \
19189     thread_safe_flag_spec_CXX \
19190     whole_archive_flag_spec_CXX \
19191     enable_shared_with_static_runtimes_CXX \
19192     old_archive_cmds_CXX \
19193     old_archive_from_new_cmds_CXX \
19194     predep_objects_CXX \
19195     postdep_objects_CXX \
19196     predeps_CXX \
19197     postdeps_CXX \
19198     compiler_lib_search_path_CXX \
19199     archive_cmds_CXX \
19200     archive_expsym_cmds_CXX \
19201     postinstall_cmds_CXX \
19202     postuninstall_cmds_CXX \
19203     old_archive_from_expsyms_cmds_CXX \
19204     allow_undefined_flag_CXX \
19205     no_undefined_flag_CXX \
19206     export_symbols_cmds_CXX \
19207     hardcode_libdir_flag_spec_CXX \
19208     hardcode_libdir_flag_spec_ld_CXX \
19209     hardcode_libdir_separator_CXX \
19210     hardcode_automatic_CXX \
19211     module_cmds_CXX \
19212     module_expsym_cmds_CXX \
19213     lt_cv_prog_compiler_c_o_CXX \
19214     exclude_expsyms_CXX \
19215     include_expsyms_CXX; do
19216
19217     case $var in
19218     old_archive_cmds_CXX | \
19219     old_archive_from_new_cmds_CXX | \
19220     archive_cmds_CXX | \
19221     archive_expsym_cmds_CXX | \
19222     module_cmds_CXX | \
19223     module_expsym_cmds_CXX | \
19224     old_archive_from_expsyms_cmds_CXX | \
19225     export_symbols_cmds_CXX | \
19226     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19227     postinstall_cmds | postuninstall_cmds | \
19228     old_postinstall_cmds | old_postuninstall_cmds | \
19229     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19230       # Double-quote double-evaled strings.
19231       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19232       ;;
19233     *)
19234       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19235       ;;
19236     esac
19237   done
19238
19239   case $lt_echo in
19240   *'\$0 --fallback-echo"')
19241     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19242     ;;
19243   esac
19244
19245 cfgfile="$ofile"
19246
19247   cat <<__EOF__ >> "$cfgfile"
19248 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19249
19250 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19251
19252 # Shell to use when invoking shell scripts.
19253 SHELL=$lt_SHELL
19254
19255 # Whether or not to build shared libraries.
19256 build_libtool_libs=$enable_shared
19257
19258 # Whether or not to build static libraries.
19259 build_old_libs=$enable_static
19260
19261 # Whether or not to add -lc for building shared libraries.
19262 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19263
19264 # Whether or not to disallow shared libs when runtime libs are static
19265 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19266
19267 # Whether or not to optimize for fast installation.
19268 fast_install=$enable_fast_install
19269
19270 # The host system.
19271 host_alias=$host_alias
19272 host=$host
19273
19274 # An echo program that does not interpret backslashes.
19275 echo=$lt_echo
19276
19277 # The archiver.
19278 AR=$lt_AR
19279 AR_FLAGS=$lt_AR_FLAGS
19280
19281 # A C compiler.
19282 LTCC=$lt_LTCC
19283
19284 # A language-specific compiler.
19285 CC=$lt_compiler_CXX
19286
19287 # Is the compiler the GNU C compiler?
19288 with_gcc=$GCC_CXX
19289
19290 # An ERE matcher.
19291 EGREP=$lt_EGREP
19292
19293 # The linker used to build libraries.
19294 LD=$lt_LD_CXX
19295
19296 # Whether we need hard or soft links.
19297 LN_S=$lt_LN_S
19298
19299 # A BSD-compatible nm program.
19300 NM=$lt_NM
19301
19302 # A symbol stripping program
19303 STRIP=$lt_STRIP
19304
19305 # Used to examine libraries when file_magic_cmd begins "file"
19306 MAGIC_CMD=$MAGIC_CMD
19307
19308 # Used on cygwin: DLL creation program.
19309 DLLTOOL="$DLLTOOL"
19310
19311 # Used on cygwin: object dumper.
19312 OBJDUMP="$OBJDUMP"
19313
19314 # Used on cygwin: assembler.
19315 AS="$AS"
19316
19317 # The name of the directory that contains temporary libtool files.
19318 objdir=$objdir
19319
19320 # How to create reloadable object files.
19321 reload_flag=$lt_reload_flag
19322 reload_cmds=$lt_reload_cmds
19323
19324 # How to pass a linker flag through the compiler.
19325 wl=$lt_lt_prog_compiler_wl_CXX
19326
19327 # Object file suffix (normally "o").
19328 objext="$ac_objext"
19329
19330 # Old archive suffix (normally "a").
19331 libext="$libext"
19332
19333 # Shared library suffix (normally ".so").
19334 shrext_cmds='$shrext_cmds'
19335
19336 # Executable file suffix (normally "").
19337 exeext="$exeext"
19338
19339 # Additional compiler flags for building library objects.
19340 pic_flag=$lt_lt_prog_compiler_pic_CXX
19341 pic_mode=$pic_mode
19342
19343 # What is the maximum length of a command?
19344 max_cmd_len=$lt_cv_sys_max_cmd_len
19345
19346 # Does compiler simultaneously support -c and -o options?
19347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19348
19349 # Must we lock files when doing compilation ?
19350 need_locks=$lt_need_locks
19351
19352 # Do we need the lib prefix for modules?
19353 need_lib_prefix=$need_lib_prefix
19354
19355 # Do we need a version for libraries?
19356 need_version=$need_version
19357
19358 # Whether dlopen is supported.
19359 dlopen_support=$enable_dlopen
19360
19361 # Whether dlopen of programs is supported.
19362 dlopen_self=$enable_dlopen_self
19363
19364 # Whether dlopen of statically linked programs is supported.
19365 dlopen_self_static=$enable_dlopen_self_static
19366
19367 # Compiler flag to prevent dynamic linking.
19368 link_static_flag=$lt_lt_prog_compiler_static_CXX
19369
19370 # Compiler flag to turn off builtin functions.
19371 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19372
19373 # Compiler flag to allow reflexive dlopens.
19374 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19375
19376 # Compiler flag to generate shared objects directly from archives.
19377 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19378
19379 # Compiler flag to generate thread-safe objects.
19380 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19381
19382 # Library versioning type.
19383 version_type=$version_type
19384
19385 # Format of library name prefix.
19386 libname_spec=$lt_libname_spec
19387
19388 # List of archive names.  First name is the real one, the rest are links.
19389 # The last name is the one that the linker finds with -lNAME.
19390 library_names_spec=$lt_library_names_spec
19391
19392 # The coded name of the library, if different from the real name.
19393 soname_spec=$lt_soname_spec
19394
19395 # Commands used to build and install an old-style archive.
19396 RANLIB=$lt_RANLIB
19397 old_archive_cmds=$lt_old_archive_cmds_CXX
19398 old_postinstall_cmds=$lt_old_postinstall_cmds
19399 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19400
19401 # Create an old-style archive from a shared archive.
19402 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19403
19404 # Create a temporary old-style archive to link instead of a shared archive.
19405 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19406
19407 # Commands used to build and install a shared archive.
19408 archive_cmds=$lt_archive_cmds_CXX
19409 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19410 postinstall_cmds=$lt_postinstall_cmds
19411 postuninstall_cmds=$lt_postuninstall_cmds
19412
19413 # Commands used to build a loadable module (assumed same as above if empty)
19414 module_cmds=$lt_module_cmds_CXX
19415 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19416
19417 # Commands to strip libraries.
19418 old_striplib=$lt_old_striplib
19419 striplib=$lt_striplib
19420
19421 # Dependencies to place before the objects being linked to create a
19422 # shared library.
19423 predep_objects=$lt_predep_objects_CXX
19424
19425 # Dependencies to place after the objects being linked to create a
19426 # shared library.
19427 postdep_objects=$lt_postdep_objects_CXX
19428
19429 # Dependencies to place before the objects being linked to create a
19430 # shared library.
19431 predeps=$lt_predeps_CXX
19432
19433 # Dependencies to place after the objects being linked to create a
19434 # shared library.
19435 postdeps=$lt_postdeps_CXX
19436
19437 # The library search path used internally by the compiler when linking
19438 # a shared library.
19439 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19440
19441 # Method to check whether dependent libraries are shared objects.
19442 deplibs_check_method=$lt_deplibs_check_method
19443
19444 # Command to use when deplibs_check_method == file_magic.
19445 file_magic_cmd=$lt_file_magic_cmd
19446
19447 # Flag that allows shared libraries with undefined symbols to be built.
19448 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19449
19450 # Flag that forces no undefined symbols.
19451 no_undefined_flag=$lt_no_undefined_flag_CXX
19452
19453 # Commands used to finish a libtool library installation in a directory.
19454 finish_cmds=$lt_finish_cmds
19455
19456 # Same as above, but a single script fragment to be evaled but not shown.
19457 finish_eval=$lt_finish_eval
19458
19459 # Take the output of nm and produce a listing of raw symbols and C names.
19460 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19461
19462 # Transform the output of nm in a proper C declaration
19463 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19464
19465 # Transform the output of nm in a C name address pair
19466 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19467
19468 # This is the shared library runtime path variable.
19469 runpath_var=$runpath_var
19470
19471 # This is the shared library path variable.
19472 shlibpath_var=$shlibpath_var
19473
19474 # Is shlibpath searched before the hard-coded library search path?
19475 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19476
19477 # How to hardcode a shared library path into an executable.
19478 hardcode_action=$hardcode_action_CXX
19479
19480 # Whether we should hardcode library paths into libraries.
19481 hardcode_into_libs=$hardcode_into_libs
19482
19483 # Flag to hardcode \$libdir into a binary during linking.
19484 # This must work even if \$libdir does not exist.
19485 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19486
19487 # If ld is used when linking, flag to hardcode \$libdir into
19488 # a binary during linking. This must work even if \$libdir does
19489 # not exist.
19490 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19491
19492 # Whether we need a single -rpath flag with a separated argument.
19493 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19494
19495 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19496 # resulting binary.
19497 hardcode_direct=$hardcode_direct_CXX
19498
19499 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19500 # resulting binary.
19501 hardcode_minus_L=$hardcode_minus_L_CXX
19502
19503 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19504 # the resulting binary.
19505 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19506
19507 # Set to yes if building a shared library automatically hardcodes DIR into the library
19508 # and all subsequent libraries and executables linked against it.
19509 hardcode_automatic=$hardcode_automatic_CXX
19510
19511 # Variables whose values should be saved in libtool wrapper scripts and
19512 # restored at relink time.
19513 variables_saved_for_relink="$variables_saved_for_relink"
19514
19515 # Whether libtool must link a program against all its dependency libraries.
19516 link_all_deplibs=$link_all_deplibs_CXX
19517
19518 # Compile-time system search path for libraries
19519 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19520
19521 # Run-time system search path for libraries
19522 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19523
19524 # Fix the shell variable \$srcfile for the compiler.
19525 fix_srcfile_path="$fix_srcfile_path_CXX"
19526
19527 # Set to yes if exported symbols are required.
19528 always_export_symbols=$always_export_symbols_CXX
19529
19530 # The commands to list exported symbols.
19531 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19532
19533 # The commands to extract the exported symbol list from a shared archive.
19534 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19535
19536 # Symbols that should not be listed in the preloaded symbols.
19537 exclude_expsyms=$lt_exclude_expsyms_CXX
19538
19539 # Symbols that must always be exported.
19540 include_expsyms=$lt_include_expsyms_CXX
19541
19542 # ### END LIBTOOL TAG CONFIG: $tagname
19543
19544 __EOF__
19545
19546
19547 else
19548   # If there is no Makefile yet, we rely on a make rule to execute
19549   # `config.status --recheck' to rerun these tests and create the
19550   # libtool script then.
19551   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19552   if test -f "$ltmain_in"; then
19553     test -f Makefile && make "$ltmain"
19554   fi
19555 fi
19556
19557
19558 ac_ext=c
19559 ac_cpp='$CPP $CPPFLAGS'
19560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19563
19564 CC=$lt_save_CC
19565 LDCXX=$LD
19566 LD=$lt_save_LD
19567 GCC=$lt_save_GCC
19568 with_gnu_ldcxx=$with_gnu_ld
19569 with_gnu_ld=$lt_save_with_gnu_ld
19570 lt_cv_path_LDCXX=$lt_cv_path_LD
19571 lt_cv_path_LD=$lt_save_path_LD
19572 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19573 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19574
19575         else
19576           tagname=""
19577         fi
19578         ;;
19579
19580       F77)
19581         if test -n "$F77" && test "X$F77" != "Xno"; then
19582
19583 ac_ext=f
19584 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19585 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19586 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19587
19588
19589 archive_cmds_need_lc_F77=no
19590 allow_undefined_flag_F77=
19591 always_export_symbols_F77=no
19592 archive_expsym_cmds_F77=
19593 export_dynamic_flag_spec_F77=
19594 hardcode_direct_F77=no
19595 hardcode_libdir_flag_spec_F77=
19596 hardcode_libdir_flag_spec_ld_F77=
19597 hardcode_libdir_separator_F77=
19598 hardcode_minus_L_F77=no
19599 hardcode_automatic_F77=no
19600 module_cmds_F77=
19601 module_expsym_cmds_F77=
19602 link_all_deplibs_F77=unknown
19603 old_archive_cmds_F77=$old_archive_cmds
19604 no_undefined_flag_F77=
19605 whole_archive_flag_spec_F77=
19606 enable_shared_with_static_runtimes_F77=no
19607
19608 # Source file extension for f77 test sources.
19609 ac_ext=f
19610
19611 # Object file extension for compiled f77 test sources.
19612 objext=o
19613 objext_F77=$objext
19614
19615 # Code to be used in simple compile tests
19616 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
19617
19618 # Code to be used in simple link tests
19619 lt_simple_link_test_code="      program t\n      end\n"
19620
19621 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19622
19623 # If no C compiler was specified, use CC.
19624 LTCC=${LTCC-"$CC"}
19625
19626 # Allow CC to be a program name with arguments.
19627 compiler=$CC
19628
19629
19630 # Allow CC to be a program name with arguments.
19631 lt_save_CC="$CC"
19632 CC=${F77-"f77"}
19633 compiler=$CC
19634 compiler_F77=$CC
19635 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
19636
19637 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19638 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19639 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19640 echo "${ECHO_T}$can_build_shared" >&6
19641
19642 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19643 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19644 test "$can_build_shared" = "no" && enable_shared=no
19645
19646 # On AIX, shared libraries and static libraries use the same namespace, and
19647 # are all built from PIC.
19648 case "$host_os" in
19649 aix3*)
19650   test "$enable_shared" = yes && enable_static=no
19651   if test -n "$RANLIB"; then
19652     archive_cmds="$archive_cmds~\$RANLIB \$lib"
19653     postinstall_cmds='$RANLIB $lib'
19654   fi
19655   ;;
19656 aix4* | aix5*)
19657   test "$enable_shared" = yes && enable_static=no
19658   ;;
19659 esac
19660 echo "$as_me:$LINENO: result: $enable_shared" >&5
19661 echo "${ECHO_T}$enable_shared" >&6
19662
19663 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19664 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19665 # Make sure either enable_shared or enable_static is yes.
19666 test "$enable_shared" = yes || enable_static=yes
19667 echo "$as_me:$LINENO: result: $enable_static" >&5
19668 echo "${ECHO_T}$enable_static" >&6
19669
19670 test "$ld_shlibs_F77" = no && can_build_shared=no
19671
19672 GCC_F77="$G77"
19673 LD_F77="$LD"
19674
19675 lt_prog_compiler_wl_F77=
19676 lt_prog_compiler_pic_F77=
19677 lt_prog_compiler_static_F77=
19678
19679 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19680 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19681
19682   if test "$GCC" = yes; then
19683     lt_prog_compiler_wl_F77='-Wl,'
19684     lt_prog_compiler_static_F77='-static'
19685
19686     case $host_os in
19687       aix*)
19688       # All AIX code is PIC.
19689       if test "$host_cpu" = ia64; then
19690         # AIX 5 now supports IA64 processor
19691         lt_prog_compiler_static_F77='-Bstatic'
19692       fi
19693       ;;
19694
19695     amigaos*)
19696       # FIXME: we need at least 68020 code to build shared libraries, but
19697       # adding the `-m68020' flag to GCC prevents building anything better,
19698       # like `-m68040'.
19699       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19700       ;;
19701
19702     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19703       # PIC is the default for these OSes.
19704       ;;
19705
19706     mingw* | pw32* | os2*)
19707       # This hack is so that the source file can tell whether it is being
19708       # built for inclusion in a dll (and should export symbols for example).
19709       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19710       ;;
19711
19712     darwin* | rhapsody*)
19713       # PIC is the default on this platform
19714       # Common symbols not allowed in MH_DYLIB files
19715       lt_prog_compiler_pic_F77='-fno-common'
19716       ;;
19717
19718     msdosdjgpp*)
19719       # Just because we use GCC doesn't mean we suddenly get shared libraries
19720       # on systems that don't support them.
19721       lt_prog_compiler_can_build_shared_F77=no
19722       enable_shared=no
19723       ;;
19724
19725     sysv4*MP*)
19726       if test -d /usr/nec; then
19727         lt_prog_compiler_pic_F77=-Kconform_pic
19728       fi
19729       ;;
19730
19731     hpux*)
19732       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19733       # not for PA HP-UX.
19734       case "$host_cpu" in
19735       hppa*64*|ia64*)
19736         # +Z the default
19737         ;;
19738       *)
19739         lt_prog_compiler_pic_F77='-fPIC'
19740         ;;
19741       esac
19742       ;;
19743
19744     *)
19745       lt_prog_compiler_pic_F77='-fPIC'
19746       ;;
19747     esac
19748   else
19749     # PORTME Check for flag to pass linker flags through the system compiler.
19750     case $host_os in
19751     aix*)
19752       lt_prog_compiler_wl_F77='-Wl,'
19753       if test "$host_cpu" = ia64; then
19754         # AIX 5 now supports IA64 processor
19755         lt_prog_compiler_static_F77='-Bstatic'
19756       else
19757         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19758       fi
19759       ;;
19760
19761     mingw* | pw32* | os2*)
19762       # This hack is so that the source file can tell whether it is being
19763       # built for inclusion in a dll (and should export symbols for example).
19764       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19765       ;;
19766
19767     hpux9* | hpux10* | hpux11*)
19768       lt_prog_compiler_wl_F77='-Wl,'
19769       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19770       # not for PA HP-UX.
19771       case "$host_cpu" in
19772       hppa*64*|ia64*)
19773         # +Z the default
19774         ;;
19775       *)
19776         lt_prog_compiler_pic_F77='+Z'
19777         ;;
19778       esac
19779       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19780       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19781       ;;
19782
19783     irix5* | irix6* | nonstopux*)
19784       lt_prog_compiler_wl_F77='-Wl,'
19785       # PIC (with -KPIC) is the default.
19786       lt_prog_compiler_static_F77='-non_shared'
19787       ;;
19788
19789     newsos6)
19790       lt_prog_compiler_pic_F77='-KPIC'
19791       lt_prog_compiler_static_F77='-Bstatic'
19792       ;;
19793
19794     linux*)
19795       case $CC in
19796       icc* | ecc*)
19797         lt_prog_compiler_wl_F77='-Wl,'
19798         lt_prog_compiler_pic_F77='-KPIC'
19799         lt_prog_compiler_static_F77='-static'
19800         ;;
19801       ccc*)
19802         lt_prog_compiler_wl_F77='-Wl,'
19803         # All Alpha code is PIC.
19804         lt_prog_compiler_static_F77='-non_shared'
19805         ;;
19806       esac
19807       ;;
19808
19809     osf3* | osf4* | osf5*)
19810       lt_prog_compiler_wl_F77='-Wl,'
19811       # All OSF/1 code is PIC.
19812       lt_prog_compiler_static_F77='-non_shared'
19813       ;;
19814
19815     sco3.2v5*)
19816       lt_prog_compiler_pic_F77='-Kpic'
19817       lt_prog_compiler_static_F77='-dn'
19818       ;;
19819
19820     solaris*)
19821       lt_prog_compiler_wl_F77='-Wl,'
19822       lt_prog_compiler_pic_F77='-KPIC'
19823       lt_prog_compiler_static_F77='-Bstatic'
19824       ;;
19825
19826     sunos4*)
19827       lt_prog_compiler_wl_F77='-Qoption ld '
19828       lt_prog_compiler_pic_F77='-PIC'
19829       lt_prog_compiler_static_F77='-Bstatic'
19830       ;;
19831
19832     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19833       lt_prog_compiler_wl_F77='-Wl,'
19834       lt_prog_compiler_pic_F77='-KPIC'
19835       lt_prog_compiler_static_F77='-Bstatic'
19836       ;;
19837
19838     sysv4*MP*)
19839       if test -d /usr/nec ;then
19840         lt_prog_compiler_pic_F77='-Kconform_pic'
19841         lt_prog_compiler_static_F77='-Bstatic'
19842       fi
19843       ;;
19844
19845     uts4*)
19846       lt_prog_compiler_pic_F77='-pic'
19847       lt_prog_compiler_static_F77='-Bstatic'
19848       ;;
19849
19850     *)
19851       lt_prog_compiler_can_build_shared_F77=no
19852       ;;
19853     esac
19854   fi
19855
19856 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19857 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19858
19859 #
19860 # Check to make sure the PIC flag actually works.
19861 #
19862 if test -n "$lt_prog_compiler_pic_F77"; then
19863
19864 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19865 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19866 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19867   echo $ECHO_N "(cached) $ECHO_C" >&6
19868 else
19869   lt_prog_compiler_pic_works_F77=no
19870   ac_outfile=conftest.$ac_objext
19871    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19872    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19873    # Insert the option either (1) after the last *FLAGS variable, or
19874    # (2) before a word containing "conftest.", or (3) at the end.
19875    # Note that $ac_compile itself does not contain backslashes and begins
19876    # with a dollar sign (not a hyphen), so the echo should work correctly.
19877    # The option is referenced via a variable to avoid confusing sed.
19878    lt_compile=`echo "$ac_compile" | $SED \
19879    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19880    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19881    -e 's:$: $lt_compiler_flag:'`
19882    (eval echo "\"\$as_me:19882: $lt_compile\"" >&5)
19883    (eval "$lt_compile" 2>conftest.err)
19884    ac_status=$?
19885    cat conftest.err >&5
19886    echo "$as_me:19886: \$? = $ac_status" >&5
19887    if (exit $ac_status) && test -s "$ac_outfile"; then
19888      # The compiler can only warn and ignore the option if not recognized
19889      # So say no if there are warnings
19890      if test ! -s conftest.err; then
19891        lt_prog_compiler_pic_works_F77=yes
19892      fi
19893    fi
19894    $rm conftest*
19895
19896 fi
19897 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19898 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19899
19900 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19901     case $lt_prog_compiler_pic_F77 in
19902      "" | " "*) ;;
19903      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19904      esac
19905 else
19906     lt_prog_compiler_pic_F77=
19907      lt_prog_compiler_can_build_shared_F77=no
19908 fi
19909
19910 fi
19911 case "$host_os" in
19912   # For platforms which do not support PIC, -DPIC is meaningless:
19913   *djgpp*)
19914     lt_prog_compiler_pic_F77=
19915     ;;
19916   *)
19917     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19918     ;;
19919 esac
19920
19921 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19922 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19923 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19924   echo $ECHO_N "(cached) $ECHO_C" >&6
19925 else
19926   lt_cv_prog_compiler_c_o_F77=no
19927    $rm -r conftest 2>/dev/null
19928    mkdir conftest
19929    cd conftest
19930    mkdir out
19931    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19932
19933    lt_compiler_flag="-o out/conftest2.$ac_objext"
19934    # Insert the option either (1) after the last *FLAGS variable, or
19935    # (2) before a word containing "conftest.", or (3) at the end.
19936    # Note that $ac_compile itself does not contain backslashes and begins
19937    # with a dollar sign (not a hyphen), so the echo should work correctly.
19938    lt_compile=`echo "$ac_compile" | $SED \
19939    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19940    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19941    -e 's:$: $lt_compiler_flag:'`
19942    (eval echo "\"\$as_me:19942: $lt_compile\"" >&5)
19943    (eval "$lt_compile" 2>out/conftest.err)
19944    ac_status=$?
19945    cat out/conftest.err >&5
19946    echo "$as_me:19946: \$? = $ac_status" >&5
19947    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19948    then
19949      # The compiler can only warn and ignore the option if not recognized
19950      # So say no if there are warnings
19951      if test ! -s out/conftest.err; then
19952        lt_cv_prog_compiler_c_o_F77=yes
19953      fi
19954    fi
19955    chmod u+w .
19956    $rm conftest*
19957    # SGI C++ compiler will create directory out/ii_files/ for
19958    # template instantiation
19959    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19960    $rm out/* && rmdir out
19961    cd ..
19962    rmdir conftest
19963    $rm conftest*
19964
19965 fi
19966 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19967 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19968
19969
19970 hard_links="nottested"
19971 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19972   # do not overwrite the value of need_locks provided by the user
19973   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19974 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19975   hard_links=yes
19976   $rm conftest*
19977   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19978   touch conftest.a
19979   ln conftest.a conftest.b 2>&5 || hard_links=no
19980   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19981   echo "$as_me:$LINENO: result: $hard_links" >&5
19982 echo "${ECHO_T}$hard_links" >&6
19983   if test "$hard_links" = no; then
19984     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19985 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19986     need_locks=warn
19987   fi
19988 else
19989   need_locks=no
19990 fi
19991
19992 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19993 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19994
19995   runpath_var=
19996   allow_undefined_flag_F77=
19997   enable_shared_with_static_runtimes_F77=no
19998   archive_cmds_F77=
19999   archive_expsym_cmds_F77=
20000   old_archive_From_new_cmds_F77=
20001   old_archive_from_expsyms_cmds_F77=
20002   export_dynamic_flag_spec_F77=
20003   whole_archive_flag_spec_F77=
20004   thread_safe_flag_spec_F77=
20005   hardcode_libdir_flag_spec_F77=
20006   hardcode_libdir_flag_spec_ld_F77=
20007   hardcode_libdir_separator_F77=
20008   hardcode_direct_F77=no
20009   hardcode_minus_L_F77=no
20010   hardcode_shlibpath_var_F77=unsupported
20011   link_all_deplibs_F77=unknown
20012   hardcode_automatic_F77=no
20013   module_cmds_F77=
20014   module_expsym_cmds_F77=
20015   always_export_symbols_F77=no
20016   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20017   # include_expsyms should be a list of space-separated symbols to be *always*
20018   # included in the symbol list
20019   include_expsyms_F77=
20020   # exclude_expsyms can be an extended regexp of symbols to exclude
20021   # it will be wrapped by ` (' and `)$', so one must not match beginning or
20022   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20023   # as well as any symbol that contains `d'.
20024   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20025   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20026   # platforms (ab)use it in PIC code, but their linkers get confused if
20027   # the symbol is explicitly referenced.  Since portable code cannot
20028   # rely on this symbol name, it's probably fine to never include it in
20029   # preloaded symbol tables.
20030   extract_expsyms_cmds=
20031
20032   case $host_os in
20033   cygwin* | mingw* | pw32*)
20034     # FIXME: the MSVC++ port hasn't been tested in a loooong time
20035     # When not using gcc, we currently assume that we are using
20036     # Microsoft Visual C++.
20037     if test "$GCC" != yes; then
20038       with_gnu_ld=no
20039     fi
20040     ;;
20041   openbsd*)
20042     with_gnu_ld=no
20043     ;;
20044   esac
20045
20046   ld_shlibs_F77=yes
20047   if test "$with_gnu_ld" = yes; then
20048     # If archive_cmds runs LD, not CC, wlarc should be empty
20049     wlarc='${wl}'
20050
20051     # See if GNU ld supports shared libraries.
20052     case $host_os in
20053     aix3* | aix4* | aix5*)
20054       # On AIX/PPC, the GNU linker is very broken
20055       if test "$host_cpu" != ia64; then
20056         ld_shlibs_F77=no
20057         cat <<EOF 1>&2
20058
20059 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20060 *** to be unable to reliably create shared libraries on AIX.
20061 *** Therefore, libtool is disabling shared libraries support.  If you
20062 *** really care for shared libraries, you may want to modify your PATH
20063 *** so that a non-GNU linker is found, and then restart.
20064
20065 EOF
20066       fi
20067       ;;
20068
20069     amigaos*)
20070       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)'
20071       hardcode_libdir_flag_spec_F77='-L$libdir'
20072       hardcode_minus_L_F77=yes
20073
20074       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20075       # that the semantics of dynamic libraries on AmigaOS, at least up
20076       # to version 4, is to share data among multiple programs linked
20077       # with the same dynamic library.  Since this doesn't match the
20078       # behavior of shared libraries on other platforms, we can't use
20079       # them.
20080       ld_shlibs_F77=no
20081       ;;
20082
20083     beos*)
20084       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20085         allow_undefined_flag_F77=unsupported
20086         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20087         # support --undefined.  This deserves some investigation.  FIXME
20088         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20089       else
20090         ld_shlibs_F77=no
20091       fi
20092       ;;
20093
20094     cygwin* | mingw* | pw32*)
20095       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20096       # as there is no search path for DLLs.
20097       hardcode_libdir_flag_spec_F77='-L$libdir'
20098       allow_undefined_flag_F77=unsupported
20099       always_export_symbols_F77=no
20100       enable_shared_with_static_runtimes_F77=yes
20101       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20102
20103       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20104         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20105         # If the export-symbols file already is a .def file (1st line
20106         # is EXPORTS), use it as is; otherwise, prepend...
20107         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20108           cp $export_symbols $output_objdir/$soname.def;
20109         else
20110           echo EXPORTS > $output_objdir/$soname.def;
20111           cat $export_symbols >> $output_objdir/$soname.def;
20112         fi~
20113         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
20114       else
20115         ld_shlibs=no
20116       fi
20117       ;;
20118
20119     netbsd*)
20120       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20121         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20122         wlarc=
20123       else
20124         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20125         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20126       fi
20127       ;;
20128
20129     solaris* | sysv5*)
20130       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20131         ld_shlibs_F77=no
20132         cat <<EOF 1>&2
20133
20134 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20135 *** create shared libraries on Solaris systems.  Therefore, libtool
20136 *** is disabling shared libraries support.  We urge you to upgrade GNU
20137 *** binutils to release 2.9.1 or newer.  Another option is to modify
20138 *** your PATH or compiler configuration so that the native linker is
20139 *** used, and then restart.
20140
20141 EOF
20142       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20143         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20144         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20145       else
20146         ld_shlibs_F77=no
20147       fi
20148       ;;
20149
20150     sunos4*)
20151       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20152       wlarc=
20153       hardcode_direct_F77=yes
20154       hardcode_shlibpath_var_F77=no
20155       ;;
20156
20157   linux*)
20158     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20159         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20160         archive_cmds_F77="$tmp_archive_cmds"
20161       supports_anon_versioning=no
20162       case `$LD -v 2>/dev/null` in
20163         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20164         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20165         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20166         *\ 2.11.*) ;; # other 2.11 versions
20167         *) supports_anon_versioning=yes ;;
20168       esac
20169       if test $supports_anon_versioning = yes; then
20170         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20171 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20172 $echo "local: *; };" >> $output_objdir/$libname.ver~
20173         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20174       else
20175         archive_expsym_cmds_F77="$tmp_archive_cmds"
20176       fi
20177     else
20178       ld_shlibs_F77=no
20179     fi
20180     ;;
20181
20182     *)
20183       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20184         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20185         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20186       else
20187         ld_shlibs_F77=no
20188       fi
20189       ;;
20190     esac
20191
20192     if test "$ld_shlibs_F77" = yes; then
20193       runpath_var=LD_RUN_PATH
20194       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20195       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20196       # ancient GNU ld didn't support --whole-archive et. al.
20197       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20198         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20199       else
20200         whole_archive_flag_spec_F77=
20201       fi
20202     fi
20203   else
20204     # PORTME fill in a description of your system's linker (not GNU ld)
20205     case $host_os in
20206     aix3*)
20207       allow_undefined_flag_F77=unsupported
20208       always_export_symbols_F77=yes
20209       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'
20210       # Note: this linker hardcodes the directories in LIBPATH if there
20211       # are no directories specified by -L.
20212       hardcode_minus_L_F77=yes
20213       if test "$GCC" = yes && test -z "$link_static_flag"; then
20214         # Neither direct hardcoding nor static linking is supported with a
20215         # broken collect2.
20216         hardcode_direct_F77=unsupported
20217       fi
20218       ;;
20219
20220     aix4* | aix5*)
20221       if test "$host_cpu" = ia64; then
20222         # On IA64, the linker does run time linking by default, so we don't
20223         # have to do anything special.
20224         aix_use_runtimelinking=no
20225         exp_sym_flag='-Bexport'
20226         no_entry_flag=""
20227       else
20228         # If we're using GNU nm, then we don't want the "-C" option.
20229         # -C means demangle to AIX nm, but means don't demangle with GNU nm
20230         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20231           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'
20232         else
20233           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'
20234         fi
20235         aix_use_runtimelinking=no
20236
20237         # Test if we are trying to use run time linking or normal
20238         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20239         # need to do runtime linking.
20240         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20241           for ld_flag in $LDFLAGS; do
20242           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20243             aix_use_runtimelinking=yes
20244             break
20245           fi
20246           done
20247         esac
20248
20249         exp_sym_flag='-bexport'
20250         no_entry_flag='-bnoentry'
20251       fi
20252
20253       # When large executables or shared objects are built, AIX ld can
20254       # have problems creating the table of contents.  If linking a library
20255       # or program results in "error TOC overflow" add -mminimal-toc to
20256       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20257       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20258
20259       archive_cmds_F77=''
20260       hardcode_direct_F77=yes
20261       hardcode_libdir_separator_F77=':'
20262       link_all_deplibs_F77=yes
20263
20264       if test "$GCC" = yes; then
20265         case $host_os in aix4.012|aix4.012.*)
20266         # We only want to do this on AIX 4.2 and lower, the check
20267         # below for broken collect2 doesn't work under 4.3+
20268           collect2name=`${CC} -print-prog-name=collect2`
20269           if test -f "$collect2name" && \
20270            strings "$collect2name" | grep resolve_lib_name >/dev/null
20271           then
20272           # We have reworked collect2
20273           hardcode_direct_F77=yes
20274           else
20275           # We have old collect2
20276           hardcode_direct_F77=unsupported
20277           # It fails to find uninstalled libraries when the uninstalled
20278           # path is not listed in the libpath.  Setting hardcode_minus_L
20279           # to unsupported forces relinking
20280           hardcode_minus_L_F77=yes
20281           hardcode_libdir_flag_spec_F77='-L$libdir'
20282           hardcode_libdir_separator_F77=
20283           fi
20284         esac
20285         shared_flag='-shared'
20286       else
20287         # not using gcc
20288         if test "$host_cpu" = ia64; then
20289         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20290         # chokes on -Wl,-G. The following line is correct:
20291           shared_flag='-G'
20292         else
20293         if test "$aix_use_runtimelinking" = yes; then
20294             shared_flag='${wl}-G'
20295           else
20296             shared_flag='${wl}-bM:SRE'
20297         fi
20298         fi
20299       fi
20300
20301       # It seems that -bexpall does not export symbols beginning with
20302       # underscore (_), so it is better to generate a list of symbols to export.
20303       always_export_symbols_F77=yes
20304       if test "$aix_use_runtimelinking" = yes; then
20305         # Warning - without using the other runtime loading flags (-brtl),
20306         # -berok will link without error, but may produce a broken library.
20307         allow_undefined_flag_F77='-berok'
20308        # Determine the default libpath from the value encoded in an empty executable.
20309        cat >conftest.$ac_ext <<_ACEOF
20310       program main
20311
20312       end
20313 _ACEOF
20314 rm -f conftest.$ac_objext conftest$ac_exeext
20315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20316   (eval $ac_link) 2>conftest.er1
20317   ac_status=$?
20318   grep -v '^ *+' conftest.er1 >conftest.err
20319   rm -f conftest.er1
20320   cat conftest.err >&5
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); } &&
20323          { ac_try='test -z "$ac_f77_werror_flag"
20324                          || test ! -s conftest.err'
20325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326   (eval $ac_try) 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); }; } &&
20330          { ac_try='test -s conftest$ac_exeext'
20331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332   (eval $ac_try) 2>&5
20333   ac_status=$?
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); }; }; then
20336
20337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20338 }'`
20339 # Check for a 64-bit object if we didn't find anything.
20340 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; }
20341 }'`; fi
20342 else
20343   echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20345
20346 fi
20347 rm -f conftest.err conftest.$ac_objext \
20348       conftest$ac_exeext conftest.$ac_ext
20349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20350
20351        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20352         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"
20353        else
20354         if test "$host_cpu" = ia64; then
20355           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20356           allow_undefined_flag_F77="-z nodefs"
20357           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"
20358         else
20359          # Determine the default libpath from the value encoded in an empty executable.
20360          cat >conftest.$ac_ext <<_ACEOF
20361       program main
20362
20363       end
20364 _ACEOF
20365 rm -f conftest.$ac_objext conftest$ac_exeext
20366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20367   (eval $ac_link) 2>conftest.er1
20368   ac_status=$?
20369   grep -v '^ *+' conftest.er1 >conftest.err
20370   rm -f conftest.er1
20371   cat conftest.err >&5
20372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373   (exit $ac_status); } &&
20374          { ac_try='test -z "$ac_f77_werror_flag"
20375                          || test ! -s conftest.err'
20376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377   (eval $ac_try) 2>&5
20378   ac_status=$?
20379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380   (exit $ac_status); }; } &&
20381          { ac_try='test -s conftest$ac_exeext'
20382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383   (eval $ac_try) 2>&5
20384   ac_status=$?
20385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386   (exit $ac_status); }; }; then
20387
20388 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20389 }'`
20390 # Check for a 64-bit object if we didn't find anything.
20391 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; }
20392 }'`; fi
20393 else
20394   echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20396
20397 fi
20398 rm -f conftest.err conftest.$ac_objext \
20399       conftest$ac_exeext conftest.$ac_ext
20400 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20401
20402          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20403           # Warning - without using the other run time loading flags,
20404           # -berok will link without error, but may produce a broken library.
20405           no_undefined_flag_F77=' ${wl}-bernotok'
20406           allow_undefined_flag_F77=' ${wl}-berok'
20407           # -bexpall does not export symbols beginning with underscore (_)
20408           always_export_symbols_F77=yes
20409           # Exported symbols can be pulled into shared objects from archives
20410           whole_archive_flag_spec_F77=' '
20411           archive_cmds_need_lc_F77=yes
20412           # This is similar to how AIX traditionally builds it's shared libraries.
20413           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'
20414         fi
20415       fi
20416       ;;
20417
20418     amigaos*)
20419       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)'
20420       hardcode_libdir_flag_spec_F77='-L$libdir'
20421       hardcode_minus_L_F77=yes
20422       # see comment about different semantics on the GNU ld section
20423       ld_shlibs_F77=no
20424       ;;
20425
20426     bsdi4*)
20427       export_dynamic_flag_spec_F77=-rdynamic
20428       ;;
20429
20430     cygwin* | mingw* | pw32*)
20431       # When not using gcc, we currently assume that we are using
20432       # Microsoft Visual C++.
20433       # hardcode_libdir_flag_spec is actually meaningless, as there is
20434       # no search path for DLLs.
20435       hardcode_libdir_flag_spec_F77=' '
20436       allow_undefined_flag_F77=unsupported
20437       # Tell ltmain to make .lib files, not .a files.
20438       libext=lib
20439       # Tell ltmain to make .dll files, not .so files.
20440       shrext_cmds=".dll"
20441       # FIXME: Setting linknames here is a bad hack.
20442       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20443       # The linker will automatically build a .lib file if we build a DLL.
20444       old_archive_From_new_cmds_F77='true'
20445       # FIXME: Should let the user specify the lib program.
20446       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20447       fix_srcfile_path='`cygpath -w "$srcfile"`'
20448       enable_shared_with_static_runtimes_F77=yes
20449       ;;
20450
20451     darwin* | rhapsody*)
20452     if test "$GXX" = yes ; then
20453       archive_cmds_need_lc_F77=no
20454       case "$host_os" in
20455       rhapsody* | darwin1.[012])
20456         allow_undefined_flag_F77='-undefined suppress'
20457         ;;
20458       *) # Darwin 1.3 on
20459       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20460         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
20461       else
20462         case ${MACOSX_DEPLOYMENT_TARGET} in
20463           10.[012])
20464             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
20465             ;;
20466           10.*)
20467             allow_undefined_flag_F77='-undefined dynamic_lookup'
20468             ;;
20469         esac
20470       fi
20471         ;;
20472       esac
20473         lt_int_apple_cc_single_mod=no
20474         output_verbose_link_cmd='echo'
20475         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
20476           lt_int_apple_cc_single_mod=yes
20477         fi
20478         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20479           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20480         else
20481         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
20482       fi
20483       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20484       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20485         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20486           archive_expsym_cmds_F77='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}'
20487         else
20488           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
20489         fi
20490           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}'
20491       hardcode_direct_F77=no
20492       hardcode_automatic_F77=yes
20493       hardcode_shlibpath_var_F77=unsupported
20494       whole_archive_flag_spec_F77='-all_load $convenience'
20495       link_all_deplibs_F77=yes
20496     else
20497       ld_shlibs_F77=no
20498     fi
20499       ;;
20500
20501     dgux*)
20502       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20503       hardcode_libdir_flag_spec_F77='-L$libdir'
20504       hardcode_shlibpath_var_F77=no
20505       ;;
20506
20507     freebsd1*)
20508       ld_shlibs_F77=no
20509       ;;
20510
20511     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20512     # support.  Future versions do this automatically, but an explicit c++rt0.o
20513     # does not break anything, and helps significantly (at the cost of a little
20514     # extra space).
20515     freebsd2.2*)
20516       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20517       hardcode_libdir_flag_spec_F77='-R$libdir'
20518       hardcode_direct_F77=yes
20519       hardcode_shlibpath_var_F77=no
20520       ;;
20521
20522     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20523     freebsd2*)
20524       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20525       hardcode_direct_F77=yes
20526       hardcode_minus_L_F77=yes
20527       hardcode_shlibpath_var_F77=no
20528       ;;
20529
20530     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20531     freebsd* | kfreebsd*-gnu)
20532       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20533       hardcode_libdir_flag_spec_F77='-R$libdir'
20534       hardcode_direct_F77=yes
20535       hardcode_shlibpath_var_F77=no
20536       ;;
20537
20538     hpux9*)
20539       if test "$GCC" = yes; then
20540         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'
20541       else
20542         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'
20543       fi
20544       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20545       hardcode_libdir_separator_F77=:
20546       hardcode_direct_F77=yes
20547
20548       # hardcode_minus_L: Not really in the search PATH,
20549       # but as the default location of the library.
20550       hardcode_minus_L_F77=yes
20551       export_dynamic_flag_spec_F77='${wl}-E'
20552       ;;
20553
20554     hpux10* | hpux11*)
20555       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20556         case "$host_cpu" in
20557         hppa*64*|ia64*)
20558           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20559           ;;
20560         *)
20561           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20562           ;;
20563         esac
20564       else
20565         case "$host_cpu" in
20566         hppa*64*|ia64*)
20567           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20568           ;;
20569         *)
20570           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20571           ;;
20572         esac
20573       fi
20574       if test "$with_gnu_ld" = no; then
20575         case "$host_cpu" in
20576         hppa*64*)
20577           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20578           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20579           hardcode_libdir_separator_F77=:
20580           hardcode_direct_F77=no
20581           hardcode_shlibpath_var_F77=no
20582           ;;
20583         ia64*)
20584           hardcode_libdir_flag_spec_F77='-L$libdir'
20585           hardcode_direct_F77=no
20586           hardcode_shlibpath_var_F77=no
20587
20588           # hardcode_minus_L: Not really in the search PATH,
20589           # but as the default location of the library.
20590           hardcode_minus_L_F77=yes
20591           ;;
20592         *)
20593           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20594           hardcode_libdir_separator_F77=:
20595           hardcode_direct_F77=yes
20596           export_dynamic_flag_spec_F77='${wl}-E'
20597
20598           # hardcode_minus_L: Not really in the search PATH,
20599           # but as the default location of the library.
20600           hardcode_minus_L_F77=yes
20601           ;;
20602         esac
20603       fi
20604       ;;
20605
20606     irix5* | irix6* | nonstopux*)
20607       if test "$GCC" = yes; then
20608         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'
20609       else
20610         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'
20611         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20612       fi
20613       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20614       hardcode_libdir_separator_F77=:
20615       link_all_deplibs_F77=yes
20616       ;;
20617
20618     netbsd*)
20619       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20620         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20621       else
20622         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20623       fi
20624       hardcode_libdir_flag_spec_F77='-R$libdir'
20625       hardcode_direct_F77=yes
20626       hardcode_shlibpath_var_F77=no
20627       ;;
20628
20629     newsos6)
20630       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20631       hardcode_direct_F77=yes
20632       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20633       hardcode_libdir_separator_F77=:
20634       hardcode_shlibpath_var_F77=no
20635       ;;
20636
20637     openbsd*)
20638       hardcode_direct_F77=yes
20639       hardcode_shlibpath_var_F77=no
20640       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20641         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20642         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20643         export_dynamic_flag_spec_F77='${wl}-E'
20644       else
20645        case $host_os in
20646          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20647            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20648            hardcode_libdir_flag_spec_F77='-R$libdir'
20649            ;;
20650          *)
20651            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20652            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20653            ;;
20654        esac
20655       fi
20656       ;;
20657
20658     os2*)
20659       hardcode_libdir_flag_spec_F77='-L$libdir'
20660       hardcode_minus_L_F77=yes
20661       allow_undefined_flag_F77=unsupported
20662       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'
20663       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20664       ;;
20665
20666     osf3*)
20667       if test "$GCC" = yes; then
20668         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20669         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'
20670       else
20671         allow_undefined_flag_F77=' -expect_unresolved \*'
20672         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'
20673       fi
20674       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20675       hardcode_libdir_separator_F77=:
20676       ;;
20677
20678     osf4* | osf5*)      # as osf3* with the addition of -msym flag
20679       if test "$GCC" = yes; then
20680         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20681         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'
20682         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20683       else
20684         allow_undefined_flag_F77=' -expect_unresolved \*'
20685         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'
20686         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~
20687         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
20688
20689         # Both c and cxx compiler support -rpath directly
20690         hardcode_libdir_flag_spec_F77='-rpath $libdir'
20691       fi
20692       hardcode_libdir_separator_F77=:
20693       ;;
20694
20695     sco3.2v5*)
20696       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20697       hardcode_shlibpath_var_F77=no
20698       export_dynamic_flag_spec_F77='${wl}-Bexport'
20699       runpath_var=LD_RUN_PATH
20700       hardcode_runpath_var=yes
20701       ;;
20702
20703     solaris*)
20704       no_undefined_flag_F77=' -z text'
20705       if test "$GCC" = yes; then
20706         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20707         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20708           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20709       else
20710         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20711         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20712         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20713       fi
20714       hardcode_libdir_flag_spec_F77='-R$libdir'
20715       hardcode_shlibpath_var_F77=no
20716       case $host_os in
20717       solaris2.[0-5] | solaris2.[0-5].*) ;;
20718       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20719         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20720       esac
20721       link_all_deplibs_F77=yes
20722       ;;
20723
20724     sunos4*)
20725       if test "x$host_vendor" = xsequent; then
20726         # Use $CC to link under sequent, because it throws in some extra .o
20727         # files that make .init and .fini sections work.
20728         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20729       else
20730         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20731       fi
20732       hardcode_libdir_flag_spec_F77='-L$libdir'
20733       hardcode_direct_F77=yes
20734       hardcode_minus_L_F77=yes
20735       hardcode_shlibpath_var_F77=no
20736       ;;
20737
20738     sysv4)
20739       case $host_vendor in
20740         sni)
20741           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20742           hardcode_direct_F77=yes # is this really true???
20743         ;;
20744         siemens)
20745           ## LD is ld it makes a PLAMLIB
20746           ## CC just makes a GrossModule.
20747           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20748           reload_cmds_F77='$CC -r -o $output$reload_objs'
20749           hardcode_direct_F77=no
20750         ;;
20751         motorola)
20752           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20753           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20754         ;;
20755       esac
20756       runpath_var='LD_RUN_PATH'
20757       hardcode_shlibpath_var_F77=no
20758       ;;
20759
20760     sysv4.3*)
20761       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20762       hardcode_shlibpath_var_F77=no
20763       export_dynamic_flag_spec_F77='-Bexport'
20764       ;;
20765
20766     sysv4*MP*)
20767       if test -d /usr/nec; then
20768         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20769         hardcode_shlibpath_var_F77=no
20770         runpath_var=LD_RUN_PATH
20771         hardcode_runpath_var=yes
20772         ld_shlibs_F77=yes
20773       fi
20774       ;;
20775
20776     sysv4.2uw2*)
20777       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20778       hardcode_direct_F77=yes
20779       hardcode_minus_L_F77=no
20780       hardcode_shlibpath_var_F77=no
20781       hardcode_runpath_var=yes
20782       runpath_var=LD_RUN_PATH
20783       ;;
20784
20785    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20786       no_undefined_flag_F77='${wl}-z ${wl}text'
20787       if test "$GCC" = yes; then
20788         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20789       else
20790         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20791       fi
20792       runpath_var='LD_RUN_PATH'
20793       hardcode_shlibpath_var_F77=no
20794       ;;
20795
20796     sysv5*)
20797       no_undefined_flag_F77=' -z text'
20798       # $CC -shared without GNU ld will not create a library from C++
20799       # object files and a static libstdc++, better avoid it by now
20800       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20801       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20802                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20803       hardcode_libdir_flag_spec_F77=
20804       hardcode_shlibpath_var_F77=no
20805       runpath_var='LD_RUN_PATH'
20806       ;;
20807
20808     uts4*)
20809       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20810       hardcode_libdir_flag_spec_F77='-L$libdir'
20811       hardcode_shlibpath_var_F77=no
20812       ;;
20813
20814     *)
20815       ld_shlibs_F77=no
20816       ;;
20817     esac
20818   fi
20819
20820 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20821 echo "${ECHO_T}$ld_shlibs_F77" >&6
20822 test "$ld_shlibs_F77" = no && can_build_shared=no
20823
20824 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20825 if test "$GCC" = yes; then
20826   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20827 fi
20828
20829 #
20830 # Do we need to explicitly link libc?
20831 #
20832 case "x$archive_cmds_need_lc_F77" in
20833 x|xyes)
20834   # Assume -lc should be added
20835   archive_cmds_need_lc_F77=yes
20836
20837   if test "$enable_shared" = yes && test "$GCC" = yes; then
20838     case $archive_cmds_F77 in
20839     *'~'*)
20840       # FIXME: we may have to deal with multi-command sequences.
20841       ;;
20842     '$CC '*)
20843       # Test whether the compiler implicitly links with -lc since on some
20844       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20845       # to ld, don't add -lc before -lgcc.
20846       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20847 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20848       $rm conftest*
20849       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20850
20851       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20852   (eval $ac_compile) 2>&5
20853   ac_status=$?
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); } 2>conftest.err; then
20856         soname=conftest
20857         lib=conftest
20858         libobjs=conftest.$ac_objext
20859         deplibs=
20860         wl=$lt_prog_compiler_wl_F77
20861         compiler_flags=-v
20862         linker_flags=-v
20863         verstring=
20864         output_objdir=.
20865         libname=conftest
20866         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20867         allow_undefined_flag_F77=
20868         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20869   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20870   ac_status=$?
20871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872   (exit $ac_status); }
20873         then
20874           archive_cmds_need_lc_F77=no
20875         else
20876           archive_cmds_need_lc_F77=yes
20877         fi
20878         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20879       else
20880         cat conftest.err 1>&5
20881       fi
20882       $rm conftest*
20883       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20884 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20885       ;;
20886     esac
20887   fi
20888   ;;
20889 esac
20890
20891 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20892 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20893 library_names_spec=
20894 libname_spec='lib$name'
20895 soname_spec=
20896 shrext_cmds=".so"
20897 postinstall_cmds=
20898 postuninstall_cmds=
20899 finish_cmds=
20900 finish_eval=
20901 shlibpath_var=
20902 shlibpath_overrides_runpath=unknown
20903 version_type=none
20904 dynamic_linker="$host_os ld.so"
20905 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20906 if test "$GCC" = yes; then
20907   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20908   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20909     # if the path contains ";" then we assume it to be the separator
20910     # otherwise default to the standard path separator (i.e. ":") - it is
20911     # assumed that no part of a normal pathname contains ";" but that should
20912     # okay in the real world where ";" in dirpaths is itself problematic.
20913     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20914   else
20915     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20916   fi
20917 else
20918   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20919 fi
20920 need_lib_prefix=unknown
20921 hardcode_into_libs=no
20922
20923 # when you set need_version to no, make sure it does not cause -set_version
20924 # flags to be left without arguments
20925 need_version=unknown
20926
20927 case $host_os in
20928 aix3*)
20929   version_type=linux
20930   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20931   shlibpath_var=LIBPATH
20932
20933   # AIX 3 has no versioning support, so we append a major version to the name.
20934   soname_spec='${libname}${release}${shared_ext}$major'
20935   ;;
20936
20937 aix4* | aix5*)
20938   version_type=linux
20939   need_lib_prefix=no
20940   need_version=no
20941   hardcode_into_libs=yes
20942   if test "$host_cpu" = ia64; then
20943     # AIX 5 supports IA64
20944     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20945     shlibpath_var=LD_LIBRARY_PATH
20946   else
20947     # With GCC up to 2.95.x, collect2 would create an import file
20948     # for dependence libraries.  The import file would start with
20949     # the line `#! .'.  This would cause the generated library to
20950     # depend on `.', always an invalid library.  This was fixed in
20951     # development snapshots of GCC prior to 3.0.
20952     case $host_os in
20953       aix4 | aix4.[01] | aix4.[01].*)
20954       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20955            echo ' yes '
20956            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20957         :
20958       else
20959         can_build_shared=no
20960       fi
20961       ;;
20962     esac
20963     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20964     # soname into executable. Probably we can add versioning support to
20965     # collect2, so additional links can be useful in future.
20966     if test "$aix_use_runtimelinking" = yes; then
20967       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20968       # instead of lib<name>.a to let people know that these are not
20969       # typical AIX shared libraries.
20970       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20971     else
20972       # We preserve .a as extension for shared libraries through AIX4.2
20973       # and later when we are not doing run time linking.
20974       library_names_spec='${libname}${release}.a $libname.a'
20975       soname_spec='${libname}${release}${shared_ext}$major'
20976     fi
20977     shlibpath_var=LIBPATH
20978   fi
20979   ;;
20980
20981 amigaos*)
20982   library_names_spec='$libname.ixlibrary $libname.a'
20983   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20984   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'
20985   ;;
20986
20987 beos*)
20988   library_names_spec='${libname}${shared_ext}'
20989   dynamic_linker="$host_os ld.so"
20990   shlibpath_var=LIBRARY_PATH
20991   ;;
20992
20993 bsdi4*)
20994   version_type=linux
20995   need_version=no
20996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20997   soname_spec='${libname}${release}${shared_ext}$major'
20998   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20999   shlibpath_var=LD_LIBRARY_PATH
21000   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21001   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21002   # the default ld.so.conf also contains /usr/contrib/lib and
21003   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21004   # libtool to hard-code these into programs
21005   ;;
21006
21007 cygwin* | mingw* | pw32*)
21008   version_type=windows
21009   shrext_cmds=".dll"
21010   need_version=no
21011   need_lib_prefix=no
21012
21013   case $GCC,$host_os in
21014   yes,cygwin* | yes,mingw* | yes,pw32*)
21015     library_names_spec='$libname.dll.a'
21016     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21017     postinstall_cmds='base_file=`basename \${file}`~
21018       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21019       dldir=$destdir/`dirname \$dlpath`~
21020       test -d \$dldir || mkdir -p \$dldir~
21021       $install_prog $dir/$dlname \$dldir/$dlname'
21022     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21023       dlpath=$dir/\$dldll~
21024        $rm \$dlpath'
21025     shlibpath_overrides_runpath=yes
21026
21027     case $host_os in
21028     cygwin*)
21029       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21030       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21031       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21032       ;;
21033     mingw*)
21034       # MinGW DLLs use traditional 'lib' prefix
21035       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21036       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21037       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21038         # It is most probably a Windows format PATH printed by
21039         # mingw gcc, but we are running on Cygwin. Gcc prints its search
21040         # path with ; separators, and with drive letters. We can handle the
21041         # drive letters (cygwin fileutils understands them), so leave them,
21042         # especially as we might pass files found there to a mingw objdump,
21043         # which wouldn't understand a cygwinified path. Ahh.
21044         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21045       else
21046         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21047       fi
21048       ;;
21049     pw32*)
21050       # pw32 DLLs use 'pw' prefix rather than 'lib'
21051       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
21052       ;;
21053     esac
21054     ;;
21055
21056   *)
21057     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21058     ;;
21059   esac
21060   dynamic_linker='Win32 ld.exe'
21061   # FIXME: first we should search . and the directory the executable is in
21062   shlibpath_var=PATH
21063   ;;
21064
21065 darwin* | rhapsody*)
21066   dynamic_linker="$host_os dyld"
21067   version_type=darwin
21068   need_lib_prefix=no
21069   need_version=no
21070   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21071   soname_spec='${libname}${release}${major}$shared_ext'
21072   shlibpath_overrides_runpath=yes
21073   shlibpath_var=DYLD_LIBRARY_PATH
21074   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
21075   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21076   if test "$GCC" = yes; then
21077     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"`
21078   else
21079     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21080   fi
21081   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21082   ;;
21083
21084 dgux*)
21085   version_type=linux
21086   need_lib_prefix=no
21087   need_version=no
21088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21089   soname_spec='${libname}${release}${shared_ext}$major'
21090   shlibpath_var=LD_LIBRARY_PATH
21091   ;;
21092
21093 freebsd1*)
21094   dynamic_linker=no
21095   ;;
21096
21097 kfreebsd*-gnu)
21098   version_type=linux
21099   need_lib_prefix=no
21100   need_version=no
21101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21102   soname_spec='${libname}${release}${shared_ext}$major'
21103   shlibpath_var=LD_LIBRARY_PATH
21104   shlibpath_overrides_runpath=no
21105   hardcode_into_libs=yes
21106   dynamic_linker='GNU ld.so'
21107   ;;
21108
21109 freebsd*)
21110   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
21111   version_type=freebsd-$objformat
21112   case $version_type in
21113     freebsd-elf*)
21114       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21115       need_version=no
21116       need_lib_prefix=no
21117       ;;
21118     freebsd-*)
21119       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21120       need_version=yes
21121       ;;
21122   esac
21123   shlibpath_var=LD_LIBRARY_PATH
21124   case $host_os in
21125   freebsd2*)
21126     shlibpath_overrides_runpath=yes
21127     ;;
21128   freebsd3.01* | freebsdelf3.01*)
21129     shlibpath_overrides_runpath=yes
21130     hardcode_into_libs=yes
21131     ;;
21132   *) # from 3.2 on
21133     shlibpath_overrides_runpath=no
21134     hardcode_into_libs=yes
21135     ;;
21136   esac
21137   ;;
21138
21139 gnu*)
21140   version_type=linux
21141   need_lib_prefix=no
21142   need_version=no
21143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21144   soname_spec='${libname}${release}${shared_ext}$major'
21145   shlibpath_var=LD_LIBRARY_PATH
21146   hardcode_into_libs=yes
21147   ;;
21148
21149 hpux9* | hpux10* | hpux11*)
21150   # Give a soname corresponding to the major version so that dld.sl refuses to
21151   # link against other versions.
21152   version_type=sunos
21153   need_lib_prefix=no
21154   need_version=no
21155   case "$host_cpu" in
21156   ia64*)
21157     shrext_cmds='.so'
21158     hardcode_into_libs=yes
21159     dynamic_linker="$host_os dld.so"
21160     shlibpath_var=LD_LIBRARY_PATH
21161     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21162     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21163     soname_spec='${libname}${release}${shared_ext}$major'
21164     if test "X$HPUX_IA64_MODE" = X32; then
21165       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21166     else
21167       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21168     fi
21169     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21170     ;;
21171    hppa*64*)
21172      shrext_cmds='.sl'
21173      hardcode_into_libs=yes
21174      dynamic_linker="$host_os dld.sl"
21175      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21176      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21177      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21178      soname_spec='${libname}${release}${shared_ext}$major'
21179      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21180      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21181      ;;
21182    *)
21183     shrext_cmds='.sl'
21184     dynamic_linker="$host_os dld.sl"
21185     shlibpath_var=SHLIB_PATH
21186     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21188     soname_spec='${libname}${release}${shared_ext}$major'
21189     ;;
21190   esac
21191   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21192   postinstall_cmds='chmod 555 $lib'
21193   ;;
21194
21195 irix5* | irix6* | nonstopux*)
21196   case $host_os in
21197     nonstopux*) version_type=nonstopux ;;
21198     *)
21199         if test "$lt_cv_prog_gnu_ld" = yes; then
21200                 version_type=linux
21201         else
21202                 version_type=irix
21203         fi ;;
21204   esac
21205   need_lib_prefix=no
21206   need_version=no
21207   soname_spec='${libname}${release}${shared_ext}$major'
21208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21209   case $host_os in
21210   irix5* | nonstopux*)
21211     libsuff= shlibsuff=
21212     ;;
21213   *)
21214     case $LD in # libtool.m4 will add one of these switches to LD
21215     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21216       libsuff= shlibsuff= libmagic=32-bit;;
21217     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21218       libsuff=32 shlibsuff=N32 libmagic=N32;;
21219     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21220       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21221     *) libsuff= shlibsuff= libmagic=never-match;;
21222     esac
21223     ;;
21224   esac
21225   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21226   shlibpath_overrides_runpath=no
21227   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21228   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21229   hardcode_into_libs=yes
21230   ;;
21231
21232 # No shared lib support for Linux oldld, aout, or coff.
21233 linux*oldld* | linux*aout* | linux*coff*)
21234   dynamic_linker=no
21235   ;;
21236
21237 # This must be Linux ELF.
21238 linux*)
21239   version_type=linux
21240   need_lib_prefix=no
21241   need_version=no
21242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21243   soname_spec='${libname}${release}${shared_ext}$major'
21244   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21245   shlibpath_var=LD_LIBRARY_PATH
21246   shlibpath_overrides_runpath=no
21247   # This implies no fast_install, which is unacceptable.
21248   # Some rework will be needed to allow for fast_install
21249   # before this can be enabled.
21250   hardcode_into_libs=yes
21251
21252   # Append ld.so.conf contents to the search path
21253   if test -f /etc/ld.so.conf; then
21254     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
21255     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21256   fi
21257
21258   # We used to test for /lib/ld.so.1 and disable shared libraries on
21259   # powerpc, because MkLinux only supported shared libraries with the
21260   # GNU dynamic linker.  Since this was broken with cross compilers,
21261   # most powerpc-linux boxes support dynamic linking these days and
21262   # people can always --disable-shared, the test was removed, and we
21263   # assume the GNU/Linux dynamic linker is in use.
21264   dynamic_linker='GNU/Linux ld.so'
21265   ;;
21266
21267 knetbsd*-gnu)
21268   version_type=linux
21269   need_lib_prefix=no
21270   need_version=no
21271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21272   soname_spec='${libname}${release}${shared_ext}$major'
21273   shlibpath_var=LD_LIBRARY_PATH
21274   shlibpath_overrides_runpath=no
21275   hardcode_into_libs=yes
21276   dynamic_linker='GNU ld.so'
21277   ;;
21278
21279 netbsd*)
21280   version_type=sunos
21281   need_lib_prefix=no
21282   need_version=no
21283   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21284     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21285     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21286     dynamic_linker='NetBSD (a.out) ld.so'
21287   else
21288     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21289     soname_spec='${libname}${release}${shared_ext}$major'
21290     dynamic_linker='NetBSD ld.elf_so'
21291   fi
21292   shlibpath_var=LD_LIBRARY_PATH
21293   shlibpath_overrides_runpath=yes
21294   hardcode_into_libs=yes
21295   ;;
21296
21297 newsos6)
21298   version_type=linux
21299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21300   shlibpath_var=LD_LIBRARY_PATH
21301   shlibpath_overrides_runpath=yes
21302   ;;
21303
21304 nto-qnx*)
21305   version_type=linux
21306   need_lib_prefix=no
21307   need_version=no
21308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21309   soname_spec='${libname}${release}${shared_ext}$major'
21310   shlibpath_var=LD_LIBRARY_PATH
21311   shlibpath_overrides_runpath=yes
21312   ;;
21313
21314 openbsd*)
21315   version_type=sunos
21316   need_lib_prefix=no
21317   need_version=yes
21318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21319   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21320   shlibpath_var=LD_LIBRARY_PATH
21321   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21322     case $host_os in
21323       openbsd2.[89] | openbsd2.[89].*)
21324         shlibpath_overrides_runpath=no
21325         ;;
21326       *)
21327         shlibpath_overrides_runpath=yes
21328         ;;
21329       esac
21330   else
21331     shlibpath_overrides_runpath=yes
21332   fi
21333   ;;
21334
21335 os2*)
21336   libname_spec='$name'
21337   shrext_cmds=".dll"
21338   need_lib_prefix=no
21339   library_names_spec='$libname${shared_ext} $libname.a'
21340   dynamic_linker='OS/2 ld.exe'
21341   shlibpath_var=LIBPATH
21342   ;;
21343
21344 osf3* | osf4* | osf5*)
21345   version_type=osf
21346   need_lib_prefix=no
21347   need_version=no
21348   soname_spec='${libname}${release}${shared_ext}$major'
21349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21350   shlibpath_var=LD_LIBRARY_PATH
21351   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21352   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21353   ;;
21354
21355 sco3.2v5*)
21356   version_type=osf
21357   soname_spec='${libname}${release}${shared_ext}$major'
21358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21359   shlibpath_var=LD_LIBRARY_PATH
21360   ;;
21361
21362 solaris*)
21363   version_type=linux
21364   need_lib_prefix=no
21365   need_version=no
21366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21367   soname_spec='${libname}${release}${shared_ext}$major'
21368   shlibpath_var=LD_LIBRARY_PATH
21369   shlibpath_overrides_runpath=yes
21370   hardcode_into_libs=yes
21371   # ldd complains unless libraries are executable
21372   postinstall_cmds='chmod +x $lib'
21373   ;;
21374
21375 sunos4*)
21376   version_type=sunos
21377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21378   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21379   shlibpath_var=LD_LIBRARY_PATH
21380   shlibpath_overrides_runpath=yes
21381   if test "$with_gnu_ld" = yes; then
21382     need_lib_prefix=no
21383   fi
21384   need_version=yes
21385   ;;
21386
21387 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21388   version_type=linux
21389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21390   soname_spec='${libname}${release}${shared_ext}$major'
21391   shlibpath_var=LD_LIBRARY_PATH
21392   case $host_vendor in
21393     sni)
21394       shlibpath_overrides_runpath=no
21395       need_lib_prefix=no
21396       export_dynamic_flag_spec='${wl}-Blargedynsym'
21397       runpath_var=LD_RUN_PATH
21398       ;;
21399     siemens)
21400       need_lib_prefix=no
21401       ;;
21402     motorola)
21403       need_lib_prefix=no
21404       need_version=no
21405       shlibpath_overrides_runpath=no
21406       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21407       ;;
21408   esac
21409   ;;
21410
21411 sysv4*MP*)
21412   if test -d /usr/nec ;then
21413     version_type=linux
21414     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21415     soname_spec='$libname${shared_ext}.$major'
21416     shlibpath_var=LD_LIBRARY_PATH
21417   fi
21418   ;;
21419
21420 uts4*)
21421   version_type=linux
21422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21423   soname_spec='${libname}${release}${shared_ext}$major'
21424   shlibpath_var=LD_LIBRARY_PATH
21425   ;;
21426
21427 *)
21428   dynamic_linker=no
21429   ;;
21430 esac
21431 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21432 echo "${ECHO_T}$dynamic_linker" >&6
21433 test "$dynamic_linker" = no && can_build_shared=no
21434
21435 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21436 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21437 hardcode_action_F77=
21438 if test -n "$hardcode_libdir_flag_spec_F77" || \
21439    test -n "$runpath_var F77" || \
21440    test "X$hardcode_automatic_F77"="Xyes" ; then
21441
21442   # We can hardcode non-existant directories.
21443   if test "$hardcode_direct_F77" != no &&
21444      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21445      # have to relink, otherwise we might link with an installed library
21446      # when we should be linking with a yet-to-be-installed one
21447      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
21448      test "$hardcode_minus_L_F77" != no; then
21449     # Linking always hardcodes the temporary library directory.
21450     hardcode_action_F77=relink
21451   else
21452     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21453     hardcode_action_F77=immediate
21454   fi
21455 else
21456   # We cannot hardcode anything, or else we can only hardcode existing
21457   # directories.
21458   hardcode_action_F77=unsupported
21459 fi
21460 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21461 echo "${ECHO_T}$hardcode_action_F77" >&6
21462
21463 if test "$hardcode_action_F77" = relink; then
21464   # Fast installation is not supported
21465   enable_fast_install=no
21466 elif test "$shlibpath_overrides_runpath" = yes ||
21467      test "$enable_shared" = no; then
21468   # Fast installation is not necessary
21469   enable_fast_install=needless
21470 fi
21471
21472 striplib=
21473 old_striplib=
21474 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21475 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21476 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21477   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21478   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21479   echo "$as_me:$LINENO: result: yes" >&5
21480 echo "${ECHO_T}yes" >&6
21481 else
21482 # FIXME - insert some real tests, host_os isn't really good enough
21483   case $host_os in
21484    darwin*)
21485        if test -n "$STRIP" ; then
21486          striplib="$STRIP -x"
21487          echo "$as_me:$LINENO: result: yes" >&5
21488 echo "${ECHO_T}yes" >&6
21489        else
21490   echo "$as_me:$LINENO: result: no" >&5
21491 echo "${ECHO_T}no" >&6
21492 fi
21493        ;;
21494    *)
21495   echo "$as_me:$LINENO: result: no" >&5
21496 echo "${ECHO_T}no" >&6
21497     ;;
21498   esac
21499 fi
21500
21501
21502
21503 # The else clause should only fire when bootstrapping the
21504 # libtool distribution, otherwise you forgot to ship ltmain.sh
21505 # with your package, and you will get complaints that there are
21506 # no rules to generate ltmain.sh.
21507 if test -f "$ltmain"; then
21508   # See if we are running on zsh, and set the options which allow our commands through
21509   # without removal of \ escapes.
21510   if test -n "${ZSH_VERSION+set}" ; then
21511     setopt NO_GLOB_SUBST
21512   fi
21513   # Now quote all the things that may contain metacharacters while being
21514   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21515   # variables and quote the copies for generation of the libtool script.
21516   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21517     SED SHELL STRIP \
21518     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21519     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21520     deplibs_check_method reload_flag reload_cmds need_locks \
21521     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21522     lt_cv_sys_global_symbol_to_c_name_address \
21523     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21524     old_postinstall_cmds old_postuninstall_cmds \
21525     compiler_F77 \
21526     CC_F77 \
21527     LD_F77 \
21528     lt_prog_compiler_wl_F77 \
21529     lt_prog_compiler_pic_F77 \
21530     lt_prog_compiler_static_F77 \
21531     lt_prog_compiler_no_builtin_flag_F77 \
21532     export_dynamic_flag_spec_F77 \
21533     thread_safe_flag_spec_F77 \
21534     whole_archive_flag_spec_F77 \
21535     enable_shared_with_static_runtimes_F77 \
21536     old_archive_cmds_F77 \
21537     old_archive_from_new_cmds_F77 \
21538     predep_objects_F77 \
21539     postdep_objects_F77 \
21540     predeps_F77 \
21541     postdeps_F77 \
21542     compiler_lib_search_path_F77 \
21543     archive_cmds_F77 \
21544     archive_expsym_cmds_F77 \
21545     postinstall_cmds_F77 \
21546     postuninstall_cmds_F77 \
21547     old_archive_from_expsyms_cmds_F77 \
21548     allow_undefined_flag_F77 \
21549     no_undefined_flag_F77 \
21550     export_symbols_cmds_F77 \
21551     hardcode_libdir_flag_spec_F77 \
21552     hardcode_libdir_flag_spec_ld_F77 \
21553     hardcode_libdir_separator_F77 \
21554     hardcode_automatic_F77 \
21555     module_cmds_F77 \
21556     module_expsym_cmds_F77 \
21557     lt_cv_prog_compiler_c_o_F77 \
21558     exclude_expsyms_F77 \
21559     include_expsyms_F77; do
21560
21561     case $var in
21562     old_archive_cmds_F77 | \
21563     old_archive_from_new_cmds_F77 | \
21564     archive_cmds_F77 | \
21565     archive_expsym_cmds_F77 | \
21566     module_cmds_F77 | \
21567     module_expsym_cmds_F77 | \
21568     old_archive_from_expsyms_cmds_F77 | \
21569     export_symbols_cmds_F77 | \
21570     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21571     postinstall_cmds | postuninstall_cmds | \
21572     old_postinstall_cmds | old_postuninstall_cmds | \
21573     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21574       # Double-quote double-evaled strings.
21575       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21576       ;;
21577     *)
21578       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21579       ;;
21580     esac
21581   done
21582
21583   case $lt_echo in
21584   *'\$0 --fallback-echo"')
21585     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21586     ;;
21587   esac
21588
21589 cfgfile="$ofile"
21590
21591   cat <<__EOF__ >> "$cfgfile"
21592 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21593
21594 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21595
21596 # Shell to use when invoking shell scripts.
21597 SHELL=$lt_SHELL
21598
21599 # Whether or not to build shared libraries.
21600 build_libtool_libs=$enable_shared
21601
21602 # Whether or not to build static libraries.
21603 build_old_libs=$enable_static
21604
21605 # Whether or not to add -lc for building shared libraries.
21606 build_libtool_need_lc=$archive_cmds_need_lc_F77
21607
21608 # Whether or not to disallow shared libs when runtime libs are static
21609 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21610
21611 # Whether or not to optimize for fast installation.
21612 fast_install=$enable_fast_install
21613
21614 # The host system.
21615 host_alias=$host_alias
21616 host=$host
21617
21618 # An echo program that does not interpret backslashes.
21619 echo=$lt_echo
21620
21621 # The archiver.
21622 AR=$lt_AR
21623 AR_FLAGS=$lt_AR_FLAGS
21624
21625 # A C compiler.
21626 LTCC=$lt_LTCC
21627
21628 # A language-specific compiler.
21629 CC=$lt_compiler_F77
21630
21631 # Is the compiler the GNU C compiler?
21632 with_gcc=$GCC_F77
21633
21634 # An ERE matcher.
21635 EGREP=$lt_EGREP
21636
21637 # The linker used to build libraries.
21638 LD=$lt_LD_F77
21639
21640 # Whether we need hard or soft links.
21641 LN_S=$lt_LN_S
21642
21643 # A BSD-compatible nm program.
21644 NM=$lt_NM
21645
21646 # A symbol stripping program
21647 STRIP=$lt_STRIP
21648
21649 # Used to examine libraries when file_magic_cmd begins "file"
21650 MAGIC_CMD=$MAGIC_CMD
21651
21652 # Used on cygwin: DLL creation program.
21653 DLLTOOL="$DLLTOOL"
21654
21655 # Used on cygwin: object dumper.
21656 OBJDUMP="$OBJDUMP"
21657
21658 # Used on cygwin: assembler.
21659 AS="$AS"
21660
21661 # The name of the directory that contains temporary libtool files.
21662 objdir=$objdir
21663
21664 # How to create reloadable object files.
21665 reload_flag=$lt_reload_flag
21666 reload_cmds=$lt_reload_cmds
21667
21668 # How to pass a linker flag through the compiler.
21669 wl=$lt_lt_prog_compiler_wl_F77
21670
21671 # Object file suffix (normally "o").
21672 objext="$ac_objext"
21673
21674 # Old archive suffix (normally "a").
21675 libext="$libext"
21676
21677 # Shared library suffix (normally ".so").
21678 shrext_cmds='$shrext_cmds'
21679
21680 # Executable file suffix (normally "").
21681 exeext="$exeext"
21682
21683 # Additional compiler flags for building library objects.
21684 pic_flag=$lt_lt_prog_compiler_pic_F77
21685 pic_mode=$pic_mode
21686
21687 # What is the maximum length of a command?
21688 max_cmd_len=$lt_cv_sys_max_cmd_len
21689
21690 # Does compiler simultaneously support -c and -o options?
21691 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21692
21693 # Must we lock files when doing compilation ?
21694 need_locks=$lt_need_locks
21695
21696 # Do we need the lib prefix for modules?
21697 need_lib_prefix=$need_lib_prefix
21698
21699 # Do we need a version for libraries?
21700 need_version=$need_version
21701
21702 # Whether dlopen is supported.
21703 dlopen_support=$enable_dlopen
21704
21705 # Whether dlopen of programs is supported.
21706 dlopen_self=$enable_dlopen_self
21707
21708 # Whether dlopen of statically linked programs is supported.
21709 dlopen_self_static=$enable_dlopen_self_static
21710
21711 # Compiler flag to prevent dynamic linking.
21712 link_static_flag=$lt_lt_prog_compiler_static_F77
21713
21714 # Compiler flag to turn off builtin functions.
21715 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21716
21717 # Compiler flag to allow reflexive dlopens.
21718 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21719
21720 # Compiler flag to generate shared objects directly from archives.
21721 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21722
21723 # Compiler flag to generate thread-safe objects.
21724 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21725
21726 # Library versioning type.
21727 version_type=$version_type
21728
21729 # Format of library name prefix.
21730 libname_spec=$lt_libname_spec
21731
21732 # List of archive names.  First name is the real one, the rest are links.
21733 # The last name is the one that the linker finds with -lNAME.
21734 library_names_spec=$lt_library_names_spec
21735
21736 # The coded name of the library, if different from the real name.
21737 soname_spec=$lt_soname_spec
21738
21739 # Commands used to build and install an old-style archive.
21740 RANLIB=$lt_RANLIB
21741 old_archive_cmds=$lt_old_archive_cmds_F77
21742 old_postinstall_cmds=$lt_old_postinstall_cmds
21743 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21744
21745 # Create an old-style archive from a shared archive.
21746 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21747
21748 # Create a temporary old-style archive to link instead of a shared archive.
21749 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21750
21751 # Commands used to build and install a shared archive.
21752 archive_cmds=$lt_archive_cmds_F77
21753 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21754 postinstall_cmds=$lt_postinstall_cmds
21755 postuninstall_cmds=$lt_postuninstall_cmds
21756
21757 # Commands used to build a loadable module (assumed same as above if empty)
21758 module_cmds=$lt_module_cmds_F77
21759 module_expsym_cmds=$lt_module_expsym_cmds_F77
21760
21761 # Commands to strip libraries.
21762 old_striplib=$lt_old_striplib
21763 striplib=$lt_striplib
21764
21765 # Dependencies to place before the objects being linked to create a
21766 # shared library.
21767 predep_objects=$lt_predep_objects_F77
21768
21769 # Dependencies to place after the objects being linked to create a
21770 # shared library.
21771 postdep_objects=$lt_postdep_objects_F77
21772
21773 # Dependencies to place before the objects being linked to create a
21774 # shared library.
21775 predeps=$lt_predeps_F77
21776
21777 # Dependencies to place after the objects being linked to create a
21778 # shared library.
21779 postdeps=$lt_postdeps_F77
21780
21781 # The library search path used internally by the compiler when linking
21782 # a shared library.
21783 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21784
21785 # Method to check whether dependent libraries are shared objects.
21786 deplibs_check_method=$lt_deplibs_check_method
21787
21788 # Command to use when deplibs_check_method == file_magic.
21789 file_magic_cmd=$lt_file_magic_cmd
21790
21791 # Flag that allows shared libraries with undefined symbols to be built.
21792 allow_undefined_flag=$lt_allow_undefined_flag_F77
21793
21794 # Flag that forces no undefined symbols.
21795 no_undefined_flag=$lt_no_undefined_flag_F77
21796
21797 # Commands used to finish a libtool library installation in a directory.
21798 finish_cmds=$lt_finish_cmds
21799
21800 # Same as above, but a single script fragment to be evaled but not shown.
21801 finish_eval=$lt_finish_eval
21802
21803 # Take the output of nm and produce a listing of raw symbols and C names.
21804 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21805
21806 # Transform the output of nm in a proper C declaration
21807 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21808
21809 # Transform the output of nm in a C name address pair
21810 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21811
21812 # This is the shared library runtime path variable.
21813 runpath_var=$runpath_var
21814
21815 # This is the shared library path variable.
21816 shlibpath_var=$shlibpath_var
21817
21818 # Is shlibpath searched before the hard-coded library search path?
21819 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21820
21821 # How to hardcode a shared library path into an executable.
21822 hardcode_action=$hardcode_action_F77
21823
21824 # Whether we should hardcode library paths into libraries.
21825 hardcode_into_libs=$hardcode_into_libs
21826
21827 # Flag to hardcode \$libdir into a binary during linking.
21828 # This must work even if \$libdir does not exist.
21829 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21830
21831 # If ld is used when linking, flag to hardcode \$libdir into
21832 # a binary during linking. This must work even if \$libdir does
21833 # not exist.
21834 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21835
21836 # Whether we need a single -rpath flag with a separated argument.
21837 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21838
21839 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21840 # resulting binary.
21841 hardcode_direct=$hardcode_direct_F77
21842
21843 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21844 # resulting binary.
21845 hardcode_minus_L=$hardcode_minus_L_F77
21846
21847 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21848 # the resulting binary.
21849 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21850
21851 # Set to yes if building a shared library automatically hardcodes DIR into the library
21852 # and all subsequent libraries and executables linked against it.
21853 hardcode_automatic=$hardcode_automatic_F77
21854
21855 # Variables whose values should be saved in libtool wrapper scripts and
21856 # restored at relink time.
21857 variables_saved_for_relink="$variables_saved_for_relink"
21858
21859 # Whether libtool must link a program against all its dependency libraries.
21860 link_all_deplibs=$link_all_deplibs_F77
21861
21862 # Compile-time system search path for libraries
21863 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21864
21865 # Run-time system search path for libraries
21866 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21867
21868 # Fix the shell variable \$srcfile for the compiler.
21869 fix_srcfile_path="$fix_srcfile_path_F77"
21870
21871 # Set to yes if exported symbols are required.
21872 always_export_symbols=$always_export_symbols_F77
21873
21874 # The commands to list exported symbols.
21875 export_symbols_cmds=$lt_export_symbols_cmds_F77
21876
21877 # The commands to extract the exported symbol list from a shared archive.
21878 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21879
21880 # Symbols that should not be listed in the preloaded symbols.
21881 exclude_expsyms=$lt_exclude_expsyms_F77
21882
21883 # Symbols that must always be exported.
21884 include_expsyms=$lt_include_expsyms_F77
21885
21886 # ### END LIBTOOL TAG CONFIG: $tagname
21887
21888 __EOF__
21889
21890
21891 else
21892   # If there is no Makefile yet, we rely on a make rule to execute
21893   # `config.status --recheck' to rerun these tests and create the
21894   # libtool script then.
21895   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21896   if test -f "$ltmain_in"; then
21897     test -f Makefile && make "$ltmain"
21898   fi
21899 fi
21900
21901
21902 ac_ext=c
21903 ac_cpp='$CPP $CPPFLAGS'
21904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21907
21908 CC="$lt_save_CC"
21909
21910         else
21911           tagname=""
21912         fi
21913         ;;
21914
21915       GCJ)
21916         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21917
21918
21919
21920 # Source file extension for Java test sources.
21921 ac_ext=java
21922
21923 # Object file extension for compiled Java test sources.
21924 objext=o
21925 objext_GCJ=$objext
21926
21927 # Code to be used in simple compile tests
21928 lt_simple_compile_test_code="class foo {}\n"
21929
21930 # Code to be used in simple link tests
21931 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21932
21933 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21934
21935 # If no C compiler was specified, use CC.
21936 LTCC=${LTCC-"$CC"}
21937
21938 # Allow CC to be a program name with arguments.
21939 compiler=$CC
21940
21941
21942 # Allow CC to be a program name with arguments.
21943 lt_save_CC="$CC"
21944 CC=${GCJ-"gcj"}
21945 compiler=$CC
21946 compiler_GCJ=$CC
21947
21948 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21949 archive_cmds_need_lc_GCJ=no
21950
21951 ## CAVEAT EMPTOR:
21952 ## There is no encapsulation within the following macros, do not change
21953 ## the running order or otherwise move them around unless you know exactly
21954 ## what you are doing...
21955
21956 lt_prog_compiler_no_builtin_flag_GCJ=
21957
21958 if test "$GCC" = yes; then
21959   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21960
21961
21962 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21963 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21964 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21965   echo $ECHO_N "(cached) $ECHO_C" >&6
21966 else
21967   lt_cv_prog_compiler_rtti_exceptions=no
21968   ac_outfile=conftest.$ac_objext
21969    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21970    lt_compiler_flag="-fno-rtti -fno-exceptions"
21971    # Insert the option either (1) after the last *FLAGS variable, or
21972    # (2) before a word containing "conftest.", or (3) at the end.
21973    # Note that $ac_compile itself does not contain backslashes and begins
21974    # with a dollar sign (not a hyphen), so the echo should work correctly.
21975    # The option is referenced via a variable to avoid confusing sed.
21976    lt_compile=`echo "$ac_compile" | $SED \
21977    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21978    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21979    -e 's:$: $lt_compiler_flag:'`
21980    (eval echo "\"\$as_me:21980: $lt_compile\"" >&5)
21981    (eval "$lt_compile" 2>conftest.err)
21982    ac_status=$?
21983    cat conftest.err >&5
21984    echo "$as_me:21984: \$? = $ac_status" >&5
21985    if (exit $ac_status) && test -s "$ac_outfile"; then
21986      # The compiler can only warn and ignore the option if not recognized
21987      # So say no if there are warnings
21988      if test ! -s conftest.err; then
21989        lt_cv_prog_compiler_rtti_exceptions=yes
21990      fi
21991    fi
21992    $rm conftest*
21993
21994 fi
21995 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21996 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21997
21998 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21999     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22000 else
22001     :
22002 fi
22003
22004 fi
22005
22006 lt_prog_compiler_wl_GCJ=
22007 lt_prog_compiler_pic_GCJ=
22008 lt_prog_compiler_static_GCJ=
22009
22010 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22011 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22012
22013   if test "$GCC" = yes; then
22014     lt_prog_compiler_wl_GCJ='-Wl,'
22015     lt_prog_compiler_static_GCJ='-static'
22016
22017     case $host_os in
22018       aix*)
22019       # All AIX code is PIC.
22020       if test "$host_cpu" = ia64; then
22021         # AIX 5 now supports IA64 processor
22022         lt_prog_compiler_static_GCJ='-Bstatic'
22023       fi
22024       ;;
22025
22026     amigaos*)
22027       # FIXME: we need at least 68020 code to build shared libraries, but
22028       # adding the `-m68020' flag to GCC prevents building anything better,
22029       # like `-m68040'.
22030       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22031       ;;
22032
22033     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22034       # PIC is the default for these OSes.
22035       ;;
22036
22037     mingw* | pw32* | os2*)
22038       # This hack is so that the source file can tell whether it is being
22039       # built for inclusion in a dll (and should export symbols for example).
22040       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22041       ;;
22042
22043     darwin* | rhapsody*)
22044       # PIC is the default on this platform
22045       # Common symbols not allowed in MH_DYLIB files
22046       lt_prog_compiler_pic_GCJ='-fno-common'
22047       ;;
22048
22049     msdosdjgpp*)
22050       # Just because we use GCC doesn't mean we suddenly get shared libraries
22051       # on systems that don't support them.
22052       lt_prog_compiler_can_build_shared_GCJ=no
22053       enable_shared=no
22054       ;;
22055
22056     sysv4*MP*)
22057       if test -d /usr/nec; then
22058         lt_prog_compiler_pic_GCJ=-Kconform_pic
22059       fi
22060       ;;
22061
22062     hpux*)
22063       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22064       # not for PA HP-UX.
22065       case "$host_cpu" in
22066       hppa*64*|ia64*)
22067         # +Z the default
22068         ;;
22069       *)
22070         lt_prog_compiler_pic_GCJ='-fPIC'
22071         ;;
22072       esac
22073       ;;
22074
22075     *)
22076       lt_prog_compiler_pic_GCJ='-fPIC'
22077       ;;
22078     esac
22079   else
22080     # PORTME Check for flag to pass linker flags through the system compiler.
22081     case $host_os in
22082     aix*)
22083       lt_prog_compiler_wl_GCJ='-Wl,'
22084       if test "$host_cpu" = ia64; then
22085         # AIX 5 now supports IA64 processor
22086         lt_prog_compiler_static_GCJ='-Bstatic'
22087       else
22088         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22089       fi
22090       ;;
22091
22092     mingw* | pw32* | os2*)
22093       # This hack is so that the source file can tell whether it is being
22094       # built for inclusion in a dll (and should export symbols for example).
22095       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22096       ;;
22097
22098     hpux9* | hpux10* | hpux11*)
22099       lt_prog_compiler_wl_GCJ='-Wl,'
22100       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22101       # not for PA HP-UX.
22102       case "$host_cpu" in
22103       hppa*64*|ia64*)
22104         # +Z the default
22105         ;;
22106       *)
22107         lt_prog_compiler_pic_GCJ='+Z'
22108         ;;
22109       esac
22110       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22111       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22112       ;;
22113
22114     irix5* | irix6* | nonstopux*)
22115       lt_prog_compiler_wl_GCJ='-Wl,'
22116       # PIC (with -KPIC) is the default.
22117       lt_prog_compiler_static_GCJ='-non_shared'
22118       ;;
22119
22120     newsos6)
22121       lt_prog_compiler_pic_GCJ='-KPIC'
22122       lt_prog_compiler_static_GCJ='-Bstatic'
22123       ;;
22124
22125     linux*)
22126       case $CC in
22127       icc* | ecc*)
22128         lt_prog_compiler_wl_GCJ='-Wl,'
22129         lt_prog_compiler_pic_GCJ='-KPIC'
22130         lt_prog_compiler_static_GCJ='-static'
22131         ;;
22132       ccc*)
22133         lt_prog_compiler_wl_GCJ='-Wl,'
22134         # All Alpha code is PIC.
22135         lt_prog_compiler_static_GCJ='-non_shared'
22136         ;;
22137       esac
22138       ;;
22139
22140     osf3* | osf4* | osf5*)
22141       lt_prog_compiler_wl_GCJ='-Wl,'
22142       # All OSF/1 code is PIC.
22143       lt_prog_compiler_static_GCJ='-non_shared'
22144       ;;
22145
22146     sco3.2v5*)
22147       lt_prog_compiler_pic_GCJ='-Kpic'
22148       lt_prog_compiler_static_GCJ='-dn'
22149       ;;
22150
22151     solaris*)
22152       lt_prog_compiler_wl_GCJ='-Wl,'
22153       lt_prog_compiler_pic_GCJ='-KPIC'
22154       lt_prog_compiler_static_GCJ='-Bstatic'
22155       ;;
22156
22157     sunos4*)
22158       lt_prog_compiler_wl_GCJ='-Qoption ld '
22159       lt_prog_compiler_pic_GCJ='-PIC'
22160       lt_prog_compiler_static_GCJ='-Bstatic'
22161       ;;
22162
22163     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22164       lt_prog_compiler_wl_GCJ='-Wl,'
22165       lt_prog_compiler_pic_GCJ='-KPIC'
22166       lt_prog_compiler_static_GCJ='-Bstatic'
22167       ;;
22168
22169     sysv4*MP*)
22170       if test -d /usr/nec ;then
22171         lt_prog_compiler_pic_GCJ='-Kconform_pic'
22172         lt_prog_compiler_static_GCJ='-Bstatic'
22173       fi
22174       ;;
22175
22176     uts4*)
22177       lt_prog_compiler_pic_GCJ='-pic'
22178       lt_prog_compiler_static_GCJ='-Bstatic'
22179       ;;
22180
22181     *)
22182       lt_prog_compiler_can_build_shared_GCJ=no
22183       ;;
22184     esac
22185   fi
22186
22187 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22188 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
22189
22190 #
22191 # Check to make sure the PIC flag actually works.
22192 #
22193 if test -n "$lt_prog_compiler_pic_GCJ"; then
22194
22195 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22196 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
22197 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22198   echo $ECHO_N "(cached) $ECHO_C" >&6
22199 else
22200   lt_prog_compiler_pic_works_GCJ=no
22201   ac_outfile=conftest.$ac_objext
22202    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22203    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22204    # Insert the option either (1) after the last *FLAGS variable, or
22205    # (2) before a word containing "conftest.", or (3) at the end.
22206    # Note that $ac_compile itself does not contain backslashes and begins
22207    # with a dollar sign (not a hyphen), so the echo should work correctly.
22208    # The option is referenced via a variable to avoid confusing sed.
22209    lt_compile=`echo "$ac_compile" | $SED \
22210    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22211    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22212    -e 's:$: $lt_compiler_flag:'`
22213    (eval echo "\"\$as_me:22213: $lt_compile\"" >&5)
22214    (eval "$lt_compile" 2>conftest.err)
22215    ac_status=$?
22216    cat conftest.err >&5
22217    echo "$as_me:22217: \$? = $ac_status" >&5
22218    if (exit $ac_status) && test -s "$ac_outfile"; then
22219      # The compiler can only warn and ignore the option if not recognized
22220      # So say no if there are warnings
22221      if test ! -s conftest.err; then
22222        lt_prog_compiler_pic_works_GCJ=yes
22223      fi
22224    fi
22225    $rm conftest*
22226
22227 fi
22228 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22229 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
22230
22231 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22232     case $lt_prog_compiler_pic_GCJ in
22233      "" | " "*) ;;
22234      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22235      esac
22236 else
22237     lt_prog_compiler_pic_GCJ=
22238      lt_prog_compiler_can_build_shared_GCJ=no
22239 fi
22240
22241 fi
22242 case "$host_os" in
22243   # For platforms which do not support PIC, -DPIC is meaningless:
22244   *djgpp*)
22245     lt_prog_compiler_pic_GCJ=
22246     ;;
22247   *)
22248     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22249     ;;
22250 esac
22251
22252 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22253 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22254 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22255   echo $ECHO_N "(cached) $ECHO_C" >&6
22256 else
22257   lt_cv_prog_compiler_c_o_GCJ=no
22258    $rm -r conftest 2>/dev/null
22259    mkdir conftest
22260    cd conftest
22261    mkdir out
22262    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22263
22264    lt_compiler_flag="-o out/conftest2.$ac_objext"
22265    # Insert the option either (1) after the last *FLAGS variable, or
22266    # (2) before a word containing "conftest.", or (3) at the end.
22267    # Note that $ac_compile itself does not contain backslashes and begins
22268    # with a dollar sign (not a hyphen), so the echo should work correctly.
22269    lt_compile=`echo "$ac_compile" | $SED \
22270    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22271    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22272    -e 's:$: $lt_compiler_flag:'`
22273    (eval echo "\"\$as_me:22273: $lt_compile\"" >&5)
22274    (eval "$lt_compile" 2>out/conftest.err)
22275    ac_status=$?
22276    cat out/conftest.err >&5
22277    echo "$as_me:22277: \$? = $ac_status" >&5
22278    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22279    then
22280      # The compiler can only warn and ignore the option if not recognized
22281      # So say no if there are warnings
22282      if test ! -s out/conftest.err; then
22283        lt_cv_prog_compiler_c_o_GCJ=yes
22284      fi
22285    fi
22286    chmod u+w .
22287    $rm conftest*
22288    # SGI C++ compiler will create directory out/ii_files/ for
22289    # template instantiation
22290    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22291    $rm out/* && rmdir out
22292    cd ..
22293    rmdir conftest
22294    $rm conftest*
22295
22296 fi
22297 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22298 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
22299
22300
22301 hard_links="nottested"
22302 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22303   # do not overwrite the value of need_locks provided by the user
22304   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22305 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22306   hard_links=yes
22307   $rm conftest*
22308   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22309   touch conftest.a
22310   ln conftest.a conftest.b 2>&5 || hard_links=no
22311   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22312   echo "$as_me:$LINENO: result: $hard_links" >&5
22313 echo "${ECHO_T}$hard_links" >&6
22314   if test "$hard_links" = no; then
22315     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22316 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22317     need_locks=warn
22318   fi
22319 else
22320   need_locks=no
22321 fi
22322
22323 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22324 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22325
22326   runpath_var=
22327   allow_undefined_flag_GCJ=
22328   enable_shared_with_static_runtimes_GCJ=no
22329   archive_cmds_GCJ=
22330   archive_expsym_cmds_GCJ=
22331   old_archive_From_new_cmds_GCJ=
22332   old_archive_from_expsyms_cmds_GCJ=
22333   export_dynamic_flag_spec_GCJ=
22334   whole_archive_flag_spec_GCJ=
22335   thread_safe_flag_spec_GCJ=
22336   hardcode_libdir_flag_spec_GCJ=
22337   hardcode_libdir_flag_spec_ld_GCJ=
22338   hardcode_libdir_separator_GCJ=
22339   hardcode_direct_GCJ=no
22340   hardcode_minus_L_GCJ=no
22341   hardcode_shlibpath_var_GCJ=unsupported
22342   link_all_deplibs_GCJ=unknown
22343   hardcode_automatic_GCJ=no
22344   module_cmds_GCJ=
22345   module_expsym_cmds_GCJ=
22346   always_export_symbols_GCJ=no
22347   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22348   # include_expsyms should be a list of space-separated symbols to be *always*
22349   # included in the symbol list
22350   include_expsyms_GCJ=
22351   # exclude_expsyms can be an extended regexp of symbols to exclude
22352   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22353   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22354   # as well as any symbol that contains `d'.
22355   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22356   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22357   # platforms (ab)use it in PIC code, but their linkers get confused if
22358   # the symbol is explicitly referenced.  Since portable code cannot
22359   # rely on this symbol name, it's probably fine to never include it in
22360   # preloaded symbol tables.
22361   extract_expsyms_cmds=
22362
22363   case $host_os in
22364   cygwin* | mingw* | pw32*)
22365     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22366     # When not using gcc, we currently assume that we are using
22367     # Microsoft Visual C++.
22368     if test "$GCC" != yes; then
22369       with_gnu_ld=no
22370     fi
22371     ;;
22372   openbsd*)
22373     with_gnu_ld=no
22374     ;;
22375   esac
22376
22377   ld_shlibs_GCJ=yes
22378   if test "$with_gnu_ld" = yes; then
22379     # If archive_cmds runs LD, not CC, wlarc should be empty
22380     wlarc='${wl}'
22381
22382     # See if GNU ld supports shared libraries.
22383     case $host_os in
22384     aix3* | aix4* | aix5*)
22385       # On AIX/PPC, the GNU linker is very broken
22386       if test "$host_cpu" != ia64; then
22387         ld_shlibs_GCJ=no
22388         cat <<EOF 1>&2
22389
22390 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22391 *** to be unable to reliably create shared libraries on AIX.
22392 *** Therefore, libtool is disabling shared libraries support.  If you
22393 *** really care for shared libraries, you may want to modify your PATH
22394 *** so that a non-GNU linker is found, and then restart.
22395
22396 EOF
22397       fi
22398       ;;
22399
22400     amigaos*)
22401       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)'
22402       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22403       hardcode_minus_L_GCJ=yes
22404
22405       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22406       # that the semantics of dynamic libraries on AmigaOS, at least up
22407       # to version 4, is to share data among multiple programs linked
22408       # with the same dynamic library.  Since this doesn't match the
22409       # behavior of shared libraries on other platforms, we can't use
22410       # them.
22411       ld_shlibs_GCJ=no
22412       ;;
22413
22414     beos*)
22415       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22416         allow_undefined_flag_GCJ=unsupported
22417         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22418         # support --undefined.  This deserves some investigation.  FIXME
22419         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22420       else
22421         ld_shlibs_GCJ=no
22422       fi
22423       ;;
22424
22425     cygwin* | mingw* | pw32*)
22426       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22427       # as there is no search path for DLLs.
22428       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22429       allow_undefined_flag_GCJ=unsupported
22430       always_export_symbols_GCJ=no
22431       enable_shared_with_static_runtimes_GCJ=yes
22432       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22433
22434       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22435         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22436         # If the export-symbols file already is a .def file (1st line
22437         # is EXPORTS), use it as is; otherwise, prepend...
22438         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22439           cp $export_symbols $output_objdir/$soname.def;
22440         else
22441           echo EXPORTS > $output_objdir/$soname.def;
22442           cat $export_symbols >> $output_objdir/$soname.def;
22443         fi~
22444         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
22445       else
22446         ld_shlibs=no
22447       fi
22448       ;;
22449
22450     netbsd*)
22451       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22452         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22453         wlarc=
22454       else
22455         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22456         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22457       fi
22458       ;;
22459
22460     solaris* | sysv5*)
22461       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22462         ld_shlibs_GCJ=no
22463         cat <<EOF 1>&2
22464
22465 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22466 *** create shared libraries on Solaris systems.  Therefore, libtool
22467 *** is disabling shared libraries support.  We urge you to upgrade GNU
22468 *** binutils to release 2.9.1 or newer.  Another option is to modify
22469 *** your PATH or compiler configuration so that the native linker is
22470 *** used, and then restart.
22471
22472 EOF
22473       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22474         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22475         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22476       else
22477         ld_shlibs_GCJ=no
22478       fi
22479       ;;
22480
22481     sunos4*)
22482       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22483       wlarc=
22484       hardcode_direct_GCJ=yes
22485       hardcode_shlibpath_var_GCJ=no
22486       ;;
22487
22488   linux*)
22489     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22490         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22491         archive_cmds_GCJ="$tmp_archive_cmds"
22492       supports_anon_versioning=no
22493       case `$LD -v 2>/dev/null` in
22494         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22495         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22496         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22497         *\ 2.11.*) ;; # other 2.11 versions
22498         *) supports_anon_versioning=yes ;;
22499       esac
22500       if test $supports_anon_versioning = yes; then
22501         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22502 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22503 $echo "local: *; };" >> $output_objdir/$libname.ver~
22504         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22505       else
22506         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
22507       fi
22508     else
22509       ld_shlibs_GCJ=no
22510     fi
22511     ;;
22512
22513     *)
22514       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22515         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22516         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22517       else
22518         ld_shlibs_GCJ=no
22519       fi
22520       ;;
22521     esac
22522
22523     if test "$ld_shlibs_GCJ" = yes; then
22524       runpath_var=LD_RUN_PATH
22525       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22526       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22527       # ancient GNU ld didn't support --whole-archive et. al.
22528       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22529         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22530       else
22531         whole_archive_flag_spec_GCJ=
22532       fi
22533     fi
22534   else
22535     # PORTME fill in a description of your system's linker (not GNU ld)
22536     case $host_os in
22537     aix3*)
22538       allow_undefined_flag_GCJ=unsupported
22539       always_export_symbols_GCJ=yes
22540       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'
22541       # Note: this linker hardcodes the directories in LIBPATH if there
22542       # are no directories specified by -L.
22543       hardcode_minus_L_GCJ=yes
22544       if test "$GCC" = yes && test -z "$link_static_flag"; then
22545         # Neither direct hardcoding nor static linking is supported with a
22546         # broken collect2.
22547         hardcode_direct_GCJ=unsupported
22548       fi
22549       ;;
22550
22551     aix4* | aix5*)
22552       if test "$host_cpu" = ia64; then
22553         # On IA64, the linker does run time linking by default, so we don't
22554         # have to do anything special.
22555         aix_use_runtimelinking=no
22556         exp_sym_flag='-Bexport'
22557         no_entry_flag=""
22558       else
22559         # If we're using GNU nm, then we don't want the "-C" option.
22560         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22561         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22562           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'
22563         else
22564           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'
22565         fi
22566         aix_use_runtimelinking=no
22567
22568         # Test if we are trying to use run time linking or normal
22569         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22570         # need to do runtime linking.
22571         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22572           for ld_flag in $LDFLAGS; do
22573           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22574             aix_use_runtimelinking=yes
22575             break
22576           fi
22577           done
22578         esac
22579
22580         exp_sym_flag='-bexport'
22581         no_entry_flag='-bnoentry'
22582       fi
22583
22584       # When large executables or shared objects are built, AIX ld can
22585       # have problems creating the table of contents.  If linking a library
22586       # or program results in "error TOC overflow" add -mminimal-toc to
22587       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22588       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22589
22590       archive_cmds_GCJ=''
22591       hardcode_direct_GCJ=yes
22592       hardcode_libdir_separator_GCJ=':'
22593       link_all_deplibs_GCJ=yes
22594
22595       if test "$GCC" = yes; then
22596         case $host_os in aix4.012|aix4.012.*)
22597         # We only want to do this on AIX 4.2 and lower, the check
22598         # below for broken collect2 doesn't work under 4.3+
22599           collect2name=`${CC} -print-prog-name=collect2`
22600           if test -f "$collect2name" && \
22601            strings "$collect2name" | grep resolve_lib_name >/dev/null
22602           then
22603           # We have reworked collect2
22604           hardcode_direct_GCJ=yes
22605           else
22606           # We have old collect2
22607           hardcode_direct_GCJ=unsupported
22608           # It fails to find uninstalled libraries when the uninstalled
22609           # path is not listed in the libpath.  Setting hardcode_minus_L
22610           # to unsupported forces relinking
22611           hardcode_minus_L_GCJ=yes
22612           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22613           hardcode_libdir_separator_GCJ=
22614           fi
22615         esac
22616         shared_flag='-shared'
22617       else
22618         # not using gcc
22619         if test "$host_cpu" = ia64; then
22620         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22621         # chokes on -Wl,-G. The following line is correct:
22622           shared_flag='-G'
22623         else
22624         if test "$aix_use_runtimelinking" = yes; then
22625             shared_flag='${wl}-G'
22626           else
22627             shared_flag='${wl}-bM:SRE'
22628         fi
22629         fi
22630       fi
22631
22632       # It seems that -bexpall does not export symbols beginning with
22633       # underscore (_), so it is better to generate a list of symbols to export.
22634       always_export_symbols_GCJ=yes
22635       if test "$aix_use_runtimelinking" = yes; then
22636         # Warning - without using the other runtime loading flags (-brtl),
22637         # -berok will link without error, but may produce a broken library.
22638         allow_undefined_flag_GCJ='-berok'
22639        # Determine the default libpath from the value encoded in an empty executable.
22640        cat >conftest.$ac_ext <<_ACEOF
22641 /* confdefs.h.  */
22642 _ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h.  */
22646
22647 int
22648 main ()
22649 {
22650
22651   ;
22652   return 0;
22653 }
22654 _ACEOF
22655 rm -f conftest.$ac_objext conftest$ac_exeext
22656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22657   (eval $ac_link) 2>conftest.er1
22658   ac_status=$?
22659   grep -v '^ *+' conftest.er1 >conftest.err
22660   rm -f conftest.er1
22661   cat conftest.err >&5
22662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663   (exit $ac_status); } &&
22664          { ac_try='test -z "$ac_c_werror_flag"
22665                          || test ! -s conftest.err'
22666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22667   (eval $ac_try) 2>&5
22668   ac_status=$?
22669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670   (exit $ac_status); }; } &&
22671          { ac_try='test -s conftest$ac_exeext'
22672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673   (eval $ac_try) 2>&5
22674   ac_status=$?
22675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676   (exit $ac_status); }; }; then
22677
22678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22679 }'`
22680 # Check for a 64-bit object if we didn't find anything.
22681 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; }
22682 }'`; fi
22683 else
22684   echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22686
22687 fi
22688 rm -f conftest.err conftest.$ac_objext \
22689       conftest$ac_exeext conftest.$ac_ext
22690 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22691
22692        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22693         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"
22694        else
22695         if test "$host_cpu" = ia64; then
22696           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22697           allow_undefined_flag_GCJ="-z nodefs"
22698           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"
22699         else
22700          # Determine the default libpath from the value encoded in an empty executable.
22701          cat >conftest.$ac_ext <<_ACEOF
22702 /* confdefs.h.  */
22703 _ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h.  */
22707
22708 int
22709 main ()
22710 {
22711
22712   ;
22713   return 0;
22714 }
22715 _ACEOF
22716 rm -f conftest.$ac_objext conftest$ac_exeext
22717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22718   (eval $ac_link) 2>conftest.er1
22719   ac_status=$?
22720   grep -v '^ *+' conftest.er1 >conftest.err
22721   rm -f conftest.er1
22722   cat conftest.err >&5
22723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724   (exit $ac_status); } &&
22725          { ac_try='test -z "$ac_c_werror_flag"
22726                          || test ! -s conftest.err'
22727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22728   (eval $ac_try) 2>&5
22729   ac_status=$?
22730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731   (exit $ac_status); }; } &&
22732          { ac_try='test -s conftest$ac_exeext'
22733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734   (eval $ac_try) 2>&5
22735   ac_status=$?
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); }; }; then
22738
22739 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22740 }'`
22741 # Check for a 64-bit object if we didn't find anything.
22742 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; }
22743 }'`; fi
22744 else
22745   echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22747
22748 fi
22749 rm -f conftest.err conftest.$ac_objext \
22750       conftest$ac_exeext conftest.$ac_ext
22751 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22752
22753          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22754           # Warning - without using the other run time loading flags,
22755           # -berok will link without error, but may produce a broken library.
22756           no_undefined_flag_GCJ=' ${wl}-bernotok'
22757           allow_undefined_flag_GCJ=' ${wl}-berok'
22758           # -bexpall does not export symbols beginning with underscore (_)
22759           always_export_symbols_GCJ=yes
22760           # Exported symbols can be pulled into shared objects from archives
22761           whole_archive_flag_spec_GCJ=' '
22762           archive_cmds_need_lc_GCJ=yes
22763           # This is similar to how AIX traditionally builds it's shared libraries.
22764           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'
22765         fi
22766       fi
22767       ;;
22768
22769     amigaos*)
22770       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)'
22771       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22772       hardcode_minus_L_GCJ=yes
22773       # see comment about different semantics on the GNU ld section
22774       ld_shlibs_GCJ=no
22775       ;;
22776
22777     bsdi4*)
22778       export_dynamic_flag_spec_GCJ=-rdynamic
22779       ;;
22780
22781     cygwin* | mingw* | pw32*)
22782       # When not using gcc, we currently assume that we are using
22783       # Microsoft Visual C++.
22784       # hardcode_libdir_flag_spec is actually meaningless, as there is
22785       # no search path for DLLs.
22786       hardcode_libdir_flag_spec_GCJ=' '
22787       allow_undefined_flag_GCJ=unsupported
22788       # Tell ltmain to make .lib files, not .a files.
22789       libext=lib
22790       # Tell ltmain to make .dll files, not .so files.
22791       shrext_cmds=".dll"
22792       # FIXME: Setting linknames here is a bad hack.
22793       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22794       # The linker will automatically build a .lib file if we build a DLL.
22795       old_archive_From_new_cmds_GCJ='true'
22796       # FIXME: Should let the user specify the lib program.
22797       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22798       fix_srcfile_path='`cygpath -w "$srcfile"`'
22799       enable_shared_with_static_runtimes_GCJ=yes
22800       ;;
22801
22802     darwin* | rhapsody*)
22803     if test "$GXX" = yes ; then
22804       archive_cmds_need_lc_GCJ=no
22805       case "$host_os" in
22806       rhapsody* | darwin1.[012])
22807         allow_undefined_flag_GCJ='-undefined suppress'
22808         ;;
22809       *) # Darwin 1.3 on
22810       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22811         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
22812       else
22813         case ${MACOSX_DEPLOYMENT_TARGET} in
22814           10.[012])
22815             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
22816             ;;
22817           10.*)
22818             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
22819             ;;
22820         esac
22821       fi
22822         ;;
22823       esac
22824         lt_int_apple_cc_single_mod=no
22825         output_verbose_link_cmd='echo'
22826         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
22827           lt_int_apple_cc_single_mod=yes
22828         fi
22829         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
22830           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22831         else
22832         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
22833       fi
22834       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22835       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22836         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
22837           archive_expsym_cmds_GCJ='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}'
22838         else
22839           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
22840         fi
22841           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}'
22842       hardcode_direct_GCJ=no
22843       hardcode_automatic_GCJ=yes
22844       hardcode_shlibpath_var_GCJ=unsupported
22845       whole_archive_flag_spec_GCJ='-all_load $convenience'
22846       link_all_deplibs_GCJ=yes
22847     else
22848       ld_shlibs_GCJ=no
22849     fi
22850       ;;
22851
22852     dgux*)
22853       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22854       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22855       hardcode_shlibpath_var_GCJ=no
22856       ;;
22857
22858     freebsd1*)
22859       ld_shlibs_GCJ=no
22860       ;;
22861
22862     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22863     # support.  Future versions do this automatically, but an explicit c++rt0.o
22864     # does not break anything, and helps significantly (at the cost of a little
22865     # extra space).
22866     freebsd2.2*)
22867       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22868       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22869       hardcode_direct_GCJ=yes
22870       hardcode_shlibpath_var_GCJ=no
22871       ;;
22872
22873     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22874     freebsd2*)
22875       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22876       hardcode_direct_GCJ=yes
22877       hardcode_minus_L_GCJ=yes
22878       hardcode_shlibpath_var_GCJ=no
22879       ;;
22880
22881     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22882     freebsd* | kfreebsd*-gnu)
22883       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22884       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22885       hardcode_direct_GCJ=yes
22886       hardcode_shlibpath_var_GCJ=no
22887       ;;
22888
22889     hpux9*)
22890       if test "$GCC" = yes; then
22891         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'
22892       else
22893         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'
22894       fi
22895       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22896       hardcode_libdir_separator_GCJ=:
22897       hardcode_direct_GCJ=yes
22898
22899       # hardcode_minus_L: Not really in the search PATH,
22900       # but as the default location of the library.
22901       hardcode_minus_L_GCJ=yes
22902       export_dynamic_flag_spec_GCJ='${wl}-E'
22903       ;;
22904
22905     hpux10* | hpux11*)
22906       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22907         case "$host_cpu" in
22908         hppa*64*|ia64*)
22909           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22910           ;;
22911         *)
22912           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22913           ;;
22914         esac
22915       else
22916         case "$host_cpu" in
22917         hppa*64*|ia64*)
22918           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22919           ;;
22920         *)
22921           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22922           ;;
22923         esac
22924       fi
22925       if test "$with_gnu_ld" = no; then
22926         case "$host_cpu" in
22927         hppa*64*)
22928           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22929           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22930           hardcode_libdir_separator_GCJ=:
22931           hardcode_direct_GCJ=no
22932           hardcode_shlibpath_var_GCJ=no
22933           ;;
22934         ia64*)
22935           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22936           hardcode_direct_GCJ=no
22937           hardcode_shlibpath_var_GCJ=no
22938
22939           # hardcode_minus_L: Not really in the search PATH,
22940           # but as the default location of the library.
22941           hardcode_minus_L_GCJ=yes
22942           ;;
22943         *)
22944           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22945           hardcode_libdir_separator_GCJ=:
22946           hardcode_direct_GCJ=yes
22947           export_dynamic_flag_spec_GCJ='${wl}-E'
22948
22949           # hardcode_minus_L: Not really in the search PATH,
22950           # but as the default location of the library.
22951           hardcode_minus_L_GCJ=yes
22952           ;;
22953         esac
22954       fi
22955       ;;
22956
22957     irix5* | irix6* | nonstopux*)
22958       if test "$GCC" = yes; then
22959         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'
22960       else
22961         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'
22962         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22963       fi
22964       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22965       hardcode_libdir_separator_GCJ=:
22966       link_all_deplibs_GCJ=yes
22967       ;;
22968
22969     netbsd*)
22970       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22971         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22972       else
22973         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22974       fi
22975       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22976       hardcode_direct_GCJ=yes
22977       hardcode_shlibpath_var_GCJ=no
22978       ;;
22979
22980     newsos6)
22981       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22982       hardcode_direct_GCJ=yes
22983       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22984       hardcode_libdir_separator_GCJ=:
22985       hardcode_shlibpath_var_GCJ=no
22986       ;;
22987
22988     openbsd*)
22989       hardcode_direct_GCJ=yes
22990       hardcode_shlibpath_var_GCJ=no
22991       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22992         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22993         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22994         export_dynamic_flag_spec_GCJ='${wl}-E'
22995       else
22996        case $host_os in
22997          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22998            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22999            hardcode_libdir_flag_spec_GCJ='-R$libdir'
23000            ;;
23001          *)
23002            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23003            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23004            ;;
23005        esac
23006       fi
23007       ;;
23008
23009     os2*)
23010       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23011       hardcode_minus_L_GCJ=yes
23012       allow_undefined_flag_GCJ=unsupported
23013       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'
23014       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23015       ;;
23016
23017     osf3*)
23018       if test "$GCC" = yes; then
23019         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23020         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'
23021       else
23022         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23023         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'
23024       fi
23025       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23026       hardcode_libdir_separator_GCJ=:
23027       ;;
23028
23029     osf4* | osf5*)      # as osf3* with the addition of -msym flag
23030       if test "$GCC" = yes; then
23031         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23032         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'
23033         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23034       else
23035         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23036         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'
23037         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~
23038         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
23039
23040         # Both c and cxx compiler support -rpath directly
23041         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23042       fi
23043       hardcode_libdir_separator_GCJ=:
23044       ;;
23045
23046     sco3.2v5*)
23047       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23048       hardcode_shlibpath_var_GCJ=no
23049       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23050       runpath_var=LD_RUN_PATH
23051       hardcode_runpath_var=yes
23052       ;;
23053
23054     solaris*)
23055       no_undefined_flag_GCJ=' -z text'
23056       if test "$GCC" = yes; then
23057         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23058         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23059           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23060       else
23061         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23062         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23063         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23064       fi
23065       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23066       hardcode_shlibpath_var_GCJ=no
23067       case $host_os in
23068       solaris2.[0-5] | solaris2.[0-5].*) ;;
23069       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
23070         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23071       esac
23072       link_all_deplibs_GCJ=yes
23073       ;;
23074
23075     sunos4*)
23076       if test "x$host_vendor" = xsequent; then
23077         # Use $CC to link under sequent, because it throws in some extra .o
23078         # files that make .init and .fini sections work.
23079         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23080       else
23081         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23082       fi
23083       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23084       hardcode_direct_GCJ=yes
23085       hardcode_minus_L_GCJ=yes
23086       hardcode_shlibpath_var_GCJ=no
23087       ;;
23088
23089     sysv4)
23090       case $host_vendor in
23091         sni)
23092           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23093           hardcode_direct_GCJ=yes # is this really true???
23094         ;;
23095         siemens)
23096           ## LD is ld it makes a PLAMLIB
23097           ## CC just makes a GrossModule.
23098           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23099           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23100           hardcode_direct_GCJ=no
23101         ;;
23102         motorola)
23103           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23104           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23105         ;;
23106       esac
23107       runpath_var='LD_RUN_PATH'
23108       hardcode_shlibpath_var_GCJ=no
23109       ;;
23110
23111     sysv4.3*)
23112       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23113       hardcode_shlibpath_var_GCJ=no
23114       export_dynamic_flag_spec_GCJ='-Bexport'
23115       ;;
23116
23117     sysv4*MP*)
23118       if test -d /usr/nec; then
23119         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23120         hardcode_shlibpath_var_GCJ=no
23121         runpath_var=LD_RUN_PATH
23122         hardcode_runpath_var=yes
23123         ld_shlibs_GCJ=yes
23124       fi
23125       ;;
23126
23127     sysv4.2uw2*)
23128       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23129       hardcode_direct_GCJ=yes
23130       hardcode_minus_L_GCJ=no
23131       hardcode_shlibpath_var_GCJ=no
23132       hardcode_runpath_var=yes
23133       runpath_var=LD_RUN_PATH
23134       ;;
23135
23136    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
23137       no_undefined_flag_GCJ='${wl}-z ${wl}text'
23138       if test "$GCC" = yes; then
23139         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23140       else
23141         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23142       fi
23143       runpath_var='LD_RUN_PATH'
23144       hardcode_shlibpath_var_GCJ=no
23145       ;;
23146
23147     sysv5*)
23148       no_undefined_flag_GCJ=' -z text'
23149       # $CC -shared without GNU ld will not create a library from C++
23150       # object files and a static libstdc++, better avoid it by now
23151       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23152       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23153                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23154       hardcode_libdir_flag_spec_GCJ=
23155       hardcode_shlibpath_var_GCJ=no
23156       runpath_var='LD_RUN_PATH'
23157       ;;
23158
23159     uts4*)
23160       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23161       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23162       hardcode_shlibpath_var_GCJ=no
23163       ;;
23164
23165     *)
23166       ld_shlibs_GCJ=no
23167       ;;
23168     esac
23169   fi
23170
23171 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23172 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
23173 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23174
23175 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23176 if test "$GCC" = yes; then
23177   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23178 fi
23179
23180 #
23181 # Do we need to explicitly link libc?
23182 #
23183 case "x$archive_cmds_need_lc_GCJ" in
23184 x|xyes)
23185   # Assume -lc should be added
23186   archive_cmds_need_lc_GCJ=yes
23187
23188   if test "$enable_shared" = yes && test "$GCC" = yes; then
23189     case $archive_cmds_GCJ in
23190     *'~'*)
23191       # FIXME: we may have to deal with multi-command sequences.
23192       ;;
23193     '$CC '*)
23194       # Test whether the compiler implicitly links with -lc since on some
23195       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23196       # to ld, don't add -lc before -lgcc.
23197       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23198 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23199       $rm conftest*
23200       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23201
23202       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23203   (eval $ac_compile) 2>&5
23204   ac_status=$?
23205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206   (exit $ac_status); } 2>conftest.err; then
23207         soname=conftest
23208         lib=conftest
23209         libobjs=conftest.$ac_objext
23210         deplibs=
23211         wl=$lt_prog_compiler_wl_GCJ
23212         compiler_flags=-v
23213         linker_flags=-v
23214         verstring=
23215         output_objdir=.
23216         libname=conftest
23217         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23218         allow_undefined_flag_GCJ=
23219         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23220   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23221   ac_status=$?
23222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223   (exit $ac_status); }
23224         then
23225           archive_cmds_need_lc_GCJ=no
23226         else
23227           archive_cmds_need_lc_GCJ=yes
23228         fi
23229         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23230       else
23231         cat conftest.err 1>&5
23232       fi
23233       $rm conftest*
23234       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23235 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
23236       ;;
23237     esac
23238   fi
23239   ;;
23240 esac
23241
23242 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23243 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23244 library_names_spec=
23245 libname_spec='lib$name'
23246 soname_spec=
23247 shrext_cmds=".so"
23248 postinstall_cmds=
23249 postuninstall_cmds=
23250 finish_cmds=
23251 finish_eval=
23252 shlibpath_var=
23253 shlibpath_overrides_runpath=unknown
23254 version_type=none
23255 dynamic_linker="$host_os ld.so"
23256 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23257 if test "$GCC" = yes; then
23258   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23259   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23260     # if the path contains ";" then we assume it to be the separator
23261     # otherwise default to the standard path separator (i.e. ":") - it is
23262     # assumed that no part of a normal pathname contains ";" but that should
23263     # okay in the real world where ";" in dirpaths is itself problematic.
23264     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23265   else
23266     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23267   fi
23268 else
23269   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23270 fi
23271 need_lib_prefix=unknown
23272 hardcode_into_libs=no
23273
23274 # when you set need_version to no, make sure it does not cause -set_version
23275 # flags to be left without arguments
23276 need_version=unknown
23277
23278 case $host_os in
23279 aix3*)
23280   version_type=linux
23281   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23282   shlibpath_var=LIBPATH
23283
23284   # AIX 3 has no versioning support, so we append a major version to the name.
23285   soname_spec='${libname}${release}${shared_ext}$major'
23286   ;;
23287
23288 aix4* | aix5*)
23289   version_type=linux
23290   need_lib_prefix=no
23291   need_version=no
23292   hardcode_into_libs=yes
23293   if test "$host_cpu" = ia64; then
23294     # AIX 5 supports IA64
23295     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23296     shlibpath_var=LD_LIBRARY_PATH
23297   else
23298     # With GCC up to 2.95.x, collect2 would create an import file
23299     # for dependence libraries.  The import file would start with
23300     # the line `#! .'.  This would cause the generated library to
23301     # depend on `.', always an invalid library.  This was fixed in
23302     # development snapshots of GCC prior to 3.0.
23303     case $host_os in
23304       aix4 | aix4.[01] | aix4.[01].*)
23305       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23306            echo ' yes '
23307            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23308         :
23309       else
23310         can_build_shared=no
23311       fi
23312       ;;
23313     esac
23314     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23315     # soname into executable. Probably we can add versioning support to
23316     # collect2, so additional links can be useful in future.
23317     if test "$aix_use_runtimelinking" = yes; then
23318       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23319       # instead of lib<name>.a to let people know that these are not
23320       # typical AIX shared libraries.
23321       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23322     else
23323       # We preserve .a as extension for shared libraries through AIX4.2
23324       # and later when we are not doing run time linking.
23325       library_names_spec='${libname}${release}.a $libname.a'
23326       soname_spec='${libname}${release}${shared_ext}$major'
23327     fi
23328     shlibpath_var=LIBPATH
23329   fi
23330   ;;
23331
23332 amigaos*)
23333   library_names_spec='$libname.ixlibrary $libname.a'
23334   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23335   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'
23336   ;;
23337
23338 beos*)
23339   library_names_spec='${libname}${shared_ext}'
23340   dynamic_linker="$host_os ld.so"
23341   shlibpath_var=LIBRARY_PATH
23342   ;;
23343
23344 bsdi4*)
23345   version_type=linux
23346   need_version=no
23347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23348   soname_spec='${libname}${release}${shared_ext}$major'
23349   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23350   shlibpath_var=LD_LIBRARY_PATH
23351   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23352   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23353   # the default ld.so.conf also contains /usr/contrib/lib and
23354   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23355   # libtool to hard-code these into programs
23356   ;;
23357
23358 cygwin* | mingw* | pw32*)
23359   version_type=windows
23360   shrext_cmds=".dll"
23361   need_version=no
23362   need_lib_prefix=no
23363
23364   case $GCC,$host_os in
23365   yes,cygwin* | yes,mingw* | yes,pw32*)
23366     library_names_spec='$libname.dll.a'
23367     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23368     postinstall_cmds='base_file=`basename \${file}`~
23369       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23370       dldir=$destdir/`dirname \$dlpath`~
23371       test -d \$dldir || mkdir -p \$dldir~
23372       $install_prog $dir/$dlname \$dldir/$dlname'
23373     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23374       dlpath=$dir/\$dldll~
23375        $rm \$dlpath'
23376     shlibpath_overrides_runpath=yes
23377
23378     case $host_os in
23379     cygwin*)
23380       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23381       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23382       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23383       ;;
23384     mingw*)
23385       # MinGW DLLs use traditional 'lib' prefix
23386       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23387       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23388       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23389         # It is most probably a Windows format PATH printed by
23390         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23391         # path with ; separators, and with drive letters. We can handle the
23392         # drive letters (cygwin fileutils understands them), so leave them,
23393         # especially as we might pass files found there to a mingw objdump,
23394         # which wouldn't understand a cygwinified path. Ahh.
23395         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23396       else
23397         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23398       fi
23399       ;;
23400     pw32*)
23401       # pw32 DLLs use 'pw' prefix rather than 'lib'
23402       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
23403       ;;
23404     esac
23405     ;;
23406
23407   *)
23408     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23409     ;;
23410   esac
23411   dynamic_linker='Win32 ld.exe'
23412   # FIXME: first we should search . and the directory the executable is in
23413   shlibpath_var=PATH
23414   ;;
23415
23416 darwin* | rhapsody*)
23417   dynamic_linker="$host_os dyld"
23418   version_type=darwin
23419   need_lib_prefix=no
23420   need_version=no
23421   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23422   soname_spec='${libname}${release}${major}$shared_ext'
23423   shlibpath_overrides_runpath=yes
23424   shlibpath_var=DYLD_LIBRARY_PATH
23425   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
23426   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23427   if test "$GCC" = yes; then
23428     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"`
23429   else
23430     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23431   fi
23432   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23433   ;;
23434
23435 dgux*)
23436   version_type=linux
23437   need_lib_prefix=no
23438   need_version=no
23439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23440   soname_spec='${libname}${release}${shared_ext}$major'
23441   shlibpath_var=LD_LIBRARY_PATH
23442   ;;
23443
23444 freebsd1*)
23445   dynamic_linker=no
23446   ;;
23447
23448 kfreebsd*-gnu)
23449   version_type=linux
23450   need_lib_prefix=no
23451   need_version=no
23452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23453   soname_spec='${libname}${release}${shared_ext}$major'
23454   shlibpath_var=LD_LIBRARY_PATH
23455   shlibpath_overrides_runpath=no
23456   hardcode_into_libs=yes
23457   dynamic_linker='GNU ld.so'
23458   ;;
23459
23460 freebsd*)
23461   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23462   version_type=freebsd-$objformat
23463   case $version_type in
23464     freebsd-elf*)
23465       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23466       need_version=no
23467       need_lib_prefix=no
23468       ;;
23469     freebsd-*)
23470       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23471       need_version=yes
23472       ;;
23473   esac
23474   shlibpath_var=LD_LIBRARY_PATH
23475   case $host_os in
23476   freebsd2*)
23477     shlibpath_overrides_runpath=yes
23478     ;;
23479   freebsd3.01* | freebsdelf3.01*)
23480     shlibpath_overrides_runpath=yes
23481     hardcode_into_libs=yes
23482     ;;
23483   *) # from 3.2 on
23484     shlibpath_overrides_runpath=no
23485     hardcode_into_libs=yes
23486     ;;
23487   esac
23488   ;;
23489
23490 gnu*)
23491   version_type=linux
23492   need_lib_prefix=no
23493   need_version=no
23494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23495   soname_spec='${libname}${release}${shared_ext}$major'
23496   shlibpath_var=LD_LIBRARY_PATH
23497   hardcode_into_libs=yes
23498   ;;
23499
23500 hpux9* | hpux10* | hpux11*)
23501   # Give a soname corresponding to the major version so that dld.sl refuses to
23502   # link against other versions.
23503   version_type=sunos
23504   need_lib_prefix=no
23505   need_version=no
23506   case "$host_cpu" in
23507   ia64*)
23508     shrext_cmds='.so'
23509     hardcode_into_libs=yes
23510     dynamic_linker="$host_os dld.so"
23511     shlibpath_var=LD_LIBRARY_PATH
23512     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23513     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23514     soname_spec='${libname}${release}${shared_ext}$major'
23515     if test "X$HPUX_IA64_MODE" = X32; then
23516       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23517     else
23518       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23519     fi
23520     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23521     ;;
23522    hppa*64*)
23523      shrext_cmds='.sl'
23524      hardcode_into_libs=yes
23525      dynamic_linker="$host_os dld.sl"
23526      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23527      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23528      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23529      soname_spec='${libname}${release}${shared_ext}$major'
23530      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23531      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23532      ;;
23533    *)
23534     shrext_cmds='.sl'
23535     dynamic_linker="$host_os dld.sl"
23536     shlibpath_var=SHLIB_PATH
23537     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23538     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23539     soname_spec='${libname}${release}${shared_ext}$major'
23540     ;;
23541   esac
23542   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23543   postinstall_cmds='chmod 555 $lib'
23544   ;;
23545
23546 irix5* | irix6* | nonstopux*)
23547   case $host_os in
23548     nonstopux*) version_type=nonstopux ;;
23549     *)
23550         if test "$lt_cv_prog_gnu_ld" = yes; then
23551                 version_type=linux
23552         else
23553                 version_type=irix
23554         fi ;;
23555   esac
23556   need_lib_prefix=no
23557   need_version=no
23558   soname_spec='${libname}${release}${shared_ext}$major'
23559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23560   case $host_os in
23561   irix5* | nonstopux*)
23562     libsuff= shlibsuff=
23563     ;;
23564   *)
23565     case $LD in # libtool.m4 will add one of these switches to LD
23566     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23567       libsuff= shlibsuff= libmagic=32-bit;;
23568     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23569       libsuff=32 shlibsuff=N32 libmagic=N32;;
23570     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23571       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23572     *) libsuff= shlibsuff= libmagic=never-match;;
23573     esac
23574     ;;
23575   esac
23576   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23577   shlibpath_overrides_runpath=no
23578   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23579   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23580   hardcode_into_libs=yes
23581   ;;
23582
23583 # No shared lib support for Linux oldld, aout, or coff.
23584 linux*oldld* | linux*aout* | linux*coff*)
23585   dynamic_linker=no
23586   ;;
23587
23588 # This must be Linux ELF.
23589 linux*)
23590   version_type=linux
23591   need_lib_prefix=no
23592   need_version=no
23593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23594   soname_spec='${libname}${release}${shared_ext}$major'
23595   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23596   shlibpath_var=LD_LIBRARY_PATH
23597   shlibpath_overrides_runpath=no
23598   # This implies no fast_install, which is unacceptable.
23599   # Some rework will be needed to allow for fast_install
23600   # before this can be enabled.
23601   hardcode_into_libs=yes
23602
23603   # Append ld.so.conf contents to the search path
23604   if test -f /etc/ld.so.conf; then
23605     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
23606     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23607   fi
23608
23609   # We used to test for /lib/ld.so.1 and disable shared libraries on
23610   # powerpc, because MkLinux only supported shared libraries with the
23611   # GNU dynamic linker.  Since this was broken with cross compilers,
23612   # most powerpc-linux boxes support dynamic linking these days and
23613   # people can always --disable-shared, the test was removed, and we
23614   # assume the GNU/Linux dynamic linker is in use.
23615   dynamic_linker='GNU/Linux ld.so'
23616   ;;
23617
23618 knetbsd*-gnu)
23619   version_type=linux
23620   need_lib_prefix=no
23621   need_version=no
23622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23623   soname_spec='${libname}${release}${shared_ext}$major'
23624   shlibpath_var=LD_LIBRARY_PATH
23625   shlibpath_overrides_runpath=no
23626   hardcode_into_libs=yes
23627   dynamic_linker='GNU ld.so'
23628   ;;
23629
23630 netbsd*)
23631   version_type=sunos
23632   need_lib_prefix=no
23633   need_version=no
23634   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23635     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23636     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23637     dynamic_linker='NetBSD (a.out) ld.so'
23638   else
23639     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23640     soname_spec='${libname}${release}${shared_ext}$major'
23641     dynamic_linker='NetBSD ld.elf_so'
23642   fi
23643   shlibpath_var=LD_LIBRARY_PATH
23644   shlibpath_overrides_runpath=yes
23645   hardcode_into_libs=yes
23646   ;;
23647
23648 newsos6)
23649   version_type=linux
23650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23651   shlibpath_var=LD_LIBRARY_PATH
23652   shlibpath_overrides_runpath=yes
23653   ;;
23654
23655 nto-qnx*)
23656   version_type=linux
23657   need_lib_prefix=no
23658   need_version=no
23659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23660   soname_spec='${libname}${release}${shared_ext}$major'
23661   shlibpath_var=LD_LIBRARY_PATH
23662   shlibpath_overrides_runpath=yes
23663   ;;
23664
23665 openbsd*)
23666   version_type=sunos
23667   need_lib_prefix=no
23668   need_version=yes
23669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23670   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23671   shlibpath_var=LD_LIBRARY_PATH
23672   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23673     case $host_os in
23674       openbsd2.[89] | openbsd2.[89].*)
23675         shlibpath_overrides_runpath=no
23676         ;;
23677       *)
23678         shlibpath_overrides_runpath=yes
23679         ;;
23680       esac
23681   else
23682     shlibpath_overrides_runpath=yes
23683   fi
23684   ;;
23685
23686 os2*)
23687   libname_spec='$name'
23688   shrext_cmds=".dll"
23689   need_lib_prefix=no
23690   library_names_spec='$libname${shared_ext} $libname.a'
23691   dynamic_linker='OS/2 ld.exe'
23692   shlibpath_var=LIBPATH
23693   ;;
23694
23695 osf3* | osf4* | osf5*)
23696   version_type=osf
23697   need_lib_prefix=no
23698   need_version=no
23699   soname_spec='${libname}${release}${shared_ext}$major'
23700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23701   shlibpath_var=LD_LIBRARY_PATH
23702   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23703   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23704   ;;
23705
23706 sco3.2v5*)
23707   version_type=osf
23708   soname_spec='${libname}${release}${shared_ext}$major'
23709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23710   shlibpath_var=LD_LIBRARY_PATH
23711   ;;
23712
23713 solaris*)
23714   version_type=linux
23715   need_lib_prefix=no
23716   need_version=no
23717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23718   soname_spec='${libname}${release}${shared_ext}$major'
23719   shlibpath_var=LD_LIBRARY_PATH
23720   shlibpath_overrides_runpath=yes
23721   hardcode_into_libs=yes
23722   # ldd complains unless libraries are executable
23723   postinstall_cmds='chmod +x $lib'
23724   ;;
23725
23726 sunos4*)
23727   version_type=sunos
23728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23729   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23730   shlibpath_var=LD_LIBRARY_PATH
23731   shlibpath_overrides_runpath=yes
23732   if test "$with_gnu_ld" = yes; then
23733     need_lib_prefix=no
23734   fi
23735   need_version=yes
23736   ;;
23737
23738 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23739   version_type=linux
23740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23741   soname_spec='${libname}${release}${shared_ext}$major'
23742   shlibpath_var=LD_LIBRARY_PATH
23743   case $host_vendor in
23744     sni)
23745       shlibpath_overrides_runpath=no
23746       need_lib_prefix=no
23747       export_dynamic_flag_spec='${wl}-Blargedynsym'
23748       runpath_var=LD_RUN_PATH
23749       ;;
23750     siemens)
23751       need_lib_prefix=no
23752       ;;
23753     motorola)
23754       need_lib_prefix=no
23755       need_version=no
23756       shlibpath_overrides_runpath=no
23757       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23758       ;;
23759   esac
23760   ;;
23761
23762 sysv4*MP*)
23763   if test -d /usr/nec ;then
23764     version_type=linux
23765     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23766     soname_spec='$libname${shared_ext}.$major'
23767     shlibpath_var=LD_LIBRARY_PATH
23768   fi
23769   ;;
23770
23771 uts4*)
23772   version_type=linux
23773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23774   soname_spec='${libname}${release}${shared_ext}$major'
23775   shlibpath_var=LD_LIBRARY_PATH
23776   ;;
23777
23778 *)
23779   dynamic_linker=no
23780   ;;
23781 esac
23782 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23783 echo "${ECHO_T}$dynamic_linker" >&6
23784 test "$dynamic_linker" = no && can_build_shared=no
23785
23786 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23787 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23788 hardcode_action_GCJ=
23789 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23790    test -n "$runpath_var GCJ" || \
23791    test "X$hardcode_automatic_GCJ"="Xyes" ; then
23792
23793   # We can hardcode non-existant directories.
23794   if test "$hardcode_direct_GCJ" != no &&
23795      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23796      # have to relink, otherwise we might link with an installed library
23797      # when we should be linking with a yet-to-be-installed one
23798      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23799      test "$hardcode_minus_L_GCJ" != no; then
23800     # Linking always hardcodes the temporary library directory.
23801     hardcode_action_GCJ=relink
23802   else
23803     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23804     hardcode_action_GCJ=immediate
23805   fi
23806 else
23807   # We cannot hardcode anything, or else we can only hardcode existing
23808   # directories.
23809   hardcode_action_GCJ=unsupported
23810 fi
23811 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23812 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23813
23814 if test "$hardcode_action_GCJ" = relink; then
23815   # Fast installation is not supported
23816   enable_fast_install=no
23817 elif test "$shlibpath_overrides_runpath" = yes ||
23818      test "$enable_shared" = no; then
23819   # Fast installation is not necessary
23820   enable_fast_install=needless
23821 fi
23822
23823 striplib=
23824 old_striplib=
23825 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23826 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23827 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23828   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23829   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23830   echo "$as_me:$LINENO: result: yes" >&5
23831 echo "${ECHO_T}yes" >&6
23832 else
23833 # FIXME - insert some real tests, host_os isn't really good enough
23834   case $host_os in
23835    darwin*)
23836        if test -n "$STRIP" ; then
23837          striplib="$STRIP -x"
23838          echo "$as_me:$LINENO: result: yes" >&5
23839 echo "${ECHO_T}yes" >&6
23840        else
23841   echo "$as_me:$LINENO: result: no" >&5
23842 echo "${ECHO_T}no" >&6
23843 fi
23844        ;;
23845    *)
23846   echo "$as_me:$LINENO: result: no" >&5
23847 echo "${ECHO_T}no" >&6
23848     ;;
23849   esac
23850 fi
23851
23852 if test "x$enable_dlopen" != xyes; then
23853   enable_dlopen=unknown
23854   enable_dlopen_self=unknown
23855   enable_dlopen_self_static=unknown
23856 else
23857   lt_cv_dlopen=no
23858   lt_cv_dlopen_libs=
23859
23860   case $host_os in
23861   beos*)
23862     lt_cv_dlopen="load_add_on"
23863     lt_cv_dlopen_libs=
23864     lt_cv_dlopen_self=yes
23865     ;;
23866
23867   mingw* | pw32*)
23868     lt_cv_dlopen="LoadLibrary"
23869     lt_cv_dlopen_libs=
23870    ;;
23871
23872   cygwin*)
23873     lt_cv_dlopen="dlopen"
23874     lt_cv_dlopen_libs=
23875    ;;
23876
23877   darwin*)
23878   # if libdl is installed we need to link against it
23879     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23880 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23881 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23882   echo $ECHO_N "(cached) $ECHO_C" >&6
23883 else
23884   ac_check_lib_save_LIBS=$LIBS
23885 LIBS="-ldl  $LIBS"
23886 cat >conftest.$ac_ext <<_ACEOF
23887 /* confdefs.h.  */
23888 _ACEOF
23889 cat confdefs.h >>conftest.$ac_ext
23890 cat >>conftest.$ac_ext <<_ACEOF
23891 /* end confdefs.h.  */
23892
23893 /* Override any gcc2 internal prototype to avoid an error.  */
23894 #ifdef __cplusplus
23895 extern "C"
23896 #endif
23897 /* We use char because int might match the return type of a gcc2
23898    builtin and then its argument prototype would still apply.  */
23899 char dlopen ();
23900 int
23901 main ()
23902 {
23903 dlopen ();
23904   ;
23905   return 0;
23906 }
23907 _ACEOF
23908 rm -f conftest.$ac_objext conftest$ac_exeext
23909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23910   (eval $ac_link) 2>conftest.er1
23911   ac_status=$?
23912   grep -v '^ *+' conftest.er1 >conftest.err
23913   rm -f conftest.er1
23914   cat conftest.err >&5
23915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916   (exit $ac_status); } &&
23917          { ac_try='test -z "$ac_c_werror_flag"
23918                          || test ! -s conftest.err'
23919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23920   (eval $ac_try) 2>&5
23921   ac_status=$?
23922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923   (exit $ac_status); }; } &&
23924          { ac_try='test -s conftest$ac_exeext'
23925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23926   (eval $ac_try) 2>&5
23927   ac_status=$?
23928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929   (exit $ac_status); }; }; then
23930   ac_cv_lib_dl_dlopen=yes
23931 else
23932   echo "$as_me: failed program was:" >&5
23933 sed 's/^/| /' conftest.$ac_ext >&5
23934
23935 ac_cv_lib_dl_dlopen=no
23936 fi
23937 rm -f conftest.err conftest.$ac_objext \
23938       conftest$ac_exeext conftest.$ac_ext
23939 LIBS=$ac_check_lib_save_LIBS
23940 fi
23941 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23942 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23943 if test $ac_cv_lib_dl_dlopen = yes; then
23944   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23945 else
23946
23947     lt_cv_dlopen="dyld"
23948     lt_cv_dlopen_libs=
23949     lt_cv_dlopen_self=yes
23950
23951 fi
23952
23953    ;;
23954
23955   *)
23956     echo "$as_me:$LINENO: checking for shl_load" >&5
23957 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23958 if test "${ac_cv_func_shl_load+set}" = set; then
23959   echo $ECHO_N "(cached) $ECHO_C" >&6
23960 else
23961   cat >conftest.$ac_ext <<_ACEOF
23962 /* confdefs.h.  */
23963 _ACEOF
23964 cat confdefs.h >>conftest.$ac_ext
23965 cat >>conftest.$ac_ext <<_ACEOF
23966 /* end confdefs.h.  */
23967 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23969 #define shl_load innocuous_shl_load
23970
23971 /* System header to define __stub macros and hopefully few prototypes,
23972     which can conflict with char shl_load (); below.
23973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23974     <limits.h> exists even on freestanding compilers.  */
23975
23976 #ifdef __STDC__
23977 # include <limits.h>
23978 #else
23979 # include <assert.h>
23980 #endif
23981
23982 #undef shl_load
23983
23984 /* Override any gcc2 internal prototype to avoid an error.  */
23985 #ifdef __cplusplus
23986 extern "C"
23987 {
23988 #endif
23989 /* We use char because int might match the return type of a gcc2
23990    builtin and then its argument prototype would still apply.  */
23991 char shl_load ();
23992 /* The GNU C library defines this for functions which it implements
23993     to always fail with ENOSYS.  Some functions are actually named
23994     something starting with __ and the normal name is an alias.  */
23995 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23996 choke me
23997 #else
23998 char (*f) () = shl_load;
23999 #endif
24000 #ifdef __cplusplus
24001 }
24002 #endif
24003
24004 int
24005 main ()
24006 {
24007 return f != shl_load;
24008   ;
24009   return 0;
24010 }
24011 _ACEOF
24012 rm -f conftest.$ac_objext conftest$ac_exeext
24013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24014   (eval $ac_link) 2>conftest.er1
24015   ac_status=$?
24016   grep -v '^ *+' conftest.er1 >conftest.err
24017   rm -f conftest.er1
24018   cat conftest.err >&5
24019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020   (exit $ac_status); } &&
24021          { ac_try='test -z "$ac_c_werror_flag"
24022                          || test ! -s conftest.err'
24023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24024   (eval $ac_try) 2>&5
24025   ac_status=$?
24026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027   (exit $ac_status); }; } &&
24028          { ac_try='test -s conftest$ac_exeext'
24029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24030   (eval $ac_try) 2>&5
24031   ac_status=$?
24032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033   (exit $ac_status); }; }; then
24034   ac_cv_func_shl_load=yes
24035 else
24036   echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24038
24039 ac_cv_func_shl_load=no
24040 fi
24041 rm -f conftest.err conftest.$ac_objext \
24042       conftest$ac_exeext conftest.$ac_ext
24043 fi
24044 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
24045 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
24046 if test $ac_cv_func_shl_load = yes; then
24047   lt_cv_dlopen="shl_load"
24048 else
24049   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
24050 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
24051 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
24052   echo $ECHO_N "(cached) $ECHO_C" >&6
24053 else
24054   ac_check_lib_save_LIBS=$LIBS
24055 LIBS="-ldld  $LIBS"
24056 cat >conftest.$ac_ext <<_ACEOF
24057 /* confdefs.h.  */
24058 _ACEOF
24059 cat confdefs.h >>conftest.$ac_ext
24060 cat >>conftest.$ac_ext <<_ACEOF
24061 /* end confdefs.h.  */
24062
24063 /* Override any gcc2 internal prototype to avoid an error.  */
24064 #ifdef __cplusplus
24065 extern "C"
24066 #endif
24067 /* We use char because int might match the return type of a gcc2
24068    builtin and then its argument prototype would still apply.  */
24069 char shl_load ();
24070 int
24071 main ()
24072 {
24073 shl_load ();
24074   ;
24075   return 0;
24076 }
24077 _ACEOF
24078 rm -f conftest.$ac_objext conftest$ac_exeext
24079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24080   (eval $ac_link) 2>conftest.er1
24081   ac_status=$?
24082   grep -v '^ *+' conftest.er1 >conftest.err
24083   rm -f conftest.er1
24084   cat conftest.err >&5
24085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086   (exit $ac_status); } &&
24087          { ac_try='test -z "$ac_c_werror_flag"
24088                          || test ! -s conftest.err'
24089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090   (eval $ac_try) 2>&5
24091   ac_status=$?
24092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093   (exit $ac_status); }; } &&
24094          { ac_try='test -s conftest$ac_exeext'
24095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24096   (eval $ac_try) 2>&5
24097   ac_status=$?
24098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099   (exit $ac_status); }; }; then
24100   ac_cv_lib_dld_shl_load=yes
24101 else
24102   echo "$as_me: failed program was:" >&5
24103 sed 's/^/| /' conftest.$ac_ext >&5
24104
24105 ac_cv_lib_dld_shl_load=no
24106 fi
24107 rm -f conftest.err conftest.$ac_objext \
24108       conftest$ac_exeext conftest.$ac_ext
24109 LIBS=$ac_check_lib_save_LIBS
24110 fi
24111 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
24112 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
24113 if test $ac_cv_lib_dld_shl_load = yes; then
24114   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
24115 else
24116   echo "$as_me:$LINENO: checking for dlopen" >&5
24117 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
24118 if test "${ac_cv_func_dlopen+set}" = set; then
24119   echo $ECHO_N "(cached) $ECHO_C" >&6
24120 else
24121   cat >conftest.$ac_ext <<_ACEOF
24122 /* confdefs.h.  */
24123 _ACEOF
24124 cat confdefs.h >>conftest.$ac_ext
24125 cat >>conftest.$ac_ext <<_ACEOF
24126 /* end confdefs.h.  */
24127 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
24128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24129 #define dlopen innocuous_dlopen
24130
24131 /* System header to define __stub macros and hopefully few prototypes,
24132     which can conflict with char dlopen (); below.
24133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24134     <limits.h> exists even on freestanding compilers.  */
24135
24136 #ifdef __STDC__
24137 # include <limits.h>
24138 #else
24139 # include <assert.h>
24140 #endif
24141
24142 #undef dlopen
24143
24144 /* Override any gcc2 internal prototype to avoid an error.  */
24145 #ifdef __cplusplus
24146 extern "C"
24147 {
24148 #endif
24149 /* We use char because int might match the return type of a gcc2
24150    builtin and then its argument prototype would still apply.  */
24151 char dlopen ();
24152 /* The GNU C library defines this for functions which it implements
24153     to always fail with ENOSYS.  Some functions are actually named
24154     something starting with __ and the normal name is an alias.  */
24155 #if defined (__stub_dlopen) || defined (__stub___dlopen)
24156 choke me
24157 #else
24158 char (*f) () = dlopen;
24159 #endif
24160 #ifdef __cplusplus
24161 }
24162 #endif
24163
24164 int
24165 main ()
24166 {
24167 return f != dlopen;
24168   ;
24169   return 0;
24170 }
24171 _ACEOF
24172 rm -f conftest.$ac_objext conftest$ac_exeext
24173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24174   (eval $ac_link) 2>conftest.er1
24175   ac_status=$?
24176   grep -v '^ *+' conftest.er1 >conftest.err
24177   rm -f conftest.er1
24178   cat conftest.err >&5
24179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180   (exit $ac_status); } &&
24181          { ac_try='test -z "$ac_c_werror_flag"
24182                          || test ! -s conftest.err'
24183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24184   (eval $ac_try) 2>&5
24185   ac_status=$?
24186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187   (exit $ac_status); }; } &&
24188          { ac_try='test -s conftest$ac_exeext'
24189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24190   (eval $ac_try) 2>&5
24191   ac_status=$?
24192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193   (exit $ac_status); }; }; then
24194   ac_cv_func_dlopen=yes
24195 else
24196   echo "$as_me: failed program was:" >&5
24197 sed 's/^/| /' conftest.$ac_ext >&5
24198
24199 ac_cv_func_dlopen=no
24200 fi
24201 rm -f conftest.err conftest.$ac_objext \
24202       conftest$ac_exeext conftest.$ac_ext
24203 fi
24204 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
24205 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
24206 if test $ac_cv_func_dlopen = yes; then
24207   lt_cv_dlopen="dlopen"
24208 else
24209   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24210 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24211 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24212   echo $ECHO_N "(cached) $ECHO_C" >&6
24213 else
24214   ac_check_lib_save_LIBS=$LIBS
24215 LIBS="-ldl  $LIBS"
24216 cat >conftest.$ac_ext <<_ACEOF
24217 /* confdefs.h.  */
24218 _ACEOF
24219 cat confdefs.h >>conftest.$ac_ext
24220 cat >>conftest.$ac_ext <<_ACEOF
24221 /* end confdefs.h.  */
24222
24223 /* Override any gcc2 internal prototype to avoid an error.  */
24224 #ifdef __cplusplus
24225 extern "C"
24226 #endif
24227 /* We use char because int might match the return type of a gcc2
24228    builtin and then its argument prototype would still apply.  */
24229 char dlopen ();
24230 int
24231 main ()
24232 {
24233 dlopen ();
24234   ;
24235   return 0;
24236 }
24237 _ACEOF
24238 rm -f conftest.$ac_objext conftest$ac_exeext
24239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24240   (eval $ac_link) 2>conftest.er1
24241   ac_status=$?
24242   grep -v '^ *+' conftest.er1 >conftest.err
24243   rm -f conftest.er1
24244   cat conftest.err >&5
24245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246   (exit $ac_status); } &&
24247          { ac_try='test -z "$ac_c_werror_flag"
24248                          || test ! -s conftest.err'
24249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24250   (eval $ac_try) 2>&5
24251   ac_status=$?
24252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253   (exit $ac_status); }; } &&
24254          { ac_try='test -s conftest$ac_exeext'
24255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24256   (eval $ac_try) 2>&5
24257   ac_status=$?
24258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259   (exit $ac_status); }; }; then
24260   ac_cv_lib_dl_dlopen=yes
24261 else
24262   echo "$as_me: failed program was:" >&5
24263 sed 's/^/| /' conftest.$ac_ext >&5
24264
24265 ac_cv_lib_dl_dlopen=no
24266 fi
24267 rm -f conftest.err conftest.$ac_objext \
24268       conftest$ac_exeext conftest.$ac_ext
24269 LIBS=$ac_check_lib_save_LIBS
24270 fi
24271 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24272 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24273 if test $ac_cv_lib_dl_dlopen = yes; then
24274   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24275 else
24276   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
24277 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
24278 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
24279   echo $ECHO_N "(cached) $ECHO_C" >&6
24280 else
24281   ac_check_lib_save_LIBS=$LIBS
24282 LIBS="-lsvld  $LIBS"
24283 cat >conftest.$ac_ext <<_ACEOF
24284 /* confdefs.h.  */
24285 _ACEOF
24286 cat confdefs.h >>conftest.$ac_ext
24287 cat >>conftest.$ac_ext <<_ACEOF
24288 /* end confdefs.h.  */
24289
24290 /* Override any gcc2 internal prototype to avoid an error.  */
24291 #ifdef __cplusplus
24292 extern "C"
24293 #endif
24294 /* We use char because int might match the return type of a gcc2
24295    builtin and then its argument prototype would still apply.  */
24296 char dlopen ();
24297 int
24298 main ()
24299 {
24300 dlopen ();
24301   ;
24302   return 0;
24303 }
24304 _ACEOF
24305 rm -f conftest.$ac_objext conftest$ac_exeext
24306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24307   (eval $ac_link) 2>conftest.er1
24308   ac_status=$?
24309   grep -v '^ *+' conftest.er1 >conftest.err
24310   rm -f conftest.er1
24311   cat conftest.err >&5
24312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313   (exit $ac_status); } &&
24314          { ac_try='test -z "$ac_c_werror_flag"
24315                          || test ! -s conftest.err'
24316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24317   (eval $ac_try) 2>&5
24318   ac_status=$?
24319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320   (exit $ac_status); }; } &&
24321          { ac_try='test -s conftest$ac_exeext'
24322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24323   (eval $ac_try) 2>&5
24324   ac_status=$?
24325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326   (exit $ac_status); }; }; then
24327   ac_cv_lib_svld_dlopen=yes
24328 else
24329   echo "$as_me: failed program was:" >&5
24330 sed 's/^/| /' conftest.$ac_ext >&5
24331
24332 ac_cv_lib_svld_dlopen=no
24333 fi
24334 rm -f conftest.err conftest.$ac_objext \
24335       conftest$ac_exeext conftest.$ac_ext
24336 LIBS=$ac_check_lib_save_LIBS
24337 fi
24338 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
24339 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
24340 if test $ac_cv_lib_svld_dlopen = yes; then
24341   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
24342 else
24343   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
24344 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
24345 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
24346   echo $ECHO_N "(cached) $ECHO_C" >&6
24347 else
24348   ac_check_lib_save_LIBS=$LIBS
24349 LIBS="-ldld  $LIBS"
24350 cat >conftest.$ac_ext <<_ACEOF
24351 /* confdefs.h.  */
24352 _ACEOF
24353 cat confdefs.h >>conftest.$ac_ext
24354 cat >>conftest.$ac_ext <<_ACEOF
24355 /* end confdefs.h.  */
24356
24357 /* Override any gcc2 internal prototype to avoid an error.  */
24358 #ifdef __cplusplus
24359 extern "C"
24360 #endif
24361 /* We use char because int might match the return type of a gcc2
24362    builtin and then its argument prototype would still apply.  */
24363 char dld_link ();
24364 int
24365 main ()
24366 {
24367 dld_link ();
24368   ;
24369   return 0;
24370 }
24371 _ACEOF
24372 rm -f conftest.$ac_objext conftest$ac_exeext
24373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24374   (eval $ac_link) 2>conftest.er1
24375   ac_status=$?
24376   grep -v '^ *+' conftest.er1 >conftest.err
24377   rm -f conftest.er1
24378   cat conftest.err >&5
24379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380   (exit $ac_status); } &&
24381          { ac_try='test -z "$ac_c_werror_flag"
24382                          || test ! -s conftest.err'
24383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384   (eval $ac_try) 2>&5
24385   ac_status=$?
24386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387   (exit $ac_status); }; } &&
24388          { ac_try='test -s conftest$ac_exeext'
24389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390   (eval $ac_try) 2>&5
24391   ac_status=$?
24392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393   (exit $ac_status); }; }; then
24394   ac_cv_lib_dld_dld_link=yes
24395 else
24396   echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.$ac_ext >&5
24398
24399 ac_cv_lib_dld_dld_link=no
24400 fi
24401 rm -f conftest.err conftest.$ac_objext \
24402       conftest$ac_exeext conftest.$ac_ext
24403 LIBS=$ac_check_lib_save_LIBS
24404 fi
24405 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
24406 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
24407 if test $ac_cv_lib_dld_dld_link = yes; then
24408   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
24409 fi
24410
24411
24412 fi
24413
24414
24415 fi
24416
24417
24418 fi
24419
24420
24421 fi
24422
24423
24424 fi
24425
24426     ;;
24427   esac
24428
24429   if test "x$lt_cv_dlopen" != xno; then
24430     enable_dlopen=yes
24431   else
24432     enable_dlopen=no
24433   fi
24434
24435   case $lt_cv_dlopen in
24436   dlopen)
24437     save_CPPFLAGS="$CPPFLAGS"
24438     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
24439
24440     save_LDFLAGS="$LDFLAGS"
24441     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
24442
24443     save_LIBS="$LIBS"
24444     LIBS="$lt_cv_dlopen_libs $LIBS"
24445
24446     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
24447 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
24448 if test "${lt_cv_dlopen_self+set}" = set; then
24449   echo $ECHO_N "(cached) $ECHO_C" >&6
24450 else
24451           if test "$cross_compiling" = yes; then :
24452   lt_cv_dlopen_self=cross
24453 else
24454   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24455   lt_status=$lt_dlunknown
24456   cat > conftest.$ac_ext <<EOF
24457 #line 24457 "configure"
24458 #include "confdefs.h"
24459
24460 #if HAVE_DLFCN_H
24461 #include <dlfcn.h>
24462 #endif
24463
24464 #include <stdio.h>
24465
24466 #ifdef RTLD_GLOBAL
24467 #  define LT_DLGLOBAL           RTLD_GLOBAL
24468 #else
24469 #  ifdef DL_GLOBAL
24470 #    define LT_DLGLOBAL         DL_GLOBAL
24471 #  else
24472 #    define LT_DLGLOBAL         0
24473 #  endif
24474 #endif
24475
24476 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24477    find out it does not work in some platform. */
24478 #ifndef LT_DLLAZY_OR_NOW
24479 #  ifdef RTLD_LAZY
24480 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
24481 #  else
24482 #    ifdef DL_LAZY
24483 #      define LT_DLLAZY_OR_NOW          DL_LAZY
24484 #    else
24485 #      ifdef RTLD_NOW
24486 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
24487 #      else
24488 #        ifdef DL_NOW
24489 #          define LT_DLLAZY_OR_NOW      DL_NOW
24490 #        else
24491 #          define LT_DLLAZY_OR_NOW      0
24492 #        endif
24493 #      endif
24494 #    endif
24495 #  endif
24496 #endif
24497
24498 #ifdef __cplusplus
24499 extern "C" void exit (int);
24500 #endif
24501
24502 void fnord() { int i=42;}
24503 int main ()
24504 {
24505   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24506   int status = $lt_dlunknown;
24507
24508   if (self)
24509     {
24510       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24511       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24512       /* dlclose (self); */
24513     }
24514
24515     exit (status);
24516 }
24517 EOF
24518   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24519   (eval $ac_link) 2>&5
24520   ac_status=$?
24521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24523     (./conftest; exit; ) 2>/dev/null
24524     lt_status=$?
24525     case x$lt_status in
24526       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24527       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24528       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
24529     esac
24530   else :
24531     # compilation failed
24532     lt_cv_dlopen_self=no
24533   fi
24534 fi
24535 rm -fr conftest*
24536
24537
24538 fi
24539 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24540 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
24541
24542     if test "x$lt_cv_dlopen_self" = xyes; then
24543       LDFLAGS="$LDFLAGS $link_static_flag"
24544       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24545 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
24546 if test "${lt_cv_dlopen_self_static+set}" = set; then
24547   echo $ECHO_N "(cached) $ECHO_C" >&6
24548 else
24549           if test "$cross_compiling" = yes; then :
24550   lt_cv_dlopen_self_static=cross
24551 else
24552   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24553   lt_status=$lt_dlunknown
24554   cat > conftest.$ac_ext <<EOF
24555 #line 24555 "configure"
24556 #include "confdefs.h"
24557
24558 #if HAVE_DLFCN_H
24559 #include <dlfcn.h>
24560 #endif
24561
24562 #include <stdio.h>
24563
24564 #ifdef RTLD_GLOBAL
24565 #  define LT_DLGLOBAL           RTLD_GLOBAL
24566 #else
24567 #  ifdef DL_GLOBAL
24568 #    define LT_DLGLOBAL         DL_GLOBAL
24569 #  else
24570 #    define LT_DLGLOBAL         0
24571 #  endif
24572 #endif
24573
24574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24575    find out it does not work in some platform. */
24576 #ifndef LT_DLLAZY_OR_NOW
24577 #  ifdef RTLD_LAZY
24578 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
24579 #  else
24580 #    ifdef DL_LAZY
24581 #      define LT_DLLAZY_OR_NOW          DL_LAZY
24582 #    else
24583 #      ifdef RTLD_NOW
24584 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
24585 #      else
24586 #        ifdef DL_NOW
24587 #          define LT_DLLAZY_OR_NOW      DL_NOW
24588 #        else
24589 #          define LT_DLLAZY_OR_NOW      0
24590 #        endif
24591 #      endif
24592 #    endif
24593 #  endif
24594 #endif
24595
24596 #ifdef __cplusplus
24597 extern "C" void exit (int);
24598 #endif
24599
24600 void fnord() { int i=42;}
24601 int main ()
24602 {
24603   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24604   int status = $lt_dlunknown;
24605
24606   if (self)
24607     {
24608       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24609       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24610       /* dlclose (self); */
24611     }
24612
24613     exit (status);
24614 }
24615 EOF
24616   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24617   (eval $ac_link) 2>&5
24618   ac_status=$?
24619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24621     (./conftest; exit; ) 2>/dev/null
24622     lt_status=$?
24623     case x$lt_status in
24624       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24625       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24626       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24627     esac
24628   else :
24629     # compilation failed
24630     lt_cv_dlopen_self_static=no
24631   fi
24632 fi
24633 rm -fr conftest*
24634
24635
24636 fi
24637 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24638 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24639     fi
24640
24641     CPPFLAGS="$save_CPPFLAGS"
24642     LDFLAGS="$save_LDFLAGS"
24643     LIBS="$save_LIBS"
24644     ;;
24645   esac
24646
24647   case $lt_cv_dlopen_self in
24648   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24649   *) enable_dlopen_self=unknown ;;
24650   esac
24651
24652   case $lt_cv_dlopen_self_static in
24653   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24654   *) enable_dlopen_self_static=unknown ;;
24655   esac
24656 fi
24657
24658
24659 # The else clause should only fire when bootstrapping the
24660 # libtool distribution, otherwise you forgot to ship ltmain.sh
24661 # with your package, and you will get complaints that there are
24662 # no rules to generate ltmain.sh.
24663 if test -f "$ltmain"; then
24664   # See if we are running on zsh, and set the options which allow our commands through
24665   # without removal of \ escapes.
24666   if test -n "${ZSH_VERSION+set}" ; then
24667     setopt NO_GLOB_SUBST
24668   fi
24669   # Now quote all the things that may contain metacharacters while being
24670   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24671   # variables and quote the copies for generation of the libtool script.
24672   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24673     SED SHELL STRIP \
24674     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24675     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24676     deplibs_check_method reload_flag reload_cmds need_locks \
24677     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24678     lt_cv_sys_global_symbol_to_c_name_address \
24679     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24680     old_postinstall_cmds old_postuninstall_cmds \
24681     compiler_GCJ \
24682     CC_GCJ \
24683     LD_GCJ \
24684     lt_prog_compiler_wl_GCJ \
24685     lt_prog_compiler_pic_GCJ \
24686     lt_prog_compiler_static_GCJ \
24687     lt_prog_compiler_no_builtin_flag_GCJ \
24688     export_dynamic_flag_spec_GCJ \
24689     thread_safe_flag_spec_GCJ \
24690     whole_archive_flag_spec_GCJ \
24691     enable_shared_with_static_runtimes_GCJ \
24692     old_archive_cmds_GCJ \
24693     old_archive_from_new_cmds_GCJ \
24694     predep_objects_GCJ \
24695     postdep_objects_GCJ \
24696     predeps_GCJ \
24697     postdeps_GCJ \
24698     compiler_lib_search_path_GCJ \
24699     archive_cmds_GCJ \
24700     archive_expsym_cmds_GCJ \
24701     postinstall_cmds_GCJ \
24702     postuninstall_cmds_GCJ \
24703     old_archive_from_expsyms_cmds_GCJ \
24704     allow_undefined_flag_GCJ \
24705     no_undefined_flag_GCJ \
24706     export_symbols_cmds_GCJ \
24707     hardcode_libdir_flag_spec_GCJ \
24708     hardcode_libdir_flag_spec_ld_GCJ \
24709     hardcode_libdir_separator_GCJ \
24710     hardcode_automatic_GCJ \
24711     module_cmds_GCJ \
24712     module_expsym_cmds_GCJ \
24713     lt_cv_prog_compiler_c_o_GCJ \
24714     exclude_expsyms_GCJ \
24715     include_expsyms_GCJ; do
24716
24717     case $var in
24718     old_archive_cmds_GCJ | \
24719     old_archive_from_new_cmds_GCJ | \
24720     archive_cmds_GCJ | \
24721     archive_expsym_cmds_GCJ | \
24722     module_cmds_GCJ | \
24723     module_expsym_cmds_GCJ | \
24724     old_archive_from_expsyms_cmds_GCJ | \
24725     export_symbols_cmds_GCJ | \
24726     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24727     postinstall_cmds | postuninstall_cmds | \
24728     old_postinstall_cmds | old_postuninstall_cmds | \
24729     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24730       # Double-quote double-evaled strings.
24731       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24732       ;;
24733     *)
24734       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24735       ;;
24736     esac
24737   done
24738
24739   case $lt_echo in
24740   *'\$0 --fallback-echo"')
24741     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24742     ;;
24743   esac
24744
24745 cfgfile="$ofile"
24746
24747   cat <<__EOF__ >> "$cfgfile"
24748 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24749
24750 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24751
24752 # Shell to use when invoking shell scripts.
24753 SHELL=$lt_SHELL
24754
24755 # Whether or not to build shared libraries.
24756 build_libtool_libs=$enable_shared
24757
24758 # Whether or not to build static libraries.
24759 build_old_libs=$enable_static
24760
24761 # Whether or not to add -lc for building shared libraries.
24762 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24763
24764 # Whether or not to disallow shared libs when runtime libs are static
24765 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24766
24767 # Whether or not to optimize for fast installation.
24768 fast_install=$enable_fast_install
24769
24770 # The host system.
24771 host_alias=$host_alias
24772 host=$host
24773
24774 # An echo program that does not interpret backslashes.
24775 echo=$lt_echo
24776
24777 # The archiver.
24778 AR=$lt_AR
24779 AR_FLAGS=$lt_AR_FLAGS
24780
24781 # A C compiler.
24782 LTCC=$lt_LTCC
24783
24784 # A language-specific compiler.
24785 CC=$lt_compiler_GCJ
24786
24787 # Is the compiler the GNU C compiler?
24788 with_gcc=$GCC_GCJ
24789
24790 # An ERE matcher.
24791 EGREP=$lt_EGREP
24792
24793 # The linker used to build libraries.
24794 LD=$lt_LD_GCJ
24795
24796 # Whether we need hard or soft links.
24797 LN_S=$lt_LN_S
24798
24799 # A BSD-compatible nm program.
24800 NM=$lt_NM
24801
24802 # A symbol stripping program
24803 STRIP=$lt_STRIP
24804
24805 # Used to examine libraries when file_magic_cmd begins "file"
24806 MAGIC_CMD=$MAGIC_CMD
24807
24808 # Used on cygwin: DLL creation program.
24809 DLLTOOL="$DLLTOOL"
24810
24811 # Used on cygwin: object dumper.
24812 OBJDUMP="$OBJDUMP"
24813
24814 # Used on cygwin: assembler.
24815 AS="$AS"
24816
24817 # The name of the directory that contains temporary libtool files.
24818 objdir=$objdir
24819
24820 # How to create reloadable object files.
24821 reload_flag=$lt_reload_flag
24822 reload_cmds=$lt_reload_cmds
24823
24824 # How to pass a linker flag through the compiler.
24825 wl=$lt_lt_prog_compiler_wl_GCJ
24826
24827 # Object file suffix (normally "o").
24828 objext="$ac_objext"
24829
24830 # Old archive suffix (normally "a").
24831 libext="$libext"
24832
24833 # Shared library suffix (normally ".so").
24834 shrext_cmds='$shrext_cmds'
24835
24836 # Executable file suffix (normally "").
24837 exeext="$exeext"
24838
24839 # Additional compiler flags for building library objects.
24840 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24841 pic_mode=$pic_mode
24842
24843 # What is the maximum length of a command?
24844 max_cmd_len=$lt_cv_sys_max_cmd_len
24845
24846 # Does compiler simultaneously support -c and -o options?
24847 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24848
24849 # Must we lock files when doing compilation ?
24850 need_locks=$lt_need_locks
24851
24852 # Do we need the lib prefix for modules?
24853 need_lib_prefix=$need_lib_prefix
24854
24855 # Do we need a version for libraries?
24856 need_version=$need_version
24857
24858 # Whether dlopen is supported.
24859 dlopen_support=$enable_dlopen
24860
24861 # Whether dlopen of programs is supported.
24862 dlopen_self=$enable_dlopen_self
24863
24864 # Whether dlopen of statically linked programs is supported.
24865 dlopen_self_static=$enable_dlopen_self_static
24866
24867 # Compiler flag to prevent dynamic linking.
24868 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24869
24870 # Compiler flag to turn off builtin functions.
24871 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24872
24873 # Compiler flag to allow reflexive dlopens.
24874 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24875
24876 # Compiler flag to generate shared objects directly from archives.
24877 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24878
24879 # Compiler flag to generate thread-safe objects.
24880 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24881
24882 # Library versioning type.
24883 version_type=$version_type
24884
24885 # Format of library name prefix.
24886 libname_spec=$lt_libname_spec
24887
24888 # List of archive names.  First name is the real one, the rest are links.
24889 # The last name is the one that the linker finds with -lNAME.
24890 library_names_spec=$lt_library_names_spec
24891
24892 # The coded name of the library, if different from the real name.
24893 soname_spec=$lt_soname_spec
24894
24895 # Commands used to build and install an old-style archive.
24896 RANLIB=$lt_RANLIB
24897 old_archive_cmds=$lt_old_archive_cmds_GCJ
24898 old_postinstall_cmds=$lt_old_postinstall_cmds
24899 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24900
24901 # Create an old-style archive from a shared archive.
24902 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24903
24904 # Create a temporary old-style archive to link instead of a shared archive.
24905 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24906
24907 # Commands used to build and install a shared archive.
24908 archive_cmds=$lt_archive_cmds_GCJ
24909 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24910 postinstall_cmds=$lt_postinstall_cmds
24911 postuninstall_cmds=$lt_postuninstall_cmds
24912
24913 # Commands used to build a loadable module (assumed same as above if empty)
24914 module_cmds=$lt_module_cmds_GCJ
24915 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24916
24917 # Commands to strip libraries.
24918 old_striplib=$lt_old_striplib
24919 striplib=$lt_striplib
24920
24921 # Dependencies to place before the objects being linked to create a
24922 # shared library.
24923 predep_objects=$lt_predep_objects_GCJ
24924
24925 # Dependencies to place after the objects being linked to create a
24926 # shared library.
24927 postdep_objects=$lt_postdep_objects_GCJ
24928
24929 # Dependencies to place before the objects being linked to create a
24930 # shared library.
24931 predeps=$lt_predeps_GCJ
24932
24933 # Dependencies to place after the objects being linked to create a
24934 # shared library.
24935 postdeps=$lt_postdeps_GCJ
24936
24937 # The library search path used internally by the compiler when linking
24938 # a shared library.
24939 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24940
24941 # Method to check whether dependent libraries are shared objects.
24942 deplibs_check_method=$lt_deplibs_check_method
24943
24944 # Command to use when deplibs_check_method == file_magic.
24945 file_magic_cmd=$lt_file_magic_cmd
24946
24947 # Flag that allows shared libraries with undefined symbols to be built.
24948 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24949
24950 # Flag that forces no undefined symbols.
24951 no_undefined_flag=$lt_no_undefined_flag_GCJ
24952
24953 # Commands used to finish a libtool library installation in a directory.
24954 finish_cmds=$lt_finish_cmds
24955
24956 # Same as above, but a single script fragment to be evaled but not shown.
24957 finish_eval=$lt_finish_eval
24958
24959 # Take the output of nm and produce a listing of raw symbols and C names.
24960 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24961
24962 # Transform the output of nm in a proper C declaration
24963 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24964
24965 # Transform the output of nm in a C name address pair
24966 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24967
24968 # This is the shared library runtime path variable.
24969 runpath_var=$runpath_var
24970
24971 # This is the shared library path variable.
24972 shlibpath_var=$shlibpath_var
24973
24974 # Is shlibpath searched before the hard-coded library search path?
24975 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24976
24977 # How to hardcode a shared library path into an executable.
24978 hardcode_action=$hardcode_action_GCJ
24979
24980 # Whether we should hardcode library paths into libraries.
24981 hardcode_into_libs=$hardcode_into_libs
24982
24983 # Flag to hardcode \$libdir into a binary during linking.
24984 # This must work even if \$libdir does not exist.
24985 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24986
24987 # If ld is used when linking, flag to hardcode \$libdir into
24988 # a binary during linking. This must work even if \$libdir does
24989 # not exist.
24990 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24991
24992 # Whether we need a single -rpath flag with a separated argument.
24993 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24994
24995 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24996 # resulting binary.
24997 hardcode_direct=$hardcode_direct_GCJ
24998
24999 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25000 # resulting binary.
25001 hardcode_minus_L=$hardcode_minus_L_GCJ
25002
25003 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25004 # the resulting binary.
25005 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25006
25007 # Set to yes if building a shared library automatically hardcodes DIR into the library
25008 # and all subsequent libraries and executables linked against it.
25009 hardcode_automatic=$hardcode_automatic_GCJ
25010
25011 # Variables whose values should be saved in libtool wrapper scripts and
25012 # restored at relink time.
25013 variables_saved_for_relink="$variables_saved_for_relink"
25014
25015 # Whether libtool must link a program against all its dependency libraries.
25016 link_all_deplibs=$link_all_deplibs_GCJ
25017
25018 # Compile-time system search path for libraries
25019 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25020
25021 # Run-time system search path for libraries
25022 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25023
25024 # Fix the shell variable \$srcfile for the compiler.
25025 fix_srcfile_path="$fix_srcfile_path_GCJ"
25026
25027 # Set to yes if exported symbols are required.
25028 always_export_symbols=$always_export_symbols_GCJ
25029
25030 # The commands to list exported symbols.
25031 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25032
25033 # The commands to extract the exported symbol list from a shared archive.
25034 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25035
25036 # Symbols that should not be listed in the preloaded symbols.
25037 exclude_expsyms=$lt_exclude_expsyms_GCJ
25038
25039 # Symbols that must always be exported.
25040 include_expsyms=$lt_include_expsyms_GCJ
25041
25042 # ### END LIBTOOL TAG CONFIG: $tagname
25043
25044 __EOF__
25045
25046
25047 else
25048   # If there is no Makefile yet, we rely on a make rule to execute
25049   # `config.status --recheck' to rerun these tests and create the
25050   # libtool script then.
25051   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25052   if test -f "$ltmain_in"; then
25053     test -f Makefile && make "$ltmain"
25054   fi
25055 fi
25056
25057
25058 ac_ext=c
25059 ac_cpp='$CPP $CPPFLAGS'
25060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25063
25064 CC="$lt_save_CC"
25065
25066         else
25067           tagname=""
25068         fi
25069         ;;
25070
25071       RC)
25072
25073
25074
25075 # Source file extension for RC test sources.
25076 ac_ext=rc
25077
25078 # Object file extension for compiled RC test sources.
25079 objext=o
25080 objext_RC=$objext
25081
25082 # Code to be used in simple compile tests
25083 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25084
25085 # Code to be used in simple link tests
25086 lt_simple_link_test_code="$lt_simple_compile_test_code"
25087
25088 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25089
25090 # If no C compiler was specified, use CC.
25091 LTCC=${LTCC-"$CC"}
25092
25093 # Allow CC to be a program name with arguments.
25094 compiler=$CC
25095
25096
25097 # Allow CC to be a program name with arguments.
25098 lt_save_CC="$CC"
25099 CC=${RC-"windres"}
25100 compiler=$CC
25101 compiler_RC=$CC
25102 lt_cv_prog_compiler_c_o_RC=yes
25103
25104 # The else clause should only fire when bootstrapping the
25105 # libtool distribution, otherwise you forgot to ship ltmain.sh
25106 # with your package, and you will get complaints that there are
25107 # no rules to generate ltmain.sh.
25108 if test -f "$ltmain"; then
25109   # See if we are running on zsh, and set the options which allow our commands through
25110   # without removal of \ escapes.
25111   if test -n "${ZSH_VERSION+set}" ; then
25112     setopt NO_GLOB_SUBST
25113   fi
25114   # Now quote all the things that may contain metacharacters while being
25115   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25116   # variables and quote the copies for generation of the libtool script.
25117   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25118     SED SHELL STRIP \
25119     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25120     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25121     deplibs_check_method reload_flag reload_cmds need_locks \
25122     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25123     lt_cv_sys_global_symbol_to_c_name_address \
25124     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25125     old_postinstall_cmds old_postuninstall_cmds \
25126     compiler_RC \
25127     CC_RC \
25128     LD_RC \
25129     lt_prog_compiler_wl_RC \
25130     lt_prog_compiler_pic_RC \
25131     lt_prog_compiler_static_RC \
25132     lt_prog_compiler_no_builtin_flag_RC \
25133     export_dynamic_flag_spec_RC \
25134     thread_safe_flag_spec_RC \
25135     whole_archive_flag_spec_RC \
25136     enable_shared_with_static_runtimes_RC \
25137     old_archive_cmds_RC \
25138     old_archive_from_new_cmds_RC \
25139     predep_objects_RC \
25140     postdep_objects_RC \
25141     predeps_RC \
25142     postdeps_RC \
25143     compiler_lib_search_path_RC \
25144     archive_cmds_RC \
25145     archive_expsym_cmds_RC \
25146     postinstall_cmds_RC \
25147     postuninstall_cmds_RC \
25148     old_archive_from_expsyms_cmds_RC \
25149     allow_undefined_flag_RC \
25150     no_undefined_flag_RC \
25151     export_symbols_cmds_RC \
25152     hardcode_libdir_flag_spec_RC \
25153     hardcode_libdir_flag_spec_ld_RC \
25154     hardcode_libdir_separator_RC \
25155     hardcode_automatic_RC \
25156     module_cmds_RC \
25157     module_expsym_cmds_RC \
25158     lt_cv_prog_compiler_c_o_RC \
25159     exclude_expsyms_RC \
25160     include_expsyms_RC; do
25161
25162     case $var in
25163     old_archive_cmds_RC | \
25164     old_archive_from_new_cmds_RC | \
25165     archive_cmds_RC | \
25166     archive_expsym_cmds_RC | \
25167     module_cmds_RC | \
25168     module_expsym_cmds_RC | \
25169     old_archive_from_expsyms_cmds_RC | \
25170     export_symbols_cmds_RC | \
25171     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25172     postinstall_cmds | postuninstall_cmds | \
25173     old_postinstall_cmds | old_postuninstall_cmds | \
25174     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25175       # Double-quote double-evaled strings.
25176       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25177       ;;
25178     *)
25179       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25180       ;;
25181     esac
25182   done
25183
25184   case $lt_echo in
25185   *'\$0 --fallback-echo"')
25186     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25187     ;;
25188   esac
25189
25190 cfgfile="$ofile"
25191
25192   cat <<__EOF__ >> "$cfgfile"
25193 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25194
25195 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25196
25197 # Shell to use when invoking shell scripts.
25198 SHELL=$lt_SHELL
25199
25200 # Whether or not to build shared libraries.
25201 build_libtool_libs=$enable_shared
25202
25203 # Whether or not to build static libraries.
25204 build_old_libs=$enable_static
25205
25206 # Whether or not to add -lc for building shared libraries.
25207 build_libtool_need_lc=$archive_cmds_need_lc_RC
25208
25209 # Whether or not to disallow shared libs when runtime libs are static
25210 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25211
25212 # Whether or not to optimize for fast installation.
25213 fast_install=$enable_fast_install
25214
25215 # The host system.
25216 host_alias=$host_alias
25217 host=$host
25218
25219 # An echo program that does not interpret backslashes.
25220 echo=$lt_echo
25221
25222 # The archiver.
25223 AR=$lt_AR
25224 AR_FLAGS=$lt_AR_FLAGS
25225
25226 # A C compiler.
25227 LTCC=$lt_LTCC
25228
25229 # A language-specific compiler.
25230 CC=$lt_compiler_RC
25231
25232 # Is the compiler the GNU C compiler?
25233 with_gcc=$GCC_RC
25234
25235 # An ERE matcher.
25236 EGREP=$lt_EGREP
25237
25238 # The linker used to build libraries.
25239 LD=$lt_LD_RC
25240
25241 # Whether we need hard or soft links.
25242 LN_S=$lt_LN_S
25243
25244 # A BSD-compatible nm program.
25245 NM=$lt_NM
25246
25247 # A symbol stripping program
25248 STRIP=$lt_STRIP
25249
25250 # Used to examine libraries when file_magic_cmd begins "file"
25251 MAGIC_CMD=$MAGIC_CMD
25252
25253 # Used on cygwin: DLL creation program.
25254 DLLTOOL="$DLLTOOL"
25255
25256 # Used on cygwin: object dumper.
25257 OBJDUMP="$OBJDUMP"
25258
25259 # Used on cygwin: assembler.
25260 AS="$AS"
25261
25262 # The name of the directory that contains temporary libtool files.
25263 objdir=$objdir
25264
25265 # How to create reloadable object files.
25266 reload_flag=$lt_reload_flag
25267 reload_cmds=$lt_reload_cmds
25268
25269 # How to pass a linker flag through the compiler.
25270 wl=$lt_lt_prog_compiler_wl_RC
25271
25272 # Object file suffix (normally "o").
25273 objext="$ac_objext"
25274
25275 # Old archive suffix (normally "a").
25276 libext="$libext"
25277
25278 # Shared library suffix (normally ".so").
25279 shrext_cmds='$shrext_cmds'
25280
25281 # Executable file suffix (normally "").
25282 exeext="$exeext"
25283
25284 # Additional compiler flags for building library objects.
25285 pic_flag=$lt_lt_prog_compiler_pic_RC
25286 pic_mode=$pic_mode
25287
25288 # What is the maximum length of a command?
25289 max_cmd_len=$lt_cv_sys_max_cmd_len
25290
25291 # Does compiler simultaneously support -c and -o options?
25292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25293
25294 # Must we lock files when doing compilation ?
25295 need_locks=$lt_need_locks
25296
25297 # Do we need the lib prefix for modules?
25298 need_lib_prefix=$need_lib_prefix
25299
25300 # Do we need a version for libraries?
25301 need_version=$need_version
25302
25303 # Whether dlopen is supported.
25304 dlopen_support=$enable_dlopen
25305
25306 # Whether dlopen of programs is supported.
25307 dlopen_self=$enable_dlopen_self
25308
25309 # Whether dlopen of statically linked programs is supported.
25310 dlopen_self_static=$enable_dlopen_self_static
25311
25312 # Compiler flag to prevent dynamic linking.
25313 link_static_flag=$lt_lt_prog_compiler_static_RC
25314
25315 # Compiler flag to turn off builtin functions.
25316 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25317
25318 # Compiler flag to allow reflexive dlopens.
25319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25320
25321 # Compiler flag to generate shared objects directly from archives.
25322 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25323
25324 # Compiler flag to generate thread-safe objects.
25325 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25326
25327 # Library versioning type.
25328 version_type=$version_type
25329
25330 # Format of library name prefix.
25331 libname_spec=$lt_libname_spec
25332
25333 # List of archive names.  First name is the real one, the rest are links.
25334 # The last name is the one that the linker finds with -lNAME.
25335 library_names_spec=$lt_library_names_spec
25336
25337 # The coded name of the library, if different from the real name.
25338 soname_spec=$lt_soname_spec
25339
25340 # Commands used to build and install an old-style archive.
25341 RANLIB=$lt_RANLIB
25342 old_archive_cmds=$lt_old_archive_cmds_RC
25343 old_postinstall_cmds=$lt_old_postinstall_cmds
25344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25345
25346 # Create an old-style archive from a shared archive.
25347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25348
25349 # Create a temporary old-style archive to link instead of a shared archive.
25350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25351
25352 # Commands used to build and install a shared archive.
25353 archive_cmds=$lt_archive_cmds_RC
25354 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25355 postinstall_cmds=$lt_postinstall_cmds
25356 postuninstall_cmds=$lt_postuninstall_cmds
25357
25358 # Commands used to build a loadable module (assumed same as above if empty)
25359 module_cmds=$lt_module_cmds_RC
25360 module_expsym_cmds=$lt_module_expsym_cmds_RC
25361
25362 # Commands to strip libraries.
25363 old_striplib=$lt_old_striplib
25364 striplib=$lt_striplib
25365
25366 # Dependencies to place before the objects being linked to create a
25367 # shared library.
25368 predep_objects=$lt_predep_objects_RC
25369
25370 # Dependencies to place after the objects being linked to create a
25371 # shared library.
25372 postdep_objects=$lt_postdep_objects_RC
25373
25374 # Dependencies to place before the objects being linked to create a
25375 # shared library.
25376 predeps=$lt_predeps_RC
25377
25378 # Dependencies to place after the objects being linked to create a
25379 # shared library.
25380 postdeps=$lt_postdeps_RC
25381
25382 # The library search path used internally by the compiler when linking
25383 # a shared library.
25384 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25385
25386 # Method to check whether dependent libraries are shared objects.
25387 deplibs_check_method=$lt_deplibs_check_method
25388
25389 # Command to use when deplibs_check_method == file_magic.
25390 file_magic_cmd=$lt_file_magic_cmd
25391
25392 # Flag that allows shared libraries with undefined symbols to be built.
25393 allow_undefined_flag=$lt_allow_undefined_flag_RC
25394
25395 # Flag that forces no undefined symbols.
25396 no_undefined_flag=$lt_no_undefined_flag_RC
25397
25398 # Commands used to finish a libtool library installation in a directory.
25399 finish_cmds=$lt_finish_cmds
25400
25401 # Same as above, but a single script fragment to be evaled but not shown.
25402 finish_eval=$lt_finish_eval
25403
25404 # Take the output of nm and produce a listing of raw symbols and C names.
25405 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25406
25407 # Transform the output of nm in a proper C declaration
25408 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25409
25410 # Transform the output of nm in a C name address pair
25411 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25412
25413 # This is the shared library runtime path variable.
25414 runpath_var=$runpath_var
25415
25416 # This is the shared library path variable.
25417 shlibpath_var=$shlibpath_var
25418
25419 # Is shlibpath searched before the hard-coded library search path?
25420 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25421
25422 # How to hardcode a shared library path into an executable.
25423 hardcode_action=$hardcode_action_RC
25424
25425 # Whether we should hardcode library paths into libraries.
25426 hardcode_into_libs=$hardcode_into_libs
25427
25428 # Flag to hardcode \$libdir into a binary during linking.
25429 # This must work even if \$libdir does not exist.
25430 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25431
25432 # If ld is used when linking, flag to hardcode \$libdir into
25433 # a binary during linking. This must work even if \$libdir does
25434 # not exist.
25435 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25436
25437 # Whether we need a single -rpath flag with a separated argument.
25438 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25439
25440 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25441 # resulting binary.
25442 hardcode_direct=$hardcode_direct_RC
25443
25444 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25445 # resulting binary.
25446 hardcode_minus_L=$hardcode_minus_L_RC
25447
25448 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25449 # the resulting binary.
25450 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25451
25452 # Set to yes if building a shared library automatically hardcodes DIR into the library
25453 # and all subsequent libraries and executables linked against it.
25454 hardcode_automatic=$hardcode_automatic_RC
25455
25456 # Variables whose values should be saved in libtool wrapper scripts and
25457 # restored at relink time.
25458 variables_saved_for_relink="$variables_saved_for_relink"
25459
25460 # Whether libtool must link a program against all its dependency libraries.
25461 link_all_deplibs=$link_all_deplibs_RC
25462
25463 # Compile-time system search path for libraries
25464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25465
25466 # Run-time system search path for libraries
25467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25468
25469 # Fix the shell variable \$srcfile for the compiler.
25470 fix_srcfile_path="$fix_srcfile_path_RC"
25471
25472 # Set to yes if exported symbols are required.
25473 always_export_symbols=$always_export_symbols_RC
25474
25475 # The commands to list exported symbols.
25476 export_symbols_cmds=$lt_export_symbols_cmds_RC
25477
25478 # The commands to extract the exported symbol list from a shared archive.
25479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25480
25481 # Symbols that should not be listed in the preloaded symbols.
25482 exclude_expsyms=$lt_exclude_expsyms_RC
25483
25484 # Symbols that must always be exported.
25485 include_expsyms=$lt_include_expsyms_RC
25486
25487 # ### END LIBTOOL TAG CONFIG: $tagname
25488
25489 __EOF__
25490
25491
25492 else
25493   # If there is no Makefile yet, we rely on a make rule to execute
25494   # `config.status --recheck' to rerun these tests and create the
25495   # libtool script then.
25496   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25497   if test -f "$ltmain_in"; then
25498     test -f Makefile && make "$ltmain"
25499   fi
25500 fi
25501
25502
25503 ac_ext=c
25504 ac_cpp='$CPP $CPPFLAGS'
25505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25508
25509 CC="$lt_save_CC"
25510
25511         ;;
25512
25513       *)
25514         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25515 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25516    { (exit 1); exit 1; }; }
25517         ;;
25518       esac
25519
25520       # Append the new tag name to the list of available tags.
25521       if test -n "$tagname" ; then
25522       available_tags="$available_tags $tagname"
25523     fi
25524     fi
25525   done
25526   IFS="$lt_save_ifs"
25527
25528   # Now substitute the updated list of available tags.
25529   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25530     mv "${ofile}T" "$ofile"
25531     chmod +x "$ofile"
25532   else
25533     rm -f "${ofile}T"
25534     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25535 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25536    { (exit 1); exit 1; }; }
25537   fi
25538 fi
25539
25540
25541
25542 # This can be used to rebuild libtool when needed
25543 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25544
25545 # Always use our own libtool.
25546 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
25547
25548 # Prevent multiple expansion
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
25560
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571 if test $ac_cv_c_compiler_gnu = yes; then
25572     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25573 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
25574 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25575   echo $ECHO_N "(cached) $ECHO_C" >&6
25576 else
25577     ac_pattern="Autoconf.*'x'"
25578   cat >conftest.$ac_ext <<_ACEOF
25579 /* confdefs.h.  */
25580 _ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h.  */
25584 #include <sgtty.h>
25585 Autoconf TIOCGETP
25586 _ACEOF
25587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25588   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25589   ac_cv_prog_gcc_traditional=yes
25590 else
25591   ac_cv_prog_gcc_traditional=no
25592 fi
25593 rm -f conftest*
25594
25595
25596   if test $ac_cv_prog_gcc_traditional = no; then
25597     cat >conftest.$ac_ext <<_ACEOF
25598 /* confdefs.h.  */
25599 _ACEOF
25600 cat confdefs.h >>conftest.$ac_ext
25601 cat >>conftest.$ac_ext <<_ACEOF
25602 /* end confdefs.h.  */
25603 #include <termio.h>
25604 Autoconf TCGETA
25605 _ACEOF
25606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25607   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25608   ac_cv_prog_gcc_traditional=yes
25609 fi
25610 rm -f conftest*
25611
25612   fi
25613 fi
25614 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25615 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
25616   if test $ac_cv_prog_gcc_traditional = yes; then
25617     CC="$CC -traditional"
25618   fi
25619 fi
25620
25621 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25622 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
25623 if test "${ac_cv_c_const+set}" = set; then
25624   echo $ECHO_N "(cached) $ECHO_C" >&6
25625 else
25626   cat >conftest.$ac_ext <<_ACEOF
25627 /* confdefs.h.  */
25628 _ACEOF
25629 cat confdefs.h >>conftest.$ac_ext
25630 cat >>conftest.$ac_ext <<_ACEOF
25631 /* end confdefs.h.  */
25632
25633 int
25634 main ()
25635 {
25636 /* FIXME: Include the comments suggested by Paul. */
25637 #ifndef __cplusplus
25638   /* Ultrix mips cc rejects this.  */
25639   typedef int charset[2];
25640   const charset x;
25641   /* SunOS 4.1.1 cc rejects this.  */
25642   char const *const *ccp;
25643   char **p;
25644   /* NEC SVR4.0.2 mips cc rejects this.  */
25645   struct point {int x, y;};
25646   static struct point const zero = {0,0};
25647   /* AIX XL C 1.02.0.0 rejects this.
25648      It does not let you subtract one const X* pointer from another in
25649      an arm of an if-expression whose if-part is not a constant
25650      expression */
25651   const char *g = "string";
25652   ccp = &g + (g ? g-g : 0);
25653   /* HPUX 7.0 cc rejects these. */
25654   ++ccp;
25655   p = (char**) ccp;
25656   ccp = (char const *const *) p;
25657   { /* SCO 3.2v4 cc rejects this.  */
25658     char *t;
25659     char const *s = 0 ? (char *) 0 : (char const *) 0;
25660
25661     *t++ = 0;
25662   }
25663   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25664     int x[] = {25, 17};
25665     const int *foo = &x[0];
25666     ++foo;
25667   }
25668   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25669     typedef const int *iptr;
25670     iptr p = 0;
25671     ++p;
25672   }
25673   { /* AIX XL C 1.02.0.0 rejects this saying
25674        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25675     struct s { int j; const int *ap[3]; };
25676     struct s *b; b->j = 5;
25677   }
25678   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25679     const int foo = 10;
25680   }
25681 #endif
25682
25683   ;
25684   return 0;
25685 }
25686 _ACEOF
25687 rm -f conftest.$ac_objext
25688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25689   (eval $ac_compile) 2>conftest.er1
25690   ac_status=$?
25691   grep -v '^ *+' conftest.er1 >conftest.err
25692   rm -f conftest.er1
25693   cat conftest.err >&5
25694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695   (exit $ac_status); } &&
25696          { ac_try='test -z "$ac_c_werror_flag"
25697                          || test ! -s conftest.err'
25698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25699   (eval $ac_try) 2>&5
25700   ac_status=$?
25701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702   (exit $ac_status); }; } &&
25703          { ac_try='test -s conftest.$ac_objext'
25704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25705   (eval $ac_try) 2>&5
25706   ac_status=$?
25707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708   (exit $ac_status); }; }; then
25709   ac_cv_c_const=yes
25710 else
25711   echo "$as_me: failed program was:" >&5
25712 sed 's/^/| /' conftest.$ac_ext >&5
25713
25714 ac_cv_c_const=no
25715 fi
25716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25717 fi
25718 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25719 echo "${ECHO_T}$ac_cv_c_const" >&6
25720 if test $ac_cv_c_const = no; then
25721
25722 cat >>confdefs.h <<\_ACEOF
25723 #define const
25724 _ACEOF
25725
25726 fi
25727
25728
25729         echo "$as_me:$LINENO: checking for working volatile" >&5
25730 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
25731 if test "${amanda_cv_c_volatile+set}" = set; then
25732   echo $ECHO_N "(cached) $ECHO_C" >&6
25733 else
25734
25735                 cat >conftest.$ac_ext <<_ACEOF
25736 /* confdefs.h.  */
25737 _ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h.  */
25741
25742 int
25743 main ()
25744 {
25745
25746                         volatile int aaa = 0;
25747
25748   ;
25749   return 0;
25750 }
25751 _ACEOF
25752 rm -f conftest.$ac_objext
25753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25754   (eval $ac_compile) 2>conftest.er1
25755   ac_status=$?
25756   grep -v '^ *+' conftest.er1 >conftest.err
25757   rm -f conftest.er1
25758   cat conftest.err >&5
25759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760   (exit $ac_status); } &&
25761          { ac_try='test -z "$ac_c_werror_flag"
25762                          || test ! -s conftest.err'
25763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764   (eval $ac_try) 2>&5
25765   ac_status=$?
25766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767   (exit $ac_status); }; } &&
25768          { ac_try='test -s conftest.$ac_objext'
25769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25770   (eval $ac_try) 2>&5
25771   ac_status=$?
25772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773   (exit $ac_status); }; }; then
25774   amanda_cv_c_volatile=yes
25775 else
25776   echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25778
25779 amanda_cv_c_volatile=no
25780
25781 fi
25782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25783
25784
25785 fi
25786 echo "$as_me:$LINENO: result: $amanda_cv_c_volatile" >&5
25787 echo "${ECHO_T}$amanda_cv_c_volatile" >&6
25788         if test $amanda_cv_c_volatile = no; then
25789
25790 cat >>confdefs.h <<\_ACEOF
25791 #define volatile
25792 _ACEOF
25793
25794         fi
25795
25796
25797
25798         echo "$as_me:$LINENO: checking for working unsigned long constants" >&5
25799 echo $ECHO_N "checking for working unsigned long constants... $ECHO_C" >&6
25800 if test "${amanda_cv_c_unsigned_long_constants+set}" = set; then
25801   echo $ECHO_N "(cached) $ECHO_C" >&6
25802 else
25803
25804                 cat >conftest.$ac_ext <<_ACEOF
25805 /* confdefs.h.  */
25806 _ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h.  */
25810
25811
25812 int
25813 main ()
25814 {
25815
25816                         long l = 1ul;
25817
25818   ;
25819   return 0;
25820 }
25821 _ACEOF
25822 rm -f conftest.$ac_objext
25823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25824   (eval $ac_compile) 2>conftest.er1
25825   ac_status=$?
25826   grep -v '^ *+' conftest.er1 >conftest.err
25827   rm -f conftest.er1
25828   cat conftest.err >&5
25829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830   (exit $ac_status); } &&
25831          { ac_try='test -z "$ac_c_werror_flag"
25832                          || test ! -s conftest.err'
25833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834   (eval $ac_try) 2>&5
25835   ac_status=$?
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); }; } &&
25838          { ac_try='test -s conftest.$ac_objext'
25839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840   (eval $ac_try) 2>&5
25841   ac_status=$?
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); }; }; then
25844   amanda_cv_c_unsigned_long_constants=yes
25845 else
25846   echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25848
25849 amanda_cv_c_unsigned_long_constants=no
25850
25851 fi
25852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25853
25854
25855 fi
25856 echo "$as_me:$LINENO: result: $amanda_cv_c_unsigned_long_constants" >&5
25857 echo "${ECHO_T}$amanda_cv_c_unsigned_long_constants" >&6
25858         if test "$amanda_cv_c_unsigned_long_constants" = yes; then
25859
25860 cat >>confdefs.h <<\_ACEOF
25861 #define HAVE_UNSIGNED_LONG_CONSTANTS 1
25862 _ACEOF
25863
25864         fi
25865
25866
25867 echo "$as_me:$LINENO: checking for off_t" >&5
25868 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25869 if test "${ac_cv_type_off_t+set}" = set; then
25870   echo $ECHO_N "(cached) $ECHO_C" >&6
25871 else
25872   cat >conftest.$ac_ext <<_ACEOF
25873 /* confdefs.h.  */
25874 _ACEOF
25875 cat confdefs.h >>conftest.$ac_ext
25876 cat >>conftest.$ac_ext <<_ACEOF
25877 /* end confdefs.h.  */
25878 $ac_includes_default
25879 int
25880 main ()
25881 {
25882 if ((off_t *) 0)
25883   return 0;
25884 if (sizeof (off_t))
25885   return 0;
25886   ;
25887   return 0;
25888 }
25889 _ACEOF
25890 rm -f conftest.$ac_objext
25891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25892   (eval $ac_compile) 2>conftest.er1
25893   ac_status=$?
25894   grep -v '^ *+' conftest.er1 >conftest.err
25895   rm -f conftest.er1
25896   cat conftest.err >&5
25897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898   (exit $ac_status); } &&
25899          { ac_try='test -z "$ac_c_werror_flag"
25900                          || test ! -s conftest.err'
25901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25902   (eval $ac_try) 2>&5
25903   ac_status=$?
25904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905   (exit $ac_status); }; } &&
25906          { ac_try='test -s conftest.$ac_objext'
25907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25908   (eval $ac_try) 2>&5
25909   ac_status=$?
25910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911   (exit $ac_status); }; }; then
25912   ac_cv_type_off_t=yes
25913 else
25914   echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.$ac_ext >&5
25916
25917 ac_cv_type_off_t=no
25918 fi
25919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25920 fi
25921 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25922 echo "${ECHO_T}$ac_cv_type_off_t" >&6
25923 if test $ac_cv_type_off_t = yes; then
25924   :
25925 else
25926
25927 cat >>confdefs.h <<_ACEOF
25928 #define off_t long
25929 _ACEOF
25930
25931 fi
25932
25933 echo "$as_me:$LINENO: checking for pid_t" >&5
25934 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25935 if test "${ac_cv_type_pid_t+set}" = set; then
25936   echo $ECHO_N "(cached) $ECHO_C" >&6
25937 else
25938   cat >conftest.$ac_ext <<_ACEOF
25939 /* confdefs.h.  */
25940 _ACEOF
25941 cat confdefs.h >>conftest.$ac_ext
25942 cat >>conftest.$ac_ext <<_ACEOF
25943 /* end confdefs.h.  */
25944 $ac_includes_default
25945 int
25946 main ()
25947 {
25948 if ((pid_t *) 0)
25949   return 0;
25950 if (sizeof (pid_t))
25951   return 0;
25952   ;
25953   return 0;
25954 }
25955 _ACEOF
25956 rm -f conftest.$ac_objext
25957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25958   (eval $ac_compile) 2>conftest.er1
25959   ac_status=$?
25960   grep -v '^ *+' conftest.er1 >conftest.err
25961   rm -f conftest.er1
25962   cat conftest.err >&5
25963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964   (exit $ac_status); } &&
25965          { ac_try='test -z "$ac_c_werror_flag"
25966                          || test ! -s conftest.err'
25967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968   (eval $ac_try) 2>&5
25969   ac_status=$?
25970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971   (exit $ac_status); }; } &&
25972          { ac_try='test -s conftest.$ac_objext'
25973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25974   (eval $ac_try) 2>&5
25975   ac_status=$?
25976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977   (exit $ac_status); }; }; then
25978   ac_cv_type_pid_t=yes
25979 else
25980   echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25982
25983 ac_cv_type_pid_t=no
25984 fi
25985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25986 fi
25987 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25988 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25989 if test $ac_cv_type_pid_t = yes; then
25990   :
25991 else
25992
25993 cat >>confdefs.h <<_ACEOF
25994 #define pid_t int
25995 _ACEOF
25996
25997 fi
25998
25999 echo "$as_me:$LINENO: checking for size_t" >&5
26000 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26001 if test "${ac_cv_type_size_t+set}" = set; then
26002   echo $ECHO_N "(cached) $ECHO_C" >&6
26003 else
26004   cat >conftest.$ac_ext <<_ACEOF
26005 /* confdefs.h.  */
26006 _ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h.  */
26010 $ac_includes_default
26011 int
26012 main ()
26013 {
26014 if ((size_t *) 0)
26015   return 0;
26016 if (sizeof (size_t))
26017   return 0;
26018   ;
26019   return 0;
26020 }
26021 _ACEOF
26022 rm -f conftest.$ac_objext
26023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26024   (eval $ac_compile) 2>conftest.er1
26025   ac_status=$?
26026   grep -v '^ *+' conftest.er1 >conftest.err
26027   rm -f conftest.er1
26028   cat conftest.err >&5
26029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030   (exit $ac_status); } &&
26031          { ac_try='test -z "$ac_c_werror_flag"
26032                          || test ! -s conftest.err'
26033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034   (eval $ac_try) 2>&5
26035   ac_status=$?
26036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037   (exit $ac_status); }; } &&
26038          { ac_try='test -s conftest.$ac_objext'
26039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26040   (eval $ac_try) 2>&5
26041   ac_status=$?
26042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043   (exit $ac_status); }; }; then
26044   ac_cv_type_size_t=yes
26045 else
26046   echo "$as_me: failed program was:" >&5
26047 sed 's/^/| /' conftest.$ac_ext >&5
26048
26049 ac_cv_type_size_t=no
26050 fi
26051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26052 fi
26053 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26054 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26055 if test $ac_cv_type_size_t = yes; then
26056   :
26057 else
26058
26059 cat >>confdefs.h <<_ACEOF
26060 #define size_t unsigned
26061 _ACEOF
26062
26063 fi
26064
26065
26066
26067
26068
26069
26070 echo "$as_me:$LINENO: checking for ssize_t" >&5
26071 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26072 if test "${ac_cv_type_ssize_t+set}" = set; then
26073   echo $ECHO_N "(cached) $ECHO_C" >&6
26074 else
26075   cat >conftest.$ac_ext <<_ACEOF
26076 /* confdefs.h.  */
26077 _ACEOF
26078 cat confdefs.h >>conftest.$ac_ext
26079 cat >>conftest.$ac_ext <<_ACEOF
26080 /* end confdefs.h.  */
26081 $ac_includes_default
26082 int
26083 main ()
26084 {
26085 if ((ssize_t *) 0)
26086   return 0;
26087 if (sizeof (ssize_t))
26088   return 0;
26089   ;
26090   return 0;
26091 }
26092 _ACEOF
26093 rm -f conftest.$ac_objext
26094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26095   (eval $ac_compile) 2>conftest.er1
26096   ac_status=$?
26097   grep -v '^ *+' conftest.er1 >conftest.err
26098   rm -f conftest.er1
26099   cat conftest.err >&5
26100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101   (exit $ac_status); } &&
26102          { ac_try='test -z "$ac_c_werror_flag"
26103                          || test ! -s conftest.err'
26104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26105   (eval $ac_try) 2>&5
26106   ac_status=$?
26107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108   (exit $ac_status); }; } &&
26109          { ac_try='test -s conftest.$ac_objext'
26110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26111   (eval $ac_try) 2>&5
26112   ac_status=$?
26113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114   (exit $ac_status); }; }; then
26115   ac_cv_type_ssize_t=yes
26116 else
26117   echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26119
26120 ac_cv_type_ssize_t=no
26121 fi
26122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26123 fi
26124 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26125 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26126 if test $ac_cv_type_ssize_t = yes; then
26127   :
26128 else
26129
26130 cat >>confdefs.h <<_ACEOF
26131 #define ssize_t int
26132 _ACEOF
26133
26134 fi
26135
26136
26137 echo "$as_me:$LINENO: checking for unsigned long long" >&5
26138 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
26139 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
26140   echo $ECHO_N "(cached) $ECHO_C" >&6
26141 else
26142   cat >conftest.$ac_ext <<_ACEOF
26143 /* confdefs.h.  */
26144 _ACEOF
26145 cat confdefs.h >>conftest.$ac_ext
26146 cat >>conftest.$ac_ext <<_ACEOF
26147 /* end confdefs.h.  */
26148 $ac_includes_default
26149 int
26150 main ()
26151 {
26152 if ((unsigned long long *) 0)
26153   return 0;
26154 if (sizeof (unsigned long long))
26155   return 0;
26156   ;
26157   return 0;
26158 }
26159 _ACEOF
26160 rm -f conftest.$ac_objext
26161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26162   (eval $ac_compile) 2>conftest.er1
26163   ac_status=$?
26164   grep -v '^ *+' conftest.er1 >conftest.err
26165   rm -f conftest.er1
26166   cat conftest.err >&5
26167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168   (exit $ac_status); } &&
26169          { ac_try='test -z "$ac_c_werror_flag"
26170                          || test ! -s conftest.err'
26171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26172   (eval $ac_try) 2>&5
26173   ac_status=$?
26174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); }; } &&
26176          { ac_try='test -s conftest.$ac_objext'
26177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26178   (eval $ac_try) 2>&5
26179   ac_status=$?
26180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181   (exit $ac_status); }; }; then
26182   ac_cv_type_unsigned_long_long=yes
26183 else
26184   echo "$as_me: failed program was:" >&5
26185 sed 's/^/| /' conftest.$ac_ext >&5
26186
26187 ac_cv_type_unsigned_long_long=no
26188 fi
26189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26190 fi
26191 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
26192 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
26193 if test $ac_cv_type_unsigned_long_long = yes; then
26194
26195 cat >>confdefs.h <<_ACEOF
26196 #define HAVE_UNSIGNED_LONG_LONG 1
26197 _ACEOF
26198
26199
26200 fi
26201
26202
26203
26204
26205
26206
26207 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26208 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
26209 if test "${ac_cv_type_uid_t+set}" = set; then
26210   echo $ECHO_N "(cached) $ECHO_C" >&6
26211 else
26212   cat >conftest.$ac_ext <<_ACEOF
26213 /* confdefs.h.  */
26214 _ACEOF
26215 cat confdefs.h >>conftest.$ac_ext
26216 cat >>conftest.$ac_ext <<_ACEOF
26217 /* end confdefs.h.  */
26218 #include <sys/types.h>
26219
26220 _ACEOF
26221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26222   $EGREP "uid_t" >/dev/null 2>&1; then
26223   ac_cv_type_uid_t=yes
26224 else
26225   ac_cv_type_uid_t=no
26226 fi
26227 rm -f conftest*
26228
26229 fi
26230 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26231 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
26232 if test $ac_cv_type_uid_t = no; then
26233
26234 cat >>confdefs.h <<\_ACEOF
26235 #define uid_t int
26236 _ACEOF
26237
26238
26239 cat >>confdefs.h <<\_ACEOF
26240 #define gid_t int
26241 _ACEOF
26242
26243 fi
26244
26245 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26246 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26247 if test "${ac_cv_type_signal+set}" = set; then
26248   echo $ECHO_N "(cached) $ECHO_C" >&6
26249 else
26250   cat >conftest.$ac_ext <<_ACEOF
26251 /* confdefs.h.  */
26252 _ACEOF
26253 cat confdefs.h >>conftest.$ac_ext
26254 cat >>conftest.$ac_ext <<_ACEOF
26255 /* end confdefs.h.  */
26256 #include <sys/types.h>
26257 #include <signal.h>
26258 #ifdef signal
26259 # undef signal
26260 #endif
26261 #ifdef __cplusplus
26262 extern "C" void (*signal (int, void (*)(int)))(int);
26263 #else
26264 void (*signal ()) ();
26265 #endif
26266
26267 int
26268 main ()
26269 {
26270 int i;
26271   ;
26272   return 0;
26273 }
26274 _ACEOF
26275 rm -f conftest.$ac_objext
26276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26277   (eval $ac_compile) 2>conftest.er1
26278   ac_status=$?
26279   grep -v '^ *+' conftest.er1 >conftest.err
26280   rm -f conftest.er1
26281   cat conftest.err >&5
26282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283   (exit $ac_status); } &&
26284          { ac_try='test -z "$ac_c_werror_flag"
26285                          || test ! -s conftest.err'
26286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26287   (eval $ac_try) 2>&5
26288   ac_status=$?
26289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290   (exit $ac_status); }; } &&
26291          { ac_try='test -s conftest.$ac_objext'
26292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26293   (eval $ac_try) 2>&5
26294   ac_status=$?
26295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296   (exit $ac_status); }; }; then
26297   ac_cv_type_signal=void
26298 else
26299   echo "$as_me: failed program was:" >&5
26300 sed 's/^/| /' conftest.$ac_ext >&5
26301
26302 ac_cv_type_signal=int
26303 fi
26304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26305 fi
26306 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26307 echo "${ECHO_T}$ac_cv_type_signal" >&6
26308
26309 cat >>confdefs.h <<_ACEOF
26310 #define RETSIGTYPE $ac_cv_type_signal
26311 _ACEOF
26312
26313
26314 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26315 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26316 if test "${ac_cv_struct_tm+set}" = set; then
26317   echo $ECHO_N "(cached) $ECHO_C" >&6
26318 else
26319   cat >conftest.$ac_ext <<_ACEOF
26320 /* confdefs.h.  */
26321 _ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h.  */
26325 #include <sys/types.h>
26326 #include <time.h>
26327
26328 int
26329 main ()
26330 {
26331 struct tm *tp; tp->tm_sec;
26332   ;
26333   return 0;
26334 }
26335 _ACEOF
26336 rm -f conftest.$ac_objext
26337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26338   (eval $ac_compile) 2>conftest.er1
26339   ac_status=$?
26340   grep -v '^ *+' conftest.er1 >conftest.err
26341   rm -f conftest.er1
26342   cat conftest.err >&5
26343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344   (exit $ac_status); } &&
26345          { ac_try='test -z "$ac_c_werror_flag"
26346                          || test ! -s conftest.err'
26347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26348   (eval $ac_try) 2>&5
26349   ac_status=$?
26350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351   (exit $ac_status); }; } &&
26352          { ac_try='test -s conftest.$ac_objext'
26353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26354   (eval $ac_try) 2>&5
26355   ac_status=$?
26356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357   (exit $ac_status); }; }; then
26358   ac_cv_struct_tm=time.h
26359 else
26360   echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26362
26363 ac_cv_struct_tm=sys/time.h
26364 fi
26365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26366 fi
26367 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26368 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26369 if test $ac_cv_struct_tm = sys/time.h; then
26370
26371 cat >>confdefs.h <<\_ACEOF
26372 #define TM_IN_SYS_TIME 1
26373 _ACEOF
26374
26375 fi
26376
26377 for ac_prog in flex lex
26378 do
26379   # Extract the first word of "$ac_prog", so it can be a program name with args.
26380 set dummy $ac_prog; ac_word=$2
26381 echo "$as_me:$LINENO: checking for $ac_word" >&5
26382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26383 if test "${ac_cv_prog_LEX+set}" = set; then
26384   echo $ECHO_N "(cached) $ECHO_C" >&6
26385 else
26386   if test -n "$LEX"; then
26387   ac_cv_prog_LEX="$LEX" # Let the user override the test.
26388 else
26389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26390 for as_dir in $PATH
26391 do
26392   IFS=$as_save_IFS
26393   test -z "$as_dir" && as_dir=.
26394   for ac_exec_ext in '' $ac_executable_extensions; do
26395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26396     ac_cv_prog_LEX="$ac_prog"
26397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26398     break 2
26399   fi
26400 done
26401 done
26402
26403 fi
26404 fi
26405 LEX=$ac_cv_prog_LEX
26406 if test -n "$LEX"; then
26407   echo "$as_me:$LINENO: result: $LEX" >&5
26408 echo "${ECHO_T}$LEX" >&6
26409 else
26410   echo "$as_me:$LINENO: result: no" >&5
26411 echo "${ECHO_T}no" >&6
26412 fi
26413
26414   test -n "$LEX" && break
26415 done
26416 test -n "$LEX" || LEX=":"
26417
26418 if test -z "$LEXLIB"
26419 then
26420   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
26421 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
26422 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
26423   echo $ECHO_N "(cached) $ECHO_C" >&6
26424 else
26425   ac_check_lib_save_LIBS=$LIBS
26426 LIBS="-lfl  $LIBS"
26427 cat >conftest.$ac_ext <<_ACEOF
26428 /* confdefs.h.  */
26429 _ACEOF
26430 cat confdefs.h >>conftest.$ac_ext
26431 cat >>conftest.$ac_ext <<_ACEOF
26432 /* end confdefs.h.  */
26433
26434 /* Override any gcc2 internal prototype to avoid an error.  */
26435 #ifdef __cplusplus
26436 extern "C"
26437 #endif
26438 /* We use char because int might match the return type of a gcc2
26439    builtin and then its argument prototype would still apply.  */
26440 char yywrap ();
26441 int
26442 main ()
26443 {
26444 yywrap ();
26445   ;
26446   return 0;
26447 }
26448 _ACEOF
26449 rm -f conftest.$ac_objext conftest$ac_exeext
26450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26451   (eval $ac_link) 2>conftest.er1
26452   ac_status=$?
26453   grep -v '^ *+' conftest.er1 >conftest.err
26454   rm -f conftest.er1
26455   cat conftest.err >&5
26456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457   (exit $ac_status); } &&
26458          { ac_try='test -z "$ac_c_werror_flag"
26459                          || test ! -s conftest.err'
26460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26461   (eval $ac_try) 2>&5
26462   ac_status=$?
26463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464   (exit $ac_status); }; } &&
26465          { ac_try='test -s conftest$ac_exeext'
26466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26467   (eval $ac_try) 2>&5
26468   ac_status=$?
26469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470   (exit $ac_status); }; }; then
26471   ac_cv_lib_fl_yywrap=yes
26472 else
26473   echo "$as_me: failed program was:" >&5
26474 sed 's/^/| /' conftest.$ac_ext >&5
26475
26476 ac_cv_lib_fl_yywrap=no
26477 fi
26478 rm -f conftest.err conftest.$ac_objext \
26479       conftest$ac_exeext conftest.$ac_ext
26480 LIBS=$ac_check_lib_save_LIBS
26481 fi
26482 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
26483 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
26484 if test $ac_cv_lib_fl_yywrap = yes; then
26485   LEXLIB="-lfl"
26486 else
26487   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
26488 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
26489 if test "${ac_cv_lib_l_yywrap+set}" = set; then
26490   echo $ECHO_N "(cached) $ECHO_C" >&6
26491 else
26492   ac_check_lib_save_LIBS=$LIBS
26493 LIBS="-ll  $LIBS"
26494 cat >conftest.$ac_ext <<_ACEOF
26495 /* confdefs.h.  */
26496 _ACEOF
26497 cat confdefs.h >>conftest.$ac_ext
26498 cat >>conftest.$ac_ext <<_ACEOF
26499 /* end confdefs.h.  */
26500
26501 /* Override any gcc2 internal prototype to avoid an error.  */
26502 #ifdef __cplusplus
26503 extern "C"
26504 #endif
26505 /* We use char because int might match the return type of a gcc2
26506    builtin and then its argument prototype would still apply.  */
26507 char yywrap ();
26508 int
26509 main ()
26510 {
26511 yywrap ();
26512   ;
26513   return 0;
26514 }
26515 _ACEOF
26516 rm -f conftest.$ac_objext conftest$ac_exeext
26517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26518   (eval $ac_link) 2>conftest.er1
26519   ac_status=$?
26520   grep -v '^ *+' conftest.er1 >conftest.err
26521   rm -f conftest.er1
26522   cat conftest.err >&5
26523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524   (exit $ac_status); } &&
26525          { ac_try='test -z "$ac_c_werror_flag"
26526                          || test ! -s conftest.err'
26527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26528   (eval $ac_try) 2>&5
26529   ac_status=$?
26530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531   (exit $ac_status); }; } &&
26532          { ac_try='test -s conftest$ac_exeext'
26533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26534   (eval $ac_try) 2>&5
26535   ac_status=$?
26536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537   (exit $ac_status); }; }; then
26538   ac_cv_lib_l_yywrap=yes
26539 else
26540   echo "$as_me: failed program was:" >&5
26541 sed 's/^/| /' conftest.$ac_ext >&5
26542
26543 ac_cv_lib_l_yywrap=no
26544 fi
26545 rm -f conftest.err conftest.$ac_objext \
26546       conftest$ac_exeext conftest.$ac_ext
26547 LIBS=$ac_check_lib_save_LIBS
26548 fi
26549 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
26550 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
26551 if test $ac_cv_lib_l_yywrap = yes; then
26552   LEXLIB="-ll"
26553 fi
26554
26555 fi
26556
26557 fi
26558
26559 if test "x$LEX" != "x:"; then
26560   echo "$as_me:$LINENO: checking lex output file root" >&5
26561 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
26562 if test "${ac_cv_prog_lex_root+set}" = set; then
26563   echo $ECHO_N "(cached) $ECHO_C" >&6
26564 else
26565   # The minimal lex program is just a single line: %%.  But some broken lexes
26566 # (Solaris, I think it was) want two %% lines, so accommodate them.
26567 cat >conftest.l <<_ACEOF
26568 %%
26569 %%
26570 _ACEOF
26571 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
26572   (eval $LEX conftest.l) 2>&5
26573   ac_status=$?
26574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575   (exit $ac_status); }
26576 if test -f lex.yy.c; then
26577   ac_cv_prog_lex_root=lex.yy
26578 elif test -f lexyy.c; then
26579   ac_cv_prog_lex_root=lexyy
26580 else
26581   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
26582 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
26583    { (exit 1); exit 1; }; }
26584 fi
26585 fi
26586 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
26587 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
26588 rm -f conftest.l
26589 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
26590
26591 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26592 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
26593 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26594   echo $ECHO_N "(cached) $ECHO_C" >&6
26595 else
26596   # POSIX says lex can declare yytext either as a pointer or an array; the
26597 # default is implementation-dependent. Figure out which it is, since
26598 # not all implementations provide the %pointer and %array declarations.
26599 ac_cv_prog_lex_yytext_pointer=no
26600 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
26601 ac_save_LIBS=$LIBS
26602 LIBS="$LIBS $LEXLIB"
26603 cat >conftest.$ac_ext <<_ACEOF
26604 `cat $LEX_OUTPUT_ROOT.c`
26605 _ACEOF
26606 rm -f conftest.$ac_objext conftest$ac_exeext
26607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26608   (eval $ac_link) 2>conftest.er1
26609   ac_status=$?
26610   grep -v '^ *+' conftest.er1 >conftest.err
26611   rm -f conftest.er1
26612   cat conftest.err >&5
26613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614   (exit $ac_status); } &&
26615          { ac_try='test -z "$ac_c_werror_flag"
26616                          || test ! -s conftest.err'
26617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26618   (eval $ac_try) 2>&5
26619   ac_status=$?
26620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621   (exit $ac_status); }; } &&
26622          { ac_try='test -s conftest$ac_exeext'
26623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26624   (eval $ac_try) 2>&5
26625   ac_status=$?
26626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627   (exit $ac_status); }; }; then
26628   ac_cv_prog_lex_yytext_pointer=yes
26629 else
26630   echo "$as_me: failed program was:" >&5
26631 sed 's/^/| /' conftest.$ac_ext >&5
26632
26633 fi
26634 rm -f conftest.err conftest.$ac_objext \
26635       conftest$ac_exeext conftest.$ac_ext
26636 LIBS=$ac_save_LIBS
26637 rm -f "${LEX_OUTPUT_ROOT}.c"
26638
26639 fi
26640 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26641 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
26642 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26643
26644 cat >>confdefs.h <<\_ACEOF
26645 #define YYTEXT_POINTER 1
26646 _ACEOF
26647
26648 fi
26649
26650 fi
26651 if test "$LEX" = :; then
26652   LEX=${am_missing_run}flex
26653 fi
26654
26655
26656 echo "$as_me:$LINENO: checking for socklen_t" >&5
26657 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
26658 if test "${ac_cv_type_socklen_t+set}" = set; then
26659   echo $ECHO_N "(cached) $ECHO_C" >&6
26660 else
26661   cat >conftest.$ac_ext <<_ACEOF
26662 /* confdefs.h.  */
26663 _ACEOF
26664 cat confdefs.h >>conftest.$ac_ext
26665 cat >>conftest.$ac_ext <<_ACEOF
26666 /* end confdefs.h.  */
26667 #include <sys/types.h>
26668 #if STDC_HEADERS
26669 #include <stdlib.h>
26670 #include <stddef.h>
26671 #endif
26672 #include <sys/socket.h>
26673 _ACEOF
26674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26675   $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
26676   ac_cv_type_socklen_t=yes
26677 else
26678   ac_cv_type_socklen_t=no
26679 fi
26680 rm -f conftest*
26681
26682 fi
26683 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
26684 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
26685 if test $ac_cv_type_socklen_t = no; then
26686
26687 cat >>confdefs.h <<\_ACEOF
26688 #define socklen_t int
26689 _ACEOF
26690
26691 fi
26692
26693
26694 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26695 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26696 if test "${ac_cv_header_stdc+set}" = set; then
26697   echo $ECHO_N "(cached) $ECHO_C" >&6
26698 else
26699   cat >conftest.$ac_ext <<_ACEOF
26700 /* confdefs.h.  */
26701 _ACEOF
26702 cat confdefs.h >>conftest.$ac_ext
26703 cat >>conftest.$ac_ext <<_ACEOF
26704 /* end confdefs.h.  */
26705 #include <stdlib.h>
26706 #include <stdarg.h>
26707 #include <string.h>
26708 #include <float.h>
26709
26710 int
26711 main ()
26712 {
26713
26714   ;
26715   return 0;
26716 }
26717 _ACEOF
26718 rm -f conftest.$ac_objext
26719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26720   (eval $ac_compile) 2>conftest.er1
26721   ac_status=$?
26722   grep -v '^ *+' conftest.er1 >conftest.err
26723   rm -f conftest.er1
26724   cat conftest.err >&5
26725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726   (exit $ac_status); } &&
26727          { ac_try='test -z "$ac_c_werror_flag"
26728                          || test ! -s conftest.err'
26729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26730   (eval $ac_try) 2>&5
26731   ac_status=$?
26732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733   (exit $ac_status); }; } &&
26734          { ac_try='test -s conftest.$ac_objext'
26735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26736   (eval $ac_try) 2>&5
26737   ac_status=$?
26738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739   (exit $ac_status); }; }; then
26740   ac_cv_header_stdc=yes
26741 else
26742   echo "$as_me: failed program was:" >&5
26743 sed 's/^/| /' conftest.$ac_ext >&5
26744
26745 ac_cv_header_stdc=no
26746 fi
26747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26748
26749 if test $ac_cv_header_stdc = yes; then
26750   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26751   cat >conftest.$ac_ext <<_ACEOF
26752 /* confdefs.h.  */
26753 _ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h.  */
26757 #include <string.h>
26758
26759 _ACEOF
26760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26761   $EGREP "memchr" >/dev/null 2>&1; then
26762   :
26763 else
26764   ac_cv_header_stdc=no
26765 fi
26766 rm -f conftest*
26767
26768 fi
26769
26770 if test $ac_cv_header_stdc = yes; then
26771   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26772   cat >conftest.$ac_ext <<_ACEOF
26773 /* confdefs.h.  */
26774 _ACEOF
26775 cat confdefs.h >>conftest.$ac_ext
26776 cat >>conftest.$ac_ext <<_ACEOF
26777 /* end confdefs.h.  */
26778 #include <stdlib.h>
26779
26780 _ACEOF
26781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26782   $EGREP "free" >/dev/null 2>&1; then
26783   :
26784 else
26785   ac_cv_header_stdc=no
26786 fi
26787 rm -f conftest*
26788
26789 fi
26790
26791 if test $ac_cv_header_stdc = yes; then
26792   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26793   if test "$cross_compiling" = yes; then
26794   :
26795 else
26796   cat >conftest.$ac_ext <<_ACEOF
26797 /* confdefs.h.  */
26798 _ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h.  */
26802 #include <ctype.h>
26803 #if ((' ' & 0x0FF) == 0x020)
26804 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26805 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26806 #else
26807 # define ISLOWER(c) \
26808                    (('a' <= (c) && (c) <= 'i') \
26809                      || ('j' <= (c) && (c) <= 'r') \
26810                      || ('s' <= (c) && (c) <= 'z'))
26811 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26812 #endif
26813
26814 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26815 int
26816 main ()
26817 {
26818   int i;
26819   for (i = 0; i < 256; i++)
26820     if (XOR (islower (i), ISLOWER (i))
26821         || toupper (i) != TOUPPER (i))
26822       exit(2);
26823   exit (0);
26824 }
26825 _ACEOF
26826 rm -f conftest$ac_exeext
26827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26828   (eval $ac_link) 2>&5
26829   ac_status=$?
26830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833   (eval $ac_try) 2>&5
26834   ac_status=$?
26835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836   (exit $ac_status); }; }; then
26837   :
26838 else
26839   echo "$as_me: program exited with status $ac_status" >&5
26840 echo "$as_me: failed program was:" >&5
26841 sed 's/^/| /' conftest.$ac_ext >&5
26842
26843 ( exit $ac_status )
26844 ac_cv_header_stdc=no
26845 fi
26846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26847 fi
26848 fi
26849 fi
26850 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26851 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26852 if test $ac_cv_header_stdc = yes; then
26853
26854 cat >>confdefs.h <<\_ACEOF
26855 #define STDC_HEADERS 1
26856 _ACEOF
26857
26858 fi
26859
26860
26861
26862
26863
26864
26865 ac_header_dirent=no
26866 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26867   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26868 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26869 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26871   echo $ECHO_N "(cached) $ECHO_C" >&6
26872 else
26873   cat >conftest.$ac_ext <<_ACEOF
26874 /* confdefs.h.  */
26875 _ACEOF
26876 cat confdefs.h >>conftest.$ac_ext
26877 cat >>conftest.$ac_ext <<_ACEOF
26878 /* end confdefs.h.  */
26879 #include <sys/types.h>
26880 #include <$ac_hdr>
26881
26882 int
26883 main ()
26884 {
26885 if ((DIR *) 0)
26886 return 0;
26887   ;
26888   return 0;
26889 }
26890 _ACEOF
26891 rm -f conftest.$ac_objext
26892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26893   (eval $ac_compile) 2>conftest.er1
26894   ac_status=$?
26895   grep -v '^ *+' conftest.er1 >conftest.err
26896   rm -f conftest.er1
26897   cat conftest.err >&5
26898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899   (exit $ac_status); } &&
26900          { ac_try='test -z "$ac_c_werror_flag"
26901                          || test ! -s conftest.err'
26902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26903   (eval $ac_try) 2>&5
26904   ac_status=$?
26905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906   (exit $ac_status); }; } &&
26907          { ac_try='test -s conftest.$ac_objext'
26908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26909   (eval $ac_try) 2>&5
26910   ac_status=$?
26911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912   (exit $ac_status); }; }; then
26913   eval "$as_ac_Header=yes"
26914 else
26915   echo "$as_me: failed program was:" >&5
26916 sed 's/^/| /' conftest.$ac_ext >&5
26917
26918 eval "$as_ac_Header=no"
26919 fi
26920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26921 fi
26922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26925   cat >>confdefs.h <<_ACEOF
26926 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26927 _ACEOF
26928
26929 ac_header_dirent=$ac_hdr; break
26930 fi
26931
26932 done
26933 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26934 if test $ac_header_dirent = dirent.h; then
26935   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26936 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26937 if test "${ac_cv_search_opendir+set}" = set; then
26938   echo $ECHO_N "(cached) $ECHO_C" >&6
26939 else
26940   ac_func_search_save_LIBS=$LIBS
26941 ac_cv_search_opendir=no
26942 cat >conftest.$ac_ext <<_ACEOF
26943 /* confdefs.h.  */
26944 _ACEOF
26945 cat confdefs.h >>conftest.$ac_ext
26946 cat >>conftest.$ac_ext <<_ACEOF
26947 /* end confdefs.h.  */
26948
26949 /* Override any gcc2 internal prototype to avoid an error.  */
26950 #ifdef __cplusplus
26951 extern "C"
26952 #endif
26953 /* We use char because int might match the return type of a gcc2
26954    builtin and then its argument prototype would still apply.  */
26955 char opendir ();
26956 int
26957 main ()
26958 {
26959 opendir ();
26960   ;
26961   return 0;
26962 }
26963 _ACEOF
26964 rm -f conftest.$ac_objext conftest$ac_exeext
26965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26966   (eval $ac_link) 2>conftest.er1
26967   ac_status=$?
26968   grep -v '^ *+' conftest.er1 >conftest.err
26969   rm -f conftest.er1
26970   cat conftest.err >&5
26971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972   (exit $ac_status); } &&
26973          { ac_try='test -z "$ac_c_werror_flag"
26974                          || test ! -s conftest.err'
26975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26976   (eval $ac_try) 2>&5
26977   ac_status=$?
26978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979   (exit $ac_status); }; } &&
26980          { ac_try='test -s conftest$ac_exeext'
26981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26982   (eval $ac_try) 2>&5
26983   ac_status=$?
26984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985   (exit $ac_status); }; }; then
26986   ac_cv_search_opendir="none required"
26987 else
26988   echo "$as_me: failed program was:" >&5
26989 sed 's/^/| /' conftest.$ac_ext >&5
26990
26991 fi
26992 rm -f conftest.err conftest.$ac_objext \
26993       conftest$ac_exeext conftest.$ac_ext
26994 if test "$ac_cv_search_opendir" = no; then
26995   for ac_lib in dir; do
26996     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26997     cat >conftest.$ac_ext <<_ACEOF
26998 /* confdefs.h.  */
26999 _ACEOF
27000 cat confdefs.h >>conftest.$ac_ext
27001 cat >>conftest.$ac_ext <<_ACEOF
27002 /* end confdefs.h.  */
27003
27004 /* Override any gcc2 internal prototype to avoid an error.  */
27005 #ifdef __cplusplus
27006 extern "C"
27007 #endif
27008 /* We use char because int might match the return type of a gcc2
27009    builtin and then its argument prototype would still apply.  */
27010 char opendir ();
27011 int
27012 main ()
27013 {
27014 opendir ();
27015   ;
27016   return 0;
27017 }
27018 _ACEOF
27019 rm -f conftest.$ac_objext conftest$ac_exeext
27020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27021   (eval $ac_link) 2>conftest.er1
27022   ac_status=$?
27023   grep -v '^ *+' conftest.er1 >conftest.err
27024   rm -f conftest.er1
27025   cat conftest.err >&5
27026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027   (exit $ac_status); } &&
27028          { ac_try='test -z "$ac_c_werror_flag"
27029                          || test ! -s conftest.err'
27030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27031   (eval $ac_try) 2>&5
27032   ac_status=$?
27033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034   (exit $ac_status); }; } &&
27035          { ac_try='test -s conftest$ac_exeext'
27036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27037   (eval $ac_try) 2>&5
27038   ac_status=$?
27039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040   (exit $ac_status); }; }; then
27041   ac_cv_search_opendir="-l$ac_lib"
27042 break
27043 else
27044   echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27046
27047 fi
27048 rm -f conftest.err conftest.$ac_objext \
27049       conftest$ac_exeext conftest.$ac_ext
27050   done
27051 fi
27052 LIBS=$ac_func_search_save_LIBS
27053 fi
27054 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27055 echo "${ECHO_T}$ac_cv_search_opendir" >&6
27056 if test "$ac_cv_search_opendir" != no; then
27057   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
27058
27059 fi
27060
27061 else
27062   echo "$as_me:$LINENO: checking for library containing opendir" >&5
27063 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
27064 if test "${ac_cv_search_opendir+set}" = set; then
27065   echo $ECHO_N "(cached) $ECHO_C" >&6
27066 else
27067   ac_func_search_save_LIBS=$LIBS
27068 ac_cv_search_opendir=no
27069 cat >conftest.$ac_ext <<_ACEOF
27070 /* confdefs.h.  */
27071 _ACEOF
27072 cat confdefs.h >>conftest.$ac_ext
27073 cat >>conftest.$ac_ext <<_ACEOF
27074 /* end confdefs.h.  */
27075
27076 /* Override any gcc2 internal prototype to avoid an error.  */
27077 #ifdef __cplusplus
27078 extern "C"
27079 #endif
27080 /* We use char because int might match the return type of a gcc2
27081    builtin and then its argument prototype would still apply.  */
27082 char opendir ();
27083 int
27084 main ()
27085 {
27086 opendir ();
27087   ;
27088   return 0;
27089 }
27090 _ACEOF
27091 rm -f conftest.$ac_objext conftest$ac_exeext
27092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27093   (eval $ac_link) 2>conftest.er1
27094   ac_status=$?
27095   grep -v '^ *+' conftest.er1 >conftest.err
27096   rm -f conftest.er1
27097   cat conftest.err >&5
27098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099   (exit $ac_status); } &&
27100          { ac_try='test -z "$ac_c_werror_flag"
27101                          || test ! -s conftest.err'
27102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27103   (eval $ac_try) 2>&5
27104   ac_status=$?
27105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106   (exit $ac_status); }; } &&
27107          { ac_try='test -s conftest$ac_exeext'
27108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27109   (eval $ac_try) 2>&5
27110   ac_status=$?
27111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112   (exit $ac_status); }; }; then
27113   ac_cv_search_opendir="none required"
27114 else
27115   echo "$as_me: failed program was:" >&5
27116 sed 's/^/| /' conftest.$ac_ext >&5
27117
27118 fi
27119 rm -f conftest.err conftest.$ac_objext \
27120       conftest$ac_exeext conftest.$ac_ext
27121 if test "$ac_cv_search_opendir" = no; then
27122   for ac_lib in x; do
27123     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27124     cat >conftest.$ac_ext <<_ACEOF
27125 /* confdefs.h.  */
27126 _ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h.  */
27130
27131 /* Override any gcc2 internal prototype to avoid an error.  */
27132 #ifdef __cplusplus
27133 extern "C"
27134 #endif
27135 /* We use char because int might match the return type of a gcc2
27136    builtin and then its argument prototype would still apply.  */
27137 char opendir ();
27138 int
27139 main ()
27140 {
27141 opendir ();
27142   ;
27143   return 0;
27144 }
27145 _ACEOF
27146 rm -f conftest.$ac_objext conftest$ac_exeext
27147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27148   (eval $ac_link) 2>conftest.er1
27149   ac_status=$?
27150   grep -v '^ *+' conftest.er1 >conftest.err
27151   rm -f conftest.er1
27152   cat conftest.err >&5
27153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154   (exit $ac_status); } &&
27155          { ac_try='test -z "$ac_c_werror_flag"
27156                          || test ! -s conftest.err'
27157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27158   (eval $ac_try) 2>&5
27159   ac_status=$?
27160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27161   (exit $ac_status); }; } &&
27162          { ac_try='test -s conftest$ac_exeext'
27163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27164   (eval $ac_try) 2>&5
27165   ac_status=$?
27166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167   (exit $ac_status); }; }; then
27168   ac_cv_search_opendir="-l$ac_lib"
27169 break
27170 else
27171   echo "$as_me: failed program was:" >&5
27172 sed 's/^/| /' conftest.$ac_ext >&5
27173
27174 fi
27175 rm -f conftest.err conftest.$ac_objext \
27176       conftest$ac_exeext conftest.$ac_ext
27177   done
27178 fi
27179 LIBS=$ac_func_search_save_LIBS
27180 fi
27181 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27182 echo "${ECHO_T}$ac_cv_search_opendir" >&6
27183 if test "$ac_cv_search_opendir" != no; then
27184   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
27185
27186 fi
27187
27188 fi
27189
27190
27191
27192
27193
27194 for ac_header in sys/wait.h wait.h
27195 do
27196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27198   echo "$as_me:$LINENO: checking for $ac_header" >&5
27199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27201   echo $ECHO_N "(cached) $ECHO_C" >&6
27202 fi
27203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27205 else
27206   # Is the header compilable?
27207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27209 cat >conftest.$ac_ext <<_ACEOF
27210 /* confdefs.h.  */
27211 _ACEOF
27212 cat confdefs.h >>conftest.$ac_ext
27213 cat >>conftest.$ac_ext <<_ACEOF
27214 /* end confdefs.h.  */
27215 $ac_includes_default
27216 #include <$ac_header>
27217 _ACEOF
27218 rm -f conftest.$ac_objext
27219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27220   (eval $ac_compile) 2>conftest.er1
27221   ac_status=$?
27222   grep -v '^ *+' conftest.er1 >conftest.err
27223   rm -f conftest.er1
27224   cat conftest.err >&5
27225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226   (exit $ac_status); } &&
27227          { ac_try='test -z "$ac_c_werror_flag"
27228                          || test ! -s conftest.err'
27229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27230   (eval $ac_try) 2>&5
27231   ac_status=$?
27232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233   (exit $ac_status); }; } &&
27234          { ac_try='test -s conftest.$ac_objext'
27235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27236   (eval $ac_try) 2>&5
27237   ac_status=$?
27238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239   (exit $ac_status); }; }; then
27240   ac_header_compiler=yes
27241 else
27242   echo "$as_me: failed program was:" >&5
27243 sed 's/^/| /' conftest.$ac_ext >&5
27244
27245 ac_header_compiler=no
27246 fi
27247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27249 echo "${ECHO_T}$ac_header_compiler" >&6
27250
27251 # Is the header present?
27252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27254 cat >conftest.$ac_ext <<_ACEOF
27255 /* confdefs.h.  */
27256 _ACEOF
27257 cat confdefs.h >>conftest.$ac_ext
27258 cat >>conftest.$ac_ext <<_ACEOF
27259 /* end confdefs.h.  */
27260 #include <$ac_header>
27261 _ACEOF
27262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27263   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27264   ac_status=$?
27265   grep -v '^ *+' conftest.er1 >conftest.err
27266   rm -f conftest.er1
27267   cat conftest.err >&5
27268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269   (exit $ac_status); } >/dev/null; then
27270   if test -s conftest.err; then
27271     ac_cpp_err=$ac_c_preproc_warn_flag
27272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27273   else
27274     ac_cpp_err=
27275   fi
27276 else
27277   ac_cpp_err=yes
27278 fi
27279 if test -z "$ac_cpp_err"; then
27280   ac_header_preproc=yes
27281 else
27282   echo "$as_me: failed program was:" >&5
27283 sed 's/^/| /' conftest.$ac_ext >&5
27284
27285   ac_header_preproc=no
27286 fi
27287 rm -f conftest.err conftest.$ac_ext
27288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27289 echo "${ECHO_T}$ac_header_preproc" >&6
27290
27291 # So?  What about this header?
27292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27293   yes:no: )
27294     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27298     ac_header_preproc=yes
27299     ;;
27300   no:yes:* )
27301     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27303     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27304 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27305     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27307     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27308 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27311     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27313     (
27314       cat <<\_ASBOX
27315 ## ------------------------------------------ ##
27316 ## Report this to the AC_PACKAGE_NAME lists.  ##
27317 ## ------------------------------------------ ##
27318 _ASBOX
27319     ) |
27320       sed "s/^/$as_me: WARNING:     /" >&2
27321     ;;
27322 esac
27323 echo "$as_me:$LINENO: checking for $ac_header" >&5
27324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27326   echo $ECHO_N "(cached) $ECHO_C" >&6
27327 else
27328   eval "$as_ac_Header=\$ac_header_preproc"
27329 fi
27330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27332
27333 fi
27334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27335   cat >>confdefs.h <<_ACEOF
27336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27337 _ACEOF
27338
27339 fi
27340
27341 done
27342
27343 echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
27344 echo $ECHO_N "checking whether wait uses union wait... $ECHO_C" >&6
27345 if test "${cf_cv_arg_union_wait+set}" = set; then
27346   echo $ECHO_N "(cached) $ECHO_C" >&6
27347 else
27348   cat >conftest.$ac_ext <<_ACEOF
27349 /* confdefs.h.  */
27350 _ACEOF
27351 cat confdefs.h >>conftest.$ac_ext
27352 cat >>conftest.$ac_ext <<_ACEOF
27353 /* end confdefs.h.  */
27354
27355 #include <sys/types.h>
27356
27357 #if HAVE_SYS_WAIT_H
27358 # include <sys/wait.h>
27359 #else
27360 # if HAVE_WAIT_H
27361 #  include <wait.h>
27362 # endif
27363 #endif
27364
27365 #ifdef __STDC__
27366 pid_t wait(union wait *);
27367 #endif
27368
27369 int
27370 main ()
27371 {
27372
27373   union wait x; int i;
27374   wait(&x); i = WIFEXITED(x)
27375
27376   ;
27377   return 0;
27378 }
27379 _ACEOF
27380 rm -f conftest.$ac_objext
27381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27382   (eval $ac_compile) 2>conftest.er1
27383   ac_status=$?
27384   grep -v '^ *+' conftest.er1 >conftest.err
27385   rm -f conftest.er1
27386   cat conftest.err >&5
27387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388   (exit $ac_status); } &&
27389          { ac_try='test -z "$ac_c_werror_flag"
27390                          || test ! -s conftest.err'
27391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27392   (eval $ac_try) 2>&5
27393   ac_status=$?
27394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395   (exit $ac_status); }; } &&
27396          { ac_try='test -s conftest.$ac_objext'
27397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27398   (eval $ac_try) 2>&5
27399   ac_status=$?
27400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401   (exit $ac_status); }; }; then
27402   cf_cv_arg_union_wait=yes
27403 else
27404   echo "$as_me: failed program was:" >&5
27405 sed 's/^/| /' conftest.$ac_ext >&5
27406
27407 cf_cv_arg_union_wait=no
27408 fi
27409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27410 fi
27411 echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
27412 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6
27413 if test $cf_cv_arg_union_wait = yes; then
27414
27415 cat >>confdefs.h <<\_ACEOF
27416 #define WAIT_USES_UNION 1
27417 _ACEOF
27418
27419 fi
27420
27421 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27422 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
27423 if test "${ac_cv_header_time+set}" = set; then
27424   echo $ECHO_N "(cached) $ECHO_C" >&6
27425 else
27426   cat >conftest.$ac_ext <<_ACEOF
27427 /* confdefs.h.  */
27428 _ACEOF
27429 cat confdefs.h >>conftest.$ac_ext
27430 cat >>conftest.$ac_ext <<_ACEOF
27431 /* end confdefs.h.  */
27432 #include <sys/types.h>
27433 #include <sys/time.h>
27434 #include <time.h>
27435
27436 int
27437 main ()
27438 {
27439 if ((struct tm *) 0)
27440 return 0;
27441   ;
27442   return 0;
27443 }
27444 _ACEOF
27445 rm -f conftest.$ac_objext
27446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27447   (eval $ac_compile) 2>conftest.er1
27448   ac_status=$?
27449   grep -v '^ *+' conftest.er1 >conftest.err
27450   rm -f conftest.er1
27451   cat conftest.err >&5
27452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453   (exit $ac_status); } &&
27454          { ac_try='test -z "$ac_c_werror_flag"
27455                          || test ! -s conftest.err'
27456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457   (eval $ac_try) 2>&5
27458   ac_status=$?
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); }; } &&
27461          { ac_try='test -s conftest.$ac_objext'
27462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463   (eval $ac_try) 2>&5
27464   ac_status=$?
27465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466   (exit $ac_status); }; }; then
27467   ac_cv_header_time=yes
27468 else
27469   echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27471
27472 ac_cv_header_time=no
27473 fi
27474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27475 fi
27476 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27477 echo "${ECHO_T}$ac_cv_header_time" >&6
27478 if test $ac_cv_header_time = yes; then
27479
27480 cat >>confdefs.h <<\_ACEOF
27481 #define TIME_WITH_SYS_TIME 1
27482 _ACEOF
27483
27484 fi
27485
27486
27487
27488
27489
27490
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500
27501
27502
27503
27504
27505
27506
27507
27508
27509
27510
27511
27512
27513
27514
27515
27516
27517
27518
27519
27520
27521
27522
27523
27524
27525
27526
27527
27528
27529
27530
27531
27532
27533
27534
27535
27536
27537
27538
27539
27540
27541
27542
27543 for ac_header in \
27544         arpa/inet.h \
27545         camlib.h \
27546         cam/cam.h \
27547         cam/scsi/scsi_message.h \
27548         chio.h \
27549         db.h \
27550         dbm.h \
27551         fcntl.h \
27552         fnmatch.h \
27553         fstab.h \
27554         grp.h \
27555         history.h \
27556         libc.h \
27557         limits.h \
27558         linux/zftape.h \
27559         mntent.h \
27560         mnttab.h \
27561         ndbm.h \
27562         netdb.h \
27563         netinet/in_systm.h \
27564         readline.h \
27565         readline/history.h \
27566         readline/readline.h \
27567         scsi/sg.h \
27568         scsi/scsi_ioctl.h \
27569         stdlib.h \
27570         string.h \
27571         strings.h \
27572         sys/chio.h \
27573         sys/dsreq.h \
27574         sys/fcntl.h \
27575         sys/file.h \
27576         sys/ioctl.h \
27577         sys/ipc.h \
27578         sys/mman.h \
27579         sys/mntent.h \
27580         sys/mtio.h \
27581         sys/param.h \
27582         sys/scarray.h \
27583         sys/gscdds.h \
27584         sys/scsiio.h \
27585         sys/scsi.h \
27586         sys/scsi/impl/uscsi.h \
27587         sys/scsi/scsi/ioctl.h \
27588         sys/select.h \
27589         sys/shm.h \
27590         sys/stat.h \
27591         sys/statfs.h \
27592         sys/statvfs.h \
27593         sys/tape.h \
27594         sys/time.h \
27595         sys/types.h \
27596         sys/vfs.h \
27597         sys/vfstab.h \
27598         syslog.h \
27599         unistd.h \
27600         vtblc.h \
27601
27602 do
27603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27605   echo "$as_me:$LINENO: checking for $ac_header" >&5
27606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27608   echo $ECHO_N "(cached) $ECHO_C" >&6
27609 fi
27610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27612 else
27613   # Is the header compilable?
27614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27616 cat >conftest.$ac_ext <<_ACEOF
27617 /* confdefs.h.  */
27618 _ACEOF
27619 cat confdefs.h >>conftest.$ac_ext
27620 cat >>conftest.$ac_ext <<_ACEOF
27621 /* end confdefs.h.  */
27622 $ac_includes_default
27623 #include <$ac_header>
27624 _ACEOF
27625 rm -f conftest.$ac_objext
27626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27627   (eval $ac_compile) 2>conftest.er1
27628   ac_status=$?
27629   grep -v '^ *+' conftest.er1 >conftest.err
27630   rm -f conftest.er1
27631   cat conftest.err >&5
27632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633   (exit $ac_status); } &&
27634          { ac_try='test -z "$ac_c_werror_flag"
27635                          || test ! -s conftest.err'
27636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27637   (eval $ac_try) 2>&5
27638   ac_status=$?
27639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640   (exit $ac_status); }; } &&
27641          { ac_try='test -s conftest.$ac_objext'
27642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27643   (eval $ac_try) 2>&5
27644   ac_status=$?
27645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646   (exit $ac_status); }; }; then
27647   ac_header_compiler=yes
27648 else
27649   echo "$as_me: failed program was:" >&5
27650 sed 's/^/| /' conftest.$ac_ext >&5
27651
27652 ac_header_compiler=no
27653 fi
27654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27656 echo "${ECHO_T}$ac_header_compiler" >&6
27657
27658 # Is the header present?
27659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27661 cat >conftest.$ac_ext <<_ACEOF
27662 /* confdefs.h.  */
27663 _ACEOF
27664 cat confdefs.h >>conftest.$ac_ext
27665 cat >>conftest.$ac_ext <<_ACEOF
27666 /* end confdefs.h.  */
27667 #include <$ac_header>
27668 _ACEOF
27669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27670   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27671   ac_status=$?
27672   grep -v '^ *+' conftest.er1 >conftest.err
27673   rm -f conftest.er1
27674   cat conftest.err >&5
27675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676   (exit $ac_status); } >/dev/null; then
27677   if test -s conftest.err; then
27678     ac_cpp_err=$ac_c_preproc_warn_flag
27679     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27680   else
27681     ac_cpp_err=
27682   fi
27683 else
27684   ac_cpp_err=yes
27685 fi
27686 if test -z "$ac_cpp_err"; then
27687   ac_header_preproc=yes
27688 else
27689   echo "$as_me: failed program was:" >&5
27690 sed 's/^/| /' conftest.$ac_ext >&5
27691
27692   ac_header_preproc=no
27693 fi
27694 rm -f conftest.err conftest.$ac_ext
27695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27696 echo "${ECHO_T}$ac_header_preproc" >&6
27697
27698 # So?  What about this header?
27699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27700   yes:no: )
27701     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27705     ac_header_preproc=yes
27706     ;;
27707   no:yes:* )
27708     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27710     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27711 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27712     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27714     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27715 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27716     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27718     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27720     (
27721       cat <<\_ASBOX
27722 ## ------------------------------------------ ##
27723 ## Report this to the AC_PACKAGE_NAME lists.  ##
27724 ## ------------------------------------------ ##
27725 _ASBOX
27726     ) |
27727       sed "s/^/$as_me: WARNING:     /" >&2
27728     ;;
27729 esac
27730 echo "$as_me:$LINENO: checking for $ac_header" >&5
27731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27733   echo $ECHO_N "(cached) $ECHO_C" >&6
27734 else
27735   eval "$as_ac_Header=\$ac_header_preproc"
27736 fi
27737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27739
27740 fi
27741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27742   cat >>confdefs.h <<_ACEOF
27743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27744 _ACEOF
27745
27746 fi
27747
27748 done
27749
27750
27751
27752 for ac_header in netinet/ip.h
27753 do
27754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27755 echo "$as_me:$LINENO: checking for $ac_header" >&5
27756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27758   echo $ECHO_N "(cached) $ECHO_C" >&6
27759 else
27760   cat >conftest.$ac_ext <<_ACEOF
27761 /* confdefs.h.  */
27762 _ACEOF
27763 cat confdefs.h >>conftest.$ac_ext
27764 cat >>conftest.$ac_ext <<_ACEOF
27765 /* end confdefs.h.  */
27766 #include <sys/socket.h>
27767 #if HAVE_SYS_TYPES_H
27768 #include <sys/types.h>
27769 #endif
27770 #ifdef HAVE_NETINET_IN_SYSTM_H
27771 #include <netinet/in_systm.h>
27772 #endif
27773 #include <netinet/in.h>
27774
27775
27776 #include <$ac_header>
27777 _ACEOF
27778 rm -f conftest.$ac_objext
27779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27780   (eval $ac_compile) 2>conftest.er1
27781   ac_status=$?
27782   grep -v '^ *+' conftest.er1 >conftest.err
27783   rm -f conftest.er1
27784   cat conftest.err >&5
27785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786   (exit $ac_status); } &&
27787          { ac_try='test -z "$ac_c_werror_flag"
27788                          || test ! -s conftest.err'
27789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27790   (eval $ac_try) 2>&5
27791   ac_status=$?
27792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793   (exit $ac_status); }; } &&
27794          { ac_try='test -s conftest.$ac_objext'
27795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27796   (eval $ac_try) 2>&5
27797   ac_status=$?
27798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799   (exit $ac_status); }; }; then
27800   eval "$as_ac_Header=yes"
27801 else
27802   echo "$as_me: failed program was:" >&5
27803 sed 's/^/| /' conftest.$ac_ext >&5
27804
27805 eval "$as_ac_Header=no"
27806 fi
27807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27808 fi
27809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27812   cat >>confdefs.h <<_ACEOF
27813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27814 _ACEOF
27815
27816 fi
27817
27818 done
27819
27820
27821
27822 for ac_header in sys/mount.h
27823 do
27824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27825 echo "$as_me:$LINENO: checking for $ac_header" >&5
27826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27828   echo $ECHO_N "(cached) $ECHO_C" >&6
27829 else
27830   cat >conftest.$ac_ext <<_ACEOF
27831 /* confdefs.h.  */
27832 _ACEOF
27833 cat confdefs.h >>conftest.$ac_ext
27834 cat >>conftest.$ac_ext <<_ACEOF
27835 /* end confdefs.h.  */
27836 #ifdef HAVE_SYS_PARAM_H
27837 #include <sys/param.h>
27838 #endif
27839
27840
27841 #include <$ac_header>
27842 _ACEOF
27843 rm -f conftest.$ac_objext
27844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27845   (eval $ac_compile) 2>conftest.er1
27846   ac_status=$?
27847   grep -v '^ *+' conftest.er1 >conftest.err
27848   rm -f conftest.er1
27849   cat conftest.err >&5
27850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27851   (exit $ac_status); } &&
27852          { ac_try='test -z "$ac_c_werror_flag"
27853                          || test ! -s conftest.err'
27854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27855   (eval $ac_try) 2>&5
27856   ac_status=$?
27857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27858   (exit $ac_status); }; } &&
27859          { ac_try='test -s conftest.$ac_objext'
27860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27861   (eval $ac_try) 2>&5
27862   ac_status=$?
27863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864   (exit $ac_status); }; }; then
27865   eval "$as_ac_Header=yes"
27866 else
27867   echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27869
27870 eval "$as_ac_Header=no"
27871 fi
27872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27873 fi
27874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27877   cat >>confdefs.h <<_ACEOF
27878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27879 _ACEOF
27880
27881 fi
27882
27883 done
27884
27885
27886 NO_SCSI_CHANGER_MODE=true
27887 NO_CHIO_CHANGER_MODE=true
27888
27889 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
27890 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
27891 if test "${ac_cv_c_bigendian+set}" = set; then
27892   echo $ECHO_N "(cached) $ECHO_C" >&6
27893 else
27894   # See if sys/param.h defines the BYTE_ORDER macro.
27895 cat >conftest.$ac_ext <<_ACEOF
27896 /* confdefs.h.  */
27897 _ACEOF
27898 cat confdefs.h >>conftest.$ac_ext
27899 cat >>conftest.$ac_ext <<_ACEOF
27900 /* end confdefs.h.  */
27901 #include <sys/types.h>
27902 #include <sys/param.h>
27903
27904 int
27905 main ()
27906 {
27907 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
27908  bogus endian macros
27909 #endif
27910
27911   ;
27912   return 0;
27913 }
27914 _ACEOF
27915 rm -f conftest.$ac_objext
27916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27917   (eval $ac_compile) 2>conftest.er1
27918   ac_status=$?
27919   grep -v '^ *+' conftest.er1 >conftest.err
27920   rm -f conftest.er1
27921   cat conftest.err >&5
27922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923   (exit $ac_status); } &&
27924          { ac_try='test -z "$ac_c_werror_flag"
27925                          || test ! -s conftest.err'
27926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27927   (eval $ac_try) 2>&5
27928   ac_status=$?
27929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930   (exit $ac_status); }; } &&
27931          { ac_try='test -s conftest.$ac_objext'
27932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27933   (eval $ac_try) 2>&5
27934   ac_status=$?
27935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936   (exit $ac_status); }; }; then
27937   # It does; now see whether it defined to BIG_ENDIAN or not.
27938 cat >conftest.$ac_ext <<_ACEOF
27939 /* confdefs.h.  */
27940 _ACEOF
27941 cat confdefs.h >>conftest.$ac_ext
27942 cat >>conftest.$ac_ext <<_ACEOF
27943 /* end confdefs.h.  */
27944 #include <sys/types.h>
27945 #include <sys/param.h>
27946
27947 int
27948 main ()
27949 {
27950 #if BYTE_ORDER != BIG_ENDIAN
27951  not big endian
27952 #endif
27953
27954   ;
27955   return 0;
27956 }
27957 _ACEOF
27958 rm -f conftest.$ac_objext
27959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27960   (eval $ac_compile) 2>conftest.er1
27961   ac_status=$?
27962   grep -v '^ *+' conftest.er1 >conftest.err
27963   rm -f conftest.er1
27964   cat conftest.err >&5
27965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966   (exit $ac_status); } &&
27967          { ac_try='test -z "$ac_c_werror_flag"
27968                          || test ! -s conftest.err'
27969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27970   (eval $ac_try) 2>&5
27971   ac_status=$?
27972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973   (exit $ac_status); }; } &&
27974          { ac_try='test -s conftest.$ac_objext'
27975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27976   (eval $ac_try) 2>&5
27977   ac_status=$?
27978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979   (exit $ac_status); }; }; then
27980   ac_cv_c_bigendian=yes
27981 else
27982   echo "$as_me: failed program was:" >&5
27983 sed 's/^/| /' conftest.$ac_ext >&5
27984
27985 ac_cv_c_bigendian=no
27986 fi
27987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27988 else
27989   echo "$as_me: failed program was:" >&5
27990 sed 's/^/| /' conftest.$ac_ext >&5
27991
27992 # It does not; compile a test program.
27993 if test "$cross_compiling" = yes; then
27994   # try to guess the endianness by grepping values into an object file
27995   ac_cv_c_bigendian=unknown
27996   cat >conftest.$ac_ext <<_ACEOF
27997 /* confdefs.h.  */
27998 _ACEOF
27999 cat confdefs.h >>conftest.$ac_ext
28000 cat >>conftest.$ac_ext <<_ACEOF
28001 /* end confdefs.h.  */
28002 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28003 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28004 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
28005 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28006 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28007 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
28008 int
28009 main ()
28010 {
28011  _ascii (); _ebcdic ();
28012   ;
28013   return 0;
28014 }
28015 _ACEOF
28016 rm -f conftest.$ac_objext
28017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28018   (eval $ac_compile) 2>conftest.er1
28019   ac_status=$?
28020   grep -v '^ *+' conftest.er1 >conftest.err
28021   rm -f conftest.er1
28022   cat conftest.err >&5
28023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024   (exit $ac_status); } &&
28025          { ac_try='test -z "$ac_c_werror_flag"
28026                          || test ! -s conftest.err'
28027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28028   (eval $ac_try) 2>&5
28029   ac_status=$?
28030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031   (exit $ac_status); }; } &&
28032          { ac_try='test -s conftest.$ac_objext'
28033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28034   (eval $ac_try) 2>&5
28035   ac_status=$?
28036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037   (exit $ac_status); }; }; then
28038   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
28039   ac_cv_c_bigendian=yes
28040 fi
28041 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28042   if test "$ac_cv_c_bigendian" = unknown; then
28043     ac_cv_c_bigendian=no
28044   else
28045     # finding both strings is unlikely to happen, but who knows?
28046     ac_cv_c_bigendian=unknown
28047   fi
28048 fi
28049 else
28050   echo "$as_me: failed program was:" >&5
28051 sed 's/^/| /' conftest.$ac_ext >&5
28052
28053 fi
28054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28055 else
28056   cat >conftest.$ac_ext <<_ACEOF
28057 /* confdefs.h.  */
28058 _ACEOF
28059 cat confdefs.h >>conftest.$ac_ext
28060 cat >>conftest.$ac_ext <<_ACEOF
28061 /* end confdefs.h.  */
28062 int
28063 main ()
28064 {
28065   /* Are we little or big endian?  From Harbison&Steele.  */
28066   union
28067   {
28068     long l;
28069     char c[sizeof (long)];
28070   } u;
28071   u.l = 1;
28072   exit (u.c[sizeof (long) - 1] == 1);
28073 }
28074 _ACEOF
28075 rm -f conftest$ac_exeext
28076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28077   (eval $ac_link) 2>&5
28078   ac_status=$?
28079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28082   (eval $ac_try) 2>&5
28083   ac_status=$?
28084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085   (exit $ac_status); }; }; then
28086   ac_cv_c_bigendian=no
28087 else
28088   echo "$as_me: program exited with status $ac_status" >&5
28089 echo "$as_me: failed program was:" >&5
28090 sed 's/^/| /' conftest.$ac_ext >&5
28091
28092 ( exit $ac_status )
28093 ac_cv_c_bigendian=yes
28094 fi
28095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28096 fi
28097 fi
28098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28099 fi
28100 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28101 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
28102 case $ac_cv_c_bigendian in
28103   yes)
28104
28105 cat >>confdefs.h <<\_ACEOF
28106 #define WORDS_BIGENDIAN 1
28107 _ACEOF
28108  ;;
28109   no)
28110      ;;
28111   *)
28112     { { echo "$as_me:$LINENO: error: unknown endianness
28113 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
28114 echo "$as_me: error: unknown endianness
28115 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
28116    { (exit 1); exit 1; }; } ;;
28117 esac
28118
28119
28120 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
28121     echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
28122 echo $ECHO_N "checking for HP/UX-like scsi changer support... $ECHO_C" >&6
28123 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
28124   echo $ECHO_N "(cached) $ECHO_C" >&6
28125 else
28126   cat >conftest.$ac_ext <<_ACEOF
28127 /* confdefs.h.  */
28128 _ACEOF
28129 cat confdefs.h >>conftest.$ac_ext
28130 cat >>conftest.$ac_ext <<_ACEOF
28131 /* end confdefs.h.  */
28132
28133 #include <sys/scsi.h>
28134
28135 int
28136 main ()
28137 {
28138
28139         static struct element_addresses changer_info;
28140         int i = SIOC_ELEMENT_ADDRESSES;
28141         int j = SIOC_ELEMENT_STATUS;
28142         int k = SIOC_MOVE_MEDIUM;
28143
28144   ;
28145   return 0;
28146 }
28147 _ACEOF
28148 rm -f conftest.$ac_objext
28149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28150   (eval $ac_compile) 2>conftest.er1
28151   ac_status=$?
28152   grep -v '^ *+' conftest.er1 >conftest.err
28153   rm -f conftest.er1
28154   cat conftest.err >&5
28155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156   (exit $ac_status); } &&
28157          { ac_try='test -z "$ac_c_werror_flag"
28158                          || test ! -s conftest.err'
28159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28160   (eval $ac_try) 2>&5
28161   ac_status=$?
28162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163   (exit $ac_status); }; } &&
28164          { ac_try='test -s conftest.$ac_objext'
28165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28166   (eval $ac_try) 2>&5
28167   ac_status=$?
28168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169   (exit $ac_status); }; }; then
28170   amanda_cv_hpux_scsi_chio=yes
28171 else
28172   echo "$as_me: failed program was:" >&5
28173 sed 's/^/| /' conftest.$ac_ext >&5
28174
28175 amanda_cv_hpux_scsi_chio=no
28176 fi
28177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28178 fi
28179 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
28180 echo "${ECHO_T}$amanda_cv_hpux_scsi_chio" >&6
28181     if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
28182
28183 cat >>confdefs.h <<\_ACEOF
28184 #define HAVE_HPUX_SCSI_CHIO 1
28185 _ACEOF
28186
28187         NO_SCSI_CHANGER_MODE=false
28188     fi
28189 fi
28190
28191 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28192    test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
28193         echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
28194 echo $ECHO_N "checking for Linux like scsi support (ioctl)... $ECHO_C" >&6
28195 if test "${amanda_cv_linux_scsi+set}" = set; then
28196   echo $ECHO_N "(cached) $ECHO_C" >&6
28197 else
28198   cat >conftest.$ac_ext <<_ACEOF
28199 /* confdefs.h.  */
28200 _ACEOF
28201 cat confdefs.h >>conftest.$ac_ext
28202 cat >>conftest.$ac_ext <<_ACEOF
28203 /* end confdefs.h.  */
28204
28205 #include <scsi/scsi_ioctl.h>
28206 #include <sys/mtio.h>
28207
28208 int
28209 main ()
28210 {
28211
28212         int device;
28213         char *Command;
28214         ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
28215
28216   ;
28217   return 0;
28218 }
28219 _ACEOF
28220 rm -f conftest.$ac_objext
28221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28222   (eval $ac_compile) 2>conftest.er1
28223   ac_status=$?
28224   grep -v '^ *+' conftest.er1 >conftest.err
28225   rm -f conftest.er1
28226   cat conftest.err >&5
28227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228   (exit $ac_status); } &&
28229          { ac_try='test -z "$ac_c_werror_flag"
28230                          || test ! -s conftest.err'
28231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28232   (eval $ac_try) 2>&5
28233   ac_status=$?
28234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235   (exit $ac_status); }; } &&
28236          { ac_try='test -s conftest.$ac_objext'
28237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28238   (eval $ac_try) 2>&5
28239   ac_status=$?
28240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241   (exit $ac_status); }; }; then
28242   amanda_cv_linux_scsi=yes
28243 else
28244   echo "$as_me: failed program was:" >&5
28245 sed 's/^/| /' conftest.$ac_ext >&5
28246
28247 amanda_cv_linux_scsi=no
28248 fi
28249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28250 fi
28251 echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
28252 echo "${ECHO_T}$amanda_cv_linux_scsi" >&6
28253 fi
28254
28255 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28256    test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
28257         echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
28258 echo $ECHO_N "checking for Linux like scsi support (sg)... $ECHO_C" >&6
28259 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
28260   echo $ECHO_N "(cached) $ECHO_C" >&6
28261 else
28262   cat >conftest.$ac_ext <<_ACEOF
28263 /* confdefs.h.  */
28264 _ACEOF
28265 cat confdefs.h >>conftest.$ac_ext
28266 cat >>conftest.$ac_ext <<_ACEOF
28267 /* end confdefs.h.  */
28268
28269 #include <scsi/sg.h>
28270 #include <sys/mtio.h>
28271
28272 int
28273 main ()
28274 {
28275
28276         int device;
28277         struct sg_header *psg_header;
28278         char *buffer;
28279         write(device, buffer, 1);
28280
28281   ;
28282   return 0;
28283 }
28284 _ACEOF
28285 rm -f conftest.$ac_objext
28286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28287   (eval $ac_compile) 2>conftest.er1
28288   ac_status=$?
28289   grep -v '^ *+' conftest.er1 >conftest.err
28290   rm -f conftest.er1
28291   cat conftest.err >&5
28292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293   (exit $ac_status); } &&
28294          { ac_try='test -z "$ac_c_werror_flag"
28295                          || test ! -s conftest.err'
28296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28297   (eval $ac_try) 2>&5
28298   ac_status=$?
28299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300   (exit $ac_status); }; } &&
28301          { ac_try='test -s conftest.$ac_objext'
28302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28303   (eval $ac_try) 2>&5
28304   ac_status=$?
28305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306   (exit $ac_status); }; }; then
28307   amanda_cv_linux_sg_scsi=yes
28308 else
28309   echo "$as_me: failed program was:" >&5
28310 sed 's/^/| /' conftest.$ac_ext >&5
28311
28312 amanda_cv_linux_sg_scsi=no
28313 fi
28314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28315 fi
28316 echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
28317 echo "${ECHO_T}$amanda_cv_linux_sg_scsi" >&6
28318 fi
28319
28320 if test x"$amanda_cv_linux_scsi" = x"yes" ||
28321  test x"$amanda_cv_linux_sg_scsi" = x"yes";then
28322
28323 cat >>confdefs.h <<\_ACEOF
28324 #define HAVE_LINUX_LIKE_SCSI 1
28325 _ACEOF
28326
28327         NO_SCSI_CHANGER_MODE=false
28328 fi
28329
28330 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28331    test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
28332         echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
28333 echo $ECHO_N "checking for HP-UX like scsi support... $ECHO_C" >&6
28334 if test "${amanda_cv_hpux_scsi+set}" = set; then
28335   echo $ECHO_N "(cached) $ECHO_C" >&6
28336 else
28337   cat >conftest.$ac_ext <<_ACEOF
28338 /* confdefs.h.  */
28339 _ACEOF
28340 cat confdefs.h >>conftest.$ac_ext
28341 cat >>conftest.$ac_ext <<_ACEOF
28342 /* end confdefs.h.  */
28343
28344 #include <stdio.h>
28345 #include <sys/ioctl.h>
28346 #include <sys/scsi.h>
28347 #include <sys/mtio.h>
28348
28349 int
28350 main ()
28351 {
28352
28353         int device;
28354         char *Command;
28355         ioctl(device, SIOC_IO, Command);
28356
28357   ;
28358   return 0;
28359 }
28360 _ACEOF
28361 rm -f conftest.$ac_objext
28362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28363   (eval $ac_compile) 2>conftest.er1
28364   ac_status=$?
28365   grep -v '^ *+' conftest.er1 >conftest.err
28366   rm -f conftest.er1
28367   cat conftest.err >&5
28368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369   (exit $ac_status); } &&
28370          { ac_try='test -z "$ac_c_werror_flag"
28371                          || test ! -s conftest.err'
28372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28373   (eval $ac_try) 2>&5
28374   ac_status=$?
28375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376   (exit $ac_status); }; } &&
28377          { ac_try='test -s conftest.$ac_objext'
28378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28379   (eval $ac_try) 2>&5
28380   ac_status=$?
28381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382   (exit $ac_status); }; }; then
28383   amanda_cv_hpux_scsi=yes
28384 else
28385   echo "$as_me: failed program was:" >&5
28386 sed 's/^/| /' conftest.$ac_ext >&5
28387
28388 amanda_cv_hpux_scsi=no
28389 fi
28390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28391 fi
28392 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
28393 echo "${ECHO_T}$amanda_cv_hpux_scsi" >&6
28394         if test x"$amanda_cv_hpux_scsi" = x"yes";then
28395
28396 cat >>confdefs.h <<\_ACEOF
28397 #define HAVE_HPUX_LIKE_SCSI 1
28398 _ACEOF
28399
28400                 NO_SCSI_CHANGER_MODE=false
28401                 NO_CHIO_CHANGER_MODE=false
28402         fi
28403 fi
28404
28405 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28406    test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
28407         echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
28408 echo $ECHO_N "checking for Irix like scsi support... $ECHO_C" >&6
28409 if test "${amanda_cv_irix_scsi+set}" = set; then
28410   echo $ECHO_N "(cached) $ECHO_C" >&6
28411 else
28412   cat >conftest.$ac_ext <<_ACEOF
28413 /* confdefs.h.  */
28414 _ACEOF
28415 cat confdefs.h >>conftest.$ac_ext
28416 cat >>conftest.$ac_ext <<_ACEOF
28417 /* end confdefs.h.  */
28418
28419 #include <sys/types.h>
28420 #include <sys/dsreq.h>
28421 #include <sys/mtio.h>
28422
28423 int
28424 main ()
28425 {
28426
28427         int device=1;
28428         char Command;
28429         ioctl(device, DS_ENTER, &Command);
28430
28431   ;
28432   return 0;
28433 }
28434 _ACEOF
28435 rm -f conftest.$ac_objext
28436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28437   (eval $ac_compile) 2>conftest.er1
28438   ac_status=$?
28439   grep -v '^ *+' conftest.er1 >conftest.err
28440   rm -f conftest.er1
28441   cat conftest.err >&5
28442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443   (exit $ac_status); } &&
28444          { ac_try='test -z "$ac_c_werror_flag"
28445                          || test ! -s conftest.err'
28446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28447   (eval $ac_try) 2>&5
28448   ac_status=$?
28449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450   (exit $ac_status); }; } &&
28451          { ac_try='test -s conftest.$ac_objext'
28452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28453   (eval $ac_try) 2>&5
28454   ac_status=$?
28455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456   (exit $ac_status); }; }; then
28457   amanda_cv_irix_scsi=yes
28458 else
28459   echo "$as_me: failed program was:" >&5
28460 sed 's/^/| /' conftest.$ac_ext >&5
28461
28462 amanda_cv_irix_scsi=no
28463 fi
28464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28465 fi
28466 echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
28467 echo "${ECHO_T}$amanda_cv_irix_scsi" >&6
28468         if test x"$amanda_cv_irix_scsi" = x"yes";then
28469
28470 cat >>confdefs.h <<\_ACEOF
28471 #define HAVE_IRIX_LIKE_SCSI 1
28472 _ACEOF
28473
28474                 NO_SCSI_CHANGER_MODE=false
28475         fi
28476 fi
28477
28478 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28479    test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
28480         echo "$as_me:$LINENO: checking for Solaris like scsi support" >&5
28481 echo $ECHO_N "checking for Solaris like scsi support... $ECHO_C" >&6
28482 if test "${amanda_cv_solaris_scsi+set}" = set; then
28483   echo $ECHO_N "(cached) $ECHO_C" >&6
28484 else
28485   cat >conftest.$ac_ext <<_ACEOF
28486 /* confdefs.h.  */
28487 _ACEOF
28488 cat confdefs.h >>conftest.$ac_ext
28489 cat >>conftest.$ac_ext <<_ACEOF
28490 /* end confdefs.h.  */
28491
28492 #include <sys/types.h>
28493 #include <sys/scsi/impl/uscsi.h>
28494 #include <sys/mtio.h>
28495
28496 int
28497 main ()
28498 {
28499
28500         int device;
28501         char *Command;
28502         ioctl(device, USCSICMD, Command);
28503
28504   ;
28505   return 0;
28506 }
28507 _ACEOF
28508 rm -f conftest.$ac_objext
28509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28510   (eval $ac_compile) 2>conftest.er1
28511   ac_status=$?
28512   grep -v '^ *+' conftest.er1 >conftest.err
28513   rm -f conftest.er1
28514   cat conftest.err >&5
28515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516   (exit $ac_status); } &&
28517          { ac_try='test -z "$ac_c_werror_flag"
28518                          || test ! -s conftest.err'
28519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28520   (eval $ac_try) 2>&5
28521   ac_status=$?
28522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523   (exit $ac_status); }; } &&
28524          { ac_try='test -s conftest.$ac_objext'
28525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28526   (eval $ac_try) 2>&5
28527   ac_status=$?
28528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529   (exit $ac_status); }; }; then
28530   amanda_cv_solaris_scsi=yes
28531 else
28532   echo "$as_me: failed program was:" >&5
28533 sed 's/^/| /' conftest.$ac_ext >&5
28534
28535 amanda_cv_solaris_scsi=no
28536 fi
28537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28538 fi
28539 echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
28540 echo "${ECHO_T}$amanda_cv_solaris_scsi" >&6
28541         if test x"$amanda_cv_solaris_scsi" = x"yes";then
28542
28543 cat >>confdefs.h <<\_ACEOF
28544 #define HAVE_SOLARIS_LIKE_SCSI 1
28545 _ACEOF
28546
28547                 NO_SCSI_CHANGER_MODE=false
28548         fi
28549 fi
28550
28551 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
28552    test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
28553    test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
28554         echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
28555 echo $ECHO_N "checking for AIX like scsi support... $ECHO_C" >&6
28556 if test "${amanda_cv_aix_scsi+set}" = set; then
28557   echo $ECHO_N "(cached) $ECHO_C" >&6
28558 else
28559   cat >conftest.$ac_ext <<_ACEOF
28560 /* confdefs.h.  */
28561 _ACEOF
28562 cat confdefs.h >>conftest.$ac_ext
28563 cat >>conftest.$ac_ext <<_ACEOF
28564 /* end confdefs.h.  */
28565
28566 #include <sys/types.h>
28567 #include <sys/scarray.h>
28568 #include <sys/tape.h>
28569
28570 int
28571 main ()
28572 {
28573
28574         int device;
28575         char *Command;
28576         ioctl(device, STIOCMD, Command);
28577
28578   ;
28579   return 0;
28580 }
28581 _ACEOF
28582 rm -f conftest.$ac_objext
28583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28584   (eval $ac_compile) 2>conftest.er1
28585   ac_status=$?
28586   grep -v '^ *+' conftest.er1 >conftest.err
28587   rm -f conftest.er1
28588   cat conftest.err >&5
28589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590   (exit $ac_status); } &&
28591          { ac_try='test -z "$ac_c_werror_flag"
28592                          || test ! -s conftest.err'
28593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28594   (eval $ac_try) 2>&5
28595   ac_status=$?
28596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597   (exit $ac_status); }; } &&
28598          { ac_try='test -s conftest.$ac_objext'
28599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28600   (eval $ac_try) 2>&5
28601   ac_status=$?
28602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603   (exit $ac_status); }; }; then
28604   amanda_cv_aix_scsi=yes
28605 else
28606   echo "$as_me: failed program was:" >&5
28607 sed 's/^/| /' conftest.$ac_ext >&5
28608
28609 amanda_cv_aix_scsi=no
28610 fi
28611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28612 fi
28613 echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
28614 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6
28615         if test x"$amanda_cv_aix_scsi" = x"yes";then
28616
28617 cat >>confdefs.h <<\_ACEOF
28618 #define HAVE_AIX_LIKE_SCSI 1
28619 _ACEOF
28620
28621                 NO_SCSI_CHANGER_MODE=false
28622         fi
28623 fi
28624 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
28625         echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
28626 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6
28627 if test "${amanda_cv_cam_scsi+set}" = set; then
28628   echo $ECHO_N "(cached) $ECHO_C" >&6
28629 else
28630   cat >conftest.$ac_ext <<_ACEOF
28631 /* confdefs.h.  */
28632 _ACEOF
28633 cat confdefs.h >>conftest.$ac_ext
28634 cat >>conftest.$ac_ext <<_ACEOF
28635 /* end confdefs.h.  */
28636
28637 #include <stdio.h>
28638 # include <fcntl.h>
28639 # include <cam/cam.h>
28640 # include <cam/cam_ccb.h>
28641 # include <cam/scsi/scsi_message.h>
28642 # include <cam/scsi/scsi_pass.h>
28643 # include <camlib.h>
28644
28645 int
28646 main ()
28647 {
28648
28649         struct cam_device *curdev;
28650
28651         curdev = cam_open_pass("", O_RDWR, NULL);
28652
28653   ;
28654   return 0;
28655 }
28656 _ACEOF
28657 rm -f conftest.$ac_objext
28658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28659   (eval $ac_compile) 2>conftest.er1
28660   ac_status=$?
28661   grep -v '^ *+' conftest.er1 >conftest.err
28662   rm -f conftest.er1
28663   cat conftest.err >&5
28664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665   (exit $ac_status); } &&
28666          { ac_try='test -z "$ac_c_werror_flag"
28667                          || test ! -s conftest.err'
28668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28669   (eval $ac_try) 2>&5
28670   ac_status=$?
28671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672   (exit $ac_status); }; } &&
28673          { ac_try='test -s conftest.$ac_objext'
28674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675   (eval $ac_try) 2>&5
28676   ac_status=$?
28677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678   (exit $ac_status); }; }; then
28679   amanda_cv_cam_scsi=yes
28680 else
28681   echo "$as_me: failed program was:" >&5
28682 sed 's/^/| /' conftest.$ac_ext >&5
28683
28684 amanda_cv_cam_scsi=no
28685 fi
28686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28687 fi
28688 echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
28689 echo "${ECHO_T}$amanda_cv_cam_scsi" >&6
28690         if test x"$amanda_cv_cam_scsi" = x"yes";then
28691
28692 cat >>confdefs.h <<\_ACEOF
28693 #define HAVE_CAM_LIKE_SCSI 1
28694 _ACEOF
28695
28696                 NO_SCSI_CHANGER_MODE=false
28697
28698 echo "$as_me:$LINENO: checking for main in -lcam" >&5
28699 echo $ECHO_N "checking for main in -lcam... $ECHO_C" >&6
28700 if test "${ac_cv_lib_cam_main+set}" = set; then
28701   echo $ECHO_N "(cached) $ECHO_C" >&6
28702 else
28703   ac_check_lib_save_LIBS=$LIBS
28704 LIBS="-lcam  $LIBS"
28705 cat >conftest.$ac_ext <<_ACEOF
28706 /* confdefs.h.  */
28707 _ACEOF
28708 cat confdefs.h >>conftest.$ac_ext
28709 cat >>conftest.$ac_ext <<_ACEOF
28710 /* end confdefs.h.  */
28711
28712
28713 int
28714 main ()
28715 {
28716 main ();
28717   ;
28718   return 0;
28719 }
28720 _ACEOF
28721 rm -f conftest.$ac_objext conftest$ac_exeext
28722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28723   (eval $ac_link) 2>conftest.er1
28724   ac_status=$?
28725   grep -v '^ *+' conftest.er1 >conftest.err
28726   rm -f conftest.er1
28727   cat conftest.err >&5
28728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729   (exit $ac_status); } &&
28730          { ac_try='test -z "$ac_c_werror_flag"
28731                          || test ! -s conftest.err'
28732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28733   (eval $ac_try) 2>&5
28734   ac_status=$?
28735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736   (exit $ac_status); }; } &&
28737          { ac_try='test -s conftest$ac_exeext'
28738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28739   (eval $ac_try) 2>&5
28740   ac_status=$?
28741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742   (exit $ac_status); }; }; then
28743   ac_cv_lib_cam_main=yes
28744 else
28745   echo "$as_me: failed program was:" >&5
28746 sed 's/^/| /' conftest.$ac_ext >&5
28747
28748 ac_cv_lib_cam_main=no
28749 fi
28750 rm -f conftest.err conftest.$ac_objext \
28751       conftest$ac_exeext conftest.$ac_ext
28752 LIBS=$ac_check_lib_save_LIBS
28753 fi
28754 echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
28755 echo "${ECHO_T}$ac_cv_lib_cam_main" >&6
28756 if test $ac_cv_lib_cam_main = yes; then
28757   cat >>confdefs.h <<_ACEOF
28758 #define HAVE_LIBCAM 1
28759 _ACEOF
28760
28761   LIBS="-lcam $LIBS"
28762
28763 fi
28764
28765         fi
28766 fi
28767
28768 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28769    test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
28770     echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
28771 echo $ECHO_N "checking for BSD like scsi support... $ECHO_C" >&6
28772 if test "${amanda_cv_bsd_scsi+set}" = set; then
28773   echo $ECHO_N "(cached) $ECHO_C" >&6
28774 else
28775   cat >conftest.$ac_ext <<_ACEOF
28776 /* confdefs.h.  */
28777 _ACEOF
28778 cat confdefs.h >>conftest.$ac_ext
28779 cat >>conftest.$ac_ext <<_ACEOF
28780 /* end confdefs.h.  */
28781
28782 #include <sys/types.h>
28783 #include <sys/scsiio.h>
28784 #include <sys/mtio.h>
28785
28786 int
28787 main ()
28788 {
28789
28790     int device=1;
28791     char Command;
28792     ioctl(device, SCIOCCOMMAND, &Command);
28793
28794   ;
28795   return 0;
28796 }
28797 _ACEOF
28798 rm -f conftest.$ac_objext
28799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28800   (eval $ac_compile) 2>conftest.er1
28801   ac_status=$?
28802   grep -v '^ *+' conftest.er1 >conftest.err
28803   rm -f conftest.er1
28804   cat conftest.err >&5
28805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806   (exit $ac_status); } &&
28807          { ac_try='test -z "$ac_c_werror_flag"
28808                          || test ! -s conftest.err'
28809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28810   (eval $ac_try) 2>&5
28811   ac_status=$?
28812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28813   (exit $ac_status); }; } &&
28814          { ac_try='test -s conftest.$ac_objext'
28815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28816   (eval $ac_try) 2>&5
28817   ac_status=$?
28818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819   (exit $ac_status); }; }; then
28820   amanda_cv_bsd_scsi=yes
28821 else
28822   echo "$as_me: failed program was:" >&5
28823 sed 's/^/| /' conftest.$ac_ext >&5
28824
28825 amanda_cv_bsd_scsi=no
28826 fi
28827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28828 fi
28829 echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
28830 echo "${ECHO_T}$amanda_cv_bsd_scsi" >&6
28831     if test x"$amanda_cv_bsd_scsi" = x"yes";then
28832
28833 cat >>confdefs.h <<\_ACEOF
28834 #define HAVE_BSD_LIKE_SCSI 1
28835 _ACEOF
28836
28837        NO_SCSI_CHANGER_MODE=false
28838     fi
28839 fi
28840
28841 if test x"$ac_cv_header_chio_h" = x"yes" ||
28842    test x"$ac_cv_header_sys_chio_h" = x"yes"; then
28843          if test x"$ac_cv_header_camlib_h" != x"yes"; then
28844      if $NO_SCSI_CHANGER_MODE; then
28845        NO_SCSI_CHANGER_MODE=false
28846      else
28847        NO_CHIO_CHANGER_MODE=false
28848      fi
28849    fi
28850 fi
28851
28852
28853 echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
28854 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6
28855 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
28856   echo $ECHO_N "(cached) $ECHO_C" >&6
28857 else
28858   ac_check_lib_save_LIBS=$LIBS
28859 LIBS="-lcur_colr  $LIBS"
28860 cat >conftest.$ac_ext <<_ACEOF
28861 /* confdefs.h.  */
28862 _ACEOF
28863 cat confdefs.h >>conftest.$ac_ext
28864 cat >>conftest.$ac_ext <<_ACEOF
28865 /* end confdefs.h.  */
28866
28867
28868 int
28869 main ()
28870 {
28871 main ();
28872   ;
28873   return 0;
28874 }
28875 _ACEOF
28876 rm -f conftest.$ac_objext conftest$ac_exeext
28877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28878   (eval $ac_link) 2>conftest.er1
28879   ac_status=$?
28880   grep -v '^ *+' conftest.er1 >conftest.err
28881   rm -f conftest.er1
28882   cat conftest.err >&5
28883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884   (exit $ac_status); } &&
28885          { ac_try='test -z "$ac_c_werror_flag"
28886                          || test ! -s conftest.err'
28887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28888   (eval $ac_try) 2>&5
28889   ac_status=$?
28890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891   (exit $ac_status); }; } &&
28892          { ac_try='test -s conftest$ac_exeext'
28893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28894   (eval $ac_try) 2>&5
28895   ac_status=$?
28896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897   (exit $ac_status); }; }; then
28898   ac_cv_lib_cur_colr_main=yes
28899 else
28900   echo "$as_me: failed program was:" >&5
28901 sed 's/^/| /' conftest.$ac_ext >&5
28902
28903 ac_cv_lib_cur_colr_main=no
28904 fi
28905 rm -f conftest.err conftest.$ac_objext \
28906       conftest$ac_exeext conftest.$ac_ext
28907 LIBS=$ac_check_lib_save_LIBS
28908 fi
28909 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
28910 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6
28911 if test $ac_cv_lib_cur_colr_main = yes; then
28912   cat >>confdefs.h <<_ACEOF
28913 #define HAVE_LIBCUR_COLR 1
28914 _ACEOF
28915
28916   LIBS="-lcur_colr $LIBS"
28917
28918 fi
28919
28920
28921
28922 echo "$as_me:$LINENO: checking for main in -lintl" >&5
28923 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
28924 if test "${ac_cv_lib_intl_main+set}" = set; then
28925   echo $ECHO_N "(cached) $ECHO_C" >&6
28926 else
28927   ac_check_lib_save_LIBS=$LIBS
28928 LIBS="-lintl  $LIBS"
28929 cat >conftest.$ac_ext <<_ACEOF
28930 /* confdefs.h.  */
28931 _ACEOF
28932 cat confdefs.h >>conftest.$ac_ext
28933 cat >>conftest.$ac_ext <<_ACEOF
28934 /* end confdefs.h.  */
28935
28936
28937 int
28938 main ()
28939 {
28940 main ();
28941   ;
28942   return 0;
28943 }
28944 _ACEOF
28945 rm -f conftest.$ac_objext conftest$ac_exeext
28946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28947   (eval $ac_link) 2>conftest.er1
28948   ac_status=$?
28949   grep -v '^ *+' conftest.er1 >conftest.err
28950   rm -f conftest.er1
28951   cat conftest.err >&5
28952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953   (exit $ac_status); } &&
28954          { ac_try='test -z "$ac_c_werror_flag"
28955                          || test ! -s conftest.err'
28956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28957   (eval $ac_try) 2>&5
28958   ac_status=$?
28959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960   (exit $ac_status); }; } &&
28961          { ac_try='test -s conftest$ac_exeext'
28962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28963   (eval $ac_try) 2>&5
28964   ac_status=$?
28965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966   (exit $ac_status); }; }; then
28967   ac_cv_lib_intl_main=yes
28968 else
28969   echo "$as_me: failed program was:" >&5
28970 sed 's/^/| /' conftest.$ac_ext >&5
28971
28972 ac_cv_lib_intl_main=no
28973 fi
28974 rm -f conftest.err conftest.$ac_objext \
28975       conftest$ac_exeext conftest.$ac_ext
28976 LIBS=$ac_check_lib_save_LIBS
28977 fi
28978 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
28979 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
28980 if test $ac_cv_lib_intl_main = yes; then
28981   cat >>confdefs.h <<_ACEOF
28982 #define HAVE_LIBINTL 1
28983 _ACEOF
28984
28985   LIBS="-lintl $LIBS"
28986
28987 fi
28988
28989
28990 case "$target" in
28991     *sgi-irix*)
28992
28993 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
28994 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
28995 if test "${ac_cv_lib_socket_main+set}" = set; then
28996   echo $ECHO_N "(cached) $ECHO_C" >&6
28997 else
28998   ac_check_lib_save_LIBS=$LIBS
28999 LIBS="-lsocket  $LIBS"
29000 cat >conftest.$ac_ext <<_ACEOF
29001 /* confdefs.h.  */
29002 _ACEOF
29003 cat confdefs.h >>conftest.$ac_ext
29004 cat >>conftest.$ac_ext <<_ACEOF
29005 /* end confdefs.h.  */
29006
29007
29008 int
29009 main ()
29010 {
29011 main ();
29012   ;
29013   return 0;
29014 }
29015 _ACEOF
29016 rm -f conftest.$ac_objext conftest$ac_exeext
29017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29018   (eval $ac_link) 2>conftest.er1
29019   ac_status=$?
29020   grep -v '^ *+' conftest.er1 >conftest.err
29021   rm -f conftest.er1
29022   cat conftest.err >&5
29023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024   (exit $ac_status); } &&
29025          { ac_try='test -z "$ac_c_werror_flag"
29026                          || test ! -s conftest.err'
29027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29028   (eval $ac_try) 2>&5
29029   ac_status=$?
29030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031   (exit $ac_status); }; } &&
29032          { ac_try='test -s conftest$ac_exeext'
29033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29034   (eval $ac_try) 2>&5
29035   ac_status=$?
29036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037   (exit $ac_status); }; }; then
29038   ac_cv_lib_socket_main=yes
29039 else
29040   echo "$as_me: failed program was:" >&5
29041 sed 's/^/| /' conftest.$ac_ext >&5
29042
29043 ac_cv_lib_socket_main=no
29044 fi
29045 rm -f conftest.err conftest.$ac_objext \
29046       conftest$ac_exeext conftest.$ac_ext
29047 LIBS=$ac_check_lib_save_LIBS
29048 fi
29049 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
29050 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
29051 if test $ac_cv_lib_socket_main = yes; then
29052   cat >>confdefs.h <<_ACEOF
29053 #define HAVE_LIBSOCKET 1
29054 _ACEOF
29055
29056   LIBS="-lsocket $LIBS"
29057
29058 fi
29059
29060                         ;;
29061     *)
29062
29063 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
29064 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
29065 if test "${ac_cv_lib_nsl_main+set}" = set; then
29066   echo $ECHO_N "(cached) $ECHO_C" >&6
29067 else
29068   ac_check_lib_save_LIBS=$LIBS
29069 LIBS="-lnsl  $LIBS"
29070 cat >conftest.$ac_ext <<_ACEOF
29071 /* confdefs.h.  */
29072 _ACEOF
29073 cat confdefs.h >>conftest.$ac_ext
29074 cat >>conftest.$ac_ext <<_ACEOF
29075 /* end confdefs.h.  */
29076
29077
29078 int
29079 main ()
29080 {
29081 main ();
29082   ;
29083   return 0;
29084 }
29085 _ACEOF
29086 rm -f conftest.$ac_objext conftest$ac_exeext
29087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29088   (eval $ac_link) 2>conftest.er1
29089   ac_status=$?
29090   grep -v '^ *+' conftest.er1 >conftest.err
29091   rm -f conftest.er1
29092   cat conftest.err >&5
29093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094   (exit $ac_status); } &&
29095          { ac_try='test -z "$ac_c_werror_flag"
29096                          || test ! -s conftest.err'
29097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29098   (eval $ac_try) 2>&5
29099   ac_status=$?
29100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101   (exit $ac_status); }; } &&
29102          { ac_try='test -s conftest$ac_exeext'
29103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29104   (eval $ac_try) 2>&5
29105   ac_status=$?
29106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107   (exit $ac_status); }; }; then
29108   ac_cv_lib_nsl_main=yes
29109 else
29110   echo "$as_me: failed program was:" >&5
29111 sed 's/^/| /' conftest.$ac_ext >&5
29112
29113 ac_cv_lib_nsl_main=no
29114 fi
29115 rm -f conftest.err conftest.$ac_objext \
29116       conftest$ac_exeext conftest.$ac_ext
29117 LIBS=$ac_check_lib_save_LIBS
29118 fi
29119 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
29120 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
29121 if test $ac_cv_lib_nsl_main = yes; then
29122   cat >>confdefs.h <<_ACEOF
29123 #define HAVE_LIBNSL 1
29124 _ACEOF
29125
29126   LIBS="-lnsl $LIBS"
29127
29128 fi
29129
29130
29131 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
29132 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
29133 if test "${ac_cv_lib_socket_main+set}" = set; then
29134   echo $ECHO_N "(cached) $ECHO_C" >&6
29135 else
29136   ac_check_lib_save_LIBS=$LIBS
29137 LIBS="-lsocket  $LIBS"
29138 cat >conftest.$ac_ext <<_ACEOF
29139 /* confdefs.h.  */
29140 _ACEOF
29141 cat confdefs.h >>conftest.$ac_ext
29142 cat >>conftest.$ac_ext <<_ACEOF
29143 /* end confdefs.h.  */
29144
29145
29146 int
29147 main ()
29148 {
29149 main ();
29150   ;
29151   return 0;
29152 }
29153 _ACEOF
29154 rm -f conftest.$ac_objext conftest$ac_exeext
29155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29156   (eval $ac_link) 2>conftest.er1
29157   ac_status=$?
29158   grep -v '^ *+' conftest.er1 >conftest.err
29159   rm -f conftest.er1
29160   cat conftest.err >&5
29161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162   (exit $ac_status); } &&
29163          { ac_try='test -z "$ac_c_werror_flag"
29164                          || test ! -s conftest.err'
29165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29166   (eval $ac_try) 2>&5
29167   ac_status=$?
29168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169   (exit $ac_status); }; } &&
29170          { ac_try='test -s conftest$ac_exeext'
29171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29172   (eval $ac_try) 2>&5
29173   ac_status=$?
29174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175   (exit $ac_status); }; }; then
29176   ac_cv_lib_socket_main=yes
29177 else
29178   echo "$as_me: failed program was:" >&5
29179 sed 's/^/| /' conftest.$ac_ext >&5
29180
29181 ac_cv_lib_socket_main=no
29182 fi
29183 rm -f conftest.err conftest.$ac_objext \
29184       conftest$ac_exeext conftest.$ac_ext
29185 LIBS=$ac_check_lib_save_LIBS
29186 fi
29187 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
29188 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
29189 if test $ac_cv_lib_socket_main = yes; then
29190   cat >>confdefs.h <<_ACEOF
29191 #define HAVE_LIBSOCKET 1
29192 _ACEOF
29193
29194   LIBS="-lsocket $LIBS"
29195
29196 fi
29197
29198
29199 echo "$as_me:$LINENO: checking for main in -lsun" >&5
29200 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6
29201 if test "${ac_cv_lib_sun_main+set}" = set; then
29202   echo $ECHO_N "(cached) $ECHO_C" >&6
29203 else
29204   ac_check_lib_save_LIBS=$LIBS
29205 LIBS="-lsun  $LIBS"
29206 cat >conftest.$ac_ext <<_ACEOF
29207 /* confdefs.h.  */
29208 _ACEOF
29209 cat confdefs.h >>conftest.$ac_ext
29210 cat >>conftest.$ac_ext <<_ACEOF
29211 /* end confdefs.h.  */
29212
29213
29214 int
29215 main ()
29216 {
29217 main ();
29218   ;
29219   return 0;
29220 }
29221 _ACEOF
29222 rm -f conftest.$ac_objext conftest$ac_exeext
29223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29224   (eval $ac_link) 2>conftest.er1
29225   ac_status=$?
29226   grep -v '^ *+' conftest.er1 >conftest.err
29227   rm -f conftest.er1
29228   cat conftest.err >&5
29229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230   (exit $ac_status); } &&
29231          { ac_try='test -z "$ac_c_werror_flag"
29232                          || test ! -s conftest.err'
29233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29234   (eval $ac_try) 2>&5
29235   ac_status=$?
29236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237   (exit $ac_status); }; } &&
29238          { ac_try='test -s conftest$ac_exeext'
29239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29240   (eval $ac_try) 2>&5
29241   ac_status=$?
29242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243   (exit $ac_status); }; }; then
29244   ac_cv_lib_sun_main=yes
29245 else
29246   echo "$as_me: failed program was:" >&5
29247 sed 's/^/| /' conftest.$ac_ext >&5
29248
29249 ac_cv_lib_sun_main=no
29250 fi
29251 rm -f conftest.err conftest.$ac_objext \
29252       conftest$ac_exeext conftest.$ac_ext
29253 LIBS=$ac_check_lib_save_LIBS
29254 fi
29255 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
29256 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6
29257 if test $ac_cv_lib_sun_main = yes; then
29258   cat >>confdefs.h <<_ACEOF
29259 #define HAVE_LIBSUN 1
29260 _ACEOF
29261
29262   LIBS="-lsun $LIBS"
29263
29264 fi
29265
29266                         ;;
29267 esac
29268
29269
29270 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
29271 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
29272 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
29273   echo $ECHO_N "(cached) $ECHO_C" >&6
29274 else
29275   ac_check_lib_save_LIBS=$LIBS
29276 LIBS="-ltermcap  $LIBS"
29277 cat >conftest.$ac_ext <<_ACEOF
29278 /* confdefs.h.  */
29279 _ACEOF
29280 cat confdefs.h >>conftest.$ac_ext
29281 cat >>conftest.$ac_ext <<_ACEOF
29282 /* end confdefs.h.  */
29283
29284 /* Override any gcc2 internal prototype to avoid an error.  */
29285 #ifdef __cplusplus
29286 extern "C"
29287 #endif
29288 /* We use char because int might match the return type of a gcc2
29289    builtin and then its argument prototype would still apply.  */
29290 char tgetent ();
29291 int
29292 main ()
29293 {
29294 tgetent ();
29295   ;
29296   return 0;
29297 }
29298 _ACEOF
29299 rm -f conftest.$ac_objext conftest$ac_exeext
29300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29301   (eval $ac_link) 2>conftest.er1
29302   ac_status=$?
29303   grep -v '^ *+' conftest.er1 >conftest.err
29304   rm -f conftest.er1
29305   cat conftest.err >&5
29306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307   (exit $ac_status); } &&
29308          { ac_try='test -z "$ac_c_werror_flag"
29309                          || test ! -s conftest.err'
29310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29311   (eval $ac_try) 2>&5
29312   ac_status=$?
29313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314   (exit $ac_status); }; } &&
29315          { ac_try='test -s conftest$ac_exeext'
29316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29317   (eval $ac_try) 2>&5
29318   ac_status=$?
29319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320   (exit $ac_status); }; }; then
29321   ac_cv_lib_termcap_tgetent=yes
29322 else
29323   echo "$as_me: failed program was:" >&5
29324 sed 's/^/| /' conftest.$ac_ext >&5
29325
29326 ac_cv_lib_termcap_tgetent=no
29327 fi
29328 rm -f conftest.err conftest.$ac_objext \
29329       conftest$ac_exeext conftest.$ac_ext
29330 LIBS=$ac_check_lib_save_LIBS
29331 fi
29332 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
29333 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
29334 if test $ac_cv_lib_termcap_tgetent = yes; then
29335   cat >>confdefs.h <<_ACEOF
29336 #define HAVE_LIBTERMCAP 1
29337 _ACEOF
29338
29339   LIBS="-ltermcap $LIBS"
29340
29341 fi
29342
29343 if test "$ac_cv_lib_termcap_tgetent" != yes; then
29344
29345 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
29346 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
29347 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
29348   echo $ECHO_N "(cached) $ECHO_C" >&6
29349 else
29350   ac_check_lib_save_LIBS=$LIBS
29351 LIBS="-lcurses  $LIBS"
29352 cat >conftest.$ac_ext <<_ACEOF
29353 /* confdefs.h.  */
29354 _ACEOF
29355 cat confdefs.h >>conftest.$ac_ext
29356 cat >>conftest.$ac_ext <<_ACEOF
29357 /* end confdefs.h.  */
29358
29359 /* Override any gcc2 internal prototype to avoid an error.  */
29360 #ifdef __cplusplus
29361 extern "C"
29362 #endif
29363 /* We use char because int might match the return type of a gcc2
29364    builtin and then its argument prototype would still apply.  */
29365 char tgetent ();
29366 int
29367 main ()
29368 {
29369 tgetent ();
29370   ;
29371   return 0;
29372 }
29373 _ACEOF
29374 rm -f conftest.$ac_objext conftest$ac_exeext
29375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29376   (eval $ac_link) 2>conftest.er1
29377   ac_status=$?
29378   grep -v '^ *+' conftest.er1 >conftest.err
29379   rm -f conftest.er1
29380   cat conftest.err >&5
29381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382   (exit $ac_status); } &&
29383          { ac_try='test -z "$ac_c_werror_flag"
29384                          || test ! -s conftest.err'
29385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29386   (eval $ac_try) 2>&5
29387   ac_status=$?
29388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389   (exit $ac_status); }; } &&
29390          { ac_try='test -s conftest$ac_exeext'
29391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29392   (eval $ac_try) 2>&5
29393   ac_status=$?
29394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395   (exit $ac_status); }; }; then
29396   ac_cv_lib_curses_tgetent=yes
29397 else
29398   echo "$as_me: failed program was:" >&5
29399 sed 's/^/| /' conftest.$ac_ext >&5
29400
29401 ac_cv_lib_curses_tgetent=no
29402 fi
29403 rm -f conftest.err conftest.$ac_objext \
29404       conftest$ac_exeext conftest.$ac_ext
29405 LIBS=$ac_check_lib_save_LIBS
29406 fi
29407 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
29408 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
29409 if test $ac_cv_lib_curses_tgetent = yes; then
29410   cat >>confdefs.h <<_ACEOF
29411 #define HAVE_LIBCURSES 1
29412 _ACEOF
29413
29414   LIBS="-lcurses $LIBS"
29415
29416 fi
29417
29418     if test "$ac_cv_lib_curses_tgetent" != yes; then
29419
29420 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
29421 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
29422 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
29423   echo $ECHO_N "(cached) $ECHO_C" >&6
29424 else
29425   ac_check_lib_save_LIBS=$LIBS
29426 LIBS="-lncurses  $LIBS"
29427 cat >conftest.$ac_ext <<_ACEOF
29428 /* confdefs.h.  */
29429 _ACEOF
29430 cat confdefs.h >>conftest.$ac_ext
29431 cat >>conftest.$ac_ext <<_ACEOF
29432 /* end confdefs.h.  */
29433
29434 /* Override any gcc2 internal prototype to avoid an error.  */
29435 #ifdef __cplusplus
29436 extern "C"
29437 #endif
29438 /* We use char because int might match the return type of a gcc2
29439    builtin and then its argument prototype would still apply.  */
29440 char tgetent ();
29441 int
29442 main ()
29443 {
29444 tgetent ();
29445   ;
29446   return 0;
29447 }
29448 _ACEOF
29449 rm -f conftest.$ac_objext conftest$ac_exeext
29450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29451   (eval $ac_link) 2>conftest.er1
29452   ac_status=$?
29453   grep -v '^ *+' conftest.er1 >conftest.err
29454   rm -f conftest.er1
29455   cat conftest.err >&5
29456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29457   (exit $ac_status); } &&
29458          { ac_try='test -z "$ac_c_werror_flag"
29459                          || test ! -s conftest.err'
29460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29461   (eval $ac_try) 2>&5
29462   ac_status=$?
29463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464   (exit $ac_status); }; } &&
29465          { ac_try='test -s conftest$ac_exeext'
29466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29467   (eval $ac_try) 2>&5
29468   ac_status=$?
29469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470   (exit $ac_status); }; }; then
29471   ac_cv_lib_ncurses_tgetent=yes
29472 else
29473   echo "$as_me: failed program was:" >&5
29474 sed 's/^/| /' conftest.$ac_ext >&5
29475
29476 ac_cv_lib_ncurses_tgetent=no
29477 fi
29478 rm -f conftest.err conftest.$ac_objext \
29479       conftest$ac_exeext conftest.$ac_ext
29480 LIBS=$ac_check_lib_save_LIBS
29481 fi
29482 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
29483 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
29484 if test $ac_cv_lib_ncurses_tgetent = yes; then
29485   cat >>confdefs.h <<_ACEOF
29486 #define HAVE_LIBNCURSES 1
29487 _ACEOF
29488
29489   LIBS="-lncurses $LIBS"
29490
29491 fi
29492
29493     fi
29494 fi
29495 if test "$ac_cv_lib_termcap_tgetent" = yes ||
29496    test "$ac_cv_lib_curses_tgetent" = yes ||
29497    test "$ac_cv_lib_ncurses_tgetent" = yes; then
29498
29499 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
29500 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
29501 if test "${ac_cv_lib_readline_readline+set}" = set; then
29502   echo $ECHO_N "(cached) $ECHO_C" >&6
29503 else
29504   ac_check_lib_save_LIBS=$LIBS
29505 LIBS="-lreadline  $LIBS"
29506 cat >conftest.$ac_ext <<_ACEOF
29507 /* confdefs.h.  */
29508 _ACEOF
29509 cat confdefs.h >>conftest.$ac_ext
29510 cat >>conftest.$ac_ext <<_ACEOF
29511 /* end confdefs.h.  */
29512
29513 /* Override any gcc2 internal prototype to avoid an error.  */
29514 #ifdef __cplusplus
29515 extern "C"
29516 #endif
29517 /* We use char because int might match the return type of a gcc2
29518    builtin and then its argument prototype would still apply.  */
29519 char readline ();
29520 int
29521 main ()
29522 {
29523 readline ();
29524   ;
29525   return 0;
29526 }
29527 _ACEOF
29528 rm -f conftest.$ac_objext conftest$ac_exeext
29529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29530   (eval $ac_link) 2>conftest.er1
29531   ac_status=$?
29532   grep -v '^ *+' conftest.er1 >conftest.err
29533   rm -f conftest.er1
29534   cat conftest.err >&5
29535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536   (exit $ac_status); } &&
29537          { ac_try='test -z "$ac_c_werror_flag"
29538                          || test ! -s conftest.err'
29539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29540   (eval $ac_try) 2>&5
29541   ac_status=$?
29542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543   (exit $ac_status); }; } &&
29544          { ac_try='test -s conftest$ac_exeext'
29545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29546   (eval $ac_try) 2>&5
29547   ac_status=$?
29548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549   (exit $ac_status); }; }; then
29550   ac_cv_lib_readline_readline=yes
29551 else
29552   echo "$as_me: failed program was:" >&5
29553 sed 's/^/| /' conftest.$ac_ext >&5
29554
29555 ac_cv_lib_readline_readline=no
29556 fi
29557 rm -f conftest.err conftest.$ac_objext \
29558       conftest$ac_exeext conftest.$ac_ext
29559 LIBS=$ac_check_lib_save_LIBS
29560 fi
29561 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
29562 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
29563 if test $ac_cv_lib_readline_readline = yes; then
29564   cat >>confdefs.h <<_ACEOF
29565 #define HAVE_LIBREADLINE 1
29566 _ACEOF
29567
29568   LIBS="-lreadline $LIBS"
29569
29570 fi
29571
29572     if test "$ac_cv_lib_readline_readline" != yes; then
29573         { echo "$as_me:$LINENO: WARNING: *** No readline library, no history and command line editing in amrecover!" >&5
29574 echo "$as_me: WARNING: *** No readline library, no history and command line editing in amrecover!" >&2;}
29575     fi
29576 else
29577     { echo "$as_me:$LINENO: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&5
29578 echo "$as_me: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&2;}
29579 fi
29580
29581 if test "$ac_cv_lib_readline_readline" = yes; then
29582     READLINE_LIBS=-lreadline
29583     LIBS=`echo $LIBS | sed s/-lreadline//`
29584
29585 fi
29586
29587 if test "$ac_cv_header_linux_zftape_h" = yes; then
29588     if test "$ac_cv_header_vtblc_h" = yes; then
29589
29590 echo "$as_me:$LINENO: checking for main in -lvtblc" >&5
29591 echo $ECHO_N "checking for main in -lvtblc... $ECHO_C" >&6
29592 if test "${ac_cv_lib_vtblc_main+set}" = set; then
29593   echo $ECHO_N "(cached) $ECHO_C" >&6
29594 else
29595   ac_check_lib_save_LIBS=$LIBS
29596 LIBS="-lvtblc  $LIBS"
29597 cat >conftest.$ac_ext <<_ACEOF
29598 /* confdefs.h.  */
29599 _ACEOF
29600 cat confdefs.h >>conftest.$ac_ext
29601 cat >>conftest.$ac_ext <<_ACEOF
29602 /* end confdefs.h.  */
29603
29604
29605 int
29606 main ()
29607 {
29608 main ();
29609   ;
29610   return 0;
29611 }
29612 _ACEOF
29613 rm -f conftest.$ac_objext conftest$ac_exeext
29614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29615   (eval $ac_link) 2>conftest.er1
29616   ac_status=$?
29617   grep -v '^ *+' conftest.er1 >conftest.err
29618   rm -f conftest.er1
29619   cat conftest.err >&5
29620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621   (exit $ac_status); } &&
29622          { ac_try='test -z "$ac_c_werror_flag"
29623                          || test ! -s conftest.err'
29624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29625   (eval $ac_try) 2>&5
29626   ac_status=$?
29627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628   (exit $ac_status); }; } &&
29629          { ac_try='test -s conftest$ac_exeext'
29630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29631   (eval $ac_try) 2>&5
29632   ac_status=$?
29633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634   (exit $ac_status); }; }; then
29635   ac_cv_lib_vtblc_main=yes
29636 else
29637   echo "$as_me: failed program was:" >&5
29638 sed 's/^/| /' conftest.$ac_ext >&5
29639
29640 ac_cv_lib_vtblc_main=no
29641 fi
29642 rm -f conftest.err conftest.$ac_objext \
29643       conftest$ac_exeext conftest.$ac_ext
29644 LIBS=$ac_check_lib_save_LIBS
29645 fi
29646 echo "$as_me:$LINENO: result: $ac_cv_lib_vtblc_main" >&5
29647 echo "${ECHO_T}$ac_cv_lib_vtblc_main" >&6
29648 if test $ac_cv_lib_vtblc_main = yes; then
29649   cat >>confdefs.h <<_ACEOF
29650 #define HAVE_LIBVTBLC 1
29651 _ACEOF
29652
29653   LIBS="-lvtblc $LIBS"
29654
29655 fi
29656
29657         if test "$ac_cv_lib_vtblc_main" != yes; then
29658             { echo "$as_me:$LINENO: WARNING: *** vtblc library not found - no QIC volume table support!" >&5
29659 echo "$as_me: WARNING: *** vtblc library not found - no QIC volume table support!" >&2;}
29660         fi
29661     else
29662         { echo "$as_me:$LINENO: WARNING: *** vtblc headers not found - no QIC volume table support!" >&5
29663 echo "$as_me: WARNING: *** vtblc headers not found - no QIC volume table support!" >&2;}
29664     fi
29665 fi
29666
29667
29668 echo "$as_me:$LINENO: checking for modf in -lm" >&5
29669 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6
29670 if test "${ac_cv_lib_m_modf+set}" = set; then
29671   echo $ECHO_N "(cached) $ECHO_C" >&6
29672 else
29673   ac_check_lib_save_LIBS=$LIBS
29674 LIBS="-lm  $LIBS"
29675 cat >conftest.$ac_ext <<_ACEOF
29676 /* confdefs.h.  */
29677 _ACEOF
29678 cat confdefs.h >>conftest.$ac_ext
29679 cat >>conftest.$ac_ext <<_ACEOF
29680 /* end confdefs.h.  */
29681
29682 /* Override any gcc2 internal prototype to avoid an error.  */
29683 #ifdef __cplusplus
29684 extern "C"
29685 #endif
29686 /* We use char because int might match the return type of a gcc2
29687    builtin and then its argument prototype would still apply.  */
29688 char modf ();
29689 int
29690 main ()
29691 {
29692 modf ();
29693   ;
29694   return 0;
29695 }
29696 _ACEOF
29697 rm -f conftest.$ac_objext conftest$ac_exeext
29698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29699   (eval $ac_link) 2>conftest.er1
29700   ac_status=$?
29701   grep -v '^ *+' conftest.er1 >conftest.err
29702   rm -f conftest.er1
29703   cat conftest.err >&5
29704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705   (exit $ac_status); } &&
29706          { ac_try='test -z "$ac_c_werror_flag"
29707                          || test ! -s conftest.err'
29708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29709   (eval $ac_try) 2>&5
29710   ac_status=$?
29711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712   (exit $ac_status); }; } &&
29713          { ac_try='test -s conftest$ac_exeext'
29714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29715   (eval $ac_try) 2>&5
29716   ac_status=$?
29717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718   (exit $ac_status); }; }; then
29719   ac_cv_lib_m_modf=yes
29720 else
29721   echo "$as_me: failed program was:" >&5
29722 sed 's/^/| /' conftest.$ac_ext >&5
29723
29724 ac_cv_lib_m_modf=no
29725 fi
29726 rm -f conftest.err conftest.$ac_objext \
29727       conftest$ac_exeext conftest.$ac_ext
29728 LIBS=$ac_check_lib_save_LIBS
29729 fi
29730 echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
29731 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6
29732 if test $ac_cv_lib_m_modf = yes; then
29733   cat >>confdefs.h <<_ACEOF
29734 #define HAVE_LIBM 1
29735 _ACEOF
29736
29737   LIBS="-lm $LIBS"
29738
29739 fi
29740
29741
29742
29743 echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
29744 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6
29745 mt_flags_result="found"
29746 cat >conftest.$ac_ext <<_ACEOF
29747 /* confdefs.h.  */
29748 _ACEOF
29749 cat confdefs.h >>conftest.$ac_ext
29750 cat >>conftest.$ac_ext <<_ACEOF
29751 /* end confdefs.h.  */
29752
29753 #include <stdio.h>
29754 #include <sys/types.h>
29755 #include <sys/mtio.h>
29756
29757 int
29758 main ()
29759 {
29760
29761     struct mtget buf;
29762     long ds;
29763
29764     ds = buf.mt_flags;
29765
29766   ;
29767   return 0;
29768 }
29769 _ACEOF
29770 rm -f conftest.$ac_objext
29771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29772   (eval $ac_compile) 2>conftest.er1
29773   ac_status=$?
29774   grep -v '^ *+' conftest.er1 >conftest.err
29775   rm -f conftest.er1
29776   cat conftest.err >&5
29777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778   (exit $ac_status); } &&
29779          { ac_try='test -z "$ac_c_werror_flag"
29780                          || test ! -s conftest.err'
29781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29782   (eval $ac_try) 2>&5
29783   ac_status=$?
29784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785   (exit $ac_status); }; } &&
29786          { ac_try='test -s conftest.$ac_objext'
29787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29788   (eval $ac_try) 2>&5
29789   ac_status=$?
29790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791   (exit $ac_status); }; }; then
29792
29793 cat >>confdefs.h <<\_ACEOF
29794 #define HAVE_MT_FLAGS 1
29795 _ACEOF
29796
29797 else
29798   echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29800
29801 mt_flags_result="not found"
29802 fi
29803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29804 echo "$as_me:$LINENO: result: $mt_flags_result" >&5
29805 echo "${ECHO_T}$mt_flags_result" >&6
29806
29807 echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
29808 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6
29809 mt_fileno_result="found"
29810 cat >conftest.$ac_ext <<_ACEOF
29811 /* confdefs.h.  */
29812 _ACEOF
29813 cat confdefs.h >>conftest.$ac_ext
29814 cat >>conftest.$ac_ext <<_ACEOF
29815 /* end confdefs.h.  */
29816
29817 #include <stdio.h>
29818 #include <sys/types.h>
29819 #include <sys/mtio.h>
29820
29821 int
29822 main ()
29823 {
29824
29825     struct mtget buf;
29826     long ds;
29827
29828     ds = buf.mt_fileno;
29829
29830   ;
29831   return 0;
29832 }
29833 _ACEOF
29834 rm -f conftest.$ac_objext
29835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29836   (eval $ac_compile) 2>conftest.er1
29837   ac_status=$?
29838   grep -v '^ *+' conftest.er1 >conftest.err
29839   rm -f conftest.er1
29840   cat conftest.err >&5
29841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842   (exit $ac_status); } &&
29843          { ac_try='test -z "$ac_c_werror_flag"
29844                          || test ! -s conftest.err'
29845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29846   (eval $ac_try) 2>&5
29847   ac_status=$?
29848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849   (exit $ac_status); }; } &&
29850          { ac_try='test -s conftest.$ac_objext'
29851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29852   (eval $ac_try) 2>&5
29853   ac_status=$?
29854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855   (exit $ac_status); }; }; then
29856
29857 cat >>confdefs.h <<\_ACEOF
29858 #define HAVE_MT_FILENO 1
29859 _ACEOF
29860
29861 else
29862   echo "$as_me: failed program was:" >&5
29863 sed 's/^/| /' conftest.$ac_ext >&5
29864
29865 mt_fileno_result="not found"
29866 fi
29867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29868 echo "$as_me:$LINENO: result: $mt_fileno_result" >&5
29869 echo "${ECHO_T}$mt_fileno_result" >&6
29870
29871 echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
29872 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6
29873 mt_blkno_result="found"
29874 cat >conftest.$ac_ext <<_ACEOF
29875 /* confdefs.h.  */
29876 _ACEOF
29877 cat confdefs.h >>conftest.$ac_ext
29878 cat >>conftest.$ac_ext <<_ACEOF
29879 /* end confdefs.h.  */
29880
29881 #include <stdio.h>
29882 #include <sys/types.h>
29883 #include <sys/mtio.h>
29884
29885 int
29886 main ()
29887 {
29888
29889     struct mtget buf;
29890     long ds;
29891
29892     ds = buf.mt_blkno;
29893
29894   ;
29895   return 0;
29896 }
29897 _ACEOF
29898 rm -f conftest.$ac_objext
29899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29900   (eval $ac_compile) 2>conftest.er1
29901   ac_status=$?
29902   grep -v '^ *+' conftest.er1 >conftest.err
29903   rm -f conftest.er1
29904   cat conftest.err >&5
29905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906   (exit $ac_status); } &&
29907          { ac_try='test -z "$ac_c_werror_flag"
29908                          || test ! -s conftest.err'
29909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29910   (eval $ac_try) 2>&5
29911   ac_status=$?
29912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913   (exit $ac_status); }; } &&
29914          { ac_try='test -s conftest.$ac_objext'
29915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29916   (eval $ac_try) 2>&5
29917   ac_status=$?
29918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919   (exit $ac_status); }; }; then
29920
29921 cat >>confdefs.h <<\_ACEOF
29922 #define HAVE_MT_BLKNO 1
29923 _ACEOF
29924
29925 else
29926   echo "$as_me: failed program was:" >&5
29927 sed 's/^/| /' conftest.$ac_ext >&5
29928
29929 mt_blkno_result="not found"
29930 fi
29931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29932 echo "$as_me:$LINENO: result: $mt_blkno_result" >&5
29933 echo "${ECHO_T}$mt_blkno_result" >&6
29934
29935 echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
29936 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6
29937 mt_dsreg_result="found"
29938 cat >conftest.$ac_ext <<_ACEOF
29939 /* confdefs.h.  */
29940 _ACEOF
29941 cat confdefs.h >>conftest.$ac_ext
29942 cat >>conftest.$ac_ext <<_ACEOF
29943 /* end confdefs.h.  */
29944
29945 #include <stdio.h>
29946 #include <sys/types.h>
29947 #include <sys/mtio.h>
29948
29949 int
29950 main ()
29951 {
29952
29953     struct mtget buf;
29954     long ds;
29955
29956     ds = buf.mt_dsreg;
29957
29958   ;
29959   return 0;
29960 }
29961 _ACEOF
29962 rm -f conftest.$ac_objext
29963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29964   (eval $ac_compile) 2>conftest.er1
29965   ac_status=$?
29966   grep -v '^ *+' conftest.er1 >conftest.err
29967   rm -f conftest.er1
29968   cat conftest.err >&5
29969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970   (exit $ac_status); } &&
29971          { ac_try='test -z "$ac_c_werror_flag"
29972                          || test ! -s conftest.err'
29973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29974   (eval $ac_try) 2>&5
29975   ac_status=$?
29976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977   (exit $ac_status); }; } &&
29978          { ac_try='test -s conftest.$ac_objext'
29979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29980   (eval $ac_try) 2>&5
29981   ac_status=$?
29982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983   (exit $ac_status); }; }; then
29984
29985 cat >>confdefs.h <<\_ACEOF
29986 #define HAVE_MT_DSREG 1
29987 _ACEOF
29988
29989 else
29990   echo "$as_me: failed program was:" >&5
29991 sed 's/^/| /' conftest.$ac_ext >&5
29992
29993 mt_dsreg_result="not found"
29994 fi
29995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29996 echo "$as_me:$LINENO: result: $mt_dsreg_result" >&5
29997 echo "${ECHO_T}$mt_dsreg_result" >&6
29998
29999 echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
30000 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6
30001 mt_erreg_result="found"
30002 cat >conftest.$ac_ext <<_ACEOF
30003 /* confdefs.h.  */
30004 _ACEOF
30005 cat confdefs.h >>conftest.$ac_ext
30006 cat >>conftest.$ac_ext <<_ACEOF
30007 /* end confdefs.h.  */
30008
30009 #include <stdio.h>
30010 #include <sys/types.h>
30011 #include <sys/mtio.h>
30012
30013 int
30014 main ()
30015 {
30016
30017     struct mtget buf;
30018     long ds;
30019
30020     ds = buf.mt_erreg;
30021
30022   ;
30023   return 0;
30024 }
30025 _ACEOF
30026 rm -f conftest.$ac_objext
30027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30028   (eval $ac_compile) 2>conftest.er1
30029   ac_status=$?
30030   grep -v '^ *+' conftest.er1 >conftest.err
30031   rm -f conftest.er1
30032   cat conftest.err >&5
30033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30034   (exit $ac_status); } &&
30035          { ac_try='test -z "$ac_c_werror_flag"
30036                          || test ! -s conftest.err'
30037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30038   (eval $ac_try) 2>&5
30039   ac_status=$?
30040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041   (exit $ac_status); }; } &&
30042          { ac_try='test -s conftest.$ac_objext'
30043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30044   (eval $ac_try) 2>&5
30045   ac_status=$?
30046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047   (exit $ac_status); }; }; then
30048
30049 cat >>confdefs.h <<\_ACEOF
30050 #define HAVE_MT_ERREG 1
30051 _ACEOF
30052
30053 else
30054   echo "$as_me: failed program was:" >&5
30055 sed 's/^/| /' conftest.$ac_ext >&5
30056
30057 mt_erreg_result="not found"
30058 fi
30059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30060 echo "$as_me:$LINENO: result: $mt_erreg_result" >&5
30061 echo "${ECHO_T}$mt_erreg_result" >&6
30062
30063
30064 DB_HEADER=
30065 DB_LIB=
30066
30067 save_LIBS="$LIBS"
30068
30069 echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
30070 echo $ECHO_N "checking for dbm_open in -lc... $ECHO_C" >&6
30071 if test "${ac_cv_lib_c_dbm_open+set}" = set; then
30072   echo $ECHO_N "(cached) $ECHO_C" >&6
30073 else
30074   ac_check_lib_save_LIBS=$LIBS
30075 LIBS="-lc  $LIBS"
30076 cat >conftest.$ac_ext <<_ACEOF
30077 /* confdefs.h.  */
30078 _ACEOF
30079 cat confdefs.h >>conftest.$ac_ext
30080 cat >>conftest.$ac_ext <<_ACEOF
30081 /* end confdefs.h.  */
30082
30083 /* Override any gcc2 internal prototype to avoid an error.  */
30084 #ifdef __cplusplus
30085 extern "C"
30086 #endif
30087 /* We use char because int might match the return type of a gcc2
30088    builtin and then its argument prototype would still apply.  */
30089 char dbm_open ();
30090 int
30091 main ()
30092 {
30093 dbm_open ();
30094   ;
30095   return 0;
30096 }
30097 _ACEOF
30098 rm -f conftest.$ac_objext conftest$ac_exeext
30099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30100   (eval $ac_link) 2>conftest.er1
30101   ac_status=$?
30102   grep -v '^ *+' conftest.er1 >conftest.err
30103   rm -f conftest.er1
30104   cat conftest.err >&5
30105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106   (exit $ac_status); } &&
30107          { ac_try='test -z "$ac_c_werror_flag"
30108                          || test ! -s conftest.err'
30109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30110   (eval $ac_try) 2>&5
30111   ac_status=$?
30112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113   (exit $ac_status); }; } &&
30114          { ac_try='test -s conftest$ac_exeext'
30115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30116   (eval $ac_try) 2>&5
30117   ac_status=$?
30118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119   (exit $ac_status); }; }; then
30120   ac_cv_lib_c_dbm_open=yes
30121 else
30122   echo "$as_me: failed program was:" >&5
30123 sed 's/^/| /' conftest.$ac_ext >&5
30124
30125 ac_cv_lib_c_dbm_open=no
30126 fi
30127 rm -f conftest.err conftest.$ac_objext \
30128       conftest$ac_exeext conftest.$ac_ext
30129 LIBS=$ac_check_lib_save_LIBS
30130 fi
30131 echo "$as_me:$LINENO: result: $ac_cv_lib_c_dbm_open" >&5
30132 echo "${ECHO_T}$ac_cv_lib_c_dbm_open" >&6
30133 if test $ac_cv_lib_c_dbm_open = yes; then
30134   cat >>confdefs.h <<_ACEOF
30135 #define HAVE_LIBC 1
30136 _ACEOF
30137
30138   LIBS="-lc $LIBS"
30139
30140 fi
30141
30142 LIBS="$save_LIBS"
30143
30144 case "$DB_STYLE" in
30145     db)
30146         if test "$ac_cv_header_db_h" = yes; then
30147
30148 echo "$as_me:$LINENO: checking for main in -ldb" >&5
30149 echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
30150 if test "${ac_cv_lib_db_main+set}" = set; then
30151   echo $ECHO_N "(cached) $ECHO_C" >&6
30152 else
30153   ac_check_lib_save_LIBS=$LIBS
30154 LIBS="-ldb  $LIBS"
30155 cat >conftest.$ac_ext <<_ACEOF
30156 /* confdefs.h.  */
30157 _ACEOF
30158 cat confdefs.h >>conftest.$ac_ext
30159 cat >>conftest.$ac_ext <<_ACEOF
30160 /* end confdefs.h.  */
30161
30162
30163 int
30164 main ()
30165 {
30166 main ();
30167   ;
30168   return 0;
30169 }
30170 _ACEOF
30171 rm -f conftest.$ac_objext conftest$ac_exeext
30172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30173   (eval $ac_link) 2>conftest.er1
30174   ac_status=$?
30175   grep -v '^ *+' conftest.er1 >conftest.err
30176   rm -f conftest.er1
30177   cat conftest.err >&5
30178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179   (exit $ac_status); } &&
30180          { ac_try='test -z "$ac_c_werror_flag"
30181                          || test ! -s conftest.err'
30182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30183   (eval $ac_try) 2>&5
30184   ac_status=$?
30185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186   (exit $ac_status); }; } &&
30187          { ac_try='test -s conftest$ac_exeext'
30188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30189   (eval $ac_try) 2>&5
30190   ac_status=$?
30191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192   (exit $ac_status); }; }; then
30193   ac_cv_lib_db_main=yes
30194 else
30195   echo "$as_me: failed program was:" >&5
30196 sed 's/^/| /' conftest.$ac_ext >&5
30197
30198 ac_cv_lib_db_main=no
30199 fi
30200 rm -f conftest.err conftest.$ac_objext \
30201       conftest$ac_exeext conftest.$ac_ext
30202 LIBS=$ac_check_lib_save_LIBS
30203 fi
30204 echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
30205 echo "${ECHO_T}$ac_cv_lib_db_main" >&6
30206 if test $ac_cv_lib_db_main = yes; then
30207   cat >>confdefs.h <<_ACEOF
30208 #define HAVE_LIBDB 1
30209 _ACEOF
30210
30211   LIBS="-ldb $LIBS"
30212
30213 fi
30214
30215             if test "$ac_cv_lib_db_main" = yes; then
30216
30217 echo "$as_me:$LINENO: checking for dbm_open in -ldb" >&5
30218 echo $ECHO_N "checking for dbm_open in -ldb... $ECHO_C" >&6
30219 if test "${ac_cv_lib_db_dbm_open+set}" = set; then
30220   echo $ECHO_N "(cached) $ECHO_C" >&6
30221 else
30222   ac_check_lib_save_LIBS=$LIBS
30223 LIBS="-ldb  $LIBS"
30224 cat >conftest.$ac_ext <<_ACEOF
30225 /* confdefs.h.  */
30226 _ACEOF
30227 cat confdefs.h >>conftest.$ac_ext
30228 cat >>conftest.$ac_ext <<_ACEOF
30229 /* end confdefs.h.  */
30230
30231 /* Override any gcc2 internal prototype to avoid an error.  */
30232 #ifdef __cplusplus
30233 extern "C"
30234 #endif
30235 /* We use char because int might match the return type of a gcc2
30236    builtin and then its argument prototype would still apply.  */
30237 char dbm_open ();
30238 int
30239 main ()
30240 {
30241 dbm_open ();
30242   ;
30243   return 0;
30244 }
30245 _ACEOF
30246 rm -f conftest.$ac_objext conftest$ac_exeext
30247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30248   (eval $ac_link) 2>conftest.er1
30249   ac_status=$?
30250   grep -v '^ *+' conftest.er1 >conftest.err
30251   rm -f conftest.er1
30252   cat conftest.err >&5
30253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254   (exit $ac_status); } &&
30255          { ac_try='test -z "$ac_c_werror_flag"
30256                          || test ! -s conftest.err'
30257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30258   (eval $ac_try) 2>&5
30259   ac_status=$?
30260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261   (exit $ac_status); }; } &&
30262          { ac_try='test -s conftest$ac_exeext'
30263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30264   (eval $ac_try) 2>&5
30265   ac_status=$?
30266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267   (exit $ac_status); }; }; then
30268   ac_cv_lib_db_dbm_open=yes
30269 else
30270   echo "$as_me: failed program was:" >&5
30271 sed 's/^/| /' conftest.$ac_ext >&5
30272
30273 ac_cv_lib_db_dbm_open=no
30274 fi
30275 rm -f conftest.err conftest.$ac_objext \
30276       conftest$ac_exeext conftest.$ac_ext
30277 LIBS=$ac_check_lib_save_LIBS
30278 fi
30279 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_open" >&5
30280 echo "${ECHO_T}$ac_cv_lib_db_dbm_open" >&6
30281 if test $ac_cv_lib_db_dbm_open = yes; then
30282   cat >>confdefs.h <<_ACEOF
30283 #define HAVE_LIBDB 1
30284 _ACEOF
30285
30286   LIBS="-ldb $LIBS"
30287
30288 fi
30289
30290                 if test "$ac_cv_lib_db_dbm_open" = yes; then
30291                     DB_HEADER=db.h
30292                     DB_LIB=db
30293                 else
30294                     DB_STYLE=
30295                     { echo "$as_me:$LINENO: WARNING: *** db database library requested but dbm_open not found in -ldb." >&5
30296 echo "$as_me: WARNING: *** db database library requested but dbm_open not found in -ldb." >&2;}
30297                 fi
30298             else
30299                 if test "$ac_cv_lib_c_dbm_open" = yes; then
30300                     DB_HEADER=db.h
30301                     DB_LIB=c
30302                 else
30303                     DB_STYLE=
30304                     { echo "$as_me:$LINENO: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&5
30305 echo "$as_me: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&2;}
30306                 fi
30307             fi
30308         else
30309             DB_STYLE=
30310             { echo "$as_me:$LINENO: WARNING: *** db database library requested but db.h not found." >&5
30311 echo "$as_me: WARNING: *** db database library requested but db.h not found." >&2;}
30312         fi
30313         ;;
30314
30315     dbm)
30316         if test "$ac_cv_header_dbm_h" = yes; then
30317
30318 echo "$as_me:$LINENO: checking for main in -ldbm" >&5
30319 echo $ECHO_N "checking for main in -ldbm... $ECHO_C" >&6
30320 if test "${ac_cv_lib_dbm_main+set}" = set; then
30321   echo $ECHO_N "(cached) $ECHO_C" >&6
30322 else
30323   ac_check_lib_save_LIBS=$LIBS
30324 LIBS="-ldbm  $LIBS"
30325 cat >conftest.$ac_ext <<_ACEOF
30326 /* confdefs.h.  */
30327 _ACEOF
30328 cat confdefs.h >>conftest.$ac_ext
30329 cat >>conftest.$ac_ext <<_ACEOF
30330 /* end confdefs.h.  */
30331
30332
30333 int
30334 main ()
30335 {
30336 main ();
30337   ;
30338   return 0;
30339 }
30340 _ACEOF
30341 rm -f conftest.$ac_objext conftest$ac_exeext
30342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30343   (eval $ac_link) 2>conftest.er1
30344   ac_status=$?
30345   grep -v '^ *+' conftest.er1 >conftest.err
30346   rm -f conftest.er1
30347   cat conftest.err >&5
30348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349   (exit $ac_status); } &&
30350          { ac_try='test -z "$ac_c_werror_flag"
30351                          || test ! -s conftest.err'
30352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30353   (eval $ac_try) 2>&5
30354   ac_status=$?
30355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356   (exit $ac_status); }; } &&
30357          { ac_try='test -s conftest$ac_exeext'
30358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30359   (eval $ac_try) 2>&5
30360   ac_status=$?
30361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30362   (exit $ac_status); }; }; then
30363   ac_cv_lib_dbm_main=yes
30364 else
30365   echo "$as_me: failed program was:" >&5
30366 sed 's/^/| /' conftest.$ac_ext >&5
30367
30368 ac_cv_lib_dbm_main=no
30369 fi
30370 rm -f conftest.err conftest.$ac_objext \
30371       conftest$ac_exeext conftest.$ac_ext
30372 LIBS=$ac_check_lib_save_LIBS
30373 fi
30374 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_main" >&5
30375 echo "${ECHO_T}$ac_cv_lib_dbm_main" >&6
30376 if test $ac_cv_lib_dbm_main = yes; then
30377   cat >>confdefs.h <<_ACEOF
30378 #define HAVE_LIBDBM 1
30379 _ACEOF
30380
30381   LIBS="-ldbm $LIBS"
30382
30383 fi
30384
30385             if test "$ac_cv_lib_dbm_main" = yes; then
30386
30387 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
30388 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
30389 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
30390   echo $ECHO_N "(cached) $ECHO_C" >&6
30391 else
30392   ac_check_lib_save_LIBS=$LIBS
30393 LIBS="-ldbm  $LIBS"
30394 cat >conftest.$ac_ext <<_ACEOF
30395 /* confdefs.h.  */
30396 _ACEOF
30397 cat confdefs.h >>conftest.$ac_ext
30398 cat >>conftest.$ac_ext <<_ACEOF
30399 /* end confdefs.h.  */
30400
30401 /* Override any gcc2 internal prototype to avoid an error.  */
30402 #ifdef __cplusplus
30403 extern "C"
30404 #endif
30405 /* We use char because int might match the return type of a gcc2
30406    builtin and then its argument prototype would still apply.  */
30407 char dbm_open ();
30408 int
30409 main ()
30410 {
30411 dbm_open ();
30412   ;
30413   return 0;
30414 }
30415 _ACEOF
30416 rm -f conftest.$ac_objext conftest$ac_exeext
30417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30418   (eval $ac_link) 2>conftest.er1
30419   ac_status=$?
30420   grep -v '^ *+' conftest.er1 >conftest.err
30421   rm -f conftest.er1
30422   cat conftest.err >&5
30423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424   (exit $ac_status); } &&
30425          { ac_try='test -z "$ac_c_werror_flag"
30426                          || test ! -s conftest.err'
30427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30428   (eval $ac_try) 2>&5
30429   ac_status=$?
30430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431   (exit $ac_status); }; } &&
30432          { ac_try='test -s conftest$ac_exeext'
30433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30434   (eval $ac_try) 2>&5
30435   ac_status=$?
30436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437   (exit $ac_status); }; }; then
30438   ac_cv_lib_dbm_dbm_open=yes
30439 else
30440   echo "$as_me: failed program was:" >&5
30441 sed 's/^/| /' conftest.$ac_ext >&5
30442
30443 ac_cv_lib_dbm_dbm_open=no
30444 fi
30445 rm -f conftest.err conftest.$ac_objext \
30446       conftest$ac_exeext conftest.$ac_ext
30447 LIBS=$ac_check_lib_save_LIBS
30448 fi
30449 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
30450 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
30451 if test $ac_cv_lib_dbm_dbm_open = yes; then
30452   cat >>confdefs.h <<_ACEOF
30453 #define HAVE_LIBDBM 1
30454 _ACEOF
30455
30456   LIBS="-ldbm $LIBS"
30457
30458 fi
30459
30460                 if test "$ac_cv_lib_dbm_dbm_open" = yes; then
30461                     DB_HEADER=dbm.h
30462                     DB_LIB=dbm
30463                 else
30464                     DB_STYLE=
30465                     { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&5
30466 echo "$as_me: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&2;}
30467                 fi
30468             else
30469                 if test "$ac_cv_lib_c_dbm_open" = yes; then
30470                     DB_HEADER=dbm.h
30471                     DB_LIB=c
30472                 else
30473                     DB_STYLE=
30474                     { echo "$as_me:$LINENO: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&5
30475 echo "$as_me: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&2;}
30476                 fi
30477             fi
30478         else
30479             DB_STYLE=
30480             { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm.h not found." >&5
30481 echo "$as_me: WARNING: *** dbm database library requested but dbm.h not found." >&2;}
30482         fi
30483         ;;
30484
30485     gdbm)
30486         if test "$ac_cv_header_ndbm_h" = yes; then
30487
30488 echo "$as_me:$LINENO: checking for main in -lgdbm" >&5
30489 echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
30490 if test "${ac_cv_lib_gdbm_main+set}" = set; then
30491   echo $ECHO_N "(cached) $ECHO_C" >&6
30492 else
30493   ac_check_lib_save_LIBS=$LIBS
30494 LIBS="-lgdbm  $LIBS"
30495 cat >conftest.$ac_ext <<_ACEOF
30496 /* confdefs.h.  */
30497 _ACEOF
30498 cat confdefs.h >>conftest.$ac_ext
30499 cat >>conftest.$ac_ext <<_ACEOF
30500 /* end confdefs.h.  */
30501
30502
30503 int
30504 main ()
30505 {
30506 main ();
30507   ;
30508   return 0;
30509 }
30510 _ACEOF
30511 rm -f conftest.$ac_objext conftest$ac_exeext
30512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30513   (eval $ac_link) 2>conftest.er1
30514   ac_status=$?
30515   grep -v '^ *+' conftest.er1 >conftest.err
30516   rm -f conftest.er1
30517   cat conftest.err >&5
30518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519   (exit $ac_status); } &&
30520          { ac_try='test -z "$ac_c_werror_flag"
30521                          || test ! -s conftest.err'
30522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30523   (eval $ac_try) 2>&5
30524   ac_status=$?
30525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526   (exit $ac_status); }; } &&
30527          { ac_try='test -s conftest$ac_exeext'
30528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30529   (eval $ac_try) 2>&5
30530   ac_status=$?
30531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532   (exit $ac_status); }; }; then
30533   ac_cv_lib_gdbm_main=yes
30534 else
30535   echo "$as_me: failed program was:" >&5
30536 sed 's/^/| /' conftest.$ac_ext >&5
30537
30538 ac_cv_lib_gdbm_main=no
30539 fi
30540 rm -f conftest.err conftest.$ac_objext \
30541       conftest$ac_exeext conftest.$ac_ext
30542 LIBS=$ac_check_lib_save_LIBS
30543 fi
30544 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_main" >&5
30545 echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
30546 if test $ac_cv_lib_gdbm_main = yes; then
30547   cat >>confdefs.h <<_ACEOF
30548 #define HAVE_LIBGDBM 1
30549 _ACEOF
30550
30551   LIBS="-lgdbm $LIBS"
30552
30553 fi
30554
30555             if test "$ac_cv_lib_gdbm_main" = yes; then
30556
30557 echo "$as_me:$LINENO: checking for dbm_open in -lgdbm" >&5
30558 echo $ECHO_N "checking for dbm_open in -lgdbm... $ECHO_C" >&6
30559 if test "${ac_cv_lib_gdbm_dbm_open+set}" = set; then
30560   echo $ECHO_N "(cached) $ECHO_C" >&6
30561 else
30562   ac_check_lib_save_LIBS=$LIBS
30563 LIBS="-lgdbm  $LIBS"
30564 cat >conftest.$ac_ext <<_ACEOF
30565 /* confdefs.h.  */
30566 _ACEOF
30567 cat confdefs.h >>conftest.$ac_ext
30568 cat >>conftest.$ac_ext <<_ACEOF
30569 /* end confdefs.h.  */
30570
30571 /* Override any gcc2 internal prototype to avoid an error.  */
30572 #ifdef __cplusplus
30573 extern "C"
30574 #endif
30575 /* We use char because int might match the return type of a gcc2
30576    builtin and then its argument prototype would still apply.  */
30577 char dbm_open ();
30578 int
30579 main ()
30580 {
30581 dbm_open ();
30582   ;
30583   return 0;
30584 }
30585 _ACEOF
30586 rm -f conftest.$ac_objext conftest$ac_exeext
30587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30588   (eval $ac_link) 2>conftest.er1
30589   ac_status=$?
30590   grep -v '^ *+' conftest.er1 >conftest.err
30591   rm -f conftest.er1
30592   cat conftest.err >&5
30593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594   (exit $ac_status); } &&
30595          { ac_try='test -z "$ac_c_werror_flag"
30596                          || test ! -s conftest.err'
30597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30598   (eval $ac_try) 2>&5
30599   ac_status=$?
30600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601   (exit $ac_status); }; } &&
30602          { ac_try='test -s conftest$ac_exeext'
30603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30604   (eval $ac_try) 2>&5
30605   ac_status=$?
30606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607   (exit $ac_status); }; }; then
30608   ac_cv_lib_gdbm_dbm_open=yes
30609 else
30610   echo "$as_me: failed program was:" >&5
30611 sed 's/^/| /' conftest.$ac_ext >&5
30612
30613 ac_cv_lib_gdbm_dbm_open=no
30614 fi
30615 rm -f conftest.err conftest.$ac_objext \
30616       conftest$ac_exeext conftest.$ac_ext
30617 LIBS=$ac_check_lib_save_LIBS
30618 fi
30619 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_dbm_open" >&5
30620 echo "${ECHO_T}$ac_cv_lib_gdbm_dbm_open" >&6
30621 if test $ac_cv_lib_gdbm_dbm_open = yes; then
30622   cat >>confdefs.h <<_ACEOF
30623 #define HAVE_LIBGDBM 1
30624 _ACEOF
30625
30626   LIBS="-lgdbm $LIBS"
30627
30628 fi
30629
30630                 if test "$ac_cv_lib_gdbm_dbm_open" = yes; then
30631                     DB_HEADER=ndbm.h
30632                     DB_LIB=gdbm
30633                 else
30634                     DB_STYLE=
30635                     { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but -lgdbm not found." >&5
30636 echo "$as_me: WARNING: *** gdbm database library requested but -lgdbm not found." >&2;}
30637                 fi
30638             else
30639                 if test "$ac_cv_lib_c_dbm_open" = yes; then
30640                     DB_HEADER=ndbm.h
30641                     DB_LIB=c
30642                 else
30643                     DB_STYLE=
30644                     { echo "$as_me:$LINENO: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&5
30645 echo "$as_me: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&2;}
30646                 fi
30647             fi
30648         else
30649             DB_STYLE=
30650             { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but ndbm.h not found." >&5
30651 echo "$as_me: WARNING: *** gdbm database library requested but ndbm.h not found." >&2;}
30652         fi
30653         ;;
30654
30655     ndbm)
30656         if test "$ac_cv_header_ndbm_h" = yes; then
30657
30658 echo "$as_me:$LINENO: checking for main in -lndbm" >&5
30659 echo $ECHO_N "checking for main in -lndbm... $ECHO_C" >&6
30660 if test "${ac_cv_lib_ndbm_main+set}" = set; then
30661   echo $ECHO_N "(cached) $ECHO_C" >&6
30662 else
30663   ac_check_lib_save_LIBS=$LIBS
30664 LIBS="-lndbm  $LIBS"
30665 cat >conftest.$ac_ext <<_ACEOF
30666 /* confdefs.h.  */
30667 _ACEOF
30668 cat confdefs.h >>conftest.$ac_ext
30669 cat >>conftest.$ac_ext <<_ACEOF
30670 /* end confdefs.h.  */
30671
30672
30673 int
30674 main ()
30675 {
30676 main ();
30677   ;
30678   return 0;
30679 }
30680 _ACEOF
30681 rm -f conftest.$ac_objext conftest$ac_exeext
30682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30683   (eval $ac_link) 2>conftest.er1
30684   ac_status=$?
30685   grep -v '^ *+' conftest.er1 >conftest.err
30686   rm -f conftest.er1
30687   cat conftest.err >&5
30688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689   (exit $ac_status); } &&
30690          { ac_try='test -z "$ac_c_werror_flag"
30691                          || test ! -s conftest.err'
30692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30693   (eval $ac_try) 2>&5
30694   ac_status=$?
30695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696   (exit $ac_status); }; } &&
30697          { ac_try='test -s conftest$ac_exeext'
30698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30699   (eval $ac_try) 2>&5
30700   ac_status=$?
30701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30702   (exit $ac_status); }; }; then
30703   ac_cv_lib_ndbm_main=yes
30704 else
30705   echo "$as_me: failed program was:" >&5
30706 sed 's/^/| /' conftest.$ac_ext >&5
30707
30708 ac_cv_lib_ndbm_main=no
30709 fi
30710 rm -f conftest.err conftest.$ac_objext \
30711       conftest$ac_exeext conftest.$ac_ext
30712 LIBS=$ac_check_lib_save_LIBS
30713 fi
30714 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_main" >&5
30715 echo "${ECHO_T}$ac_cv_lib_ndbm_main" >&6
30716 if test $ac_cv_lib_ndbm_main = yes; then
30717   cat >>confdefs.h <<_ACEOF
30718 #define HAVE_LIBNDBM 1
30719 _ACEOF
30720
30721   LIBS="-lndbm $LIBS"
30722
30723 fi
30724
30725             if test "$ac_cv_lib_ndbm_main" = yes; then
30726
30727 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
30728 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
30729 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
30730   echo $ECHO_N "(cached) $ECHO_C" >&6
30731 else
30732   ac_check_lib_save_LIBS=$LIBS
30733 LIBS="-lndbm  $LIBS"
30734 cat >conftest.$ac_ext <<_ACEOF
30735 /* confdefs.h.  */
30736 _ACEOF
30737 cat confdefs.h >>conftest.$ac_ext
30738 cat >>conftest.$ac_ext <<_ACEOF
30739 /* end confdefs.h.  */
30740
30741 /* Override any gcc2 internal prototype to avoid an error.  */
30742 #ifdef __cplusplus
30743 extern "C"
30744 #endif
30745 /* We use char because int might match the return type of a gcc2
30746    builtin and then its argument prototype would still apply.  */
30747 char dbm_open ();
30748 int
30749 main ()
30750 {
30751 dbm_open ();
30752   ;
30753   return 0;
30754 }
30755 _ACEOF
30756 rm -f conftest.$ac_objext conftest$ac_exeext
30757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30758   (eval $ac_link) 2>conftest.er1
30759   ac_status=$?
30760   grep -v '^ *+' conftest.er1 >conftest.err
30761   rm -f conftest.er1
30762   cat conftest.err >&5
30763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764   (exit $ac_status); } &&
30765          { ac_try='test -z "$ac_c_werror_flag"
30766                          || test ! -s conftest.err'
30767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30768   (eval $ac_try) 2>&5
30769   ac_status=$?
30770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771   (exit $ac_status); }; } &&
30772          { ac_try='test -s conftest$ac_exeext'
30773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30774   (eval $ac_try) 2>&5
30775   ac_status=$?
30776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777   (exit $ac_status); }; }; then
30778   ac_cv_lib_ndbm_dbm_open=yes
30779 else
30780   echo "$as_me: failed program was:" >&5
30781 sed 's/^/| /' conftest.$ac_ext >&5
30782
30783 ac_cv_lib_ndbm_dbm_open=no
30784 fi
30785 rm -f conftest.err conftest.$ac_objext \
30786       conftest$ac_exeext conftest.$ac_ext
30787 LIBS=$ac_check_lib_save_LIBS
30788 fi
30789 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
30790 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
30791 if test $ac_cv_lib_ndbm_dbm_open = yes; then
30792   cat >>confdefs.h <<_ACEOF
30793 #define HAVE_LIBNDBM 1
30794 _ACEOF
30795
30796   LIBS="-lndbm $LIBS"
30797
30798 fi
30799
30800                 if test "$ac_cv_lib_ndbm_dbm_open" = yes; then
30801                     DB_HEADER=ndbm.h
30802                     DB_LIB=ndbm
30803                 else
30804                     DB_STYLE=
30805                     { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but -lndbm not found." >&5
30806 echo "$as_me: WARNING: *** ndbm database library requested but -lndbm not found." >&2;}
30807                 fi
30808             else
30809                 if test "$ac_cv_lib_c_dbm_open" = yes; then
30810                     DB_HEADER=ndbm.h
30811                     DB_LIB=c
30812                 else
30813                     DB_STYLE=
30814                     { echo "$as_me:$LINENO: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&5
30815 echo "$as_me: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&2;}
30816                 fi
30817             fi
30818         else
30819             DB_STYLE=
30820             { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but ndbm.h not found." >&5
30821 echo "$as_me: WARNING: *** ndbm database library requested but ndbm.h not found." >&2;}
30822         fi
30823         ;;
30824     text)
30825         DB_HEADER=
30826         DB_LIB=
30827         ;;
30828 esac
30829
30830
30831 if test -z "$DB_STYLE"; then
30832     DB_STYLE=text
30833     DB_HEADER=
30834     DB_LIB=
30835 fi
30836
30837
30838 if test "$DB_STYLE" = text; then
30839
30840 cat >>confdefs.h <<\_ACEOF
30841 #define TEXTDB 1
30842 _ACEOF
30843
30844 else
30845     echo "$as_me:$LINENO: checking for database" >&5
30846 echo $ECHO_N "checking for database... $ECHO_C" >&6
30847     echo "$as_me:$LINENO: result: header is $DB_HEADER, linking against -l$DB_LIB" >&5
30848 echo "${ECHO_T}header is $DB_HEADER, linking against -l$DB_LIB" >&6
30849     case "$DB_STYLE" in
30850         db)
30851 cat >>confdefs.h <<\_ACEOF
30852 #define USE_DB_H 1
30853 _ACEOF
30854    ;;
30855         dbm)
30856 cat >>confdefs.h <<\_ACEOF
30857 #define USE_DBM_H 1
30858 _ACEOF
30859   ;;
30860         gdbm)
30861 cat >>confdefs.h <<\_ACEOF
30862 #define USE_GDBM_H 1
30863 _ACEOF
30864  ;;
30865         ndbm)
30866 cat >>confdefs.h <<\_ACEOF
30867 #define USE_NDBM_H 1
30868 _ACEOF
30869  ;;
30870     esac
30871
30872     echo "$as_me:$LINENO: checking for struct datum declared in header files" >&5
30873 echo $ECHO_N "checking for struct datum declared in header files... $ECHO_C" >&6
30874 if test "${amanda_cv_struct_datum+set}" = set; then
30875   echo $ECHO_N "(cached) $ECHO_C" >&6
30876 else
30877
30878             cat >conftest.$ac_ext <<_ACEOF
30879 /* confdefs.h.  */
30880 _ACEOF
30881 cat confdefs.h >>conftest.$ac_ext
30882 cat >>conftest.$ac_ext <<_ACEOF
30883 /* end confdefs.h.  */
30884
30885 #if defined(USE_DB_H)
30886 #  include <db.h>
30887 #else
30888 #  if defined(USE_DBM_H)
30889 #    include <dbm.h>
30890 #  else
30891 #    if defined(USE_NDBM_H)
30892 #      include <ndbm.h>
30893 #    endif
30894 #  endif
30895 #endif
30896
30897 int
30898 main ()
30899 {
30900
30901                     datum a;
30902
30903   ;
30904   return 0;
30905 }
30906 _ACEOF
30907 rm -f conftest.$ac_objext
30908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30909   (eval $ac_compile) 2>conftest.er1
30910   ac_status=$?
30911   grep -v '^ *+' conftest.er1 >conftest.err
30912   rm -f conftest.er1
30913   cat conftest.err >&5
30914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30915   (exit $ac_status); } &&
30916          { ac_try='test -z "$ac_c_werror_flag"
30917                          || test ! -s conftest.err'
30918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30919   (eval $ac_try) 2>&5
30920   ac_status=$?
30921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30922   (exit $ac_status); }; } &&
30923          { ac_try='test -s conftest.$ac_objext'
30924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30925   (eval $ac_try) 2>&5
30926   ac_status=$?
30927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30928   (exit $ac_status); }; }; then
30929   amanda_cv_struct_datum=yes
30930 else
30931   echo "$as_me: failed program was:" >&5
30932 sed 's/^/| /' conftest.$ac_ext >&5
30933
30934 amanda_cv_struct_datum=no
30935
30936 fi
30937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30938
30939 fi
30940 echo "$as_me:$LINENO: result: $amanda_cv_struct_datum" >&5
30941 echo "${ECHO_T}$amanda_cv_struct_datum" >&6
30942     if test "$amanda_cv_struct_datum" = yes; then
30943
30944 cat >>confdefs.h <<\_ACEOF
30945 #define HAVE_STRUCT_DATUM 1
30946 _ACEOF
30947
30948     fi
30949 fi
30950
30951 case "$DB_STYLE" in
30952     db) DB_EXT=.db;;
30953     gdbm) DB_EXT='""';;
30954     dbm | ndbm) DB_EXT=".dir .pag";;
30955     text) DB_EXT='""';;
30956     *) DB_EXT=;;
30957 esac
30958
30959
30960 echo "$as_me:$LINENO: checking whether _POSIX2_RE_DUP_MAX is defined" >&5
30961 echo $ECHO_N "checking whether _POSIX2_RE_DUP_MAX is defined... $ECHO_C" >&6
30962 if test "${amanda_cv_have__posix2_re_dup_max+set}" = set; then
30963   echo $ECHO_N "(cached) $ECHO_C" >&6
30964 else
30965   cat >conftest.$ac_ext <<_ACEOF
30966 /* confdefs.h.  */
30967 _ACEOF
30968 cat confdefs.h >>conftest.$ac_ext
30969 cat >>conftest.$ac_ext <<_ACEOF
30970 /* end confdefs.h.  */
30971
30972 #include <limits.h>
30973 #ifdef _POSIX2_RE_DUP_MAX
30974   yes
30975 #endif
30976
30977 _ACEOF
30978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30979   $EGREP "yes" >/dev/null 2>&1; then
30980   amanda_cv_have__posix2_re_dup_max=yes
30981 else
30982   amanda_cv_have__posix2_re_dup_max=no
30983 fi
30984 rm -f conftest*
30985
30986 fi
30987 echo "$as_me:$LINENO: result: $amanda_cv_have__posix2_re_dup_max" >&5
30988 echo "${ECHO_T}$amanda_cv_have__posix2_re_dup_max" >&6
30989 if test "$amanda_cv_have__posix2_re_dup_max" = yes; then
30990
30991 cat >>confdefs.h <<\_ACEOF
30992 #define HAVE__POSIX2_RE_DUP_MAX 1
30993 _ACEOF
30994
30995 fi
30996
30997 echo "$as_me:$LINENO: checking whether CHAR_MIN is defined" >&5
30998 echo $ECHO_N "checking whether CHAR_MIN is defined... $ECHO_C" >&6
30999 if test "${amanda_cv_have_char_min+set}" = set; then
31000   echo $ECHO_N "(cached) $ECHO_C" >&6
31001 else
31002   cat >conftest.$ac_ext <<_ACEOF
31003 /* confdefs.h.  */
31004 _ACEOF
31005 cat confdefs.h >>conftest.$ac_ext
31006 cat >>conftest.$ac_ext <<_ACEOF
31007 /* end confdefs.h.  */
31008
31009 #include <limits.h>
31010 #ifdef CHAR_MIN
31011   yes
31012 #endif
31013
31014 _ACEOF
31015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31016   $EGREP "yes" >/dev/null 2>&1; then
31017   amanda_cv_have_char_min=yes
31018 else
31019   amanda_cv_have_char_min=no
31020 fi
31021 rm -f conftest*
31022
31023 fi
31024 echo "$as_me:$LINENO: result: $amanda_cv_have_char_min" >&5
31025 echo "${ECHO_T}$amanda_cv_have_char_min" >&6
31026 if test "$amanda_cv_have_char_min" = yes; then
31027
31028 cat >>confdefs.h <<\_ACEOF
31029 #define HAVE_CHAR_MIN 1
31030 _ACEOF
31031
31032 fi
31033
31034 echo "$as_me:$LINENO: checking whether CHAR_MAX is defined" >&5
31035 echo $ECHO_N "checking whether CHAR_MAX is defined... $ECHO_C" >&6
31036 if test "${amanda_cv_have_char_max+set}" = set; then
31037   echo $ECHO_N "(cached) $ECHO_C" >&6
31038 else
31039   cat >conftest.$ac_ext <<_ACEOF
31040 /* confdefs.h.  */
31041 _ACEOF
31042 cat confdefs.h >>conftest.$ac_ext
31043 cat >>conftest.$ac_ext <<_ACEOF
31044 /* end confdefs.h.  */
31045
31046 #include <limits.h>
31047 #ifdef CHAR_MAX
31048   yes
31049 #endif
31050
31051 _ACEOF
31052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31053   $EGREP "yes" >/dev/null 2>&1; then
31054   amanda_cv_have_char_max=yes
31055 else
31056   amanda_cv_have_char_max=no
31057 fi
31058 rm -f conftest*
31059
31060 fi
31061 echo "$as_me:$LINENO: result: $amanda_cv_have_char_max" >&5
31062 echo "${ECHO_T}$amanda_cv_have_char_max" >&6
31063 if test "$amanda_cv_have_char_max" = yes; then
31064
31065 cat >>confdefs.h <<\_ACEOF
31066 #define HAVE_CHAR_MAX 1
31067 _ACEOF
31068
31069 fi
31070
31071 echo "$as_me:$LINENO: checking whether CHAR_BIT is defined" >&5
31072 echo $ECHO_N "checking whether CHAR_BIT is defined... $ECHO_C" >&6
31073 if test "${amanda_cv_have_char_bit+set}" = set; then
31074   echo $ECHO_N "(cached) $ECHO_C" >&6
31075 else
31076   cat >conftest.$ac_ext <<_ACEOF
31077 /* confdefs.h.  */
31078 _ACEOF
31079 cat confdefs.h >>conftest.$ac_ext
31080 cat >>conftest.$ac_ext <<_ACEOF
31081 /* end confdefs.h.  */
31082
31083 #include <limits.h>
31084 #ifdef CHAR_BIT
31085   yes
31086 #endif
31087
31088 _ACEOF
31089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31090   $EGREP "yes" >/dev/null 2>&1; then
31091   amanda_cv_have_char_bit=yes
31092 else
31093   amanda_cv_have_char_bit=no
31094 fi
31095 rm -f conftest*
31096
31097 fi
31098 echo "$as_me:$LINENO: result: $amanda_cv_have_char_bit" >&5
31099 echo "${ECHO_T}$amanda_cv_have_char_bit" >&6
31100 if test "$amanda_cv_have_char_bit" = yes; then
31101
31102 cat >>confdefs.h <<\_ACEOF
31103 #define HAVE_CHAR_BIT 1
31104 _ACEOF
31105
31106 fi
31107
31108
31109 ice_have_accept=no
31110
31111 for ac_func in accept
31112 do
31113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31114 echo "$as_me:$LINENO: checking for $ac_func" >&5
31115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31116 if eval "test \"\${$as_ac_var+set}\" = set"; then
31117   echo $ECHO_N "(cached) $ECHO_C" >&6
31118 else
31119   cat >conftest.$ac_ext <<_ACEOF
31120 /* confdefs.h.  */
31121 _ACEOF
31122 cat confdefs.h >>conftest.$ac_ext
31123 cat >>conftest.$ac_ext <<_ACEOF
31124 /* end confdefs.h.  */
31125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31127 #define $ac_func innocuous_$ac_func
31128
31129 /* System header to define __stub macros and hopefully few prototypes,
31130     which can conflict with char $ac_func (); below.
31131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31132     <limits.h> exists even on freestanding compilers.  */
31133
31134 #ifdef __STDC__
31135 # include <limits.h>
31136 #else
31137 # include <assert.h>
31138 #endif
31139
31140 #undef $ac_func
31141
31142 /* Override any gcc2 internal prototype to avoid an error.  */
31143 #ifdef __cplusplus
31144 extern "C"
31145 {
31146 #endif
31147 /* We use char because int might match the return type of a gcc2
31148    builtin and then its argument prototype would still apply.  */
31149 char $ac_func ();
31150 /* The GNU C library defines this for functions which it implements
31151     to always fail with ENOSYS.  Some functions are actually named
31152     something starting with __ and the normal name is an alias.  */
31153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31154 choke me
31155 #else
31156 char (*f) () = $ac_func;
31157 #endif
31158 #ifdef __cplusplus
31159 }
31160 #endif
31161
31162 int
31163 main ()
31164 {
31165 return f != $ac_func;
31166   ;
31167   return 0;
31168 }
31169 _ACEOF
31170 rm -f conftest.$ac_objext conftest$ac_exeext
31171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31172   (eval $ac_link) 2>conftest.er1
31173   ac_status=$?
31174   grep -v '^ *+' conftest.er1 >conftest.err
31175   rm -f conftest.er1
31176   cat conftest.err >&5
31177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178   (exit $ac_status); } &&
31179          { ac_try='test -z "$ac_c_werror_flag"
31180                          || test ! -s conftest.err'
31181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31182   (eval $ac_try) 2>&5
31183   ac_status=$?
31184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185   (exit $ac_status); }; } &&
31186          { ac_try='test -s conftest$ac_exeext'
31187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31188   (eval $ac_try) 2>&5
31189   ac_status=$?
31190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31191   (exit $ac_status); }; }; then
31192   eval "$as_ac_var=yes"
31193 else
31194   echo "$as_me: failed program was:" >&5
31195 sed 's/^/| /' conftest.$ac_ext >&5
31196
31197 eval "$as_ac_var=no"
31198 fi
31199 rm -f conftest.err conftest.$ac_objext \
31200       conftest$ac_exeext conftest.$ac_ext
31201 fi
31202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31204 if test `eval echo '${'$as_ac_var'}'` = yes; then
31205   cat >>confdefs.h <<_ACEOF
31206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31207 _ACEOF
31208  ice_have_accept=yes
31209 fi
31210 done
31211
31212 if test "${ice_have_accept}" = yes; then
31213 echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
31214 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
31215 if test "${ice_cv_have_accept_decl+set}" = set; then
31216   echo $ECHO_N "(cached) $ECHO_C" >&6
31217 else
31218
31219 ice_cv_have_accept_decl=no
31220 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
31221 ice_re_word='(^|[^a-zA-Z0-9_])'
31222 for header in sys/types.h sys/socket.h; do
31223 # Check for ordinary declaration
31224 cat >conftest.$ac_ext <<_ACEOF
31225 /* confdefs.h.  */
31226 _ACEOF
31227 cat confdefs.h >>conftest.$ac_ext
31228 cat >>conftest.$ac_ext <<_ACEOF
31229 /* end confdefs.h.  */
31230 #include <$header>
31231
31232 _ACEOF
31233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31234   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
31235   ice_cv_have_accept_decl=yes
31236 fi
31237 rm -f conftest*
31238
31239 if test "$ice_cv_have_accept_decl" = yes; then
31240         break
31241 fi
31242 # Check for "fixed" declaration like "getpid _PARAMS((int))"
31243 cat >conftest.$ac_ext <<_ACEOF
31244 /* confdefs.h.  */
31245 _ACEOF
31246 cat confdefs.h >>conftest.$ac_ext
31247 cat >>conftest.$ac_ext <<_ACEOF
31248 /* end confdefs.h.  */
31249 #include <$header>
31250
31251 _ACEOF
31252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31253   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
31254   ice_cv_have_accept_decl=yes
31255 fi
31256 rm -f conftest*
31257
31258 if test "$ice_cv_have_accept_decl" = yes; then
31259         break
31260 fi
31261 done
31262
31263 fi
31264
31265 echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
31266 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6
31267 if test "$ice_cv_have_accept_decl" = yes; then
31268
31269 cat >>confdefs.h <<_ACEOF
31270 #define HAVE_ACCEPT_DECL 1
31271 _ACEOF
31272
31273 fi
31274 fi
31275
31276 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31277 # for constant arguments.  Useless!
31278 echo "$as_me:$LINENO: checking for working alloca.h" >&5
31279 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
31280 if test "${ac_cv_working_alloca_h+set}" = set; then
31281   echo $ECHO_N "(cached) $ECHO_C" >&6
31282 else
31283   cat >conftest.$ac_ext <<_ACEOF
31284 /* confdefs.h.  */
31285 _ACEOF
31286 cat confdefs.h >>conftest.$ac_ext
31287 cat >>conftest.$ac_ext <<_ACEOF
31288 /* end confdefs.h.  */
31289 #include <alloca.h>
31290 int
31291 main ()
31292 {
31293 char *p = (char *) alloca (2 * sizeof (int));
31294   ;
31295   return 0;
31296 }
31297 _ACEOF
31298 rm -f conftest.$ac_objext conftest$ac_exeext
31299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31300   (eval $ac_link) 2>conftest.er1
31301   ac_status=$?
31302   grep -v '^ *+' conftest.er1 >conftest.err
31303   rm -f conftest.er1
31304   cat conftest.err >&5
31305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306   (exit $ac_status); } &&
31307          { ac_try='test -z "$ac_c_werror_flag"
31308                          || test ! -s conftest.err'
31309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31310   (eval $ac_try) 2>&5
31311   ac_status=$?
31312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313   (exit $ac_status); }; } &&
31314          { ac_try='test -s conftest$ac_exeext'
31315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31316   (eval $ac_try) 2>&5
31317   ac_status=$?
31318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319   (exit $ac_status); }; }; then
31320   ac_cv_working_alloca_h=yes
31321 else
31322   echo "$as_me: failed program was:" >&5
31323 sed 's/^/| /' conftest.$ac_ext >&5
31324
31325 ac_cv_working_alloca_h=no
31326 fi
31327 rm -f conftest.err conftest.$ac_objext \
31328       conftest$ac_exeext conftest.$ac_ext
31329 fi
31330 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31331 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
31332 if test $ac_cv_working_alloca_h = yes; then
31333
31334 cat >>confdefs.h <<\_ACEOF
31335 #define HAVE_ALLOCA_H 1
31336 _ACEOF
31337
31338 fi
31339
31340 echo "$as_me:$LINENO: checking for alloca" >&5
31341 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
31342 if test "${ac_cv_func_alloca_works+set}" = set; then
31343   echo $ECHO_N "(cached) $ECHO_C" >&6
31344 else
31345   cat >conftest.$ac_ext <<_ACEOF
31346 /* confdefs.h.  */
31347 _ACEOF
31348 cat confdefs.h >>conftest.$ac_ext
31349 cat >>conftest.$ac_ext <<_ACEOF
31350 /* end confdefs.h.  */
31351 #ifdef __GNUC__
31352 # define alloca __builtin_alloca
31353 #else
31354 # ifdef _MSC_VER
31355 #  include <malloc.h>
31356 #  define alloca _alloca
31357 # else
31358 #  if HAVE_ALLOCA_H
31359 #   include <alloca.h>
31360 #  else
31361 #   ifdef _AIX
31362  #pragma alloca
31363 #   else
31364 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31365 char *alloca ();
31366 #    endif
31367 #   endif
31368 #  endif
31369 # endif
31370 #endif
31371
31372 int
31373 main ()
31374 {
31375 char *p = (char *) alloca (1);
31376   ;
31377   return 0;
31378 }
31379 _ACEOF
31380 rm -f conftest.$ac_objext conftest$ac_exeext
31381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31382   (eval $ac_link) 2>conftest.er1
31383   ac_status=$?
31384   grep -v '^ *+' conftest.er1 >conftest.err
31385   rm -f conftest.er1
31386   cat conftest.err >&5
31387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388   (exit $ac_status); } &&
31389          { ac_try='test -z "$ac_c_werror_flag"
31390                          || test ! -s conftest.err'
31391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31392   (eval $ac_try) 2>&5
31393   ac_status=$?
31394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395   (exit $ac_status); }; } &&
31396          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
31402   ac_cv_func_alloca_works=yes
31403 else
31404   echo "$as_me: failed program was:" >&5
31405 sed 's/^/| /' conftest.$ac_ext >&5
31406
31407 ac_cv_func_alloca_works=no
31408 fi
31409 rm -f conftest.err conftest.$ac_objext \
31410       conftest$ac_exeext conftest.$ac_ext
31411 fi
31412 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31413 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
31414
31415 if test $ac_cv_func_alloca_works = yes; then
31416
31417 cat >>confdefs.h <<\_ACEOF
31418 #define HAVE_ALLOCA 1
31419 _ACEOF
31420
31421 else
31422   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31423 # that cause trouble.  Some versions do not even contain alloca or
31424 # contain a buggy version.  If you still want to use their alloca,
31425 # use ar to extract alloca.o from them instead of compiling alloca.c.
31426
31427 ALLOCA=alloca.$ac_objext
31428
31429 cat >>confdefs.h <<\_ACEOF
31430 #define C_ALLOCA 1
31431 _ACEOF
31432
31433
31434 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31435 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
31436 if test "${ac_cv_os_cray+set}" = set; then
31437   echo $ECHO_N "(cached) $ECHO_C" >&6
31438 else
31439   cat >conftest.$ac_ext <<_ACEOF
31440 /* confdefs.h.  */
31441 _ACEOF
31442 cat confdefs.h >>conftest.$ac_ext
31443 cat >>conftest.$ac_ext <<_ACEOF
31444 /* end confdefs.h.  */
31445 #if defined(CRAY) && ! defined(CRAY2)
31446 webecray
31447 #else
31448 wenotbecray
31449 #endif
31450
31451 _ACEOF
31452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31453   $EGREP "webecray" >/dev/null 2>&1; then
31454   ac_cv_os_cray=yes
31455 else
31456   ac_cv_os_cray=no
31457 fi
31458 rm -f conftest*
31459
31460 fi
31461 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31462 echo "${ECHO_T}$ac_cv_os_cray" >&6
31463 if test $ac_cv_os_cray = yes; then
31464   for ac_func in _getb67 GETB67 getb67; do
31465     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31466 echo "$as_me:$LINENO: checking for $ac_func" >&5
31467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31468 if eval "test \"\${$as_ac_var+set}\" = set"; then
31469   echo $ECHO_N "(cached) $ECHO_C" >&6
31470 else
31471   cat >conftest.$ac_ext <<_ACEOF
31472 /* confdefs.h.  */
31473 _ACEOF
31474 cat confdefs.h >>conftest.$ac_ext
31475 cat >>conftest.$ac_ext <<_ACEOF
31476 /* end confdefs.h.  */
31477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31479 #define $ac_func innocuous_$ac_func
31480
31481 /* System header to define __stub macros and hopefully few prototypes,
31482     which can conflict with char $ac_func (); below.
31483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31484     <limits.h> exists even on freestanding compilers.  */
31485
31486 #ifdef __STDC__
31487 # include <limits.h>
31488 #else
31489 # include <assert.h>
31490 #endif
31491
31492 #undef $ac_func
31493
31494 /* Override any gcc2 internal prototype to avoid an error.  */
31495 #ifdef __cplusplus
31496 extern "C"
31497 {
31498 #endif
31499 /* We use char because int might match the return type of a gcc2
31500    builtin and then its argument prototype would still apply.  */
31501 char $ac_func ();
31502 /* The GNU C library defines this for functions which it implements
31503     to always fail with ENOSYS.  Some functions are actually named
31504     something starting with __ and the normal name is an alias.  */
31505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31506 choke me
31507 #else
31508 char (*f) () = $ac_func;
31509 #endif
31510 #ifdef __cplusplus
31511 }
31512 #endif
31513
31514 int
31515 main ()
31516 {
31517 return f != $ac_func;
31518   ;
31519   return 0;
31520 }
31521 _ACEOF
31522 rm -f conftest.$ac_objext conftest$ac_exeext
31523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31524   (eval $ac_link) 2>conftest.er1
31525   ac_status=$?
31526   grep -v '^ *+' conftest.er1 >conftest.err
31527   rm -f conftest.er1
31528   cat conftest.err >&5
31529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530   (exit $ac_status); } &&
31531          { ac_try='test -z "$ac_c_werror_flag"
31532                          || test ! -s conftest.err'
31533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31534   (eval $ac_try) 2>&5
31535   ac_status=$?
31536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537   (exit $ac_status); }; } &&
31538          { ac_try='test -s conftest$ac_exeext'
31539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31540   (eval $ac_try) 2>&5
31541   ac_status=$?
31542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543   (exit $ac_status); }; }; then
31544   eval "$as_ac_var=yes"
31545 else
31546   echo "$as_me: failed program was:" >&5
31547 sed 's/^/| /' conftest.$ac_ext >&5
31548
31549 eval "$as_ac_var=no"
31550 fi
31551 rm -f conftest.err conftest.$ac_objext \
31552       conftest$ac_exeext conftest.$ac_ext
31553 fi
31554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31556 if test `eval echo '${'$as_ac_var'}'` = yes; then
31557
31558 cat >>confdefs.h <<_ACEOF
31559 #define CRAY_STACKSEG_END $ac_func
31560 _ACEOF
31561
31562     break
31563 fi
31564
31565   done
31566 fi
31567
31568 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31569 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
31570 if test "${ac_cv_c_stack_direction+set}" = set; then
31571   echo $ECHO_N "(cached) $ECHO_C" >&6
31572 else
31573   if test "$cross_compiling" = yes; then
31574   ac_cv_c_stack_direction=0
31575 else
31576   cat >conftest.$ac_ext <<_ACEOF
31577 /* confdefs.h.  */
31578 _ACEOF
31579 cat confdefs.h >>conftest.$ac_ext
31580 cat >>conftest.$ac_ext <<_ACEOF
31581 /* end confdefs.h.  */
31582 int
31583 find_stack_direction ()
31584 {
31585   static char *addr = 0;
31586   auto char dummy;
31587   if (addr == 0)
31588     {
31589       addr = &dummy;
31590       return find_stack_direction ();
31591     }
31592   else
31593     return (&dummy > addr) ? 1 : -1;
31594 }
31595
31596 int
31597 main ()
31598 {
31599   exit (find_stack_direction () < 0);
31600 }
31601 _ACEOF
31602 rm -f conftest$ac_exeext
31603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31604   (eval $ac_link) 2>&5
31605   ac_status=$?
31606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31609   (eval $ac_try) 2>&5
31610   ac_status=$?
31611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612   (exit $ac_status); }; }; then
31613   ac_cv_c_stack_direction=1
31614 else
31615   echo "$as_me: program exited with status $ac_status" >&5
31616 echo "$as_me: failed program was:" >&5
31617 sed 's/^/| /' conftest.$ac_ext >&5
31618
31619 ( exit $ac_status )
31620 ac_cv_c_stack_direction=-1
31621 fi
31622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31623 fi
31624 fi
31625 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31626 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
31627
31628 cat >>confdefs.h <<_ACEOF
31629 #define STACK_DIRECTION $ac_cv_c_stack_direction
31630 _ACEOF
31631
31632
31633 fi
31634
31635
31636 for ac_func in atexit
31637 do
31638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31639 echo "$as_me:$LINENO: checking for $ac_func" >&5
31640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31641 if eval "test \"\${$as_ac_var+set}\" = set"; then
31642   echo $ECHO_N "(cached) $ECHO_C" >&6
31643 else
31644   cat >conftest.$ac_ext <<_ACEOF
31645 /* confdefs.h.  */
31646 _ACEOF
31647 cat confdefs.h >>conftest.$ac_ext
31648 cat >>conftest.$ac_ext <<_ACEOF
31649 /* end confdefs.h.  */
31650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31652 #define $ac_func innocuous_$ac_func
31653
31654 /* System header to define __stub macros and hopefully few prototypes,
31655     which can conflict with char $ac_func (); below.
31656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31657     <limits.h> exists even on freestanding compilers.  */
31658
31659 #ifdef __STDC__
31660 # include <limits.h>
31661 #else
31662 # include <assert.h>
31663 #endif
31664
31665 #undef $ac_func
31666
31667 /* Override any gcc2 internal prototype to avoid an error.  */
31668 #ifdef __cplusplus
31669 extern "C"
31670 {
31671 #endif
31672 /* We use char because int might match the return type of a gcc2
31673    builtin and then its argument prototype would still apply.  */
31674 char $ac_func ();
31675 /* The GNU C library defines this for functions which it implements
31676     to always fail with ENOSYS.  Some functions are actually named
31677     something starting with __ and the normal name is an alias.  */
31678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31679 choke me
31680 #else
31681 char (*f) () = $ac_func;
31682 #endif
31683 #ifdef __cplusplus
31684 }
31685 #endif
31686
31687 int
31688 main ()
31689 {
31690 return f != $ac_func;
31691   ;
31692   return 0;
31693 }
31694 _ACEOF
31695 rm -f conftest.$ac_objext conftest$ac_exeext
31696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31697   (eval $ac_link) 2>conftest.er1
31698   ac_status=$?
31699   grep -v '^ *+' conftest.er1 >conftest.err
31700   rm -f conftest.er1
31701   cat conftest.err >&5
31702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703   (exit $ac_status); } &&
31704          { ac_try='test -z "$ac_c_werror_flag"
31705                          || test ! -s conftest.err'
31706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31707   (eval $ac_try) 2>&5
31708   ac_status=$?
31709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710   (exit $ac_status); }; } &&
31711          { ac_try='test -s conftest$ac_exeext'
31712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31713   (eval $ac_try) 2>&5
31714   ac_status=$?
31715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31716   (exit $ac_status); }; }; then
31717   eval "$as_ac_var=yes"
31718 else
31719   echo "$as_me: failed program was:" >&5
31720 sed 's/^/| /' conftest.$ac_ext >&5
31721
31722 eval "$as_ac_var=no"
31723 fi
31724 rm -f conftest.err conftest.$ac_objext \
31725       conftest$ac_exeext conftest.$ac_ext
31726 fi
31727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31729 if test `eval echo '${'$as_ac_var'}'` = yes; then
31730   cat >>confdefs.h <<_ACEOF
31731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31732 _ACEOF
31733
31734 fi
31735 done
31736
31737
31738 ice_have_atof=no
31739
31740 for ac_func in atof
31741 do
31742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31743 echo "$as_me:$LINENO: checking for $ac_func" >&5
31744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31745 if eval "test \"\${$as_ac_var+set}\" = set"; then
31746   echo $ECHO_N "(cached) $ECHO_C" >&6
31747 else
31748   cat >conftest.$ac_ext <<_ACEOF
31749 /* confdefs.h.  */
31750 _ACEOF
31751 cat confdefs.h >>conftest.$ac_ext
31752 cat >>conftest.$ac_ext <<_ACEOF
31753 /* end confdefs.h.  */
31754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31756 #define $ac_func innocuous_$ac_func
31757
31758 /* System header to define __stub macros and hopefully few prototypes,
31759     which can conflict with char $ac_func (); below.
31760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31761     <limits.h> exists even on freestanding compilers.  */
31762
31763 #ifdef __STDC__
31764 # include <limits.h>
31765 #else
31766 # include <assert.h>
31767 #endif
31768
31769 #undef $ac_func
31770
31771 /* Override any gcc2 internal prototype to avoid an error.  */
31772 #ifdef __cplusplus
31773 extern "C"
31774 {
31775 #endif
31776 /* We use char because int might match the return type of a gcc2
31777    builtin and then its argument prototype would still apply.  */
31778 char $ac_func ();
31779 /* The GNU C library defines this for functions which it implements
31780     to always fail with ENOSYS.  Some functions are actually named
31781     something starting with __ and the normal name is an alias.  */
31782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31783 choke me
31784 #else
31785 char (*f) () = $ac_func;
31786 #endif
31787 #ifdef __cplusplus
31788 }
31789 #endif
31790
31791 int
31792 main ()
31793 {
31794 return f != $ac_func;
31795   ;
31796   return 0;
31797 }
31798 _ACEOF
31799 rm -f conftest.$ac_objext conftest$ac_exeext
31800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31801   (eval $ac_link) 2>conftest.er1
31802   ac_status=$?
31803   grep -v '^ *+' conftest.er1 >conftest.err
31804   rm -f conftest.er1
31805   cat conftest.err >&5
31806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807   (exit $ac_status); } &&
31808          { ac_try='test -z "$ac_c_werror_flag"
31809                          || test ! -s conftest.err'
31810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31811   (eval $ac_try) 2>&5
31812   ac_status=$?
31813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814   (exit $ac_status); }; } &&
31815          { ac_try='test -s conftest$ac_exeext'
31816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31817   (eval $ac_try) 2>&5
31818   ac_status=$?
31819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820   (exit $ac_status); }; }; then
31821   eval "$as_ac_var=yes"
31822 else
31823   echo "$as_me: failed program was:" >&5
31824 sed 's/^/| /' conftest.$ac_ext >&5
31825
31826 eval "$as_ac_var=no"
31827 fi
31828 rm -f conftest.err conftest.$ac_objext \
31829       conftest$ac_exeext conftest.$ac_ext
31830 fi
31831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31833 if test `eval echo '${'$as_ac_var'}'` = yes; then
31834   cat >>confdefs.h <<_ACEOF
31835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31836 _ACEOF
31837  ice_have_atof=yes
31838 fi
31839 done
31840
31841 if test "${ice_have_atof}" = yes; then
31842 echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
31843 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6
31844 if test "${ice_cv_have_atof_decl+set}" = set; then
31845   echo $ECHO_N "(cached) $ECHO_C" >&6
31846 else
31847
31848 ice_cv_have_atof_decl=no
31849 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
31850 ice_re_word='(^|[^a-zA-Z0-9_])'
31851 for header in stdlib.h; do
31852 # Check for ordinary declaration
31853 cat >conftest.$ac_ext <<_ACEOF
31854 /* confdefs.h.  */
31855 _ACEOF
31856 cat confdefs.h >>conftest.$ac_ext
31857 cat >>conftest.$ac_ext <<_ACEOF
31858 /* end confdefs.h.  */
31859 #include <$header>
31860
31861 _ACEOF
31862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31863   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
31864   ice_cv_have_atof_decl=yes
31865 fi
31866 rm -f conftest*
31867
31868 if test "$ice_cv_have_atof_decl" = yes; then
31869         break
31870 fi
31871 # Check for "fixed" declaration like "getpid _PARAMS((int))"
31872 cat >conftest.$ac_ext <<_ACEOF
31873 /* confdefs.h.  */
31874 _ACEOF
31875 cat confdefs.h >>conftest.$ac_ext
31876 cat >>conftest.$ac_ext <<_ACEOF
31877 /* end confdefs.h.  */
31878 #include <$header>
31879
31880 _ACEOF
31881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31882   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
31883   ice_cv_have_atof_decl=yes
31884 fi
31885 rm -f conftest*
31886
31887 if test "$ice_cv_have_atof_decl" = yes; then
31888         break
31889 fi
31890 done
31891
31892 fi
31893
31894 echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
31895 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6
31896 if test "$ice_cv_have_atof_decl" = yes; then
31897
31898 cat >>confdefs.h <<_ACEOF
31899 #define HAVE_ATOF_DECL 1
31900 _ACEOF
31901
31902 fi
31903 fi
31904
31905
31906 for ac_func in basename
31907 do
31908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31909 echo "$as_me:$LINENO: checking for $ac_func" >&5
31910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31911 if eval "test \"\${$as_ac_var+set}\" = set"; then
31912   echo $ECHO_N "(cached) $ECHO_C" >&6
31913 else
31914   cat >conftest.$ac_ext <<_ACEOF
31915 /* confdefs.h.  */
31916 _ACEOF
31917 cat confdefs.h >>conftest.$ac_ext
31918 cat >>conftest.$ac_ext <<_ACEOF
31919 /* end confdefs.h.  */
31920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31922 #define $ac_func innocuous_$ac_func
31923
31924 /* System header to define __stub macros and hopefully few prototypes,
31925     which can conflict with char $ac_func (); below.
31926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31927     <limits.h> exists even on freestanding compilers.  */
31928
31929 #ifdef __STDC__
31930 # include <limits.h>
31931 #else
31932 # include <assert.h>
31933 #endif
31934
31935 #undef $ac_func
31936
31937 /* Override any gcc2 internal prototype to avoid an error.  */
31938 #ifdef __cplusplus
31939 extern "C"
31940 {
31941 #endif
31942 /* We use char because int might match the return type of a gcc2
31943    builtin and then its argument prototype would still apply.  */
31944 char $ac_func ();
31945 /* The GNU C library defines this for functions which it implements
31946     to always fail with ENOSYS.  Some functions are actually named
31947     something starting with __ and the normal name is an alias.  */
31948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31949 choke me
31950 #else
31951 char (*f) () = $ac_func;
31952 #endif
31953 #ifdef __cplusplus
31954 }
31955 #endif
31956
31957 int
31958 main ()
31959 {
31960 return f != $ac_func;
31961   ;
31962   return 0;
31963 }
31964 _ACEOF
31965 rm -f conftest.$ac_objext conftest$ac_exeext
31966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31967   (eval $ac_link) 2>conftest.er1
31968   ac_status=$?
31969   grep -v '^ *+' conftest.er1 >conftest.err
31970   rm -f conftest.er1
31971   cat conftest.err >&5
31972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973   (exit $ac_status); } &&
31974          { ac_try='test -z "$ac_c_werror_flag"
31975                          || test ! -s conftest.err'
31976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31977   (eval $ac_try) 2>&5
31978   ac_status=$?
31979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31980   (exit $ac_status); }; } &&
31981          { ac_try='test -s conftest$ac_exeext'
31982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31983   (eval $ac_try) 2>&5
31984   ac_status=$?
31985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986   (exit $ac_status); }; }; then
31987   eval "$as_ac_var=yes"
31988 else
31989   echo "$as_me: failed program was:" >&5
31990 sed 's/^/| /' conftest.$ac_ext >&5
31991
31992 eval "$as_ac_var=no"
31993 fi
31994 rm -f conftest.err conftest.$ac_objext \
31995       conftest$ac_exeext conftest.$ac_ext
31996 fi
31997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31999 if test `eval echo '${'$as_ac_var'}'` = yes; then
32000   cat >>confdefs.h <<_ACEOF
32001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32002 _ACEOF
32003
32004 fi
32005 done
32006
32007
32008 ice_have_bind=no
32009
32010 for ac_func in bind
32011 do
32012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32013 echo "$as_me:$LINENO: checking for $ac_func" >&5
32014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32015 if eval "test \"\${$as_ac_var+set}\" = set"; then
32016   echo $ECHO_N "(cached) $ECHO_C" >&6
32017 else
32018   cat >conftest.$ac_ext <<_ACEOF
32019 /* confdefs.h.  */
32020 _ACEOF
32021 cat confdefs.h >>conftest.$ac_ext
32022 cat >>conftest.$ac_ext <<_ACEOF
32023 /* end confdefs.h.  */
32024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32026 #define $ac_func innocuous_$ac_func
32027
32028 /* System header to define __stub macros and hopefully few prototypes,
32029     which can conflict with char $ac_func (); below.
32030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32031     <limits.h> exists even on freestanding compilers.  */
32032
32033 #ifdef __STDC__
32034 # include <limits.h>
32035 #else
32036 # include <assert.h>
32037 #endif
32038
32039 #undef $ac_func
32040
32041 /* Override any gcc2 internal prototype to avoid an error.  */
32042 #ifdef __cplusplus
32043 extern "C"
32044 {
32045 #endif
32046 /* We use char because int might match the return type of a gcc2
32047    builtin and then its argument prototype would still apply.  */
32048 char $ac_func ();
32049 /* The GNU C library defines this for functions which it implements
32050     to always fail with ENOSYS.  Some functions are actually named
32051     something starting with __ and the normal name is an alias.  */
32052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32053 choke me
32054 #else
32055 char (*f) () = $ac_func;
32056 #endif
32057 #ifdef __cplusplus
32058 }
32059 #endif
32060
32061 int
32062 main ()
32063 {
32064 return f != $ac_func;
32065   ;
32066   return 0;
32067 }
32068 _ACEOF
32069 rm -f conftest.$ac_objext conftest$ac_exeext
32070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32071   (eval $ac_link) 2>conftest.er1
32072   ac_status=$?
32073   grep -v '^ *+' conftest.er1 >conftest.err
32074   rm -f conftest.er1
32075   cat conftest.err >&5
32076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077   (exit $ac_status); } &&
32078          { ac_try='test -z "$ac_c_werror_flag"
32079                          || test ! -s conftest.err'
32080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32081   (eval $ac_try) 2>&5
32082   ac_status=$?
32083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084   (exit $ac_status); }; } &&
32085          { ac_try='test -s conftest$ac_exeext'
32086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32087   (eval $ac_try) 2>&5
32088   ac_status=$?
32089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090   (exit $ac_status); }; }; then
32091   eval "$as_ac_var=yes"
32092 else
32093   echo "$as_me: failed program was:" >&5
32094 sed 's/^/| /' conftest.$ac_ext >&5
32095
32096 eval "$as_ac_var=no"
32097 fi
32098 rm -f conftest.err conftest.$ac_objext \
32099       conftest$ac_exeext conftest.$ac_ext
32100 fi
32101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32103 if test `eval echo '${'$as_ac_var'}'` = yes; then
32104   cat >>confdefs.h <<_ACEOF
32105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32106 _ACEOF
32107  ice_have_bind=yes
32108 fi
32109 done
32110
32111 if test "${ice_have_bind}" = yes; then
32112 echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
32113 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
32114 if test "${ice_cv_have_bind_decl+set}" = set; then
32115   echo $ECHO_N "(cached) $ECHO_C" >&6
32116 else
32117
32118 ice_cv_have_bind_decl=no
32119 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32120 ice_re_word='(^|[^a-zA-Z0-9_])'
32121 for header in sys/types.h sys/socket.h; do
32122 # Check for ordinary declaration
32123 cat >conftest.$ac_ext <<_ACEOF
32124 /* confdefs.h.  */
32125 _ACEOF
32126 cat confdefs.h >>conftest.$ac_ext
32127 cat >>conftest.$ac_ext <<_ACEOF
32128 /* end confdefs.h.  */
32129 #include <$header>
32130
32131 _ACEOF
32132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32133   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
32134   ice_cv_have_bind_decl=yes
32135 fi
32136 rm -f conftest*
32137
32138 if test "$ice_cv_have_bind_decl" = yes; then
32139         break
32140 fi
32141 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32142 cat >conftest.$ac_ext <<_ACEOF
32143 /* confdefs.h.  */
32144 _ACEOF
32145 cat confdefs.h >>conftest.$ac_ext
32146 cat >>conftest.$ac_ext <<_ACEOF
32147 /* end confdefs.h.  */
32148 #include <$header>
32149
32150 _ACEOF
32151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32152   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32153   ice_cv_have_bind_decl=yes
32154 fi
32155 rm -f conftest*
32156
32157 if test "$ice_cv_have_bind_decl" = yes; then
32158         break
32159 fi
32160 done
32161
32162 fi
32163
32164 echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
32165 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6
32166 if test "$ice_cv_have_bind_decl" = yes; then
32167
32168 cat >>confdefs.h <<_ACEOF
32169 #define HAVE_BIND_DECL 1
32170 _ACEOF
32171
32172 fi
32173 fi
32174
32175
32176 ice_have_bcopy=no
32177
32178 for ac_func in bcopy
32179 do
32180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32181 echo "$as_me:$LINENO: checking for $ac_func" >&5
32182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32183 if eval "test \"\${$as_ac_var+set}\" = set"; then
32184   echo $ECHO_N "(cached) $ECHO_C" >&6
32185 else
32186   cat >conftest.$ac_ext <<_ACEOF
32187 /* confdefs.h.  */
32188 _ACEOF
32189 cat confdefs.h >>conftest.$ac_ext
32190 cat >>conftest.$ac_ext <<_ACEOF
32191 /* end confdefs.h.  */
32192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32194 #define $ac_func innocuous_$ac_func
32195
32196 /* System header to define __stub macros and hopefully few prototypes,
32197     which can conflict with char $ac_func (); below.
32198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32199     <limits.h> exists even on freestanding compilers.  */
32200
32201 #ifdef __STDC__
32202 # include <limits.h>
32203 #else
32204 # include <assert.h>
32205 #endif
32206
32207 #undef $ac_func
32208
32209 /* Override any gcc2 internal prototype to avoid an error.  */
32210 #ifdef __cplusplus
32211 extern "C"
32212 {
32213 #endif
32214 /* We use char because int might match the return type of a gcc2
32215    builtin and then its argument prototype would still apply.  */
32216 char $ac_func ();
32217 /* The GNU C library defines this for functions which it implements
32218     to always fail with ENOSYS.  Some functions are actually named
32219     something starting with __ and the normal name is an alias.  */
32220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32221 choke me
32222 #else
32223 char (*f) () = $ac_func;
32224 #endif
32225 #ifdef __cplusplus
32226 }
32227 #endif
32228
32229 int
32230 main ()
32231 {
32232 return f != $ac_func;
32233   ;
32234   return 0;
32235 }
32236 _ACEOF
32237 rm -f conftest.$ac_objext conftest$ac_exeext
32238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32239   (eval $ac_link) 2>conftest.er1
32240   ac_status=$?
32241   grep -v '^ *+' conftest.er1 >conftest.err
32242   rm -f conftest.er1
32243   cat conftest.err >&5
32244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245   (exit $ac_status); } &&
32246          { ac_try='test -z "$ac_c_werror_flag"
32247                          || test ! -s conftest.err'
32248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32249   (eval $ac_try) 2>&5
32250   ac_status=$?
32251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32252   (exit $ac_status); }; } &&
32253          { ac_try='test -s conftest$ac_exeext'
32254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32255   (eval $ac_try) 2>&5
32256   ac_status=$?
32257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32258   (exit $ac_status); }; }; then
32259   eval "$as_ac_var=yes"
32260 else
32261   echo "$as_me: failed program was:" >&5
32262 sed 's/^/| /' conftest.$ac_ext >&5
32263
32264 eval "$as_ac_var=no"
32265 fi
32266 rm -f conftest.err conftest.$ac_objext \
32267       conftest$ac_exeext conftest.$ac_ext
32268 fi
32269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32271 if test `eval echo '${'$as_ac_var'}'` = yes; then
32272   cat >>confdefs.h <<_ACEOF
32273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32274 _ACEOF
32275  ice_have_bcopy=yes
32276 fi
32277 done
32278
32279 if test "${ice_have_bcopy}" = yes; then
32280 echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
32281 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
32282 if test "${ice_cv_have_bcopy_decl+set}" = set; then
32283   echo $ECHO_N "(cached) $ECHO_C" >&6
32284 else
32285
32286 ice_cv_have_bcopy_decl=no
32287 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32288 ice_re_word='(^|[^a-zA-Z0-9_])'
32289 for header in string.h strings.h stdlib.h; do
32290 # Check for ordinary declaration
32291 cat >conftest.$ac_ext <<_ACEOF
32292 /* confdefs.h.  */
32293 _ACEOF
32294 cat confdefs.h >>conftest.$ac_ext
32295 cat >>conftest.$ac_ext <<_ACEOF
32296 /* end confdefs.h.  */
32297 #include <$header>
32298
32299 _ACEOF
32300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32301   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
32302   ice_cv_have_bcopy_decl=yes
32303 fi
32304 rm -f conftest*
32305
32306 if test "$ice_cv_have_bcopy_decl" = yes; then
32307         break
32308 fi
32309 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32310 cat >conftest.$ac_ext <<_ACEOF
32311 /* confdefs.h.  */
32312 _ACEOF
32313 cat confdefs.h >>conftest.$ac_ext
32314 cat >>conftest.$ac_ext <<_ACEOF
32315 /* end confdefs.h.  */
32316 #include <$header>
32317
32318 _ACEOF
32319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32320   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32321   ice_cv_have_bcopy_decl=yes
32322 fi
32323 rm -f conftest*
32324
32325 if test "$ice_cv_have_bcopy_decl" = yes; then
32326         break
32327 fi
32328 done
32329
32330 fi
32331
32332 echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
32333 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6
32334 if test "$ice_cv_have_bcopy_decl" = yes; then
32335
32336 cat >>confdefs.h <<_ACEOF
32337 #define HAVE_BCOPY_DECL 1
32338 _ACEOF
32339
32340 fi
32341 fi
32342
32343
32344 ice_have_bzero=no
32345
32346 for ac_func in bzero
32347 do
32348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32349 echo "$as_me:$LINENO: checking for $ac_func" >&5
32350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32351 if eval "test \"\${$as_ac_var+set}\" = set"; then
32352   echo $ECHO_N "(cached) $ECHO_C" >&6
32353 else
32354   cat >conftest.$ac_ext <<_ACEOF
32355 /* confdefs.h.  */
32356 _ACEOF
32357 cat confdefs.h >>conftest.$ac_ext
32358 cat >>conftest.$ac_ext <<_ACEOF
32359 /* end confdefs.h.  */
32360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32362 #define $ac_func innocuous_$ac_func
32363
32364 /* System header to define __stub macros and hopefully few prototypes,
32365     which can conflict with char $ac_func (); below.
32366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32367     <limits.h> exists even on freestanding compilers.  */
32368
32369 #ifdef __STDC__
32370 # include <limits.h>
32371 #else
32372 # include <assert.h>
32373 #endif
32374
32375 #undef $ac_func
32376
32377 /* Override any gcc2 internal prototype to avoid an error.  */
32378 #ifdef __cplusplus
32379 extern "C"
32380 {
32381 #endif
32382 /* We use char because int might match the return type of a gcc2
32383    builtin and then its argument prototype would still apply.  */
32384 char $ac_func ();
32385 /* The GNU C library defines this for functions which it implements
32386     to always fail with ENOSYS.  Some functions are actually named
32387     something starting with __ and the normal name is an alias.  */
32388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32389 choke me
32390 #else
32391 char (*f) () = $ac_func;
32392 #endif
32393 #ifdef __cplusplus
32394 }
32395 #endif
32396
32397 int
32398 main ()
32399 {
32400 return f != $ac_func;
32401   ;
32402   return 0;
32403 }
32404 _ACEOF
32405 rm -f conftest.$ac_objext conftest$ac_exeext
32406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32407   (eval $ac_link) 2>conftest.er1
32408   ac_status=$?
32409   grep -v '^ *+' conftest.er1 >conftest.err
32410   rm -f conftest.er1
32411   cat conftest.err >&5
32412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413   (exit $ac_status); } &&
32414          { ac_try='test -z "$ac_c_werror_flag"
32415                          || test ! -s conftest.err'
32416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32417   (eval $ac_try) 2>&5
32418   ac_status=$?
32419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420   (exit $ac_status); }; } &&
32421          { ac_try='test -s conftest$ac_exeext'
32422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32423   (eval $ac_try) 2>&5
32424   ac_status=$?
32425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32426   (exit $ac_status); }; }; then
32427   eval "$as_ac_var=yes"
32428 else
32429   echo "$as_me: failed program was:" >&5
32430 sed 's/^/| /' conftest.$ac_ext >&5
32431
32432 eval "$as_ac_var=no"
32433 fi
32434 rm -f conftest.err conftest.$ac_objext \
32435       conftest$ac_exeext conftest.$ac_ext
32436 fi
32437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32439 if test `eval echo '${'$as_ac_var'}'` = yes; then
32440   cat >>confdefs.h <<_ACEOF
32441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32442 _ACEOF
32443  ice_have_bzero=yes
32444 fi
32445 done
32446
32447 if test "${ice_have_bzero}" = yes; then
32448 echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
32449 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
32450 if test "${ice_cv_have_bzero_decl+set}" = set; then
32451   echo $ECHO_N "(cached) $ECHO_C" >&6
32452 else
32453
32454 ice_cv_have_bzero_decl=no
32455 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32456 ice_re_word='(^|[^a-zA-Z0-9_])'
32457 for header in string.h strings.h stdlib.h; do
32458 # Check for ordinary declaration
32459 cat >conftest.$ac_ext <<_ACEOF
32460 /* confdefs.h.  */
32461 _ACEOF
32462 cat confdefs.h >>conftest.$ac_ext
32463 cat >>conftest.$ac_ext <<_ACEOF
32464 /* end confdefs.h.  */
32465 #include <$header>
32466
32467 _ACEOF
32468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32469   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
32470   ice_cv_have_bzero_decl=yes
32471 fi
32472 rm -f conftest*
32473
32474 if test "$ice_cv_have_bzero_decl" = yes; then
32475         break
32476 fi
32477 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32478 cat >conftest.$ac_ext <<_ACEOF
32479 /* confdefs.h.  */
32480 _ACEOF
32481 cat confdefs.h >>conftest.$ac_ext
32482 cat >>conftest.$ac_ext <<_ACEOF
32483 /* end confdefs.h.  */
32484 #include <$header>
32485
32486 _ACEOF
32487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32488   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32489   ice_cv_have_bzero_decl=yes
32490 fi
32491 rm -f conftest*
32492
32493 if test "$ice_cv_have_bzero_decl" = yes; then
32494         break
32495 fi
32496 done
32497
32498 fi
32499
32500 echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
32501 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6
32502 if test "$ice_cv_have_bzero_decl" = yes; then
32503
32504 cat >>confdefs.h <<_ACEOF
32505 #define HAVE_BZERO_DECL 1
32506 _ACEOF
32507
32508 fi
32509 fi
32510
32511 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32512 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
32513 if test "${ac_cv_func_closedir_void+set}" = set; then
32514   echo $ECHO_N "(cached) $ECHO_C" >&6
32515 else
32516   if test "$cross_compiling" = yes; then
32517   ac_cv_func_closedir_void=yes
32518 else
32519   cat >conftest.$ac_ext <<_ACEOF
32520 /* confdefs.h.  */
32521 _ACEOF
32522 cat confdefs.h >>conftest.$ac_ext
32523 cat >>conftest.$ac_ext <<_ACEOF
32524 /* end confdefs.h.  */
32525 $ac_includes_default
32526 #include <$ac_header_dirent>
32527 #ifndef __cplusplus
32528 int closedir ();
32529 #endif
32530
32531 int
32532 main ()
32533 {
32534 exit (closedir (opendir (".")) != 0);
32535   ;
32536   return 0;
32537 }
32538 _ACEOF
32539 rm -f conftest$ac_exeext
32540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32541   (eval $ac_link) 2>&5
32542   ac_status=$?
32543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32544   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32546   (eval $ac_try) 2>&5
32547   ac_status=$?
32548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549   (exit $ac_status); }; }; then
32550   ac_cv_func_closedir_void=no
32551 else
32552   echo "$as_me: program exited with status $ac_status" >&5
32553 echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32555
32556 ( exit $ac_status )
32557 ac_cv_func_closedir_void=yes
32558 fi
32559 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32560 fi
32561 fi
32562 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32563 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
32564 if test $ac_cv_func_closedir_void = yes; then
32565
32566 cat >>confdefs.h <<\_ACEOF
32567 #define CLOSEDIR_VOID 1
32568 _ACEOF
32569
32570 fi
32571
32572
32573 ice_have_closelog=no
32574
32575 for ac_func in closelog
32576 do
32577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32578 echo "$as_me:$LINENO: checking for $ac_func" >&5
32579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32580 if eval "test \"\${$as_ac_var+set}\" = set"; then
32581   echo $ECHO_N "(cached) $ECHO_C" >&6
32582 else
32583   cat >conftest.$ac_ext <<_ACEOF
32584 /* confdefs.h.  */
32585 _ACEOF
32586 cat confdefs.h >>conftest.$ac_ext
32587 cat >>conftest.$ac_ext <<_ACEOF
32588 /* end confdefs.h.  */
32589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32590    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32591 #define $ac_func innocuous_$ac_func
32592
32593 /* System header to define __stub macros and hopefully few prototypes,
32594     which can conflict with char $ac_func (); below.
32595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32596     <limits.h> exists even on freestanding compilers.  */
32597
32598 #ifdef __STDC__
32599 # include <limits.h>
32600 #else
32601 # include <assert.h>
32602 #endif
32603
32604 #undef $ac_func
32605
32606 /* Override any gcc2 internal prototype to avoid an error.  */
32607 #ifdef __cplusplus
32608 extern "C"
32609 {
32610 #endif
32611 /* We use char because int might match the return type of a gcc2
32612    builtin and then its argument prototype would still apply.  */
32613 char $ac_func ();
32614 /* The GNU C library defines this for functions which it implements
32615     to always fail with ENOSYS.  Some functions are actually named
32616     something starting with __ and the normal name is an alias.  */
32617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32618 choke me
32619 #else
32620 char (*f) () = $ac_func;
32621 #endif
32622 #ifdef __cplusplus
32623 }
32624 #endif
32625
32626 int
32627 main ()
32628 {
32629 return f != $ac_func;
32630   ;
32631   return 0;
32632 }
32633 _ACEOF
32634 rm -f conftest.$ac_objext conftest$ac_exeext
32635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32636   (eval $ac_link) 2>conftest.er1
32637   ac_status=$?
32638   grep -v '^ *+' conftest.er1 >conftest.err
32639   rm -f conftest.er1
32640   cat conftest.err >&5
32641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642   (exit $ac_status); } &&
32643          { ac_try='test -z "$ac_c_werror_flag"
32644                          || test ! -s conftest.err'
32645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32646   (eval $ac_try) 2>&5
32647   ac_status=$?
32648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649   (exit $ac_status); }; } &&
32650          { ac_try='test -s conftest$ac_exeext'
32651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32652   (eval $ac_try) 2>&5
32653   ac_status=$?
32654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655   (exit $ac_status); }; }; then
32656   eval "$as_ac_var=yes"
32657 else
32658   echo "$as_me: failed program was:" >&5
32659 sed 's/^/| /' conftest.$ac_ext >&5
32660
32661 eval "$as_ac_var=no"
32662 fi
32663 rm -f conftest.err conftest.$ac_objext \
32664       conftest$ac_exeext conftest.$ac_ext
32665 fi
32666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32668 if test `eval echo '${'$as_ac_var'}'` = yes; then
32669   cat >>confdefs.h <<_ACEOF
32670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32671 _ACEOF
32672  ice_have_closelog=yes
32673 fi
32674 done
32675
32676 if test "${ice_have_closelog}" = yes; then
32677 echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
32678 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6
32679 if test "${ice_cv_have_closelog_decl+set}" = set; then
32680   echo $ECHO_N "(cached) $ECHO_C" >&6
32681 else
32682
32683 ice_cv_have_closelog_decl=no
32684 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32685 ice_re_word='(^|[^a-zA-Z0-9_])'
32686 for header in syslog.h; do
32687 # Check for ordinary declaration
32688 cat >conftest.$ac_ext <<_ACEOF
32689 /* confdefs.h.  */
32690 _ACEOF
32691 cat confdefs.h >>conftest.$ac_ext
32692 cat >>conftest.$ac_ext <<_ACEOF
32693 /* end confdefs.h.  */
32694 #include <$header>
32695
32696 _ACEOF
32697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32698   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
32699   ice_cv_have_closelog_decl=yes
32700 fi
32701 rm -f conftest*
32702
32703 if test "$ice_cv_have_closelog_decl" = yes; then
32704         break
32705 fi
32706 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32707 cat >conftest.$ac_ext <<_ACEOF
32708 /* confdefs.h.  */
32709 _ACEOF
32710 cat confdefs.h >>conftest.$ac_ext
32711 cat >>conftest.$ac_ext <<_ACEOF
32712 /* end confdefs.h.  */
32713 #include <$header>
32714
32715 _ACEOF
32716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32717   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32718   ice_cv_have_closelog_decl=yes
32719 fi
32720 rm -f conftest*
32721
32722 if test "$ice_cv_have_closelog_decl" = yes; then
32723         break
32724 fi
32725 done
32726
32727 fi
32728
32729 echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
32730 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6
32731 if test "$ice_cv_have_closelog_decl" = yes; then
32732
32733 cat >>confdefs.h <<_ACEOF
32734 #define HAVE_CLOSELOG_DECL 1
32735 _ACEOF
32736
32737 fi
32738 fi
32739
32740
32741 ice_have_connect=no
32742
32743 for ac_func in connect
32744 do
32745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32746 echo "$as_me:$LINENO: checking for $ac_func" >&5
32747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32748 if eval "test \"\${$as_ac_var+set}\" = set"; then
32749   echo $ECHO_N "(cached) $ECHO_C" >&6
32750 else
32751   cat >conftest.$ac_ext <<_ACEOF
32752 /* confdefs.h.  */
32753 _ACEOF
32754 cat confdefs.h >>conftest.$ac_ext
32755 cat >>conftest.$ac_ext <<_ACEOF
32756 /* end confdefs.h.  */
32757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32759 #define $ac_func innocuous_$ac_func
32760
32761 /* System header to define __stub macros and hopefully few prototypes,
32762     which can conflict with char $ac_func (); below.
32763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32764     <limits.h> exists even on freestanding compilers.  */
32765
32766 #ifdef __STDC__
32767 # include <limits.h>
32768 #else
32769 # include <assert.h>
32770 #endif
32771
32772 #undef $ac_func
32773
32774 /* Override any gcc2 internal prototype to avoid an error.  */
32775 #ifdef __cplusplus
32776 extern "C"
32777 {
32778 #endif
32779 /* We use char because int might match the return type of a gcc2
32780    builtin and then its argument prototype would still apply.  */
32781 char $ac_func ();
32782 /* The GNU C library defines this for functions which it implements
32783     to always fail with ENOSYS.  Some functions are actually named
32784     something starting with __ and the normal name is an alias.  */
32785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32786 choke me
32787 #else
32788 char (*f) () = $ac_func;
32789 #endif
32790 #ifdef __cplusplus
32791 }
32792 #endif
32793
32794 int
32795 main ()
32796 {
32797 return f != $ac_func;
32798   ;
32799   return 0;
32800 }
32801 _ACEOF
32802 rm -f conftest.$ac_objext conftest$ac_exeext
32803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32804   (eval $ac_link) 2>conftest.er1
32805   ac_status=$?
32806   grep -v '^ *+' conftest.er1 >conftest.err
32807   rm -f conftest.er1
32808   cat conftest.err >&5
32809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810   (exit $ac_status); } &&
32811          { ac_try='test -z "$ac_c_werror_flag"
32812                          || test ! -s conftest.err'
32813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32814   (eval $ac_try) 2>&5
32815   ac_status=$?
32816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817   (exit $ac_status); }; } &&
32818          { ac_try='test -s conftest$ac_exeext'
32819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32820   (eval $ac_try) 2>&5
32821   ac_status=$?
32822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823   (exit $ac_status); }; }; then
32824   eval "$as_ac_var=yes"
32825 else
32826   echo "$as_me: failed program was:" >&5
32827 sed 's/^/| /' conftest.$ac_ext >&5
32828
32829 eval "$as_ac_var=no"
32830 fi
32831 rm -f conftest.err conftest.$ac_objext \
32832       conftest$ac_exeext conftest.$ac_ext
32833 fi
32834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32836 if test `eval echo '${'$as_ac_var'}'` = yes; then
32837   cat >>confdefs.h <<_ACEOF
32838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32839 _ACEOF
32840  ice_have_connect=yes
32841 fi
32842 done
32843
32844 if test "${ice_have_connect}" = yes; then
32845 echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
32846 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
32847 if test "${ice_cv_have_connect_decl+set}" = set; then
32848   echo $ECHO_N "(cached) $ECHO_C" >&6
32849 else
32850
32851 ice_cv_have_connect_decl=no
32852 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32853 ice_re_word='(^|[^a-zA-Z0-9_])'
32854 for header in sys/types.h sys/socket.h; do
32855 # Check for ordinary declaration
32856 cat >conftest.$ac_ext <<_ACEOF
32857 /* confdefs.h.  */
32858 _ACEOF
32859 cat confdefs.h >>conftest.$ac_ext
32860 cat >>conftest.$ac_ext <<_ACEOF
32861 /* end confdefs.h.  */
32862 #include <$header>
32863
32864 _ACEOF
32865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32866   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
32867   ice_cv_have_connect_decl=yes
32868 fi
32869 rm -f conftest*
32870
32871 if test "$ice_cv_have_connect_decl" = yes; then
32872         break
32873 fi
32874 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32875 cat >conftest.$ac_ext <<_ACEOF
32876 /* confdefs.h.  */
32877 _ACEOF
32878 cat confdefs.h >>conftest.$ac_ext
32879 cat >>conftest.$ac_ext <<_ACEOF
32880 /* end confdefs.h.  */
32881 #include <$header>
32882
32883 _ACEOF
32884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32885   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32886   ice_cv_have_connect_decl=yes
32887 fi
32888 rm -f conftest*
32889
32890 if test "$ice_cv_have_connect_decl" = yes; then
32891         break
32892 fi
32893 done
32894
32895 fi
32896
32897 echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
32898 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6
32899 if test "$ice_cv_have_connect_decl" = yes; then
32900
32901 cat >>confdefs.h <<_ACEOF
32902 #define HAVE_CONNECT_DECL 1
32903 _ACEOF
32904
32905 fi
32906 fi
32907
32908
32909 ice_have_dbm_open=no
32910
32911 for ac_func in dbm_open
32912 do
32913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32914 echo "$as_me:$LINENO: checking for $ac_func" >&5
32915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32916 if eval "test \"\${$as_ac_var+set}\" = set"; then
32917   echo $ECHO_N "(cached) $ECHO_C" >&6
32918 else
32919   cat >conftest.$ac_ext <<_ACEOF
32920 /* confdefs.h.  */
32921 _ACEOF
32922 cat confdefs.h >>conftest.$ac_ext
32923 cat >>conftest.$ac_ext <<_ACEOF
32924 /* end confdefs.h.  */
32925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32927 #define $ac_func innocuous_$ac_func
32928
32929 /* System header to define __stub macros and hopefully few prototypes,
32930     which can conflict with char $ac_func (); below.
32931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32932     <limits.h> exists even on freestanding compilers.  */
32933
32934 #ifdef __STDC__
32935 # include <limits.h>
32936 #else
32937 # include <assert.h>
32938 #endif
32939
32940 #undef $ac_func
32941
32942 /* Override any gcc2 internal prototype to avoid an error.  */
32943 #ifdef __cplusplus
32944 extern "C"
32945 {
32946 #endif
32947 /* We use char because int might match the return type of a gcc2
32948    builtin and then its argument prototype would still apply.  */
32949 char $ac_func ();
32950 /* The GNU C library defines this for functions which it implements
32951     to always fail with ENOSYS.  Some functions are actually named
32952     something starting with __ and the normal name is an alias.  */
32953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32954 choke me
32955 #else
32956 char (*f) () = $ac_func;
32957 #endif
32958 #ifdef __cplusplus
32959 }
32960 #endif
32961
32962 int
32963 main ()
32964 {
32965 return f != $ac_func;
32966   ;
32967   return 0;
32968 }
32969 _ACEOF
32970 rm -f conftest.$ac_objext conftest$ac_exeext
32971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32972   (eval $ac_link) 2>conftest.er1
32973   ac_status=$?
32974   grep -v '^ *+' conftest.er1 >conftest.err
32975   rm -f conftest.er1
32976   cat conftest.err >&5
32977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978   (exit $ac_status); } &&
32979          { ac_try='test -z "$ac_c_werror_flag"
32980                          || test ! -s conftest.err'
32981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32982   (eval $ac_try) 2>&5
32983   ac_status=$?
32984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985   (exit $ac_status); }; } &&
32986          { ac_try='test -s conftest$ac_exeext'
32987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32988   (eval $ac_try) 2>&5
32989   ac_status=$?
32990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991   (exit $ac_status); }; }; then
32992   eval "$as_ac_var=yes"
32993 else
32994   echo "$as_me: failed program was:" >&5
32995 sed 's/^/| /' conftest.$ac_ext >&5
32996
32997 eval "$as_ac_var=no"
32998 fi
32999 rm -f conftest.err conftest.$ac_objext \
33000       conftest$ac_exeext conftest.$ac_ext
33001 fi
33002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33004 if test `eval echo '${'$as_ac_var'}'` = yes; then
33005   cat >>confdefs.h <<_ACEOF
33006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33007 _ACEOF
33008  ice_have_dbm_open=yes
33009 fi
33010 done
33011
33012 if test "${ice_have_dbm_open}" = yes; then
33013 echo "$as_me:$LINENO: checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}" >&5
33014 echo $ECHO_N "checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}... $ECHO_C" >&6
33015 if test "${ice_cv_have_dbm_open_decl+set}" = set; then
33016   echo $ECHO_N "(cached) $ECHO_C" >&6
33017 else
33018
33019 ice_cv_have_dbm_open_decl=no
33020 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33021 ice_re_word='(^|[^a-zA-Z0-9_])'
33022 for header in ${DB_HEADER-no/db/header/file}; do
33023 # Check for ordinary declaration
33024 cat >conftest.$ac_ext <<_ACEOF
33025 /* confdefs.h.  */
33026 _ACEOF
33027 cat confdefs.h >>conftest.$ac_ext
33028 cat >>conftest.$ac_ext <<_ACEOF
33029 /* end confdefs.h.  */
33030 #include <$header>
33031
33032 _ACEOF
33033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33034   $EGREP "${ice_re_word}dbm_open[       ]*\(" >/dev/null 2>&1; then
33035   ice_cv_have_dbm_open_decl=yes
33036 fi
33037 rm -f conftest*
33038
33039 if test "$ice_cv_have_dbm_open_decl" = yes; then
33040         break
33041 fi
33042 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33043 cat >conftest.$ac_ext <<_ACEOF
33044 /* confdefs.h.  */
33045 _ACEOF
33046 cat confdefs.h >>conftest.$ac_ext
33047 cat >>conftest.$ac_ext <<_ACEOF
33048 /* end confdefs.h.  */
33049 #include <$header>
33050
33051 _ACEOF
33052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33053   $EGREP "${ice_re_word}dbm_open[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33054   ice_cv_have_dbm_open_decl=yes
33055 fi
33056 rm -f conftest*
33057
33058 if test "$ice_cv_have_dbm_open_decl" = yes; then
33059         break
33060 fi
33061 done
33062
33063 fi
33064
33065 echo "$as_me:$LINENO: result: $ice_cv_have_dbm_open_decl" >&5
33066 echo "${ECHO_T}$ice_cv_have_dbm_open_decl" >&6
33067 if test "$ice_cv_have_dbm_open_decl" = yes; then
33068
33069 cat >>confdefs.h <<_ACEOF
33070 #define HAVE_DBM_OPEN_DECL 1
33071 _ACEOF
33072
33073 fi
33074 fi
33075
33076
33077 for ac_func in endmntent
33078 do
33079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33080 echo "$as_me:$LINENO: checking for $ac_func" >&5
33081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33082 if eval "test \"\${$as_ac_var+set}\" = set"; then
33083   echo $ECHO_N "(cached) $ECHO_C" >&6
33084 else
33085   cat >conftest.$ac_ext <<_ACEOF
33086 /* confdefs.h.  */
33087 _ACEOF
33088 cat confdefs.h >>conftest.$ac_ext
33089 cat >>conftest.$ac_ext <<_ACEOF
33090 /* end confdefs.h.  */
33091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33093 #define $ac_func innocuous_$ac_func
33094
33095 /* System header to define __stub macros and hopefully few prototypes,
33096     which can conflict with char $ac_func (); below.
33097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33098     <limits.h> exists even on freestanding compilers.  */
33099
33100 #ifdef __STDC__
33101 # include <limits.h>
33102 #else
33103 # include <assert.h>
33104 #endif
33105
33106 #undef $ac_func
33107
33108 /* Override any gcc2 internal prototype to avoid an error.  */
33109 #ifdef __cplusplus
33110 extern "C"
33111 {
33112 #endif
33113 /* We use char because int might match the return type of a gcc2
33114    builtin and then its argument prototype would still apply.  */
33115 char $ac_func ();
33116 /* The GNU C library defines this for functions which it implements
33117     to always fail with ENOSYS.  Some functions are actually named
33118     something starting with __ and the normal name is an alias.  */
33119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33120 choke me
33121 #else
33122 char (*f) () = $ac_func;
33123 #endif
33124 #ifdef __cplusplus
33125 }
33126 #endif
33127
33128 int
33129 main ()
33130 {
33131 return f != $ac_func;
33132   ;
33133   return 0;
33134 }
33135 _ACEOF
33136 rm -f conftest.$ac_objext conftest$ac_exeext
33137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33138   (eval $ac_link) 2>conftest.er1
33139   ac_status=$?
33140   grep -v '^ *+' conftest.er1 >conftest.err
33141   rm -f conftest.er1
33142   cat conftest.err >&5
33143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144   (exit $ac_status); } &&
33145          { ac_try='test -z "$ac_c_werror_flag"
33146                          || test ! -s conftest.err'
33147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33148   (eval $ac_try) 2>&5
33149   ac_status=$?
33150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151   (exit $ac_status); }; } &&
33152          { ac_try='test -s conftest$ac_exeext'
33153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33154   (eval $ac_try) 2>&5
33155   ac_status=$?
33156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33157   (exit $ac_status); }; }; then
33158   eval "$as_ac_var=yes"
33159 else
33160   echo "$as_me: failed program was:" >&5
33161 sed 's/^/| /' conftest.$ac_ext >&5
33162
33163 eval "$as_ac_var=no"
33164 fi
33165 rm -f conftest.err conftest.$ac_objext \
33166       conftest$ac_exeext conftest.$ac_ext
33167 fi
33168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33170 if test `eval echo '${'$as_ac_var'}'` = yes; then
33171   cat >>confdefs.h <<_ACEOF
33172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33173 _ACEOF
33174
33175 fi
33176 done
33177
33178
33179 ice_have_fclose=no
33180
33181 for ac_func in fclose
33182 do
33183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33184 echo "$as_me:$LINENO: checking for $ac_func" >&5
33185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33186 if eval "test \"\${$as_ac_var+set}\" = set"; then
33187   echo $ECHO_N "(cached) $ECHO_C" >&6
33188 else
33189   cat >conftest.$ac_ext <<_ACEOF
33190 /* confdefs.h.  */
33191 _ACEOF
33192 cat confdefs.h >>conftest.$ac_ext
33193 cat >>conftest.$ac_ext <<_ACEOF
33194 /* end confdefs.h.  */
33195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33197 #define $ac_func innocuous_$ac_func
33198
33199 /* System header to define __stub macros and hopefully few prototypes,
33200     which can conflict with char $ac_func (); below.
33201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33202     <limits.h> exists even on freestanding compilers.  */
33203
33204 #ifdef __STDC__
33205 # include <limits.h>
33206 #else
33207 # include <assert.h>
33208 #endif
33209
33210 #undef $ac_func
33211
33212 /* Override any gcc2 internal prototype to avoid an error.  */
33213 #ifdef __cplusplus
33214 extern "C"
33215 {
33216 #endif
33217 /* We use char because int might match the return type of a gcc2
33218    builtin and then its argument prototype would still apply.  */
33219 char $ac_func ();
33220 /* The GNU C library defines this for functions which it implements
33221     to always fail with ENOSYS.  Some functions are actually named
33222     something starting with __ and the normal name is an alias.  */
33223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33224 choke me
33225 #else
33226 char (*f) () = $ac_func;
33227 #endif
33228 #ifdef __cplusplus
33229 }
33230 #endif
33231
33232 int
33233 main ()
33234 {
33235 return f != $ac_func;
33236   ;
33237   return 0;
33238 }
33239 _ACEOF
33240 rm -f conftest.$ac_objext conftest$ac_exeext
33241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33242   (eval $ac_link) 2>conftest.er1
33243   ac_status=$?
33244   grep -v '^ *+' conftest.er1 >conftest.err
33245   rm -f conftest.er1
33246   cat conftest.err >&5
33247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248   (exit $ac_status); } &&
33249          { ac_try='test -z "$ac_c_werror_flag"
33250                          || test ! -s conftest.err'
33251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33252   (eval $ac_try) 2>&5
33253   ac_status=$?
33254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255   (exit $ac_status); }; } &&
33256          { ac_try='test -s conftest$ac_exeext'
33257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33258   (eval $ac_try) 2>&5
33259   ac_status=$?
33260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261   (exit $ac_status); }; }; then
33262   eval "$as_ac_var=yes"
33263 else
33264   echo "$as_me: failed program was:" >&5
33265 sed 's/^/| /' conftest.$ac_ext >&5
33266
33267 eval "$as_ac_var=no"
33268 fi
33269 rm -f conftest.err conftest.$ac_objext \
33270       conftest$ac_exeext conftest.$ac_ext
33271 fi
33272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33274 if test `eval echo '${'$as_ac_var'}'` = yes; then
33275   cat >>confdefs.h <<_ACEOF
33276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33277 _ACEOF
33278  ice_have_fclose=yes
33279 fi
33280 done
33281
33282 if test "${ice_have_fclose}" = yes; then
33283 echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
33284 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6
33285 if test "${ice_cv_have_fclose_decl+set}" = set; then
33286   echo $ECHO_N "(cached) $ECHO_C" >&6
33287 else
33288
33289 ice_cv_have_fclose_decl=no
33290 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33291 ice_re_word='(^|[^a-zA-Z0-9_])'
33292 for header in stdio.h; do
33293 # Check for ordinary declaration
33294 cat >conftest.$ac_ext <<_ACEOF
33295 /* confdefs.h.  */
33296 _ACEOF
33297 cat confdefs.h >>conftest.$ac_ext
33298 cat >>conftest.$ac_ext <<_ACEOF
33299 /* end confdefs.h.  */
33300 #include <$header>
33301
33302 _ACEOF
33303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33304   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
33305   ice_cv_have_fclose_decl=yes
33306 fi
33307 rm -f conftest*
33308
33309 if test "$ice_cv_have_fclose_decl" = yes; then
33310         break
33311 fi
33312 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33313 cat >conftest.$ac_ext <<_ACEOF
33314 /* confdefs.h.  */
33315 _ACEOF
33316 cat confdefs.h >>conftest.$ac_ext
33317 cat >>conftest.$ac_ext <<_ACEOF
33318 /* end confdefs.h.  */
33319 #include <$header>
33320
33321 _ACEOF
33322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33323   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33324   ice_cv_have_fclose_decl=yes
33325 fi
33326 rm -f conftest*
33327
33328 if test "$ice_cv_have_fclose_decl" = yes; then
33329         break
33330 fi
33331 done
33332
33333 fi
33334
33335 echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
33336 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6
33337 if test "$ice_cv_have_fclose_decl" = yes; then
33338
33339 cat >>confdefs.h <<_ACEOF
33340 #define HAVE_FCLOSE_DECL 1
33341 _ACEOF
33342
33343 fi
33344 fi
33345
33346
33347 ice_have_fflush=no
33348
33349 for ac_func in fflush
33350 do
33351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33352 echo "$as_me:$LINENO: checking for $ac_func" >&5
33353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33354 if eval "test \"\${$as_ac_var+set}\" = set"; then
33355   echo $ECHO_N "(cached) $ECHO_C" >&6
33356 else
33357   cat >conftest.$ac_ext <<_ACEOF
33358 /* confdefs.h.  */
33359 _ACEOF
33360 cat confdefs.h >>conftest.$ac_ext
33361 cat >>conftest.$ac_ext <<_ACEOF
33362 /* end confdefs.h.  */
33363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33365 #define $ac_func innocuous_$ac_func
33366
33367 /* System header to define __stub macros and hopefully few prototypes,
33368     which can conflict with char $ac_func (); below.
33369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33370     <limits.h> exists even on freestanding compilers.  */
33371
33372 #ifdef __STDC__
33373 # include <limits.h>
33374 #else
33375 # include <assert.h>
33376 #endif
33377
33378 #undef $ac_func
33379
33380 /* Override any gcc2 internal prototype to avoid an error.  */
33381 #ifdef __cplusplus
33382 extern "C"
33383 {
33384 #endif
33385 /* We use char because int might match the return type of a gcc2
33386    builtin and then its argument prototype would still apply.  */
33387 char $ac_func ();
33388 /* The GNU C library defines this for functions which it implements
33389     to always fail with ENOSYS.  Some functions are actually named
33390     something starting with __ and the normal name is an alias.  */
33391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33392 choke me
33393 #else
33394 char (*f) () = $ac_func;
33395 #endif
33396 #ifdef __cplusplus
33397 }
33398 #endif
33399
33400 int
33401 main ()
33402 {
33403 return f != $ac_func;
33404   ;
33405   return 0;
33406 }
33407 _ACEOF
33408 rm -f conftest.$ac_objext conftest$ac_exeext
33409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33410   (eval $ac_link) 2>conftest.er1
33411   ac_status=$?
33412   grep -v '^ *+' conftest.er1 >conftest.err
33413   rm -f conftest.er1
33414   cat conftest.err >&5
33415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416   (exit $ac_status); } &&
33417          { ac_try='test -z "$ac_c_werror_flag"
33418                          || test ! -s conftest.err'
33419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33420   (eval $ac_try) 2>&5
33421   ac_status=$?
33422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423   (exit $ac_status); }; } &&
33424          { ac_try='test -s conftest$ac_exeext'
33425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33426   (eval $ac_try) 2>&5
33427   ac_status=$?
33428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33429   (exit $ac_status); }; }; then
33430   eval "$as_ac_var=yes"
33431 else
33432   echo "$as_me: failed program was:" >&5
33433 sed 's/^/| /' conftest.$ac_ext >&5
33434
33435 eval "$as_ac_var=no"
33436 fi
33437 rm -f conftest.err conftest.$ac_objext \
33438       conftest$ac_exeext conftest.$ac_ext
33439 fi
33440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33442 if test `eval echo '${'$as_ac_var'}'` = yes; then
33443   cat >>confdefs.h <<_ACEOF
33444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33445 _ACEOF
33446  ice_have_fflush=yes
33447 fi
33448 done
33449
33450 if test "${ice_have_fflush}" = yes; then
33451 echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
33452 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6
33453 if test "${ice_cv_have_fflush_decl+set}" = set; then
33454   echo $ECHO_N "(cached) $ECHO_C" >&6
33455 else
33456
33457 ice_cv_have_fflush_decl=no
33458 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33459 ice_re_word='(^|[^a-zA-Z0-9_])'
33460 for header in stdio.h; do
33461 # Check for ordinary declaration
33462 cat >conftest.$ac_ext <<_ACEOF
33463 /* confdefs.h.  */
33464 _ACEOF
33465 cat confdefs.h >>conftest.$ac_ext
33466 cat >>conftest.$ac_ext <<_ACEOF
33467 /* end confdefs.h.  */
33468 #include <$header>
33469
33470 _ACEOF
33471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33472   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then
33473   ice_cv_have_fflush_decl=yes
33474 fi
33475 rm -f conftest*
33476
33477 if test "$ice_cv_have_fflush_decl" = yes; then
33478         break
33479 fi
33480 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33481 cat >conftest.$ac_ext <<_ACEOF
33482 /* confdefs.h.  */
33483 _ACEOF
33484 cat confdefs.h >>conftest.$ac_ext
33485 cat >>conftest.$ac_ext <<_ACEOF
33486 /* end confdefs.h.  */
33487 #include <$header>
33488
33489 _ACEOF
33490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33491   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33492   ice_cv_have_fflush_decl=yes
33493 fi
33494 rm -f conftest*
33495
33496 if test "$ice_cv_have_fflush_decl" = yes; then
33497         break
33498 fi
33499 done
33500
33501 fi
33502
33503 echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
33504 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6
33505 if test "$ice_cv_have_fflush_decl" = yes; then
33506
33507 cat >>confdefs.h <<_ACEOF
33508 #define HAVE_FFLUSH_DECL 1
33509 _ACEOF
33510
33511 fi
33512 fi
33513
33514
33515 ice_have_flock=no
33516
33517 for ac_func in flock
33518 do
33519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33520 echo "$as_me:$LINENO: checking for $ac_func" >&5
33521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33522 if eval "test \"\${$as_ac_var+set}\" = set"; then
33523   echo $ECHO_N "(cached) $ECHO_C" >&6
33524 else
33525   cat >conftest.$ac_ext <<_ACEOF
33526 /* confdefs.h.  */
33527 _ACEOF
33528 cat confdefs.h >>conftest.$ac_ext
33529 cat >>conftest.$ac_ext <<_ACEOF
33530 /* end confdefs.h.  */
33531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33533 #define $ac_func innocuous_$ac_func
33534
33535 /* System header to define __stub macros and hopefully few prototypes,
33536     which can conflict with char $ac_func (); below.
33537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33538     <limits.h> exists even on freestanding compilers.  */
33539
33540 #ifdef __STDC__
33541 # include <limits.h>
33542 #else
33543 # include <assert.h>
33544 #endif
33545
33546 #undef $ac_func
33547
33548 /* Override any gcc2 internal prototype to avoid an error.  */
33549 #ifdef __cplusplus
33550 extern "C"
33551 {
33552 #endif
33553 /* We use char because int might match the return type of a gcc2
33554    builtin and then its argument prototype would still apply.  */
33555 char $ac_func ();
33556 /* The GNU C library defines this for functions which it implements
33557     to always fail with ENOSYS.  Some functions are actually named
33558     something starting with __ and the normal name is an alias.  */
33559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33560 choke me
33561 #else
33562 char (*f) () = $ac_func;
33563 #endif
33564 #ifdef __cplusplus
33565 }
33566 #endif
33567
33568 int
33569 main ()
33570 {
33571 return f != $ac_func;
33572   ;
33573   return 0;
33574 }
33575 _ACEOF
33576 rm -f conftest.$ac_objext conftest$ac_exeext
33577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33578   (eval $ac_link) 2>conftest.er1
33579   ac_status=$?
33580   grep -v '^ *+' conftest.er1 >conftest.err
33581   rm -f conftest.er1
33582   cat conftest.err >&5
33583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584   (exit $ac_status); } &&
33585          { ac_try='test -z "$ac_c_werror_flag"
33586                          || test ! -s conftest.err'
33587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33588   (eval $ac_try) 2>&5
33589   ac_status=$?
33590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591   (exit $ac_status); }; } &&
33592          { ac_try='test -s conftest$ac_exeext'
33593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33594   (eval $ac_try) 2>&5
33595   ac_status=$?
33596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597   (exit $ac_status); }; }; then
33598   eval "$as_ac_var=yes"
33599 else
33600   echo "$as_me: failed program was:" >&5
33601 sed 's/^/| /' conftest.$ac_ext >&5
33602
33603 eval "$as_ac_var=no"
33604 fi
33605 rm -f conftest.err conftest.$ac_objext \
33606       conftest$ac_exeext conftest.$ac_ext
33607 fi
33608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33610 if test `eval echo '${'$as_ac_var'}'` = yes; then
33611   cat >>confdefs.h <<_ACEOF
33612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33613 _ACEOF
33614  ice_have_flock=yes
33615 fi
33616 done
33617
33618 if test "${ice_have_flock}" = yes; then
33619 echo "$as_me:$LINENO: checking for flock declaration in sys/file.h" >&5
33620 echo $ECHO_N "checking for flock declaration in sys/file.h... $ECHO_C" >&6
33621 if test "${ice_cv_have_flock_decl+set}" = set; then
33622   echo $ECHO_N "(cached) $ECHO_C" >&6
33623 else
33624
33625 ice_cv_have_flock_decl=no
33626 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33627 ice_re_word='(^|[^a-zA-Z0-9_])'
33628 for header in sys/file.h; do
33629 # Check for ordinary declaration
33630 cat >conftest.$ac_ext <<_ACEOF
33631 /* confdefs.h.  */
33632 _ACEOF
33633 cat confdefs.h >>conftest.$ac_ext
33634 cat >>conftest.$ac_ext <<_ACEOF
33635 /* end confdefs.h.  */
33636 #include <$header>
33637
33638 _ACEOF
33639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33640   $EGREP "${ice_re_word}flock[  ]*\(" >/dev/null 2>&1; then
33641   ice_cv_have_flock_decl=yes
33642 fi
33643 rm -f conftest*
33644
33645 if test "$ice_cv_have_flock_decl" = yes; then
33646         break
33647 fi
33648 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33649 cat >conftest.$ac_ext <<_ACEOF
33650 /* confdefs.h.  */
33651 _ACEOF
33652 cat confdefs.h >>conftest.$ac_ext
33653 cat >>conftest.$ac_ext <<_ACEOF
33654 /* end confdefs.h.  */
33655 #include <$header>
33656
33657 _ACEOF
33658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33659   $EGREP "${ice_re_word}flock[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33660   ice_cv_have_flock_decl=yes
33661 fi
33662 rm -f conftest*
33663
33664 if test "$ice_cv_have_flock_decl" = yes; then
33665         break
33666 fi
33667 done
33668
33669 fi
33670
33671 echo "$as_me:$LINENO: result: $ice_cv_have_flock_decl" >&5
33672 echo "${ECHO_T}$ice_cv_have_flock_decl" >&6
33673 if test "$ice_cv_have_flock_decl" = yes; then
33674
33675 cat >>confdefs.h <<_ACEOF
33676 #define HAVE_FLOCK_DECL 1
33677 _ACEOF
33678
33679 fi
33680 fi
33681
33682
33683 ice_have_fprintf=no
33684
33685 for ac_func in fprintf
33686 do
33687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33688 echo "$as_me:$LINENO: checking for $ac_func" >&5
33689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33690 if eval "test \"\${$as_ac_var+set}\" = set"; then
33691   echo $ECHO_N "(cached) $ECHO_C" >&6
33692 else
33693   cat >conftest.$ac_ext <<_ACEOF
33694 /* confdefs.h.  */
33695 _ACEOF
33696 cat confdefs.h >>conftest.$ac_ext
33697 cat >>conftest.$ac_ext <<_ACEOF
33698 /* end confdefs.h.  */
33699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33701 #define $ac_func innocuous_$ac_func
33702
33703 /* System header to define __stub macros and hopefully few prototypes,
33704     which can conflict with char $ac_func (); below.
33705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33706     <limits.h> exists even on freestanding compilers.  */
33707
33708 #ifdef __STDC__
33709 # include <limits.h>
33710 #else
33711 # include <assert.h>
33712 #endif
33713
33714 #undef $ac_func
33715
33716 /* Override any gcc2 internal prototype to avoid an error.  */
33717 #ifdef __cplusplus
33718 extern "C"
33719 {
33720 #endif
33721 /* We use char because int might match the return type of a gcc2
33722    builtin and then its argument prototype would still apply.  */
33723 char $ac_func ();
33724 /* The GNU C library defines this for functions which it implements
33725     to always fail with ENOSYS.  Some functions are actually named
33726     something starting with __ and the normal name is an alias.  */
33727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33728 choke me
33729 #else
33730 char (*f) () = $ac_func;
33731 #endif
33732 #ifdef __cplusplus
33733 }
33734 #endif
33735
33736 int
33737 main ()
33738 {
33739 return f != $ac_func;
33740   ;
33741   return 0;
33742 }
33743 _ACEOF
33744 rm -f conftest.$ac_objext conftest$ac_exeext
33745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33746   (eval $ac_link) 2>conftest.er1
33747   ac_status=$?
33748   grep -v '^ *+' conftest.er1 >conftest.err
33749   rm -f conftest.er1
33750   cat conftest.err >&5
33751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752   (exit $ac_status); } &&
33753          { ac_try='test -z "$ac_c_werror_flag"
33754                          || test ! -s conftest.err'
33755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33756   (eval $ac_try) 2>&5
33757   ac_status=$?
33758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33759   (exit $ac_status); }; } &&
33760          { ac_try='test -s conftest$ac_exeext'
33761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33762   (eval $ac_try) 2>&5
33763   ac_status=$?
33764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765   (exit $ac_status); }; }; then
33766   eval "$as_ac_var=yes"
33767 else
33768   echo "$as_me: failed program was:" >&5
33769 sed 's/^/| /' conftest.$ac_ext >&5
33770
33771 eval "$as_ac_var=no"
33772 fi
33773 rm -f conftest.err conftest.$ac_objext \
33774       conftest$ac_exeext conftest.$ac_ext
33775 fi
33776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33778 if test `eval echo '${'$as_ac_var'}'` = yes; then
33779   cat >>confdefs.h <<_ACEOF
33780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33781 _ACEOF
33782  ice_have_fprintf=yes
33783 fi
33784 done
33785
33786 if test "${ice_have_fprintf}" = yes; then
33787 echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
33788 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6
33789 if test "${ice_cv_have_fprintf_decl+set}" = set; then
33790   echo $ECHO_N "(cached) $ECHO_C" >&6
33791 else
33792
33793 ice_cv_have_fprintf_decl=no
33794 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33795 ice_re_word='(^|[^a-zA-Z0-9_])'
33796 for header in stdio.h; do
33797 # Check for ordinary declaration
33798 cat >conftest.$ac_ext <<_ACEOF
33799 /* confdefs.h.  */
33800 _ACEOF
33801 cat confdefs.h >>conftest.$ac_ext
33802 cat >>conftest.$ac_ext <<_ACEOF
33803 /* end confdefs.h.  */
33804 #include <$header>
33805
33806 _ACEOF
33807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33808   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
33809   ice_cv_have_fprintf_decl=yes
33810 fi
33811 rm -f conftest*
33812
33813 if test "$ice_cv_have_fprintf_decl" = yes; then
33814         break
33815 fi
33816 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33817 cat >conftest.$ac_ext <<_ACEOF
33818 /* confdefs.h.  */
33819 _ACEOF
33820 cat confdefs.h >>conftest.$ac_ext
33821 cat >>conftest.$ac_ext <<_ACEOF
33822 /* end confdefs.h.  */
33823 #include <$header>
33824
33825 _ACEOF
33826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33827   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33828   ice_cv_have_fprintf_decl=yes
33829 fi
33830 rm -f conftest*
33831
33832 if test "$ice_cv_have_fprintf_decl" = yes; then
33833         break
33834 fi
33835 done
33836
33837 fi
33838
33839 echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
33840 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6
33841 if test "$ice_cv_have_fprintf_decl" = yes; then
33842
33843 cat >>confdefs.h <<_ACEOF
33844 #define HAVE_FPRINTF_DECL 1
33845 _ACEOF
33846
33847 fi
33848 fi
33849
33850
33851 ice_have_fputc=no
33852
33853 for ac_func in fputc
33854 do
33855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33856 echo "$as_me:$LINENO: checking for $ac_func" >&5
33857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33858 if eval "test \"\${$as_ac_var+set}\" = set"; then
33859   echo $ECHO_N "(cached) $ECHO_C" >&6
33860 else
33861   cat >conftest.$ac_ext <<_ACEOF
33862 /* confdefs.h.  */
33863 _ACEOF
33864 cat confdefs.h >>conftest.$ac_ext
33865 cat >>conftest.$ac_ext <<_ACEOF
33866 /* end confdefs.h.  */
33867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33869 #define $ac_func innocuous_$ac_func
33870
33871 /* System header to define __stub macros and hopefully few prototypes,
33872     which can conflict with char $ac_func (); below.
33873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33874     <limits.h> exists even on freestanding compilers.  */
33875
33876 #ifdef __STDC__
33877 # include <limits.h>
33878 #else
33879 # include <assert.h>
33880 #endif
33881
33882 #undef $ac_func
33883
33884 /* Override any gcc2 internal prototype to avoid an error.  */
33885 #ifdef __cplusplus
33886 extern "C"
33887 {
33888 #endif
33889 /* We use char because int might match the return type of a gcc2
33890    builtin and then its argument prototype would still apply.  */
33891 char $ac_func ();
33892 /* The GNU C library defines this for functions which it implements
33893     to always fail with ENOSYS.  Some functions are actually named
33894     something starting with __ and the normal name is an alias.  */
33895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33896 choke me
33897 #else
33898 char (*f) () = $ac_func;
33899 #endif
33900 #ifdef __cplusplus
33901 }
33902 #endif
33903
33904 int
33905 main ()
33906 {
33907 return f != $ac_func;
33908   ;
33909   return 0;
33910 }
33911 _ACEOF
33912 rm -f conftest.$ac_objext conftest$ac_exeext
33913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33914   (eval $ac_link) 2>conftest.er1
33915   ac_status=$?
33916   grep -v '^ *+' conftest.er1 >conftest.err
33917   rm -f conftest.er1
33918   cat conftest.err >&5
33919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920   (exit $ac_status); } &&
33921          { ac_try='test -z "$ac_c_werror_flag"
33922                          || test ! -s conftest.err'
33923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33924   (eval $ac_try) 2>&5
33925   ac_status=$?
33926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927   (exit $ac_status); }; } &&
33928          { ac_try='test -s conftest$ac_exeext'
33929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33930   (eval $ac_try) 2>&5
33931   ac_status=$?
33932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933   (exit $ac_status); }; }; then
33934   eval "$as_ac_var=yes"
33935 else
33936   echo "$as_me: failed program was:" >&5
33937 sed 's/^/| /' conftest.$ac_ext >&5
33938
33939 eval "$as_ac_var=no"
33940 fi
33941 rm -f conftest.err conftest.$ac_objext \
33942       conftest$ac_exeext conftest.$ac_ext
33943 fi
33944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33946 if test `eval echo '${'$as_ac_var'}'` = yes; then
33947   cat >>confdefs.h <<_ACEOF
33948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33949 _ACEOF
33950  ice_have_fputc=yes
33951 fi
33952 done
33953
33954 if test "${ice_have_fputc}" = yes; then
33955 echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
33956 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6
33957 if test "${ice_cv_have_fputc_decl+set}" = set; then
33958   echo $ECHO_N "(cached) $ECHO_C" >&6
33959 else
33960
33961 ice_cv_have_fputc_decl=no
33962 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33963 ice_re_word='(^|[^a-zA-Z0-9_])'
33964 for header in stdio.h; do
33965 # Check for ordinary declaration
33966 cat >conftest.$ac_ext <<_ACEOF
33967 /* confdefs.h.  */
33968 _ACEOF
33969 cat confdefs.h >>conftest.$ac_ext
33970 cat >>conftest.$ac_ext <<_ACEOF
33971 /* end confdefs.h.  */
33972 #include <$header>
33973
33974 _ACEOF
33975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33976   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
33977   ice_cv_have_fputc_decl=yes
33978 fi
33979 rm -f conftest*
33980
33981 if test "$ice_cv_have_fputc_decl" = yes; then
33982         break
33983 fi
33984 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33985 cat >conftest.$ac_ext <<_ACEOF
33986 /* confdefs.h.  */
33987 _ACEOF
33988 cat confdefs.h >>conftest.$ac_ext
33989 cat >>conftest.$ac_ext <<_ACEOF
33990 /* end confdefs.h.  */
33991 #include <$header>
33992
33993 _ACEOF
33994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33995   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33996   ice_cv_have_fputc_decl=yes
33997 fi
33998 rm -f conftest*
33999
34000 if test "$ice_cv_have_fputc_decl" = yes; then
34001         break
34002 fi
34003 done
34004
34005 fi
34006
34007 echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
34008 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6
34009 if test "$ice_cv_have_fputc_decl" = yes; then
34010
34011 cat >>confdefs.h <<_ACEOF
34012 #define HAVE_FPUTC_DECL 1
34013 _ACEOF
34014
34015 fi
34016 fi
34017
34018
34019 ice_have_fputs=no
34020
34021 for ac_func in fputs
34022 do
34023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34024 echo "$as_me:$LINENO: checking for $ac_func" >&5
34025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34026 if eval "test \"\${$as_ac_var+set}\" = set"; then
34027   echo $ECHO_N "(cached) $ECHO_C" >&6
34028 else
34029   cat >conftest.$ac_ext <<_ACEOF
34030 /* confdefs.h.  */
34031 _ACEOF
34032 cat confdefs.h >>conftest.$ac_ext
34033 cat >>conftest.$ac_ext <<_ACEOF
34034 /* end confdefs.h.  */
34035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34037 #define $ac_func innocuous_$ac_func
34038
34039 /* System header to define __stub macros and hopefully few prototypes,
34040     which can conflict with char $ac_func (); below.
34041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34042     <limits.h> exists even on freestanding compilers.  */
34043
34044 #ifdef __STDC__
34045 # include <limits.h>
34046 #else
34047 # include <assert.h>
34048 #endif
34049
34050 #undef $ac_func
34051
34052 /* Override any gcc2 internal prototype to avoid an error.  */
34053 #ifdef __cplusplus
34054 extern "C"
34055 {
34056 #endif
34057 /* We use char because int might match the return type of a gcc2
34058    builtin and then its argument prototype would still apply.  */
34059 char $ac_func ();
34060 /* The GNU C library defines this for functions which it implements
34061     to always fail with ENOSYS.  Some functions are actually named
34062     something starting with __ and the normal name is an alias.  */
34063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34064 choke me
34065 #else
34066 char (*f) () = $ac_func;
34067 #endif
34068 #ifdef __cplusplus
34069 }
34070 #endif
34071
34072 int
34073 main ()
34074 {
34075 return f != $ac_func;
34076   ;
34077   return 0;
34078 }
34079 _ACEOF
34080 rm -f conftest.$ac_objext conftest$ac_exeext
34081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34082   (eval $ac_link) 2>conftest.er1
34083   ac_status=$?
34084   grep -v '^ *+' conftest.er1 >conftest.err
34085   rm -f conftest.er1
34086   cat conftest.err >&5
34087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34088   (exit $ac_status); } &&
34089          { ac_try='test -z "$ac_c_werror_flag"
34090                          || test ! -s conftest.err'
34091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34092   (eval $ac_try) 2>&5
34093   ac_status=$?
34094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095   (exit $ac_status); }; } &&
34096          { ac_try='test -s conftest$ac_exeext'
34097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34098   (eval $ac_try) 2>&5
34099   ac_status=$?
34100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101   (exit $ac_status); }; }; then
34102   eval "$as_ac_var=yes"
34103 else
34104   echo "$as_me: failed program was:" >&5
34105 sed 's/^/| /' conftest.$ac_ext >&5
34106
34107 eval "$as_ac_var=no"
34108 fi
34109 rm -f conftest.err conftest.$ac_objext \
34110       conftest$ac_exeext conftest.$ac_ext
34111 fi
34112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34114 if test `eval echo '${'$as_ac_var'}'` = yes; then
34115   cat >>confdefs.h <<_ACEOF
34116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34117 _ACEOF
34118  ice_have_fputs=yes
34119 fi
34120 done
34121
34122 if test "${ice_have_fputs}" = yes; then
34123 echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
34124 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6
34125 if test "${ice_cv_have_fputs_decl+set}" = set; then
34126   echo $ECHO_N "(cached) $ECHO_C" >&6
34127 else
34128
34129 ice_cv_have_fputs_decl=no
34130 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34131 ice_re_word='(^|[^a-zA-Z0-9_])'
34132 for header in stdio.h; do
34133 # Check for ordinary declaration
34134 cat >conftest.$ac_ext <<_ACEOF
34135 /* confdefs.h.  */
34136 _ACEOF
34137 cat confdefs.h >>conftest.$ac_ext
34138 cat >>conftest.$ac_ext <<_ACEOF
34139 /* end confdefs.h.  */
34140 #include <$header>
34141
34142 _ACEOF
34143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34144   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
34145   ice_cv_have_fputs_decl=yes
34146 fi
34147 rm -f conftest*
34148
34149 if test "$ice_cv_have_fputs_decl" = yes; then
34150         break
34151 fi
34152 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34153 cat >conftest.$ac_ext <<_ACEOF
34154 /* confdefs.h.  */
34155 _ACEOF
34156 cat confdefs.h >>conftest.$ac_ext
34157 cat >>conftest.$ac_ext <<_ACEOF
34158 /* end confdefs.h.  */
34159 #include <$header>
34160
34161 _ACEOF
34162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34163   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34164   ice_cv_have_fputs_decl=yes
34165 fi
34166 rm -f conftest*
34167
34168 if test "$ice_cv_have_fputs_decl" = yes; then
34169         break
34170 fi
34171 done
34172
34173 fi
34174
34175 echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
34176 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6
34177 if test "$ice_cv_have_fputs_decl" = yes; then
34178
34179 cat >>confdefs.h <<_ACEOF
34180 #define HAVE_FPUTS_DECL 1
34181 _ACEOF
34182
34183 fi
34184 fi
34185
34186
34187 ice_have_fread=no
34188
34189 for ac_func in fread
34190 do
34191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34192 echo "$as_me:$LINENO: checking for $ac_func" >&5
34193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34194 if eval "test \"\${$as_ac_var+set}\" = set"; then
34195   echo $ECHO_N "(cached) $ECHO_C" >&6
34196 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34204    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34205 #define $ac_func innocuous_$ac_func
34206
34207 /* System header to define __stub macros and hopefully few prototypes,
34208     which can conflict with char $ac_func (); below.
34209     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34210     <limits.h> exists even on freestanding compilers.  */
34211
34212 #ifdef __STDC__
34213 # include <limits.h>
34214 #else
34215 # include <assert.h>
34216 #endif
34217
34218 #undef $ac_func
34219
34220 /* Override any gcc2 internal prototype to avoid an error.  */
34221 #ifdef __cplusplus
34222 extern "C"
34223 {
34224 #endif
34225 /* We use char because int might match the return type of a gcc2
34226    builtin and then its argument prototype would still apply.  */
34227 char $ac_func ();
34228 /* The GNU C library defines this for functions which it implements
34229     to always fail with ENOSYS.  Some functions are actually named
34230     something starting with __ and the normal name is an alias.  */
34231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34232 choke me
34233 #else
34234 char (*f) () = $ac_func;
34235 #endif
34236 #ifdef __cplusplus
34237 }
34238 #endif
34239
34240 int
34241 main ()
34242 {
34243 return f != $ac_func;
34244   ;
34245   return 0;
34246 }
34247 _ACEOF
34248 rm -f conftest.$ac_objext conftest$ac_exeext
34249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34250   (eval $ac_link) 2>conftest.er1
34251   ac_status=$?
34252   grep -v '^ *+' conftest.er1 >conftest.err
34253   rm -f conftest.er1
34254   cat conftest.err >&5
34255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34256   (exit $ac_status); } &&
34257          { ac_try='test -z "$ac_c_werror_flag"
34258                          || test ! -s conftest.err'
34259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34260   (eval $ac_try) 2>&5
34261   ac_status=$?
34262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34263   (exit $ac_status); }; } &&
34264          { ac_try='test -s conftest$ac_exeext'
34265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34266   (eval $ac_try) 2>&5
34267   ac_status=$?
34268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34269   (exit $ac_status); }; }; then
34270   eval "$as_ac_var=yes"
34271 else
34272   echo "$as_me: failed program was:" >&5
34273 sed 's/^/| /' conftest.$ac_ext >&5
34274
34275 eval "$as_ac_var=no"
34276 fi
34277 rm -f conftest.err conftest.$ac_objext \
34278       conftest$ac_exeext conftest.$ac_ext
34279 fi
34280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34282 if test `eval echo '${'$as_ac_var'}'` = yes; then
34283   cat >>confdefs.h <<_ACEOF
34284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34285 _ACEOF
34286  ice_have_fread=yes
34287 fi
34288 done
34289
34290 if test "${ice_have_fread}" = yes; then
34291 echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
34292 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6
34293 if test "${ice_cv_have_fread_decl+set}" = set; then
34294   echo $ECHO_N "(cached) $ECHO_C" >&6
34295 else
34296
34297 ice_cv_have_fread_decl=no
34298 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34299 ice_re_word='(^|[^a-zA-Z0-9_])'
34300 for header in stdio.h stdlib.h; do
34301 # Check for ordinary declaration
34302 cat >conftest.$ac_ext <<_ACEOF
34303 /* confdefs.h.  */
34304 _ACEOF
34305 cat confdefs.h >>conftest.$ac_ext
34306 cat >>conftest.$ac_ext <<_ACEOF
34307 /* end confdefs.h.  */
34308 #include <$header>
34309
34310 _ACEOF
34311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34312   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
34313   ice_cv_have_fread_decl=yes
34314 fi
34315 rm -f conftest*
34316
34317 if test "$ice_cv_have_fread_decl" = yes; then
34318         break
34319 fi
34320 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34321 cat >conftest.$ac_ext <<_ACEOF
34322 /* confdefs.h.  */
34323 _ACEOF
34324 cat confdefs.h >>conftest.$ac_ext
34325 cat >>conftest.$ac_ext <<_ACEOF
34326 /* end confdefs.h.  */
34327 #include <$header>
34328
34329 _ACEOF
34330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34331   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34332   ice_cv_have_fread_decl=yes
34333 fi
34334 rm -f conftest*
34335
34336 if test "$ice_cv_have_fread_decl" = yes; then
34337         break
34338 fi
34339 done
34340
34341 fi
34342
34343 echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
34344 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6
34345 if test "$ice_cv_have_fread_decl" = yes; then
34346
34347 cat >>confdefs.h <<_ACEOF
34348 #define HAVE_FREAD_DECL 1
34349 _ACEOF
34350
34351 fi
34352 fi
34353
34354
34355 ice_have_fseek=no
34356
34357 for ac_func in fseek
34358 do
34359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34360 echo "$as_me:$LINENO: checking for $ac_func" >&5
34361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34362 if eval "test \"\${$as_ac_var+set}\" = set"; then
34363   echo $ECHO_N "(cached) $ECHO_C" >&6
34364 else
34365   cat >conftest.$ac_ext <<_ACEOF
34366 /* confdefs.h.  */
34367 _ACEOF
34368 cat confdefs.h >>conftest.$ac_ext
34369 cat >>conftest.$ac_ext <<_ACEOF
34370 /* end confdefs.h.  */
34371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34373 #define $ac_func innocuous_$ac_func
34374
34375 /* System header to define __stub macros and hopefully few prototypes,
34376     which can conflict with char $ac_func (); below.
34377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34378     <limits.h> exists even on freestanding compilers.  */
34379
34380 #ifdef __STDC__
34381 # include <limits.h>
34382 #else
34383 # include <assert.h>
34384 #endif
34385
34386 #undef $ac_func
34387
34388 /* Override any gcc2 internal prototype to avoid an error.  */
34389 #ifdef __cplusplus
34390 extern "C"
34391 {
34392 #endif
34393 /* We use char because int might match the return type of a gcc2
34394    builtin and then its argument prototype would still apply.  */
34395 char $ac_func ();
34396 /* The GNU C library defines this for functions which it implements
34397     to always fail with ENOSYS.  Some functions are actually named
34398     something starting with __ and the normal name is an alias.  */
34399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34400 choke me
34401 #else
34402 char (*f) () = $ac_func;
34403 #endif
34404 #ifdef __cplusplus
34405 }
34406 #endif
34407
34408 int
34409 main ()
34410 {
34411 return f != $ac_func;
34412   ;
34413   return 0;
34414 }
34415 _ACEOF
34416 rm -f conftest.$ac_objext conftest$ac_exeext
34417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34418   (eval $ac_link) 2>conftest.er1
34419   ac_status=$?
34420   grep -v '^ *+' conftest.er1 >conftest.err
34421   rm -f conftest.er1
34422   cat conftest.err >&5
34423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34424   (exit $ac_status); } &&
34425          { ac_try='test -z "$ac_c_werror_flag"
34426                          || test ! -s conftest.err'
34427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34428   (eval $ac_try) 2>&5
34429   ac_status=$?
34430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431   (exit $ac_status); }; } &&
34432          { ac_try='test -s conftest$ac_exeext'
34433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34434   (eval $ac_try) 2>&5
34435   ac_status=$?
34436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437   (exit $ac_status); }; }; then
34438   eval "$as_ac_var=yes"
34439 else
34440   echo "$as_me: failed program was:" >&5
34441 sed 's/^/| /' conftest.$ac_ext >&5
34442
34443 eval "$as_ac_var=no"
34444 fi
34445 rm -f conftest.err conftest.$ac_objext \
34446       conftest$ac_exeext conftest.$ac_ext
34447 fi
34448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34450 if test `eval echo '${'$as_ac_var'}'` = yes; then
34451   cat >>confdefs.h <<_ACEOF
34452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34453 _ACEOF
34454  ice_have_fseek=yes
34455 fi
34456 done
34457
34458 if test "${ice_have_fseek}" = yes; then
34459 echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
34460 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6
34461 if test "${ice_cv_have_fseek_decl+set}" = set; then
34462   echo $ECHO_N "(cached) $ECHO_C" >&6
34463 else
34464
34465 ice_cv_have_fseek_decl=no
34466 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34467 ice_re_word='(^|[^a-zA-Z0-9_])'
34468 for header in stdio.h; do
34469 # Check for ordinary declaration
34470 cat >conftest.$ac_ext <<_ACEOF
34471 /* confdefs.h.  */
34472 _ACEOF
34473 cat confdefs.h >>conftest.$ac_ext
34474 cat >>conftest.$ac_ext <<_ACEOF
34475 /* end confdefs.h.  */
34476 #include <$header>
34477
34478 _ACEOF
34479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34480   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
34481   ice_cv_have_fseek_decl=yes
34482 fi
34483 rm -f conftest*
34484
34485 if test "$ice_cv_have_fseek_decl" = yes; then
34486         break
34487 fi
34488 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34489 cat >conftest.$ac_ext <<_ACEOF
34490 /* confdefs.h.  */
34491 _ACEOF
34492 cat confdefs.h >>conftest.$ac_ext
34493 cat >>conftest.$ac_ext <<_ACEOF
34494 /* end confdefs.h.  */
34495 #include <$header>
34496
34497 _ACEOF
34498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34499   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34500   ice_cv_have_fseek_decl=yes
34501 fi
34502 rm -f conftest*
34503
34504 if test "$ice_cv_have_fseek_decl" = yes; then
34505         break
34506 fi
34507 done
34508
34509 fi
34510
34511 echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
34512 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6
34513 if test "$ice_cv_have_fseek_decl" = yes; then
34514
34515 cat >>confdefs.h <<_ACEOF
34516 #define HAVE_FSEEK_DECL 1
34517 _ACEOF
34518
34519 fi
34520 fi
34521
34522
34523 ice_have_fwrite=no
34524
34525 for ac_func in fwrite
34526 do
34527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34528 echo "$as_me:$LINENO: checking for $ac_func" >&5
34529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34530 if eval "test \"\${$as_ac_var+set}\" = set"; then
34531   echo $ECHO_N "(cached) $ECHO_C" >&6
34532 else
34533   cat >conftest.$ac_ext <<_ACEOF
34534 /* confdefs.h.  */
34535 _ACEOF
34536 cat confdefs.h >>conftest.$ac_ext
34537 cat >>conftest.$ac_ext <<_ACEOF
34538 /* end confdefs.h.  */
34539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34541 #define $ac_func innocuous_$ac_func
34542
34543 /* System header to define __stub macros and hopefully few prototypes,
34544     which can conflict with char $ac_func (); below.
34545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34546     <limits.h> exists even on freestanding compilers.  */
34547
34548 #ifdef __STDC__
34549 # include <limits.h>
34550 #else
34551 # include <assert.h>
34552 #endif
34553
34554 #undef $ac_func
34555
34556 /* Override any gcc2 internal prototype to avoid an error.  */
34557 #ifdef __cplusplus
34558 extern "C"
34559 {
34560 #endif
34561 /* We use char because int might match the return type of a gcc2
34562    builtin and then its argument prototype would still apply.  */
34563 char $ac_func ();
34564 /* The GNU C library defines this for functions which it implements
34565     to always fail with ENOSYS.  Some functions are actually named
34566     something starting with __ and the normal name is an alias.  */
34567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34568 choke me
34569 #else
34570 char (*f) () = $ac_func;
34571 #endif
34572 #ifdef __cplusplus
34573 }
34574 #endif
34575
34576 int
34577 main ()
34578 {
34579 return f != $ac_func;
34580   ;
34581   return 0;
34582 }
34583 _ACEOF
34584 rm -f conftest.$ac_objext conftest$ac_exeext
34585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34586   (eval $ac_link) 2>conftest.er1
34587   ac_status=$?
34588   grep -v '^ *+' conftest.er1 >conftest.err
34589   rm -f conftest.er1
34590   cat conftest.err >&5
34591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34592   (exit $ac_status); } &&
34593          { ac_try='test -z "$ac_c_werror_flag"
34594                          || test ! -s conftest.err'
34595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34596   (eval $ac_try) 2>&5
34597   ac_status=$?
34598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34599   (exit $ac_status); }; } &&
34600          { ac_try='test -s conftest$ac_exeext'
34601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34602   (eval $ac_try) 2>&5
34603   ac_status=$?
34604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605   (exit $ac_status); }; }; then
34606   eval "$as_ac_var=yes"
34607 else
34608   echo "$as_me: failed program was:" >&5
34609 sed 's/^/| /' conftest.$ac_ext >&5
34610
34611 eval "$as_ac_var=no"
34612 fi
34613 rm -f conftest.err conftest.$ac_objext \
34614       conftest$ac_exeext conftest.$ac_ext
34615 fi
34616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34618 if test `eval echo '${'$as_ac_var'}'` = yes; then
34619   cat >>confdefs.h <<_ACEOF
34620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34621 _ACEOF
34622  ice_have_fwrite=yes
34623 fi
34624 done
34625
34626 if test "${ice_have_fwrite}" = yes; then
34627 echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
34628 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6
34629 if test "${ice_cv_have_fwrite_decl+set}" = set; then
34630   echo $ECHO_N "(cached) $ECHO_C" >&6
34631 else
34632
34633 ice_cv_have_fwrite_decl=no
34634 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34635 ice_re_word='(^|[^a-zA-Z0-9_])'
34636 for header in stdio.h stdlib.h; do
34637 # Check for ordinary declaration
34638 cat >conftest.$ac_ext <<_ACEOF
34639 /* confdefs.h.  */
34640 _ACEOF
34641 cat confdefs.h >>conftest.$ac_ext
34642 cat >>conftest.$ac_ext <<_ACEOF
34643 /* end confdefs.h.  */
34644 #include <$header>
34645
34646 _ACEOF
34647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34648   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
34649   ice_cv_have_fwrite_decl=yes
34650 fi
34651 rm -f conftest*
34652
34653 if test "$ice_cv_have_fwrite_decl" = yes; then
34654         break
34655 fi
34656 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34657 cat >conftest.$ac_ext <<_ACEOF
34658 /* confdefs.h.  */
34659 _ACEOF
34660 cat confdefs.h >>conftest.$ac_ext
34661 cat >>conftest.$ac_ext <<_ACEOF
34662 /* end confdefs.h.  */
34663 #include <$header>
34664
34665 _ACEOF
34666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34667   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34668   ice_cv_have_fwrite_decl=yes
34669 fi
34670 rm -f conftest*
34671
34672 if test "$ice_cv_have_fwrite_decl" = yes; then
34673         break
34674 fi
34675 done
34676
34677 fi
34678
34679 echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
34680 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6
34681 if test "$ice_cv_have_fwrite_decl" = yes; then
34682
34683 cat >>confdefs.h <<_ACEOF
34684 #define HAVE_FWRITE_DECL 1
34685 _ACEOF
34686
34687 fi
34688 fi
34689
34690
34691 for ac_func in getcwd
34692 do
34693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34694 echo "$as_me:$LINENO: checking for $ac_func" >&5
34695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34696 if eval "test \"\${$as_ac_var+set}\" = set"; then
34697   echo $ECHO_N "(cached) $ECHO_C" >&6
34698 else
34699   cat >conftest.$ac_ext <<_ACEOF
34700 /* confdefs.h.  */
34701 _ACEOF
34702 cat confdefs.h >>conftest.$ac_ext
34703 cat >>conftest.$ac_ext <<_ACEOF
34704 /* end confdefs.h.  */
34705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34707 #define $ac_func innocuous_$ac_func
34708
34709 /* System header to define __stub macros and hopefully few prototypes,
34710     which can conflict with char $ac_func (); below.
34711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34712     <limits.h> exists even on freestanding compilers.  */
34713
34714 #ifdef __STDC__
34715 # include <limits.h>
34716 #else
34717 # include <assert.h>
34718 #endif
34719
34720 #undef $ac_func
34721
34722 /* Override any gcc2 internal prototype to avoid an error.  */
34723 #ifdef __cplusplus
34724 extern "C"
34725 {
34726 #endif
34727 /* We use char because int might match the return type of a gcc2
34728    builtin and then its argument prototype would still apply.  */
34729 char $ac_func ();
34730 /* The GNU C library defines this for functions which it implements
34731     to always fail with ENOSYS.  Some functions are actually named
34732     something starting with __ and the normal name is an alias.  */
34733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34734 choke me
34735 #else
34736 char (*f) () = $ac_func;
34737 #endif
34738 #ifdef __cplusplus
34739 }
34740 #endif
34741
34742 int
34743 main ()
34744 {
34745 return f != $ac_func;
34746   ;
34747   return 0;
34748 }
34749 _ACEOF
34750 rm -f conftest.$ac_objext conftest$ac_exeext
34751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34752   (eval $ac_link) 2>conftest.er1
34753   ac_status=$?
34754   grep -v '^ *+' conftest.er1 >conftest.err
34755   rm -f conftest.er1
34756   cat conftest.err >&5
34757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758   (exit $ac_status); } &&
34759          { ac_try='test -z "$ac_c_werror_flag"
34760                          || test ! -s conftest.err'
34761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34762   (eval $ac_try) 2>&5
34763   ac_status=$?
34764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765   (exit $ac_status); }; } &&
34766          { ac_try='test -s conftest$ac_exeext'
34767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34768   (eval $ac_try) 2>&5
34769   ac_status=$?
34770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34771   (exit $ac_status); }; }; then
34772   eval "$as_ac_var=yes"
34773 else
34774   echo "$as_me: failed program was:" >&5
34775 sed 's/^/| /' conftest.$ac_ext >&5
34776
34777 eval "$as_ac_var=no"
34778 fi
34779 rm -f conftest.err conftest.$ac_objext \
34780       conftest$ac_exeext conftest.$ac_ext
34781 fi
34782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34784 if test `eval echo '${'$as_ac_var'}'` = yes; then
34785   cat >>confdefs.h <<_ACEOF
34786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34787 _ACEOF
34788
34789 else
34790   case $LIBOBJS in
34791     "$ac_func.$ac_objext"   | \
34792   *" $ac_func.$ac_objext"   | \
34793     "$ac_func.$ac_objext "* | \
34794   *" $ac_func.$ac_objext "* ) ;;
34795   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
34796 esac
34797
34798 fi
34799 done
34800
34801
34802
34803 for ac_func in getfsent
34804 do
34805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34806 echo "$as_me:$LINENO: checking for $ac_func" >&5
34807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34808 if eval "test \"\${$as_ac_var+set}\" = set"; then
34809   echo $ECHO_N "(cached) $ECHO_C" >&6
34810 else
34811   cat >conftest.$ac_ext <<_ACEOF
34812 /* confdefs.h.  */
34813 _ACEOF
34814 cat confdefs.h >>conftest.$ac_ext
34815 cat >>conftest.$ac_ext <<_ACEOF
34816 /* end confdefs.h.  */
34817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34819 #define $ac_func innocuous_$ac_func
34820
34821 /* System header to define __stub macros and hopefully few prototypes,
34822     which can conflict with char $ac_func (); below.
34823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34824     <limits.h> exists even on freestanding compilers.  */
34825
34826 #ifdef __STDC__
34827 # include <limits.h>
34828 #else
34829 # include <assert.h>
34830 #endif
34831
34832 #undef $ac_func
34833
34834 /* Override any gcc2 internal prototype to avoid an error.  */
34835 #ifdef __cplusplus
34836 extern "C"
34837 {
34838 #endif
34839 /* We use char because int might match the return type of a gcc2
34840    builtin and then its argument prototype would still apply.  */
34841 char $ac_func ();
34842 /* The GNU C library defines this for functions which it implements
34843     to always fail with ENOSYS.  Some functions are actually named
34844     something starting with __ and the normal name is an alias.  */
34845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34846 choke me
34847 #else
34848 char (*f) () = $ac_func;
34849 #endif
34850 #ifdef __cplusplus
34851 }
34852 #endif
34853
34854 int
34855 main ()
34856 {
34857 return f != $ac_func;
34858   ;
34859   return 0;
34860 }
34861 _ACEOF
34862 rm -f conftest.$ac_objext conftest$ac_exeext
34863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34864   (eval $ac_link) 2>conftest.er1
34865   ac_status=$?
34866   grep -v '^ *+' conftest.er1 >conftest.err
34867   rm -f conftest.er1
34868   cat conftest.err >&5
34869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870   (exit $ac_status); } &&
34871          { ac_try='test -z "$ac_c_werror_flag"
34872                          || test ! -s conftest.err'
34873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34874   (eval $ac_try) 2>&5
34875   ac_status=$?
34876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877   (exit $ac_status); }; } &&
34878          { ac_try='test -s conftest$ac_exeext'
34879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34880   (eval $ac_try) 2>&5
34881   ac_status=$?
34882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883   (exit $ac_status); }; }; then
34884   eval "$as_ac_var=yes"
34885 else
34886   echo "$as_me: failed program was:" >&5
34887 sed 's/^/| /' conftest.$ac_ext >&5
34888
34889 eval "$as_ac_var=no"
34890 fi
34891 rm -f conftest.err conftest.$ac_objext \
34892       conftest$ac_exeext conftest.$ac_ext
34893 fi
34894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34896 if test `eval echo '${'$as_ac_var'}'` = yes; then
34897   cat >>confdefs.h <<_ACEOF
34898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34899 _ACEOF
34900
34901 fi
34902 done
34903
34904
34905 ice_have_gethostname=no
34906
34907 for ac_func in gethostname
34908 do
34909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34910 echo "$as_me:$LINENO: checking for $ac_func" >&5
34911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34912 if eval "test \"\${$as_ac_var+set}\" = set"; then
34913   echo $ECHO_N "(cached) $ECHO_C" >&6
34914 else
34915   cat >conftest.$ac_ext <<_ACEOF
34916 /* confdefs.h.  */
34917 _ACEOF
34918 cat confdefs.h >>conftest.$ac_ext
34919 cat >>conftest.$ac_ext <<_ACEOF
34920 /* end confdefs.h.  */
34921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34923 #define $ac_func innocuous_$ac_func
34924
34925 /* System header to define __stub macros and hopefully few prototypes,
34926     which can conflict with char $ac_func (); below.
34927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34928     <limits.h> exists even on freestanding compilers.  */
34929
34930 #ifdef __STDC__
34931 # include <limits.h>
34932 #else
34933 # include <assert.h>
34934 #endif
34935
34936 #undef $ac_func
34937
34938 /* Override any gcc2 internal prototype to avoid an error.  */
34939 #ifdef __cplusplus
34940 extern "C"
34941 {
34942 #endif
34943 /* We use char because int might match the return type of a gcc2
34944    builtin and then its argument prototype would still apply.  */
34945 char $ac_func ();
34946 /* The GNU C library defines this for functions which it implements
34947     to always fail with ENOSYS.  Some functions are actually named
34948     something starting with __ and the normal name is an alias.  */
34949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34950 choke me
34951 #else
34952 char (*f) () = $ac_func;
34953 #endif
34954 #ifdef __cplusplus
34955 }
34956 #endif
34957
34958 int
34959 main ()
34960 {
34961 return f != $ac_func;
34962   ;
34963   return 0;
34964 }
34965 _ACEOF
34966 rm -f conftest.$ac_objext conftest$ac_exeext
34967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34968   (eval $ac_link) 2>conftest.er1
34969   ac_status=$?
34970   grep -v '^ *+' conftest.er1 >conftest.err
34971   rm -f conftest.er1
34972   cat conftest.err >&5
34973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974   (exit $ac_status); } &&
34975          { ac_try='test -z "$ac_c_werror_flag"
34976                          || test ! -s conftest.err'
34977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34978   (eval $ac_try) 2>&5
34979   ac_status=$?
34980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34981   (exit $ac_status); }; } &&
34982          { ac_try='test -s conftest$ac_exeext'
34983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34984   (eval $ac_try) 2>&5
34985   ac_status=$?
34986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987   (exit $ac_status); }; }; then
34988   eval "$as_ac_var=yes"
34989 else
34990   echo "$as_me: failed program was:" >&5
34991 sed 's/^/| /' conftest.$ac_ext >&5
34992
34993 eval "$as_ac_var=no"
34994 fi
34995 rm -f conftest.err conftest.$ac_objext \
34996       conftest$ac_exeext conftest.$ac_ext
34997 fi
34998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35000 if test `eval echo '${'$as_ac_var'}'` = yes; then
35001   cat >>confdefs.h <<_ACEOF
35002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35003 _ACEOF
35004  ice_have_gethostname=yes
35005 fi
35006 done
35007
35008 if test "${ice_have_gethostname}" = yes; then
35009 echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
35010 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6
35011 if test "${ice_cv_have_gethostname_decl+set}" = set; then
35012   echo $ECHO_N "(cached) $ECHO_C" >&6
35013 else
35014
35015 ice_cv_have_gethostname_decl=no
35016 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35017 ice_re_word='(^|[^a-zA-Z0-9_])'
35018 for header in unistd.h; do
35019 # Check for ordinary declaration
35020 cat >conftest.$ac_ext <<_ACEOF
35021 /* confdefs.h.  */
35022 _ACEOF
35023 cat confdefs.h >>conftest.$ac_ext
35024 cat >>conftest.$ac_ext <<_ACEOF
35025 /* end confdefs.h.  */
35026 #include <$header>
35027
35028 _ACEOF
35029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35030   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
35031   ice_cv_have_gethostname_decl=yes
35032 fi
35033 rm -f conftest*
35034
35035 if test "$ice_cv_have_gethostname_decl" = yes; then
35036         break
35037 fi
35038 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35039 cat >conftest.$ac_ext <<_ACEOF
35040 /* confdefs.h.  */
35041 _ACEOF
35042 cat confdefs.h >>conftest.$ac_ext
35043 cat >>conftest.$ac_ext <<_ACEOF
35044 /* end confdefs.h.  */
35045 #include <$header>
35046
35047 _ACEOF
35048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35049   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35050   ice_cv_have_gethostname_decl=yes
35051 fi
35052 rm -f conftest*
35053
35054 if test "$ice_cv_have_gethostname_decl" = yes; then
35055         break
35056 fi
35057 done
35058
35059 fi
35060
35061 echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
35062 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6
35063 if test "$ice_cv_have_gethostname_decl" = yes; then
35064
35065 cat >>confdefs.h <<_ACEOF
35066 #define HAVE_GETHOSTNAME_DECL 1
35067 _ACEOF
35068
35069 fi
35070 fi
35071
35072 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
35073 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
35074 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
35075 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
35076   echo $ECHO_N "(cached) $ECHO_C" >&6
35077 else
35078   ac_check_lib_save_LIBS=$LIBS
35079 LIBS="-lsun  $LIBS"
35080 cat >conftest.$ac_ext <<_ACEOF
35081 /* confdefs.h.  */
35082 _ACEOF
35083 cat confdefs.h >>conftest.$ac_ext
35084 cat >>conftest.$ac_ext <<_ACEOF
35085 /* end confdefs.h.  */
35086
35087 /* Override any gcc2 internal prototype to avoid an error.  */
35088 #ifdef __cplusplus
35089 extern "C"
35090 #endif
35091 /* We use char because int might match the return type of a gcc2
35092    builtin and then its argument prototype would still apply.  */
35093 char getmntent ();
35094 int
35095 main ()
35096 {
35097 getmntent ();
35098   ;
35099   return 0;
35100 }
35101 _ACEOF
35102 rm -f conftest.$ac_objext conftest$ac_exeext
35103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35104   (eval $ac_link) 2>conftest.er1
35105   ac_status=$?
35106   grep -v '^ *+' conftest.er1 >conftest.err
35107   rm -f conftest.er1
35108   cat conftest.err >&5
35109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110   (exit $ac_status); } &&
35111          { ac_try='test -z "$ac_c_werror_flag"
35112                          || test ! -s conftest.err'
35113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35114   (eval $ac_try) 2>&5
35115   ac_status=$?
35116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117   (exit $ac_status); }; } &&
35118          { ac_try='test -s conftest$ac_exeext'
35119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35120   (eval $ac_try) 2>&5
35121   ac_status=$?
35122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35123   (exit $ac_status); }; }; then
35124   ac_cv_lib_sun_getmntent=yes
35125 else
35126   echo "$as_me: failed program was:" >&5
35127 sed 's/^/| /' conftest.$ac_ext >&5
35128
35129 ac_cv_lib_sun_getmntent=no
35130 fi
35131 rm -f conftest.err conftest.$ac_objext \
35132       conftest$ac_exeext conftest.$ac_ext
35133 LIBS=$ac_check_lib_save_LIBS
35134 fi
35135 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
35136 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
35137 if test $ac_cv_lib_sun_getmntent = yes; then
35138   LIBS="-lsun $LIBS"
35139 else
35140   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
35141 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
35142 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
35143   echo $ECHO_N "(cached) $ECHO_C" >&6
35144 else
35145   ac_check_lib_save_LIBS=$LIBS
35146 LIBS="-lseq  $LIBS"
35147 cat >conftest.$ac_ext <<_ACEOF
35148 /* confdefs.h.  */
35149 _ACEOF
35150 cat confdefs.h >>conftest.$ac_ext
35151 cat >>conftest.$ac_ext <<_ACEOF
35152 /* end confdefs.h.  */
35153
35154 /* Override any gcc2 internal prototype to avoid an error.  */
35155 #ifdef __cplusplus
35156 extern "C"
35157 #endif
35158 /* We use char because int might match the return type of a gcc2
35159    builtin and then its argument prototype would still apply.  */
35160 char getmntent ();
35161 int
35162 main ()
35163 {
35164 getmntent ();
35165   ;
35166   return 0;
35167 }
35168 _ACEOF
35169 rm -f conftest.$ac_objext conftest$ac_exeext
35170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35171   (eval $ac_link) 2>conftest.er1
35172   ac_status=$?
35173   grep -v '^ *+' conftest.er1 >conftest.err
35174   rm -f conftest.er1
35175   cat conftest.err >&5
35176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35177   (exit $ac_status); } &&
35178          { ac_try='test -z "$ac_c_werror_flag"
35179                          || test ! -s conftest.err'
35180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35181   (eval $ac_try) 2>&5
35182   ac_status=$?
35183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184   (exit $ac_status); }; } &&
35185          { ac_try='test -s conftest$ac_exeext'
35186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35187   (eval $ac_try) 2>&5
35188   ac_status=$?
35189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35190   (exit $ac_status); }; }; then
35191   ac_cv_lib_seq_getmntent=yes
35192 else
35193   echo "$as_me: failed program was:" >&5
35194 sed 's/^/| /' conftest.$ac_ext >&5
35195
35196 ac_cv_lib_seq_getmntent=no
35197 fi
35198 rm -f conftest.err conftest.$ac_objext \
35199       conftest$ac_exeext conftest.$ac_ext
35200 LIBS=$ac_check_lib_save_LIBS
35201 fi
35202 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
35203 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
35204 if test $ac_cv_lib_seq_getmntent = yes; then
35205   LIBS="-lseq $LIBS"
35206 else
35207   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
35208 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
35209 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
35210   echo $ECHO_N "(cached) $ECHO_C" >&6
35211 else
35212   ac_check_lib_save_LIBS=$LIBS
35213 LIBS="-lgen  $LIBS"
35214 cat >conftest.$ac_ext <<_ACEOF
35215 /* confdefs.h.  */
35216 _ACEOF
35217 cat confdefs.h >>conftest.$ac_ext
35218 cat >>conftest.$ac_ext <<_ACEOF
35219 /* end confdefs.h.  */
35220
35221 /* Override any gcc2 internal prototype to avoid an error.  */
35222 #ifdef __cplusplus
35223 extern "C"
35224 #endif
35225 /* We use char because int might match the return type of a gcc2
35226    builtin and then its argument prototype would still apply.  */
35227 char getmntent ();
35228 int
35229 main ()
35230 {
35231 getmntent ();
35232   ;
35233   return 0;
35234 }
35235 _ACEOF
35236 rm -f conftest.$ac_objext conftest$ac_exeext
35237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35238   (eval $ac_link) 2>conftest.er1
35239   ac_status=$?
35240   grep -v '^ *+' conftest.er1 >conftest.err
35241   rm -f conftest.er1
35242   cat conftest.err >&5
35243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244   (exit $ac_status); } &&
35245          { ac_try='test -z "$ac_c_werror_flag"
35246                          || test ! -s conftest.err'
35247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35248   (eval $ac_try) 2>&5
35249   ac_status=$?
35250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35251   (exit $ac_status); }; } &&
35252          { ac_try='test -s conftest$ac_exeext'
35253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35254   (eval $ac_try) 2>&5
35255   ac_status=$?
35256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35257   (exit $ac_status); }; }; then
35258   ac_cv_lib_gen_getmntent=yes
35259 else
35260   echo "$as_me: failed program was:" >&5
35261 sed 's/^/| /' conftest.$ac_ext >&5
35262
35263 ac_cv_lib_gen_getmntent=no
35264 fi
35265 rm -f conftest.err conftest.$ac_objext \
35266       conftest$ac_exeext conftest.$ac_ext
35267 LIBS=$ac_check_lib_save_LIBS
35268 fi
35269 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
35270 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
35271 if test $ac_cv_lib_gen_getmntent = yes; then
35272   LIBS="-lgen $LIBS"
35273 fi
35274
35275 fi
35276
35277 fi
35278
35279
35280 for ac_func in getmntent
35281 do
35282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35283 echo "$as_me:$LINENO: checking for $ac_func" >&5
35284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35285 if eval "test \"\${$as_ac_var+set}\" = set"; then
35286   echo $ECHO_N "(cached) $ECHO_C" >&6
35287 else
35288   cat >conftest.$ac_ext <<_ACEOF
35289 /* confdefs.h.  */
35290 _ACEOF
35291 cat confdefs.h >>conftest.$ac_ext
35292 cat >>conftest.$ac_ext <<_ACEOF
35293 /* end confdefs.h.  */
35294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35296 #define $ac_func innocuous_$ac_func
35297
35298 /* System header to define __stub macros and hopefully few prototypes,
35299     which can conflict with char $ac_func (); below.
35300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35301     <limits.h> exists even on freestanding compilers.  */
35302
35303 #ifdef __STDC__
35304 # include <limits.h>
35305 #else
35306 # include <assert.h>
35307 #endif
35308
35309 #undef $ac_func
35310
35311 /* Override any gcc2 internal prototype to avoid an error.  */
35312 #ifdef __cplusplus
35313 extern "C"
35314 {
35315 #endif
35316 /* We use char because int might match the return type of a gcc2
35317    builtin and then its argument prototype would still apply.  */
35318 char $ac_func ();
35319 /* The GNU C library defines this for functions which it implements
35320     to always fail with ENOSYS.  Some functions are actually named
35321     something starting with __ and the normal name is an alias.  */
35322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35323 choke me
35324 #else
35325 char (*f) () = $ac_func;
35326 #endif
35327 #ifdef __cplusplus
35328 }
35329 #endif
35330
35331 int
35332 main ()
35333 {
35334 return f != $ac_func;
35335   ;
35336   return 0;
35337 }
35338 _ACEOF
35339 rm -f conftest.$ac_objext conftest$ac_exeext
35340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35341   (eval $ac_link) 2>conftest.er1
35342   ac_status=$?
35343   grep -v '^ *+' conftest.er1 >conftest.err
35344   rm -f conftest.er1
35345   cat conftest.err >&5
35346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347   (exit $ac_status); } &&
35348          { ac_try='test -z "$ac_c_werror_flag"
35349                          || test ! -s conftest.err'
35350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35351   (eval $ac_try) 2>&5
35352   ac_status=$?
35353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35354   (exit $ac_status); }; } &&
35355          { ac_try='test -s conftest$ac_exeext'
35356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35357   (eval $ac_try) 2>&5
35358   ac_status=$?
35359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35360   (exit $ac_status); }; }; then
35361   eval "$as_ac_var=yes"
35362 else
35363   echo "$as_me: failed program was:" >&5
35364 sed 's/^/| /' conftest.$ac_ext >&5
35365
35366 eval "$as_ac_var=no"
35367 fi
35368 rm -f conftest.err conftest.$ac_objext \
35369       conftest$ac_exeext conftest.$ac_ext
35370 fi
35371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35373 if test `eval echo '${'$as_ac_var'}'` = yes; then
35374   cat >>confdefs.h <<_ACEOF
35375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35376 _ACEOF
35377
35378 fi
35379 done
35380
35381
35382
35383 ice_have_getopt=no
35384
35385 for ac_func in getopt
35386 do
35387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35388 echo "$as_me:$LINENO: checking for $ac_func" >&5
35389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35390 if eval "test \"\${$as_ac_var+set}\" = set"; then
35391   echo $ECHO_N "(cached) $ECHO_C" >&6
35392 else
35393   cat >conftest.$ac_ext <<_ACEOF
35394 /* confdefs.h.  */
35395 _ACEOF
35396 cat confdefs.h >>conftest.$ac_ext
35397 cat >>conftest.$ac_ext <<_ACEOF
35398 /* end confdefs.h.  */
35399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35401 #define $ac_func innocuous_$ac_func
35402
35403 /* System header to define __stub macros and hopefully few prototypes,
35404     which can conflict with char $ac_func (); below.
35405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35406     <limits.h> exists even on freestanding compilers.  */
35407
35408 #ifdef __STDC__
35409 # include <limits.h>
35410 #else
35411 # include <assert.h>
35412 #endif
35413
35414 #undef $ac_func
35415
35416 /* Override any gcc2 internal prototype to avoid an error.  */
35417 #ifdef __cplusplus
35418 extern "C"
35419 {
35420 #endif
35421 /* We use char because int might match the return type of a gcc2
35422    builtin and then its argument prototype would still apply.  */
35423 char $ac_func ();
35424 /* The GNU C library defines this for functions which it implements
35425     to always fail with ENOSYS.  Some functions are actually named
35426     something starting with __ and the normal name is an alias.  */
35427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35428 choke me
35429 #else
35430 char (*f) () = $ac_func;
35431 #endif
35432 #ifdef __cplusplus
35433 }
35434 #endif
35435
35436 int
35437 main ()
35438 {
35439 return f != $ac_func;
35440   ;
35441   return 0;
35442 }
35443 _ACEOF
35444 rm -f conftest.$ac_objext conftest$ac_exeext
35445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35446   (eval $ac_link) 2>conftest.er1
35447   ac_status=$?
35448   grep -v '^ *+' conftest.er1 >conftest.err
35449   rm -f conftest.er1
35450   cat conftest.err >&5
35451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35452   (exit $ac_status); } &&
35453          { ac_try='test -z "$ac_c_werror_flag"
35454                          || test ! -s conftest.err'
35455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35456   (eval $ac_try) 2>&5
35457   ac_status=$?
35458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35459   (exit $ac_status); }; } &&
35460          { ac_try='test -s conftest$ac_exeext'
35461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35462   (eval $ac_try) 2>&5
35463   ac_status=$?
35464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35465   (exit $ac_status); }; }; then
35466   eval "$as_ac_var=yes"
35467 else
35468   echo "$as_me: failed program was:" >&5
35469 sed 's/^/| /' conftest.$ac_ext >&5
35470
35471 eval "$as_ac_var=no"
35472 fi
35473 rm -f conftest.err conftest.$ac_objext \
35474       conftest$ac_exeext conftest.$ac_ext
35475 fi
35476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35478 if test `eval echo '${'$as_ac_var'}'` = yes; then
35479   cat >>confdefs.h <<_ACEOF
35480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35481 _ACEOF
35482  ice_have_getopt=yes
35483 fi
35484 done
35485
35486 if test "${ice_have_getopt}" = yes; then
35487 echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
35488 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6
35489 if test "${ice_cv_have_getopt_decl+set}" = set; then
35490   echo $ECHO_N "(cached) $ECHO_C" >&6
35491 else
35492
35493 ice_cv_have_getopt_decl=no
35494 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35495 ice_re_word='(^|[^a-zA-Z0-9_])'
35496 for header in stdlib.h unistd.h libc.h; do
35497 # Check for ordinary declaration
35498 cat >conftest.$ac_ext <<_ACEOF
35499 /* confdefs.h.  */
35500 _ACEOF
35501 cat confdefs.h >>conftest.$ac_ext
35502 cat >>conftest.$ac_ext <<_ACEOF
35503 /* end confdefs.h.  */
35504 #include <$header>
35505
35506 _ACEOF
35507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35508   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
35509   ice_cv_have_getopt_decl=yes
35510 fi
35511 rm -f conftest*
35512
35513 if test "$ice_cv_have_getopt_decl" = yes; then
35514         break
35515 fi
35516 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35517 cat >conftest.$ac_ext <<_ACEOF
35518 /* confdefs.h.  */
35519 _ACEOF
35520 cat confdefs.h >>conftest.$ac_ext
35521 cat >>conftest.$ac_ext <<_ACEOF
35522 /* end confdefs.h.  */
35523 #include <$header>
35524
35525 _ACEOF
35526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35527   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35528   ice_cv_have_getopt_decl=yes
35529 fi
35530 rm -f conftest*
35531
35532 if test "$ice_cv_have_getopt_decl" = yes; then
35533         break
35534 fi
35535 done
35536
35537 fi
35538
35539 echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
35540 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6
35541 if test "$ice_cv_have_getopt_decl" = yes; then
35542
35543 cat >>confdefs.h <<_ACEOF
35544 #define HAVE_GETOPT_DECL 1
35545 _ACEOF
35546
35547 fi
35548 fi
35549
35550
35551 ice_have_getpeername=no
35552
35553 for ac_func in getpeername
35554 do
35555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35556 echo "$as_me:$LINENO: checking for $ac_func" >&5
35557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35558 if eval "test \"\${$as_ac_var+set}\" = set"; then
35559   echo $ECHO_N "(cached) $ECHO_C" >&6
35560 else
35561   cat >conftest.$ac_ext <<_ACEOF
35562 /* confdefs.h.  */
35563 _ACEOF
35564 cat confdefs.h >>conftest.$ac_ext
35565 cat >>conftest.$ac_ext <<_ACEOF
35566 /* end confdefs.h.  */
35567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35569 #define $ac_func innocuous_$ac_func
35570
35571 /* System header to define __stub macros and hopefully few prototypes,
35572     which can conflict with char $ac_func (); below.
35573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35574     <limits.h> exists even on freestanding compilers.  */
35575
35576 #ifdef __STDC__
35577 # include <limits.h>
35578 #else
35579 # include <assert.h>
35580 #endif
35581
35582 #undef $ac_func
35583
35584 /* Override any gcc2 internal prototype to avoid an error.  */
35585 #ifdef __cplusplus
35586 extern "C"
35587 {
35588 #endif
35589 /* We use char because int might match the return type of a gcc2
35590    builtin and then its argument prototype would still apply.  */
35591 char $ac_func ();
35592 /* The GNU C library defines this for functions which it implements
35593     to always fail with ENOSYS.  Some functions are actually named
35594     something starting with __ and the normal name is an alias.  */
35595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35596 choke me
35597 #else
35598 char (*f) () = $ac_func;
35599 #endif
35600 #ifdef __cplusplus
35601 }
35602 #endif
35603
35604 int
35605 main ()
35606 {
35607 return f != $ac_func;
35608   ;
35609   return 0;
35610 }
35611 _ACEOF
35612 rm -f conftest.$ac_objext conftest$ac_exeext
35613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35614   (eval $ac_link) 2>conftest.er1
35615   ac_status=$?
35616   grep -v '^ *+' conftest.er1 >conftest.err
35617   rm -f conftest.er1
35618   cat conftest.err >&5
35619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35620   (exit $ac_status); } &&
35621          { ac_try='test -z "$ac_c_werror_flag"
35622                          || test ! -s conftest.err'
35623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35624   (eval $ac_try) 2>&5
35625   ac_status=$?
35626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35627   (exit $ac_status); }; } &&
35628          { ac_try='test -s conftest$ac_exeext'
35629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35630   (eval $ac_try) 2>&5
35631   ac_status=$?
35632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633   (exit $ac_status); }; }; then
35634   eval "$as_ac_var=yes"
35635 else
35636   echo "$as_me: failed program was:" >&5
35637 sed 's/^/| /' conftest.$ac_ext >&5
35638
35639 eval "$as_ac_var=no"
35640 fi
35641 rm -f conftest.err conftest.$ac_objext \
35642       conftest$ac_exeext conftest.$ac_ext
35643 fi
35644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35646 if test `eval echo '${'$as_ac_var'}'` = yes; then
35647   cat >>confdefs.h <<_ACEOF
35648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35649 _ACEOF
35650  ice_have_getpeername=yes
35651 fi
35652 done
35653
35654 if test "${ice_have_getpeername}" = yes; then
35655 echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
35656 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
35657 if test "${ice_cv_have_getpeername_decl+set}" = set; then
35658   echo $ECHO_N "(cached) $ECHO_C" >&6
35659 else
35660
35661 ice_cv_have_getpeername_decl=no
35662 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35663 ice_re_word='(^|[^a-zA-Z0-9_])'
35664 for header in sys/types.h sys/socket.h; do
35665 # Check for ordinary declaration
35666 cat >conftest.$ac_ext <<_ACEOF
35667 /* confdefs.h.  */
35668 _ACEOF
35669 cat confdefs.h >>conftest.$ac_ext
35670 cat >>conftest.$ac_ext <<_ACEOF
35671 /* end confdefs.h.  */
35672 #include <$header>
35673
35674 _ACEOF
35675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35676   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
35677   ice_cv_have_getpeername_decl=yes
35678 fi
35679 rm -f conftest*
35680
35681 if test "$ice_cv_have_getpeername_decl" = yes; then
35682         break
35683 fi
35684 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35685 cat >conftest.$ac_ext <<_ACEOF
35686 /* confdefs.h.  */
35687 _ACEOF
35688 cat confdefs.h >>conftest.$ac_ext
35689 cat >>conftest.$ac_ext <<_ACEOF
35690 /* end confdefs.h.  */
35691 #include <$header>
35692
35693 _ACEOF
35694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35695   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35696   ice_cv_have_getpeername_decl=yes
35697 fi
35698 rm -f conftest*
35699
35700 if test "$ice_cv_have_getpeername_decl" = yes; then
35701         break
35702 fi
35703 done
35704
35705 fi
35706
35707 echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
35708 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6
35709 if test "$ice_cv_have_getpeername_decl" = yes; then
35710
35711 cat >>confdefs.h <<_ACEOF
35712 #define HAVE_GETPEERNAME_DECL 1
35713 _ACEOF
35714
35715 fi
35716 fi
35717
35718
35719 for ac_func in getpgrp
35720 do
35721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35722 echo "$as_me:$LINENO: checking for $ac_func" >&5
35723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35724 if eval "test \"\${$as_ac_var+set}\" = set"; then
35725   echo $ECHO_N "(cached) $ECHO_C" >&6
35726 else
35727   cat >conftest.$ac_ext <<_ACEOF
35728 /* confdefs.h.  */
35729 _ACEOF
35730 cat confdefs.h >>conftest.$ac_ext
35731 cat >>conftest.$ac_ext <<_ACEOF
35732 /* end confdefs.h.  */
35733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35735 #define $ac_func innocuous_$ac_func
35736
35737 /* System header to define __stub macros and hopefully few prototypes,
35738     which can conflict with char $ac_func (); below.
35739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35740     <limits.h> exists even on freestanding compilers.  */
35741
35742 #ifdef __STDC__
35743 # include <limits.h>
35744 #else
35745 # include <assert.h>
35746 #endif
35747
35748 #undef $ac_func
35749
35750 /* Override any gcc2 internal prototype to avoid an error.  */
35751 #ifdef __cplusplus
35752 extern "C"
35753 {
35754 #endif
35755 /* We use char because int might match the return type of a gcc2
35756    builtin and then its argument prototype would still apply.  */
35757 char $ac_func ();
35758 /* The GNU C library defines this for functions which it implements
35759     to always fail with ENOSYS.  Some functions are actually named
35760     something starting with __ and the normal name is an alias.  */
35761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35762 choke me
35763 #else
35764 char (*f) () = $ac_func;
35765 #endif
35766 #ifdef __cplusplus
35767 }
35768 #endif
35769
35770 int
35771 main ()
35772 {
35773 return f != $ac_func;
35774   ;
35775   return 0;
35776 }
35777 _ACEOF
35778 rm -f conftest.$ac_objext conftest$ac_exeext
35779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35780   (eval $ac_link) 2>conftest.er1
35781   ac_status=$?
35782   grep -v '^ *+' conftest.er1 >conftest.err
35783   rm -f conftest.er1
35784   cat conftest.err >&5
35785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35786   (exit $ac_status); } &&
35787          { ac_try='test -z "$ac_c_werror_flag"
35788                          || test ! -s conftest.err'
35789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35790   (eval $ac_try) 2>&5
35791   ac_status=$?
35792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35793   (exit $ac_status); }; } &&
35794          { ac_try='test -s conftest$ac_exeext'
35795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35796   (eval $ac_try) 2>&5
35797   ac_status=$?
35798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35799   (exit $ac_status); }; }; then
35800   eval "$as_ac_var=yes"
35801 else
35802   echo "$as_me: failed program was:" >&5
35803 sed 's/^/| /' conftest.$ac_ext >&5
35804
35805 eval "$as_ac_var=no"
35806 fi
35807 rm -f conftest.err conftest.$ac_objext \
35808       conftest$ac_exeext conftest.$ac_ext
35809 fi
35810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35812 if test `eval echo '${'$as_ac_var'}'` = yes; then
35813   cat >>confdefs.h <<_ACEOF
35814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35815 _ACEOF
35816
35817 fi
35818 done
35819
35820 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
35821 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
35822 if test "${ac_cv_func_getpgrp_void+set}" = set; then
35823   echo $ECHO_N "(cached) $ECHO_C" >&6
35824 else
35825   # Use it with a single arg.
35826 cat >conftest.$ac_ext <<_ACEOF
35827 /* confdefs.h.  */
35828 _ACEOF
35829 cat confdefs.h >>conftest.$ac_ext
35830 cat >>conftest.$ac_ext <<_ACEOF
35831 /* end confdefs.h.  */
35832 $ac_includes_default
35833 int
35834 main ()
35835 {
35836 getpgrp (0);
35837   ;
35838   return 0;
35839 }
35840 _ACEOF
35841 rm -f conftest.$ac_objext
35842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35843   (eval $ac_compile) 2>conftest.er1
35844   ac_status=$?
35845   grep -v '^ *+' conftest.er1 >conftest.err
35846   rm -f conftest.er1
35847   cat conftest.err >&5
35848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35849   (exit $ac_status); } &&
35850          { ac_try='test -z "$ac_c_werror_flag"
35851                          || test ! -s conftest.err'
35852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35853   (eval $ac_try) 2>&5
35854   ac_status=$?
35855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856   (exit $ac_status); }; } &&
35857          { ac_try='test -s conftest.$ac_objext'
35858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35859   (eval $ac_try) 2>&5
35860   ac_status=$?
35861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35862   (exit $ac_status); }; }; then
35863   ac_cv_func_getpgrp_void=no
35864 else
35865   echo "$as_me: failed program was:" >&5
35866 sed 's/^/| /' conftest.$ac_ext >&5
35867
35868 ac_cv_func_getpgrp_void=yes
35869 fi
35870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35871
35872 fi
35873 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
35874 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
35875 if test $ac_cv_func_getpgrp_void = yes; then
35876
35877 cat >>confdefs.h <<\_ACEOF
35878 #define GETPGRP_VOID 1
35879 _ACEOF
35880
35881 fi
35882
35883
35884 ice_have_getsockname=no
35885
35886 for ac_func in getsockname
35887 do
35888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35889 echo "$as_me:$LINENO: checking for $ac_func" >&5
35890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35891 if eval "test \"\${$as_ac_var+set}\" = set"; then
35892   echo $ECHO_N "(cached) $ECHO_C" >&6
35893 else
35894   cat >conftest.$ac_ext <<_ACEOF
35895 /* confdefs.h.  */
35896 _ACEOF
35897 cat confdefs.h >>conftest.$ac_ext
35898 cat >>conftest.$ac_ext <<_ACEOF
35899 /* end confdefs.h.  */
35900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35902 #define $ac_func innocuous_$ac_func
35903
35904 /* System header to define __stub macros and hopefully few prototypes,
35905     which can conflict with char $ac_func (); below.
35906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35907     <limits.h> exists even on freestanding compilers.  */
35908
35909 #ifdef __STDC__
35910 # include <limits.h>
35911 #else
35912 # include <assert.h>
35913 #endif
35914
35915 #undef $ac_func
35916
35917 /* Override any gcc2 internal prototype to avoid an error.  */
35918 #ifdef __cplusplus
35919 extern "C"
35920 {
35921 #endif
35922 /* We use char because int might match the return type of a gcc2
35923    builtin and then its argument prototype would still apply.  */
35924 char $ac_func ();
35925 /* The GNU C library defines this for functions which it implements
35926     to always fail with ENOSYS.  Some functions are actually named
35927     something starting with __ and the normal name is an alias.  */
35928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35929 choke me
35930 #else
35931 char (*f) () = $ac_func;
35932 #endif
35933 #ifdef __cplusplus
35934 }
35935 #endif
35936
35937 int
35938 main ()
35939 {
35940 return f != $ac_func;
35941   ;
35942   return 0;
35943 }
35944 _ACEOF
35945 rm -f conftest.$ac_objext conftest$ac_exeext
35946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35947   (eval $ac_link) 2>conftest.er1
35948   ac_status=$?
35949   grep -v '^ *+' conftest.er1 >conftest.err
35950   rm -f conftest.er1
35951   cat conftest.err >&5
35952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35953   (exit $ac_status); } &&
35954          { ac_try='test -z "$ac_c_werror_flag"
35955                          || test ! -s conftest.err'
35956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35957   (eval $ac_try) 2>&5
35958   ac_status=$?
35959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35960   (exit $ac_status); }; } &&
35961          { ac_try='test -s conftest$ac_exeext'
35962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35963   (eval $ac_try) 2>&5
35964   ac_status=$?
35965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35966   (exit $ac_status); }; }; then
35967   eval "$as_ac_var=yes"
35968 else
35969   echo "$as_me: failed program was:" >&5
35970 sed 's/^/| /' conftest.$ac_ext >&5
35971
35972 eval "$as_ac_var=no"
35973 fi
35974 rm -f conftest.err conftest.$ac_objext \
35975       conftest$ac_exeext conftest.$ac_ext
35976 fi
35977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35979 if test `eval echo '${'$as_ac_var'}'` = yes; then
35980   cat >>confdefs.h <<_ACEOF
35981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35982 _ACEOF
35983  ice_have_getsockname=yes
35984 fi
35985 done
35986
35987 if test "${ice_have_getsockname}" = yes; then
35988 echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
35989 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
35990 if test "${ice_cv_have_getsockname_decl+set}" = set; then
35991   echo $ECHO_N "(cached) $ECHO_C" >&6
35992 else
35993
35994 ice_cv_have_getsockname_decl=no
35995 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35996 ice_re_word='(^|[^a-zA-Z0-9_])'
35997 for header in sys/types.h sys/socket.h; do
35998 # Check for ordinary declaration
35999 cat >conftest.$ac_ext <<_ACEOF
36000 /* confdefs.h.  */
36001 _ACEOF
36002 cat confdefs.h >>conftest.$ac_ext
36003 cat >>conftest.$ac_ext <<_ACEOF
36004 /* end confdefs.h.  */
36005 #include <$header>
36006
36007 _ACEOF
36008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36009   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
36010   ice_cv_have_getsockname_decl=yes
36011 fi
36012 rm -f conftest*
36013
36014 if test "$ice_cv_have_getsockname_decl" = yes; then
36015         break
36016 fi
36017 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36018 cat >conftest.$ac_ext <<_ACEOF
36019 /* confdefs.h.  */
36020 _ACEOF
36021 cat confdefs.h >>conftest.$ac_ext
36022 cat >>conftest.$ac_ext <<_ACEOF
36023 /* end confdefs.h.  */
36024 #include <$header>
36025
36026 _ACEOF
36027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36028   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36029   ice_cv_have_getsockname_decl=yes
36030 fi
36031 rm -f conftest*
36032
36033 if test "$ice_cv_have_getsockname_decl" = yes; then
36034         break
36035 fi
36036 done
36037
36038 fi
36039
36040 echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
36041 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6
36042 if test "$ice_cv_have_getsockname_decl" = yes; then
36043
36044 cat >>confdefs.h <<_ACEOF
36045 #define HAVE_GETSOCKNAME_DECL 1
36046 _ACEOF
36047
36048 fi
36049 fi
36050
36051
36052 ice_have_getsockopt=no
36053
36054 for ac_func in getsockopt
36055 do
36056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36057 echo "$as_me:$LINENO: checking for $ac_func" >&5
36058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36059 if eval "test \"\${$as_ac_var+set}\" = set"; then
36060   echo $ECHO_N "(cached) $ECHO_C" >&6
36061 else
36062   cat >conftest.$ac_ext <<_ACEOF
36063 /* confdefs.h.  */
36064 _ACEOF
36065 cat confdefs.h >>conftest.$ac_ext
36066 cat >>conftest.$ac_ext <<_ACEOF
36067 /* end confdefs.h.  */
36068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36070 #define $ac_func innocuous_$ac_func
36071
36072 /* System header to define __stub macros and hopefully few prototypes,
36073     which can conflict with char $ac_func (); below.
36074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36075     <limits.h> exists even on freestanding compilers.  */
36076
36077 #ifdef __STDC__
36078 # include <limits.h>
36079 #else
36080 # include <assert.h>
36081 #endif
36082
36083 #undef $ac_func
36084
36085 /* Override any gcc2 internal prototype to avoid an error.  */
36086 #ifdef __cplusplus
36087 extern "C"
36088 {
36089 #endif
36090 /* We use char because int might match the return type of a gcc2
36091    builtin and then its argument prototype would still apply.  */
36092 char $ac_func ();
36093 /* The GNU C library defines this for functions which it implements
36094     to always fail with ENOSYS.  Some functions are actually named
36095     something starting with __ and the normal name is an alias.  */
36096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36097 choke me
36098 #else
36099 char (*f) () = $ac_func;
36100 #endif
36101 #ifdef __cplusplus
36102 }
36103 #endif
36104
36105 int
36106 main ()
36107 {
36108 return f != $ac_func;
36109   ;
36110   return 0;
36111 }
36112 _ACEOF
36113 rm -f conftest.$ac_objext conftest$ac_exeext
36114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36115   (eval $ac_link) 2>conftest.er1
36116   ac_status=$?
36117   grep -v '^ *+' conftest.er1 >conftest.err
36118   rm -f conftest.er1
36119   cat conftest.err >&5
36120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36121   (exit $ac_status); } &&
36122          { ac_try='test -z "$ac_c_werror_flag"
36123                          || test ! -s conftest.err'
36124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36125   (eval $ac_try) 2>&5
36126   ac_status=$?
36127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36128   (exit $ac_status); }; } &&
36129          { ac_try='test -s conftest$ac_exeext'
36130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36131   (eval $ac_try) 2>&5
36132   ac_status=$?
36133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36134   (exit $ac_status); }; }; then
36135   eval "$as_ac_var=yes"
36136 else
36137   echo "$as_me: failed program was:" >&5
36138 sed 's/^/| /' conftest.$ac_ext >&5
36139
36140 eval "$as_ac_var=no"
36141 fi
36142 rm -f conftest.err conftest.$ac_objext \
36143       conftest$ac_exeext conftest.$ac_ext
36144 fi
36145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36147 if test `eval echo '${'$as_ac_var'}'` = yes; then
36148   cat >>confdefs.h <<_ACEOF
36149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36150 _ACEOF
36151  ice_have_getsockopt=yes
36152 fi
36153 done
36154
36155 if test "${ice_have_getsockopt}" = yes; then
36156 echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
36157 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
36158 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
36159   echo $ECHO_N "(cached) $ECHO_C" >&6
36160 else
36161
36162 ice_cv_have_getsockopt_decl=no
36163 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36164 ice_re_word='(^|[^a-zA-Z0-9_])'
36165 for header in sys/types.h sys/socket.h; do
36166 # Check for ordinary declaration
36167 cat >conftest.$ac_ext <<_ACEOF
36168 /* confdefs.h.  */
36169 _ACEOF
36170 cat confdefs.h >>conftest.$ac_ext
36171 cat >>conftest.$ac_ext <<_ACEOF
36172 /* end confdefs.h.  */
36173 #include <$header>
36174
36175 _ACEOF
36176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36177   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
36178   ice_cv_have_getsockopt_decl=yes
36179 fi
36180 rm -f conftest*
36181
36182 if test "$ice_cv_have_getsockopt_decl" = yes; then
36183         break
36184 fi
36185 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36186 cat >conftest.$ac_ext <<_ACEOF
36187 /* confdefs.h.  */
36188 _ACEOF
36189 cat confdefs.h >>conftest.$ac_ext
36190 cat >>conftest.$ac_ext <<_ACEOF
36191 /* end confdefs.h.  */
36192 #include <$header>
36193
36194 _ACEOF
36195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36196   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36197   ice_cv_have_getsockopt_decl=yes
36198 fi
36199 rm -f conftest*
36200
36201 if test "$ice_cv_have_getsockopt_decl" = yes; then
36202         break
36203 fi
36204 done
36205
36206 fi
36207
36208 echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
36209 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6
36210 if test "$ice_cv_have_getsockopt_decl" = yes; then
36211
36212 cat >>confdefs.h <<_ACEOF
36213 #define HAVE_GETSOCKOPT_DECL 1
36214 _ACEOF
36215
36216 fi
36217 fi
36218
36219
36220 ice_have_gettimeofday=no
36221
36222 for ac_func in gettimeofday
36223 do
36224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36225 echo "$as_me:$LINENO: checking for $ac_func" >&5
36226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36227 if eval "test \"\${$as_ac_var+set}\" = set"; then
36228   echo $ECHO_N "(cached) $ECHO_C" >&6
36229 else
36230   cat >conftest.$ac_ext <<_ACEOF
36231 /* confdefs.h.  */
36232 _ACEOF
36233 cat confdefs.h >>conftest.$ac_ext
36234 cat >>conftest.$ac_ext <<_ACEOF
36235 /* end confdefs.h.  */
36236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36238 #define $ac_func innocuous_$ac_func
36239
36240 /* System header to define __stub macros and hopefully few prototypes,
36241     which can conflict with char $ac_func (); below.
36242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36243     <limits.h> exists even on freestanding compilers.  */
36244
36245 #ifdef __STDC__
36246 # include <limits.h>
36247 #else
36248 # include <assert.h>
36249 #endif
36250
36251 #undef $ac_func
36252
36253 /* Override any gcc2 internal prototype to avoid an error.  */
36254 #ifdef __cplusplus
36255 extern "C"
36256 {
36257 #endif
36258 /* We use char because int might match the return type of a gcc2
36259    builtin and then its argument prototype would still apply.  */
36260 char $ac_func ();
36261 /* The GNU C library defines this for functions which it implements
36262     to always fail with ENOSYS.  Some functions are actually named
36263     something starting with __ and the normal name is an alias.  */
36264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36265 choke me
36266 #else
36267 char (*f) () = $ac_func;
36268 #endif
36269 #ifdef __cplusplus
36270 }
36271 #endif
36272
36273 int
36274 main ()
36275 {
36276 return f != $ac_func;
36277   ;
36278   return 0;
36279 }
36280 _ACEOF
36281 rm -f conftest.$ac_objext conftest$ac_exeext
36282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36283   (eval $ac_link) 2>conftest.er1
36284   ac_status=$?
36285   grep -v '^ *+' conftest.er1 >conftest.err
36286   rm -f conftest.er1
36287   cat conftest.err >&5
36288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36289   (exit $ac_status); } &&
36290          { ac_try='test -z "$ac_c_werror_flag"
36291                          || test ! -s conftest.err'
36292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36293   (eval $ac_try) 2>&5
36294   ac_status=$?
36295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296   (exit $ac_status); }; } &&
36297          { ac_try='test -s conftest$ac_exeext'
36298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36299   (eval $ac_try) 2>&5
36300   ac_status=$?
36301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302   (exit $ac_status); }; }; then
36303   eval "$as_ac_var=yes"
36304 else
36305   echo "$as_me: failed program was:" >&5
36306 sed 's/^/| /' conftest.$ac_ext >&5
36307
36308 eval "$as_ac_var=no"
36309 fi
36310 rm -f conftest.err conftest.$ac_objext \
36311       conftest$ac_exeext conftest.$ac_ext
36312 fi
36313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36315 if test `eval echo '${'$as_ac_var'}'` = yes; then
36316   cat >>confdefs.h <<_ACEOF
36317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36318 _ACEOF
36319  ice_have_gettimeofday=yes
36320 fi
36321 done
36322
36323 if test "${ice_have_gettimeofday}" = yes; then
36324 echo "$as_me:$LINENO: checking for gettimeofday declaration in time.h sys/time.h" >&5
36325 echo $ECHO_N "checking for gettimeofday declaration in time.h sys/time.h... $ECHO_C" >&6
36326 if test "${ice_cv_have_gettimeofday_decl+set}" = set; then
36327   echo $ECHO_N "(cached) $ECHO_C" >&6
36328 else
36329
36330 ice_cv_have_gettimeofday_decl=no
36331 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36332 ice_re_word='(^|[^a-zA-Z0-9_])'
36333 for header in time.h sys/time.h; do
36334 # Check for ordinary declaration
36335 cat >conftest.$ac_ext <<_ACEOF
36336 /* confdefs.h.  */
36337 _ACEOF
36338 cat confdefs.h >>conftest.$ac_ext
36339 cat >>conftest.$ac_ext <<_ACEOF
36340 /* end confdefs.h.  */
36341 #include <$header>
36342
36343 _ACEOF
36344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36345   $EGREP "${ice_re_word}gettimeofday[   ]*\(" >/dev/null 2>&1; then
36346   ice_cv_have_gettimeofday_decl=yes
36347 fi
36348 rm -f conftest*
36349
36350 if test "$ice_cv_have_gettimeofday_decl" = yes; then
36351         break
36352 fi
36353 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36354 cat >conftest.$ac_ext <<_ACEOF
36355 /* confdefs.h.  */
36356 _ACEOF
36357 cat confdefs.h >>conftest.$ac_ext
36358 cat >>conftest.$ac_ext <<_ACEOF
36359 /* end confdefs.h.  */
36360 #include <$header>
36361
36362 _ACEOF
36363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36364   $EGREP "${ice_re_word}gettimeofday[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36365   ice_cv_have_gettimeofday_decl=yes
36366 fi
36367 rm -f conftest*
36368
36369 if test "$ice_cv_have_gettimeofday_decl" = yes; then
36370         break
36371 fi
36372 done
36373
36374 fi
36375
36376 echo "$as_me:$LINENO: result: $ice_cv_have_gettimeofday_decl" >&5
36377 echo "${ECHO_T}$ice_cv_have_gettimeofday_decl" >&6
36378 if test "$ice_cv_have_gettimeofday_decl" = yes; then
36379
36380 cat >>confdefs.h <<_ACEOF
36381 #define HAVE_GETTIMEOFDAY_DECL 1
36382 _ACEOF
36383
36384 fi
36385 fi
36386
36387
36388
36389         echo "$as_me:$LINENO: checking for gettimeofday number of arguments" >&5
36390 echo $ECHO_N "checking for gettimeofday number of arguments... $ECHO_C" >&6
36391 if test "${amanda_cv_gettimeofday_args+set}" = set; then
36392   echo $ECHO_N "(cached) $ECHO_C" >&6
36393 else
36394
36395                 cat >conftest.$ac_ext <<_ACEOF
36396 /* confdefs.h.  */
36397 _ACEOF
36398 cat confdefs.h >>conftest.$ac_ext
36399 cat >>conftest.$ac_ext <<_ACEOF
36400 /* end confdefs.h.  */
36401
36402 #ifdef TIME_WITH_SYS_TIME
36403 #  include <sys/time.h>
36404 #  include <time.h>
36405 #else
36406 #  ifdef HAVE_SYS_TIME_H
36407 #    include <sys/time.h>
36408 #  else
36409 #    include <time.h>
36410 #  endif
36411 #endif
36412
36413 int
36414 main ()
36415 {
36416
36417                         struct timeval val;
36418                         struct timezone zone;
36419                         gettimeofday(&val, &zone);
36420
36421   ;
36422   return 0;
36423 }
36424 _ACEOF
36425 rm -f conftest.$ac_objext
36426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36427   (eval $ac_compile) 2>conftest.er1
36428   ac_status=$?
36429   grep -v '^ *+' conftest.er1 >conftest.err
36430   rm -f conftest.er1
36431   cat conftest.err >&5
36432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36433   (exit $ac_status); } &&
36434          { ac_try='test -z "$ac_c_werror_flag"
36435                          || test ! -s conftest.err'
36436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36437   (eval $ac_try) 2>&5
36438   ac_status=$?
36439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36440   (exit $ac_status); }; } &&
36441          { ac_try='test -s conftest.$ac_objext'
36442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36443   (eval $ac_try) 2>&5
36444   ac_status=$?
36445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446   (exit $ac_status); }; }; then
36447   amanda_cv_gettimeofday_args=2
36448 else
36449   echo "$as_me: failed program was:" >&5
36450 sed 's/^/| /' conftest.$ac_ext >&5
36451
36452 amanda_cv_gettimeofday_args=1
36453
36454 fi
36455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36456
36457
36458 fi
36459 echo "$as_me:$LINENO: result: $amanda_cv_gettimeofday_args" >&5
36460 echo "${ECHO_T}$amanda_cv_gettimeofday_args" >&6
36461         if test "$amanda_cv_gettimeofday_args" = 2; then
36462
36463 cat >>confdefs.h <<\_ACEOF
36464 #define HAVE_TWO_ARG_GETTIMEOFDAY 1
36465 _ACEOF
36466
36467         fi
36468
36469
36470
36471
36472
36473 for ac_func in getvfsent initgroups isascii
36474 do
36475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36476 echo "$as_me:$LINENO: checking for $ac_func" >&5
36477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36478 if eval "test \"\${$as_ac_var+set}\" = set"; then
36479   echo $ECHO_N "(cached) $ECHO_C" >&6
36480 else
36481   cat >conftest.$ac_ext <<_ACEOF
36482 /* confdefs.h.  */
36483 _ACEOF
36484 cat confdefs.h >>conftest.$ac_ext
36485 cat >>conftest.$ac_ext <<_ACEOF
36486 /* end confdefs.h.  */
36487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36489 #define $ac_func innocuous_$ac_func
36490
36491 /* System header to define __stub macros and hopefully few prototypes,
36492     which can conflict with char $ac_func (); below.
36493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36494     <limits.h> exists even on freestanding compilers.  */
36495
36496 #ifdef __STDC__
36497 # include <limits.h>
36498 #else
36499 # include <assert.h>
36500 #endif
36501
36502 #undef $ac_func
36503
36504 /* Override any gcc2 internal prototype to avoid an error.  */
36505 #ifdef __cplusplus
36506 extern "C"
36507 {
36508 #endif
36509 /* We use char because int might match the return type of a gcc2
36510    builtin and then its argument prototype would still apply.  */
36511 char $ac_func ();
36512 /* The GNU C library defines this for functions which it implements
36513     to always fail with ENOSYS.  Some functions are actually named
36514     something starting with __ and the normal name is an alias.  */
36515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36516 choke me
36517 #else
36518 char (*f) () = $ac_func;
36519 #endif
36520 #ifdef __cplusplus
36521 }
36522 #endif
36523
36524 int
36525 main ()
36526 {
36527 return f != $ac_func;
36528   ;
36529   return 0;
36530 }
36531 _ACEOF
36532 rm -f conftest.$ac_objext conftest$ac_exeext
36533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36534   (eval $ac_link) 2>conftest.er1
36535   ac_status=$?
36536   grep -v '^ *+' conftest.er1 >conftest.err
36537   rm -f conftest.er1
36538   cat conftest.err >&5
36539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36540   (exit $ac_status); } &&
36541          { ac_try='test -z "$ac_c_werror_flag"
36542                          || test ! -s conftest.err'
36543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36544   (eval $ac_try) 2>&5
36545   ac_status=$?
36546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547   (exit $ac_status); }; } &&
36548          { ac_try='test -s conftest$ac_exeext'
36549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36550   (eval $ac_try) 2>&5
36551   ac_status=$?
36552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553   (exit $ac_status); }; }; then
36554   eval "$as_ac_var=yes"
36555 else
36556   echo "$as_me: failed program was:" >&5
36557 sed 's/^/| /' conftest.$ac_ext >&5
36558
36559 eval "$as_ac_var=no"
36560 fi
36561 rm -f conftest.err conftest.$ac_objext \
36562       conftest$ac_exeext conftest.$ac_ext
36563 fi
36564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36566 if test `eval echo '${'$as_ac_var'}'` = yes; then
36567   cat >>confdefs.h <<_ACEOF
36568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36569 _ACEOF
36570
36571 fi
36572 done
36573
36574
36575 ice_have_initgroups=no
36576
36577 for ac_func in initgroups
36578 do
36579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36580 echo "$as_me:$LINENO: checking for $ac_func" >&5
36581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36582 if eval "test \"\${$as_ac_var+set}\" = set"; then
36583   echo $ECHO_N "(cached) $ECHO_C" >&6
36584 else
36585   cat >conftest.$ac_ext <<_ACEOF
36586 /* confdefs.h.  */
36587 _ACEOF
36588 cat confdefs.h >>conftest.$ac_ext
36589 cat >>conftest.$ac_ext <<_ACEOF
36590 /* end confdefs.h.  */
36591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36593 #define $ac_func innocuous_$ac_func
36594
36595 /* System header to define __stub macros and hopefully few prototypes,
36596     which can conflict with char $ac_func (); below.
36597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36598     <limits.h> exists even on freestanding compilers.  */
36599
36600 #ifdef __STDC__
36601 # include <limits.h>
36602 #else
36603 # include <assert.h>
36604 #endif
36605
36606 #undef $ac_func
36607
36608 /* Override any gcc2 internal prototype to avoid an error.  */
36609 #ifdef __cplusplus
36610 extern "C"
36611 {
36612 #endif
36613 /* We use char because int might match the return type of a gcc2
36614    builtin and then its argument prototype would still apply.  */
36615 char $ac_func ();
36616 /* The GNU C library defines this for functions which it implements
36617     to always fail with ENOSYS.  Some functions are actually named
36618     something starting with __ and the normal name is an alias.  */
36619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36620 choke me
36621 #else
36622 char (*f) () = $ac_func;
36623 #endif
36624 #ifdef __cplusplus
36625 }
36626 #endif
36627
36628 int
36629 main ()
36630 {
36631 return f != $ac_func;
36632   ;
36633   return 0;
36634 }
36635 _ACEOF
36636 rm -f conftest.$ac_objext conftest$ac_exeext
36637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36638   (eval $ac_link) 2>conftest.er1
36639   ac_status=$?
36640   grep -v '^ *+' conftest.er1 >conftest.err
36641   rm -f conftest.er1
36642   cat conftest.err >&5
36643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644   (exit $ac_status); } &&
36645          { ac_try='test -z "$ac_c_werror_flag"
36646                          || test ! -s conftest.err'
36647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36648   (eval $ac_try) 2>&5
36649   ac_status=$?
36650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36651   (exit $ac_status); }; } &&
36652          { ac_try='test -s conftest$ac_exeext'
36653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36654   (eval $ac_try) 2>&5
36655   ac_status=$?
36656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657   (exit $ac_status); }; }; then
36658   eval "$as_ac_var=yes"
36659 else
36660   echo "$as_me: failed program was:" >&5
36661 sed 's/^/| /' conftest.$ac_ext >&5
36662
36663 eval "$as_ac_var=no"
36664 fi
36665 rm -f conftest.err conftest.$ac_objext \
36666       conftest$ac_exeext conftest.$ac_ext
36667 fi
36668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36670 if test `eval echo '${'$as_ac_var'}'` = yes; then
36671   cat >>confdefs.h <<_ACEOF
36672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36673 _ACEOF
36674  ice_have_initgroups=yes
36675 fi
36676 done
36677
36678 if test "${ice_have_initgroups}" = yes; then
36679 echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
36680 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6
36681 if test "${ice_cv_have_initgroups_decl+set}" = set; then
36682   echo $ECHO_N "(cached) $ECHO_C" >&6
36683 else
36684
36685 ice_cv_have_initgroups_decl=no
36686 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36687 ice_re_word='(^|[^a-zA-Z0-9_])'
36688 for header in grp.h sys/types.h unistd.h libc.h; do
36689 # Check for ordinary declaration
36690 cat >conftest.$ac_ext <<_ACEOF
36691 /* confdefs.h.  */
36692 _ACEOF
36693 cat confdefs.h >>conftest.$ac_ext
36694 cat >>conftest.$ac_ext <<_ACEOF
36695 /* end confdefs.h.  */
36696 #include <$header>
36697
36698 _ACEOF
36699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36700   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
36701   ice_cv_have_initgroups_decl=yes
36702 fi
36703 rm -f conftest*
36704
36705 if test "$ice_cv_have_initgroups_decl" = yes; then
36706         break
36707 fi
36708 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36709 cat >conftest.$ac_ext <<_ACEOF
36710 /* confdefs.h.  */
36711 _ACEOF
36712 cat confdefs.h >>conftest.$ac_ext
36713 cat >>conftest.$ac_ext <<_ACEOF
36714 /* end confdefs.h.  */
36715 #include <$header>
36716
36717 _ACEOF
36718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36719   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36720   ice_cv_have_initgroups_decl=yes
36721 fi
36722 rm -f conftest*
36723
36724 if test "$ice_cv_have_initgroups_decl" = yes; then
36725         break
36726 fi
36727 done
36728
36729 fi
36730
36731 echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
36732 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6
36733 if test "$ice_cv_have_initgroups_decl" = yes; then
36734
36735 cat >>confdefs.h <<_ACEOF
36736 #define HAVE_INITGROUPS_DECL 1
36737 _ACEOF
36738
36739 fi
36740 fi
36741
36742
36743 ice_have_ioctl=no
36744
36745 for ac_func in ioctl
36746 do
36747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36748 echo "$as_me:$LINENO: checking for $ac_func" >&5
36749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36750 if eval "test \"\${$as_ac_var+set}\" = set"; then
36751   echo $ECHO_N "(cached) $ECHO_C" >&6
36752 else
36753   cat >conftest.$ac_ext <<_ACEOF
36754 /* confdefs.h.  */
36755 _ACEOF
36756 cat confdefs.h >>conftest.$ac_ext
36757 cat >>conftest.$ac_ext <<_ACEOF
36758 /* end confdefs.h.  */
36759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36761 #define $ac_func innocuous_$ac_func
36762
36763 /* System header to define __stub macros and hopefully few prototypes,
36764     which can conflict with char $ac_func (); below.
36765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36766     <limits.h> exists even on freestanding compilers.  */
36767
36768 #ifdef __STDC__
36769 # include <limits.h>
36770 #else
36771 # include <assert.h>
36772 #endif
36773
36774 #undef $ac_func
36775
36776 /* Override any gcc2 internal prototype to avoid an error.  */
36777 #ifdef __cplusplus
36778 extern "C"
36779 {
36780 #endif
36781 /* We use char because int might match the return type of a gcc2
36782    builtin and then its argument prototype would still apply.  */
36783 char $ac_func ();
36784 /* The GNU C library defines this for functions which it implements
36785     to always fail with ENOSYS.  Some functions are actually named
36786     something starting with __ and the normal name is an alias.  */
36787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36788 choke me
36789 #else
36790 char (*f) () = $ac_func;
36791 #endif
36792 #ifdef __cplusplus
36793 }
36794 #endif
36795
36796 int
36797 main ()
36798 {
36799 return f != $ac_func;
36800   ;
36801   return 0;
36802 }
36803 _ACEOF
36804 rm -f conftest.$ac_objext conftest$ac_exeext
36805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36806   (eval $ac_link) 2>conftest.er1
36807   ac_status=$?
36808   grep -v '^ *+' conftest.er1 >conftest.err
36809   rm -f conftest.er1
36810   cat conftest.err >&5
36811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36812   (exit $ac_status); } &&
36813          { ac_try='test -z "$ac_c_werror_flag"
36814                          || test ! -s conftest.err'
36815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36816   (eval $ac_try) 2>&5
36817   ac_status=$?
36818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819   (exit $ac_status); }; } &&
36820          { ac_try='test -s conftest$ac_exeext'
36821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36822   (eval $ac_try) 2>&5
36823   ac_status=$?
36824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825   (exit $ac_status); }; }; then
36826   eval "$as_ac_var=yes"
36827 else
36828   echo "$as_me: failed program was:" >&5
36829 sed 's/^/| /' conftest.$ac_ext >&5
36830
36831 eval "$as_ac_var=no"
36832 fi
36833 rm -f conftest.err conftest.$ac_objext \
36834       conftest$ac_exeext conftest.$ac_ext
36835 fi
36836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36838 if test `eval echo '${'$as_ac_var'}'` = yes; then
36839   cat >>confdefs.h <<_ACEOF
36840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36841 _ACEOF
36842  ice_have_ioctl=yes
36843 fi
36844 done
36845
36846 if test "${ice_have_ioctl}" = yes; then
36847 echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
36848 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6
36849 if test "${ice_cv_have_ioctl_decl+set}" = set; then
36850   echo $ECHO_N "(cached) $ECHO_C" >&6
36851 else
36852
36853 ice_cv_have_ioctl_decl=no
36854 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36855 ice_re_word='(^|[^a-zA-Z0-9_])'
36856 for header in sys/ioctl.h unistd.h libc.h; do
36857 # Check for ordinary declaration
36858 cat >conftest.$ac_ext <<_ACEOF
36859 /* confdefs.h.  */
36860 _ACEOF
36861 cat confdefs.h >>conftest.$ac_ext
36862 cat >>conftest.$ac_ext <<_ACEOF
36863 /* end confdefs.h.  */
36864 #include <$header>
36865
36866 _ACEOF
36867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36868   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
36869   ice_cv_have_ioctl_decl=yes
36870 fi
36871 rm -f conftest*
36872
36873 if test "$ice_cv_have_ioctl_decl" = yes; then
36874         break
36875 fi
36876 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36877 cat >conftest.$ac_ext <<_ACEOF
36878 /* confdefs.h.  */
36879 _ACEOF
36880 cat confdefs.h >>conftest.$ac_ext
36881 cat >>conftest.$ac_ext <<_ACEOF
36882 /* end confdefs.h.  */
36883 #include <$header>
36884
36885 _ACEOF
36886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36887   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36888   ice_cv_have_ioctl_decl=yes
36889 fi
36890 rm -f conftest*
36891
36892 if test "$ice_cv_have_ioctl_decl" = yes; then
36893         break
36894 fi
36895 done
36896
36897 fi
36898
36899 echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
36900 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6
36901 if test "$ice_cv_have_ioctl_decl" = yes; then
36902
36903 cat >>confdefs.h <<_ACEOF
36904 #define HAVE_IOCTL_DECL 1
36905 _ACEOF
36906
36907 fi
36908 fi
36909
36910
36911 ice_have_listen=no
36912
36913 for ac_func in listen
36914 do
36915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36916 echo "$as_me:$LINENO: checking for $ac_func" >&5
36917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36918 if eval "test \"\${$as_ac_var+set}\" = set"; then
36919   echo $ECHO_N "(cached) $ECHO_C" >&6
36920 else
36921   cat >conftest.$ac_ext <<_ACEOF
36922 /* confdefs.h.  */
36923 _ACEOF
36924 cat confdefs.h >>conftest.$ac_ext
36925 cat >>conftest.$ac_ext <<_ACEOF
36926 /* end confdefs.h.  */
36927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36929 #define $ac_func innocuous_$ac_func
36930
36931 /* System header to define __stub macros and hopefully few prototypes,
36932     which can conflict with char $ac_func (); below.
36933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36934     <limits.h> exists even on freestanding compilers.  */
36935
36936 #ifdef __STDC__
36937 # include <limits.h>
36938 #else
36939 # include <assert.h>
36940 #endif
36941
36942 #undef $ac_func
36943
36944 /* Override any gcc2 internal prototype to avoid an error.  */
36945 #ifdef __cplusplus
36946 extern "C"
36947 {
36948 #endif
36949 /* We use char because int might match the return type of a gcc2
36950    builtin and then its argument prototype would still apply.  */
36951 char $ac_func ();
36952 /* The GNU C library defines this for functions which it implements
36953     to always fail with ENOSYS.  Some functions are actually named
36954     something starting with __ and the normal name is an alias.  */
36955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36956 choke me
36957 #else
36958 char (*f) () = $ac_func;
36959 #endif
36960 #ifdef __cplusplus
36961 }
36962 #endif
36963
36964 int
36965 main ()
36966 {
36967 return f != $ac_func;
36968   ;
36969   return 0;
36970 }
36971 _ACEOF
36972 rm -f conftest.$ac_objext conftest$ac_exeext
36973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36974   (eval $ac_link) 2>conftest.er1
36975   ac_status=$?
36976   grep -v '^ *+' conftest.er1 >conftest.err
36977   rm -f conftest.er1
36978   cat conftest.err >&5
36979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36980   (exit $ac_status); } &&
36981          { ac_try='test -z "$ac_c_werror_flag"
36982                          || test ! -s conftest.err'
36983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36984   (eval $ac_try) 2>&5
36985   ac_status=$?
36986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987   (exit $ac_status); }; } &&
36988          { ac_try='test -s conftest$ac_exeext'
36989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36990   (eval $ac_try) 2>&5
36991   ac_status=$?
36992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993   (exit $ac_status); }; }; then
36994   eval "$as_ac_var=yes"
36995 else
36996   echo "$as_me: failed program was:" >&5
36997 sed 's/^/| /' conftest.$ac_ext >&5
36998
36999 eval "$as_ac_var=no"
37000 fi
37001 rm -f conftest.err conftest.$ac_objext \
37002       conftest$ac_exeext conftest.$ac_ext
37003 fi
37004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37006 if test `eval echo '${'$as_ac_var'}'` = yes; then
37007   cat >>confdefs.h <<_ACEOF
37008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37009 _ACEOF
37010  ice_have_listen=yes
37011 fi
37012 done
37013
37014 if test "${ice_have_listen}" = yes; then
37015 echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
37016 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
37017 if test "${ice_cv_have_listen_decl+set}" = set; then
37018   echo $ECHO_N "(cached) $ECHO_C" >&6
37019 else
37020
37021 ice_cv_have_listen_decl=no
37022 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37023 ice_re_word='(^|[^a-zA-Z0-9_])'
37024 for header in sys/types.h sys/socket.h; do
37025 # Check for ordinary declaration
37026 cat >conftest.$ac_ext <<_ACEOF
37027 /* confdefs.h.  */
37028 _ACEOF
37029 cat confdefs.h >>conftest.$ac_ext
37030 cat >>conftest.$ac_ext <<_ACEOF
37031 /* end confdefs.h.  */
37032 #include <$header>
37033
37034 _ACEOF
37035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37036   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
37037   ice_cv_have_listen_decl=yes
37038 fi
37039 rm -f conftest*
37040
37041 if test "$ice_cv_have_listen_decl" = yes; then
37042         break
37043 fi
37044 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37045 cat >conftest.$ac_ext <<_ACEOF
37046 /* confdefs.h.  */
37047 _ACEOF
37048 cat confdefs.h >>conftest.$ac_ext
37049 cat >>conftest.$ac_ext <<_ACEOF
37050 /* end confdefs.h.  */
37051 #include <$header>
37052
37053 _ACEOF
37054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37055   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37056   ice_cv_have_listen_decl=yes
37057 fi
37058 rm -f conftest*
37059
37060 if test "$ice_cv_have_listen_decl" = yes; then
37061         break
37062 fi
37063 done
37064
37065 fi
37066
37067 echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
37068 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6
37069 if test "$ice_cv_have_listen_decl" = yes; then
37070
37071 cat >>confdefs.h <<_ACEOF
37072 #define HAVE_LISTEN_DECL 1
37073 _ACEOF
37074
37075 fi
37076 fi
37077
37078
37079 ice_have_lstat=no
37080
37081 for ac_func in lstat
37082 do
37083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37084 echo "$as_me:$LINENO: checking for $ac_func" >&5
37085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37086 if eval "test \"\${$as_ac_var+set}\" = set"; then
37087   echo $ECHO_N "(cached) $ECHO_C" >&6
37088 else
37089   cat >conftest.$ac_ext <<_ACEOF
37090 /* confdefs.h.  */
37091 _ACEOF
37092 cat confdefs.h >>conftest.$ac_ext
37093 cat >>conftest.$ac_ext <<_ACEOF
37094 /* end confdefs.h.  */
37095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37097 #define $ac_func innocuous_$ac_func
37098
37099 /* System header to define __stub macros and hopefully few prototypes,
37100     which can conflict with char $ac_func (); below.
37101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37102     <limits.h> exists even on freestanding compilers.  */
37103
37104 #ifdef __STDC__
37105 # include <limits.h>
37106 #else
37107 # include <assert.h>
37108 #endif
37109
37110 #undef $ac_func
37111
37112 /* Override any gcc2 internal prototype to avoid an error.  */
37113 #ifdef __cplusplus
37114 extern "C"
37115 {
37116 #endif
37117 /* We use char because int might match the return type of a gcc2
37118    builtin and then its argument prototype would still apply.  */
37119 char $ac_func ();
37120 /* The GNU C library defines this for functions which it implements
37121     to always fail with ENOSYS.  Some functions are actually named
37122     something starting with __ and the normal name is an alias.  */
37123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37124 choke me
37125 #else
37126 char (*f) () = $ac_func;
37127 #endif
37128 #ifdef __cplusplus
37129 }
37130 #endif
37131
37132 int
37133 main ()
37134 {
37135 return f != $ac_func;
37136   ;
37137   return 0;
37138 }
37139 _ACEOF
37140 rm -f conftest.$ac_objext conftest$ac_exeext
37141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37142   (eval $ac_link) 2>conftest.er1
37143   ac_status=$?
37144   grep -v '^ *+' conftest.er1 >conftest.err
37145   rm -f conftest.er1
37146   cat conftest.err >&5
37147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37148   (exit $ac_status); } &&
37149          { ac_try='test -z "$ac_c_werror_flag"
37150                          || test ! -s conftest.err'
37151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37152   (eval $ac_try) 2>&5
37153   ac_status=$?
37154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155   (exit $ac_status); }; } &&
37156          { ac_try='test -s conftest$ac_exeext'
37157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37158   (eval $ac_try) 2>&5
37159   ac_status=$?
37160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161   (exit $ac_status); }; }; then
37162   eval "$as_ac_var=yes"
37163 else
37164   echo "$as_me: failed program was:" >&5
37165 sed 's/^/| /' conftest.$ac_ext >&5
37166
37167 eval "$as_ac_var=no"
37168 fi
37169 rm -f conftest.err conftest.$ac_objext \
37170       conftest$ac_exeext conftest.$ac_ext
37171 fi
37172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37174 if test `eval echo '${'$as_ac_var'}'` = yes; then
37175   cat >>confdefs.h <<_ACEOF
37176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37177 _ACEOF
37178  ice_have_lstat=yes
37179 fi
37180 done
37181
37182 if test "${ice_have_lstat}" = yes; then
37183 echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
37184 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6
37185 if test "${ice_cv_have_lstat_decl+set}" = set; then
37186   echo $ECHO_N "(cached) $ECHO_C" >&6
37187 else
37188
37189 ice_cv_have_lstat_decl=no
37190 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37191 ice_re_word='(^|[^a-zA-Z0-9_])'
37192 for header in sys/types.h sys/stat.h; do
37193 # Check for ordinary declaration
37194 cat >conftest.$ac_ext <<_ACEOF
37195 /* confdefs.h.  */
37196 _ACEOF
37197 cat confdefs.h >>conftest.$ac_ext
37198 cat >>conftest.$ac_ext <<_ACEOF
37199 /* end confdefs.h.  */
37200 #include <$header>
37201
37202 _ACEOF
37203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37204   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
37205   ice_cv_have_lstat_decl=yes
37206 fi
37207 rm -f conftest*
37208
37209 if test "$ice_cv_have_lstat_decl" = yes; then
37210         break
37211 fi
37212 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37213 cat >conftest.$ac_ext <<_ACEOF
37214 /* confdefs.h.  */
37215 _ACEOF
37216 cat confdefs.h >>conftest.$ac_ext
37217 cat >>conftest.$ac_ext <<_ACEOF
37218 /* end confdefs.h.  */
37219 #include <$header>
37220
37221 _ACEOF
37222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37223   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37224   ice_cv_have_lstat_decl=yes
37225 fi
37226 rm -f conftest*
37227
37228 if test "$ice_cv_have_lstat_decl" = yes; then
37229         break
37230 fi
37231 done
37232
37233 fi
37234
37235 echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
37236 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6
37237 if test "$ice_cv_have_lstat_decl" = yes; then
37238
37239 cat >>confdefs.h <<_ACEOF
37240 #define HAVE_LSTAT_DECL 1
37241 _ACEOF
37242
37243 fi
37244 fi
37245
37246
37247 ice_have_malloc=no
37248
37249 for ac_func in malloc
37250 do
37251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37252 echo "$as_me:$LINENO: checking for $ac_func" >&5
37253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37254 if eval "test \"\${$as_ac_var+set}\" = set"; then
37255   echo $ECHO_N "(cached) $ECHO_C" >&6
37256 else
37257   cat >conftest.$ac_ext <<_ACEOF
37258 /* confdefs.h.  */
37259 _ACEOF
37260 cat confdefs.h >>conftest.$ac_ext
37261 cat >>conftest.$ac_ext <<_ACEOF
37262 /* end confdefs.h.  */
37263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37264    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37265 #define $ac_func innocuous_$ac_func
37266
37267 /* System header to define __stub macros and hopefully few prototypes,
37268     which can conflict with char $ac_func (); below.
37269     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37270     <limits.h> exists even on freestanding compilers.  */
37271
37272 #ifdef __STDC__
37273 # include <limits.h>
37274 #else
37275 # include <assert.h>
37276 #endif
37277
37278 #undef $ac_func
37279
37280 /* Override any gcc2 internal prototype to avoid an error.  */
37281 #ifdef __cplusplus
37282 extern "C"
37283 {
37284 #endif
37285 /* We use char because int might match the return type of a gcc2
37286    builtin and then its argument prototype would still apply.  */
37287 char $ac_func ();
37288 /* The GNU C library defines this for functions which it implements
37289     to always fail with ENOSYS.  Some functions are actually named
37290     something starting with __ and the normal name is an alias.  */
37291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37292 choke me
37293 #else
37294 char (*f) () = $ac_func;
37295 #endif
37296 #ifdef __cplusplus
37297 }
37298 #endif
37299
37300 int
37301 main ()
37302 {
37303 return f != $ac_func;
37304   ;
37305   return 0;
37306 }
37307 _ACEOF
37308 rm -f conftest.$ac_objext conftest$ac_exeext
37309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37310   (eval $ac_link) 2>conftest.er1
37311   ac_status=$?
37312   grep -v '^ *+' conftest.er1 >conftest.err
37313   rm -f conftest.er1
37314   cat conftest.err >&5
37315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316   (exit $ac_status); } &&
37317          { ac_try='test -z "$ac_c_werror_flag"
37318                          || test ! -s conftest.err'
37319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37320   (eval $ac_try) 2>&5
37321   ac_status=$?
37322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37323   (exit $ac_status); }; } &&
37324          { ac_try='test -s conftest$ac_exeext'
37325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37326   (eval $ac_try) 2>&5
37327   ac_status=$?
37328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37329   (exit $ac_status); }; }; then
37330   eval "$as_ac_var=yes"
37331 else
37332   echo "$as_me: failed program was:" >&5
37333 sed 's/^/| /' conftest.$ac_ext >&5
37334
37335 eval "$as_ac_var=no"
37336 fi
37337 rm -f conftest.err conftest.$ac_objext \
37338       conftest$ac_exeext conftest.$ac_ext
37339 fi
37340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37342 if test `eval echo '${'$as_ac_var'}'` = yes; then
37343   cat >>confdefs.h <<_ACEOF
37344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37345 _ACEOF
37346  ice_have_malloc=yes
37347 fi
37348 done
37349
37350 if test "${ice_have_malloc}" = yes; then
37351 echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
37352 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6
37353 if test "${ice_cv_have_malloc_decl+set}" = set; then
37354   echo $ECHO_N "(cached) $ECHO_C" >&6
37355 else
37356
37357 ice_cv_have_malloc_decl=no
37358 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37359 ice_re_word='(^|[^a-zA-Z0-9_])'
37360 for header in stdlib.h; do
37361 # Check for ordinary declaration
37362 cat >conftest.$ac_ext <<_ACEOF
37363 /* confdefs.h.  */
37364 _ACEOF
37365 cat confdefs.h >>conftest.$ac_ext
37366 cat >>conftest.$ac_ext <<_ACEOF
37367 /* end confdefs.h.  */
37368 #include <$header>
37369
37370 _ACEOF
37371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37372   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
37373   ice_cv_have_malloc_decl=yes
37374 fi
37375 rm -f conftest*
37376
37377 if test "$ice_cv_have_malloc_decl" = yes; then
37378         break
37379 fi
37380 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37381 cat >conftest.$ac_ext <<_ACEOF
37382 /* confdefs.h.  */
37383 _ACEOF
37384 cat confdefs.h >>conftest.$ac_ext
37385 cat >>conftest.$ac_ext <<_ACEOF
37386 /* end confdefs.h.  */
37387 #include <$header>
37388
37389 _ACEOF
37390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37391   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37392   ice_cv_have_malloc_decl=yes
37393 fi
37394 rm -f conftest*
37395
37396 if test "$ice_cv_have_malloc_decl" = yes; then
37397         break
37398 fi
37399 done
37400
37401 fi
37402
37403 echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
37404 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6
37405 if test "$ice_cv_have_malloc_decl" = yes; then
37406
37407 cat >>confdefs.h <<_ACEOF
37408 #define HAVE_MALLOC_DECL 1
37409 _ACEOF
37410
37411 fi
37412 fi
37413
37414
37415 for ac_func in memmove
37416 do
37417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37418 echo "$as_me:$LINENO: checking for $ac_func" >&5
37419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37420 if eval "test \"\${$as_ac_var+set}\" = set"; then
37421   echo $ECHO_N "(cached) $ECHO_C" >&6
37422 else
37423   cat >conftest.$ac_ext <<_ACEOF
37424 /* confdefs.h.  */
37425 _ACEOF
37426 cat confdefs.h >>conftest.$ac_ext
37427 cat >>conftest.$ac_ext <<_ACEOF
37428 /* end confdefs.h.  */
37429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37431 #define $ac_func innocuous_$ac_func
37432
37433 /* System header to define __stub macros and hopefully few prototypes,
37434     which can conflict with char $ac_func (); below.
37435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37436     <limits.h> exists even on freestanding compilers.  */
37437
37438 #ifdef __STDC__
37439 # include <limits.h>
37440 #else
37441 # include <assert.h>
37442 #endif
37443
37444 #undef $ac_func
37445
37446 /* Override any gcc2 internal prototype to avoid an error.  */
37447 #ifdef __cplusplus
37448 extern "C"
37449 {
37450 #endif
37451 /* We use char because int might match the return type of a gcc2
37452    builtin and then its argument prototype would still apply.  */
37453 char $ac_func ();
37454 /* The GNU C library defines this for functions which it implements
37455     to always fail with ENOSYS.  Some functions are actually named
37456     something starting with __ and the normal name is an alias.  */
37457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37458 choke me
37459 #else
37460 char (*f) () = $ac_func;
37461 #endif
37462 #ifdef __cplusplus
37463 }
37464 #endif
37465
37466 int
37467 main ()
37468 {
37469 return f != $ac_func;
37470   ;
37471   return 0;
37472 }
37473 _ACEOF
37474 rm -f conftest.$ac_objext conftest$ac_exeext
37475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37476   (eval $ac_link) 2>conftest.er1
37477   ac_status=$?
37478   grep -v '^ *+' conftest.er1 >conftest.err
37479   rm -f conftest.er1
37480   cat conftest.err >&5
37481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37482   (exit $ac_status); } &&
37483          { ac_try='test -z "$ac_c_werror_flag"
37484                          || test ! -s conftest.err'
37485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37486   (eval $ac_try) 2>&5
37487   ac_status=$?
37488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37489   (exit $ac_status); }; } &&
37490          { ac_try='test -s conftest$ac_exeext'
37491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37492   (eval $ac_try) 2>&5
37493   ac_status=$?
37494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37495   (exit $ac_status); }; }; then
37496   eval "$as_ac_var=yes"
37497 else
37498   echo "$as_me: failed program was:" >&5
37499 sed 's/^/| /' conftest.$ac_ext >&5
37500
37501 eval "$as_ac_var=no"
37502 fi
37503 rm -f conftest.err conftest.$ac_objext \
37504       conftest$ac_exeext conftest.$ac_ext
37505 fi
37506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37508 if test `eval echo '${'$as_ac_var'}'` = yes; then
37509   cat >>confdefs.h <<_ACEOF
37510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37511 _ACEOF
37512
37513 else
37514   case $LIBOBJS in
37515     "$ac_func.$ac_objext"   | \
37516   *" $ac_func.$ac_objext"   | \
37517     "$ac_func.$ac_objext "* | \
37518   *" $ac_func.$ac_objext "* ) ;;
37519   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
37520 esac
37521
37522 fi
37523 done
37524
37525
37526
37527 ice_have_memmove=no
37528
37529 for ac_func in memmove
37530 do
37531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37532 echo "$as_me:$LINENO: checking for $ac_func" >&5
37533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37534 if eval "test \"\${$as_ac_var+set}\" = set"; then
37535   echo $ECHO_N "(cached) $ECHO_C" >&6
37536 else
37537   cat >conftest.$ac_ext <<_ACEOF
37538 /* confdefs.h.  */
37539 _ACEOF
37540 cat confdefs.h >>conftest.$ac_ext
37541 cat >>conftest.$ac_ext <<_ACEOF
37542 /* end confdefs.h.  */
37543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37545 #define $ac_func innocuous_$ac_func
37546
37547 /* System header to define __stub macros and hopefully few prototypes,
37548     which can conflict with char $ac_func (); below.
37549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37550     <limits.h> exists even on freestanding compilers.  */
37551
37552 #ifdef __STDC__
37553 # include <limits.h>
37554 #else
37555 # include <assert.h>
37556 #endif
37557
37558 #undef $ac_func
37559
37560 /* Override any gcc2 internal prototype to avoid an error.  */
37561 #ifdef __cplusplus
37562 extern "C"
37563 {
37564 #endif
37565 /* We use char because int might match the return type of a gcc2
37566    builtin and then its argument prototype would still apply.  */
37567 char $ac_func ();
37568 /* The GNU C library defines this for functions which it implements
37569     to always fail with ENOSYS.  Some functions are actually named
37570     something starting with __ and the normal name is an alias.  */
37571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37572 choke me
37573 #else
37574 char (*f) () = $ac_func;
37575 #endif
37576 #ifdef __cplusplus
37577 }
37578 #endif
37579
37580 int
37581 main ()
37582 {
37583 return f != $ac_func;
37584   ;
37585   return 0;
37586 }
37587 _ACEOF
37588 rm -f conftest.$ac_objext conftest$ac_exeext
37589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37590   (eval $ac_link) 2>conftest.er1
37591   ac_status=$?
37592   grep -v '^ *+' conftest.er1 >conftest.err
37593   rm -f conftest.er1
37594   cat conftest.err >&5
37595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37596   (exit $ac_status); } &&
37597          { ac_try='test -z "$ac_c_werror_flag"
37598                          || test ! -s conftest.err'
37599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37600   (eval $ac_try) 2>&5
37601   ac_status=$?
37602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37603   (exit $ac_status); }; } &&
37604          { ac_try='test -s conftest$ac_exeext'
37605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37606   (eval $ac_try) 2>&5
37607   ac_status=$?
37608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37609   (exit $ac_status); }; }; then
37610   eval "$as_ac_var=yes"
37611 else
37612   echo "$as_me: failed program was:" >&5
37613 sed 's/^/| /' conftest.$ac_ext >&5
37614
37615 eval "$as_ac_var=no"
37616 fi
37617 rm -f conftest.err conftest.$ac_objext \
37618       conftest$ac_exeext conftest.$ac_ext
37619 fi
37620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37622 if test `eval echo '${'$as_ac_var'}'` = yes; then
37623   cat >>confdefs.h <<_ACEOF
37624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37625 _ACEOF
37626  ice_have_memmove=yes
37627 fi
37628 done
37629
37630 if test "${ice_have_memmove}" = yes; then
37631 echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
37632 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6
37633 if test "${ice_cv_have_memmove_decl+set}" = set; then
37634   echo $ECHO_N "(cached) $ECHO_C" >&6
37635 else
37636
37637 ice_cv_have_memmove_decl=no
37638 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37639 ice_re_word='(^|[^a-zA-Z0-9_])'
37640 for header in string.h strings.h; do
37641 # Check for ordinary declaration
37642 cat >conftest.$ac_ext <<_ACEOF
37643 /* confdefs.h.  */
37644 _ACEOF
37645 cat confdefs.h >>conftest.$ac_ext
37646 cat >>conftest.$ac_ext <<_ACEOF
37647 /* end confdefs.h.  */
37648 #include <$header>
37649
37650 _ACEOF
37651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37652   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
37653   ice_cv_have_memmove_decl=yes
37654 fi
37655 rm -f conftest*
37656
37657 if test "$ice_cv_have_memmove_decl" = yes; then
37658         break
37659 fi
37660 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37661 cat >conftest.$ac_ext <<_ACEOF
37662 /* confdefs.h.  */
37663 _ACEOF
37664 cat confdefs.h >>conftest.$ac_ext
37665 cat >>conftest.$ac_ext <<_ACEOF
37666 /* end confdefs.h.  */
37667 #include <$header>
37668
37669 _ACEOF
37670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37671   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37672   ice_cv_have_memmove_decl=yes
37673 fi
37674 rm -f conftest*
37675
37676 if test "$ice_cv_have_memmove_decl" = yes; then
37677         break
37678 fi
37679 done
37680
37681 fi
37682
37683 echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
37684 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6
37685 if test "$ice_cv_have_memmove_decl" = yes; then
37686
37687 cat >>confdefs.h <<_ACEOF
37688 #define HAVE_MEMMOVE_DECL 1
37689 _ACEOF
37690
37691 fi
37692 fi
37693
37694
37695 ice_have_memset=no
37696
37697 for ac_func in memset
37698 do
37699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37700 echo "$as_me:$LINENO: checking for $ac_func" >&5
37701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37702 if eval "test \"\${$as_ac_var+set}\" = set"; then
37703   echo $ECHO_N "(cached) $ECHO_C" >&6
37704 else
37705   cat >conftest.$ac_ext <<_ACEOF
37706 /* confdefs.h.  */
37707 _ACEOF
37708 cat confdefs.h >>conftest.$ac_ext
37709 cat >>conftest.$ac_ext <<_ACEOF
37710 /* end confdefs.h.  */
37711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37713 #define $ac_func innocuous_$ac_func
37714
37715 /* System header to define __stub macros and hopefully few prototypes,
37716     which can conflict with char $ac_func (); below.
37717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37718     <limits.h> exists even on freestanding compilers.  */
37719
37720 #ifdef __STDC__
37721 # include <limits.h>
37722 #else
37723 # include <assert.h>
37724 #endif
37725
37726 #undef $ac_func
37727
37728 /* Override any gcc2 internal prototype to avoid an error.  */
37729 #ifdef __cplusplus
37730 extern "C"
37731 {
37732 #endif
37733 /* We use char because int might match the return type of a gcc2
37734    builtin and then its argument prototype would still apply.  */
37735 char $ac_func ();
37736 /* The GNU C library defines this for functions which it implements
37737     to always fail with ENOSYS.  Some functions are actually named
37738     something starting with __ and the normal name is an alias.  */
37739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37740 choke me
37741 #else
37742 char (*f) () = $ac_func;
37743 #endif
37744 #ifdef __cplusplus
37745 }
37746 #endif
37747
37748 int
37749 main ()
37750 {
37751 return f != $ac_func;
37752   ;
37753   return 0;
37754 }
37755 _ACEOF
37756 rm -f conftest.$ac_objext conftest$ac_exeext
37757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37758   (eval $ac_link) 2>conftest.er1
37759   ac_status=$?
37760   grep -v '^ *+' conftest.er1 >conftest.err
37761   rm -f conftest.er1
37762   cat conftest.err >&5
37763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37764   (exit $ac_status); } &&
37765          { ac_try='test -z "$ac_c_werror_flag"
37766                          || test ! -s conftest.err'
37767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37768   (eval $ac_try) 2>&5
37769   ac_status=$?
37770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37771   (exit $ac_status); }; } &&
37772          { ac_try='test -s conftest$ac_exeext'
37773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37774   (eval $ac_try) 2>&5
37775   ac_status=$?
37776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37777   (exit $ac_status); }; }; then
37778   eval "$as_ac_var=yes"
37779 else
37780   echo "$as_me: failed program was:" >&5
37781 sed 's/^/| /' conftest.$ac_ext >&5
37782
37783 eval "$as_ac_var=no"
37784 fi
37785 rm -f conftest.err conftest.$ac_objext \
37786       conftest$ac_exeext conftest.$ac_ext
37787 fi
37788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37790 if test `eval echo '${'$as_ac_var'}'` = yes; then
37791   cat >>confdefs.h <<_ACEOF
37792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37793 _ACEOF
37794  ice_have_memset=yes
37795 fi
37796 done
37797
37798 if test "${ice_have_memset}" = yes; then
37799 echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
37800 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6
37801 if test "${ice_cv_have_memset_decl+set}" = set; then
37802   echo $ECHO_N "(cached) $ECHO_C" >&6
37803 else
37804
37805 ice_cv_have_memset_decl=no
37806 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37807 ice_re_word='(^|[^a-zA-Z0-9_])'
37808 for header in string.h strings.h; do
37809 # Check for ordinary declaration
37810 cat >conftest.$ac_ext <<_ACEOF
37811 /* confdefs.h.  */
37812 _ACEOF
37813 cat confdefs.h >>conftest.$ac_ext
37814 cat >>conftest.$ac_ext <<_ACEOF
37815 /* end confdefs.h.  */
37816 #include <$header>
37817
37818 _ACEOF
37819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37820   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
37821   ice_cv_have_memset_decl=yes
37822 fi
37823 rm -f conftest*
37824
37825 if test "$ice_cv_have_memset_decl" = yes; then
37826         break
37827 fi
37828 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37829 cat >conftest.$ac_ext <<_ACEOF
37830 /* confdefs.h.  */
37831 _ACEOF
37832 cat confdefs.h >>conftest.$ac_ext
37833 cat >>conftest.$ac_ext <<_ACEOF
37834 /* end confdefs.h.  */
37835 #include <$header>
37836
37837 _ACEOF
37838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37839   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37840   ice_cv_have_memset_decl=yes
37841 fi
37842 rm -f conftest*
37843
37844 if test "$ice_cv_have_memset_decl" = yes; then
37845         break
37846 fi
37847 done
37848
37849 fi
37850
37851 echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
37852 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6
37853 if test "$ice_cv_have_memset_decl" = yes; then
37854
37855 cat >>confdefs.h <<_ACEOF
37856 #define HAVE_MEMSET_DECL 1
37857 _ACEOF
37858
37859 fi
37860 fi
37861
37862
37863 for ac_func in mkdir
37864 do
37865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37866 echo "$as_me:$LINENO: checking for $ac_func" >&5
37867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37868 if eval "test \"\${$as_ac_var+set}\" = set"; then
37869   echo $ECHO_N "(cached) $ECHO_C" >&6
37870 else
37871   cat >conftest.$ac_ext <<_ACEOF
37872 /* confdefs.h.  */
37873 _ACEOF
37874 cat confdefs.h >>conftest.$ac_ext
37875 cat >>conftest.$ac_ext <<_ACEOF
37876 /* end confdefs.h.  */
37877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37879 #define $ac_func innocuous_$ac_func
37880
37881 /* System header to define __stub macros and hopefully few prototypes,
37882     which can conflict with char $ac_func (); below.
37883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37884     <limits.h> exists even on freestanding compilers.  */
37885
37886 #ifdef __STDC__
37887 # include <limits.h>
37888 #else
37889 # include <assert.h>
37890 #endif
37891
37892 #undef $ac_func
37893
37894 /* Override any gcc2 internal prototype to avoid an error.  */
37895 #ifdef __cplusplus
37896 extern "C"
37897 {
37898 #endif
37899 /* We use char because int might match the return type of a gcc2
37900    builtin and then its argument prototype would still apply.  */
37901 char $ac_func ();
37902 /* The GNU C library defines this for functions which it implements
37903     to always fail with ENOSYS.  Some functions are actually named
37904     something starting with __ and the normal name is an alias.  */
37905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37906 choke me
37907 #else
37908 char (*f) () = $ac_func;
37909 #endif
37910 #ifdef __cplusplus
37911 }
37912 #endif
37913
37914 int
37915 main ()
37916 {
37917 return f != $ac_func;
37918   ;
37919   return 0;
37920 }
37921 _ACEOF
37922 rm -f conftest.$ac_objext conftest$ac_exeext
37923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37924   (eval $ac_link) 2>conftest.er1
37925   ac_status=$?
37926   grep -v '^ *+' conftest.er1 >conftest.err
37927   rm -f conftest.er1
37928   cat conftest.err >&5
37929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37930   (exit $ac_status); } &&
37931          { ac_try='test -z "$ac_c_werror_flag"
37932                          || test ! -s conftest.err'
37933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37934   (eval $ac_try) 2>&5
37935   ac_status=$?
37936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937   (exit $ac_status); }; } &&
37938          { ac_try='test -s conftest$ac_exeext'
37939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37940   (eval $ac_try) 2>&5
37941   ac_status=$?
37942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943   (exit $ac_status); }; }; then
37944   eval "$as_ac_var=yes"
37945 else
37946   echo "$as_me: failed program was:" >&5
37947 sed 's/^/| /' conftest.$ac_ext >&5
37948
37949 eval "$as_ac_var=no"
37950 fi
37951 rm -f conftest.err conftest.$ac_objext \
37952       conftest$ac_exeext conftest.$ac_ext
37953 fi
37954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37956 if test `eval echo '${'$as_ac_var'}'` = yes; then
37957   cat >>confdefs.h <<_ACEOF
37958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37959 _ACEOF
37960
37961 fi
37962 done
37963
37964
37965 ice_have_mktemp=no
37966
37967 for ac_func in mktemp
37968 do
37969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37970 echo "$as_me:$LINENO: checking for $ac_func" >&5
37971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37972 if eval "test \"\${$as_ac_var+set}\" = set"; then
37973   echo $ECHO_N "(cached) $ECHO_C" >&6
37974 else
37975   cat >conftest.$ac_ext <<_ACEOF
37976 /* confdefs.h.  */
37977 _ACEOF
37978 cat confdefs.h >>conftest.$ac_ext
37979 cat >>conftest.$ac_ext <<_ACEOF
37980 /* end confdefs.h.  */
37981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37983 #define $ac_func innocuous_$ac_func
37984
37985 /* System header to define __stub macros and hopefully few prototypes,
37986     which can conflict with char $ac_func (); below.
37987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37988     <limits.h> exists even on freestanding compilers.  */
37989
37990 #ifdef __STDC__
37991 # include <limits.h>
37992 #else
37993 # include <assert.h>
37994 #endif
37995
37996 #undef $ac_func
37997
37998 /* Override any gcc2 internal prototype to avoid an error.  */
37999 #ifdef __cplusplus
38000 extern "C"
38001 {
38002 #endif
38003 /* We use char because int might match the return type of a gcc2
38004    builtin and then its argument prototype would still apply.  */
38005 char $ac_func ();
38006 /* The GNU C library defines this for functions which it implements
38007     to always fail with ENOSYS.  Some functions are actually named
38008     something starting with __ and the normal name is an alias.  */
38009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38010 choke me
38011 #else
38012 char (*f) () = $ac_func;
38013 #endif
38014 #ifdef __cplusplus
38015 }
38016 #endif
38017
38018 int
38019 main ()
38020 {
38021 return f != $ac_func;
38022   ;
38023   return 0;
38024 }
38025 _ACEOF
38026 rm -f conftest.$ac_objext conftest$ac_exeext
38027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38028   (eval $ac_link) 2>conftest.er1
38029   ac_status=$?
38030   grep -v '^ *+' conftest.er1 >conftest.err
38031   rm -f conftest.er1
38032   cat conftest.err >&5
38033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38034   (exit $ac_status); } &&
38035          { ac_try='test -z "$ac_c_werror_flag"
38036                          || test ! -s conftest.err'
38037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38038   (eval $ac_try) 2>&5
38039   ac_status=$?
38040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041   (exit $ac_status); }; } &&
38042          { ac_try='test -s conftest$ac_exeext'
38043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38044   (eval $ac_try) 2>&5
38045   ac_status=$?
38046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38047   (exit $ac_status); }; }; then
38048   eval "$as_ac_var=yes"
38049 else
38050   echo "$as_me: failed program was:" >&5
38051 sed 's/^/| /' conftest.$ac_ext >&5
38052
38053 eval "$as_ac_var=no"
38054 fi
38055 rm -f conftest.err conftest.$ac_objext \
38056       conftest$ac_exeext conftest.$ac_ext
38057 fi
38058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38060 if test `eval echo '${'$as_ac_var'}'` = yes; then
38061   cat >>confdefs.h <<_ACEOF
38062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38063 _ACEOF
38064  ice_have_mktemp=yes
38065 fi
38066 done
38067
38068 if test "${ice_have_mktemp}" = yes; then
38069 echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
38070 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6
38071 if test "${ice_cv_have_mktemp_decl+set}" = set; then
38072   echo $ECHO_N "(cached) $ECHO_C" >&6
38073 else
38074
38075 ice_cv_have_mktemp_decl=no
38076 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38077 ice_re_word='(^|[^a-zA-Z0-9_])'
38078 for header in stdlib.h; do
38079 # Check for ordinary declaration
38080 cat >conftest.$ac_ext <<_ACEOF
38081 /* confdefs.h.  */
38082 _ACEOF
38083 cat confdefs.h >>conftest.$ac_ext
38084 cat >>conftest.$ac_ext <<_ACEOF
38085 /* end confdefs.h.  */
38086 #include <$header>
38087
38088 _ACEOF
38089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38090   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
38091   ice_cv_have_mktemp_decl=yes
38092 fi
38093 rm -f conftest*
38094
38095 if test "$ice_cv_have_mktemp_decl" = yes; then
38096         break
38097 fi
38098 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38099 cat >conftest.$ac_ext <<_ACEOF
38100 /* confdefs.h.  */
38101 _ACEOF
38102 cat confdefs.h >>conftest.$ac_ext
38103 cat >>conftest.$ac_ext <<_ACEOF
38104 /* end confdefs.h.  */
38105 #include <$header>
38106
38107 _ACEOF
38108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38109   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38110   ice_cv_have_mktemp_decl=yes
38111 fi
38112 rm -f conftest*
38113
38114 if test "$ice_cv_have_mktemp_decl" = yes; then
38115         break
38116 fi
38117 done
38118
38119 fi
38120
38121 echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
38122 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6
38123 if test "$ice_cv_have_mktemp_decl" = yes; then
38124
38125 cat >>confdefs.h <<_ACEOF
38126 #define HAVE_MKTEMP_DECL 1
38127 _ACEOF
38128
38129 fi
38130 fi
38131
38132
38133 for ac_func in mktime
38134 do
38135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38136 echo "$as_me:$LINENO: checking for $ac_func" >&5
38137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38138 if eval "test \"\${$as_ac_var+set}\" = set"; then
38139   echo $ECHO_N "(cached) $ECHO_C" >&6
38140 else
38141   cat >conftest.$ac_ext <<_ACEOF
38142 /* confdefs.h.  */
38143 _ACEOF
38144 cat confdefs.h >>conftest.$ac_ext
38145 cat >>conftest.$ac_ext <<_ACEOF
38146 /* end confdefs.h.  */
38147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38149 #define $ac_func innocuous_$ac_func
38150
38151 /* System header to define __stub macros and hopefully few prototypes,
38152     which can conflict with char $ac_func (); below.
38153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38154     <limits.h> exists even on freestanding compilers.  */
38155
38156 #ifdef __STDC__
38157 # include <limits.h>
38158 #else
38159 # include <assert.h>
38160 #endif
38161
38162 #undef $ac_func
38163
38164 /* Override any gcc2 internal prototype to avoid an error.  */
38165 #ifdef __cplusplus
38166 extern "C"
38167 {
38168 #endif
38169 /* We use char because int might match the return type of a gcc2
38170    builtin and then its argument prototype would still apply.  */
38171 char $ac_func ();
38172 /* The GNU C library defines this for functions which it implements
38173     to always fail with ENOSYS.  Some functions are actually named
38174     something starting with __ and the normal name is an alias.  */
38175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38176 choke me
38177 #else
38178 char (*f) () = $ac_func;
38179 #endif
38180 #ifdef __cplusplus
38181 }
38182 #endif
38183
38184 int
38185 main ()
38186 {
38187 return f != $ac_func;
38188   ;
38189   return 0;
38190 }
38191 _ACEOF
38192 rm -f conftest.$ac_objext conftest$ac_exeext
38193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38194   (eval $ac_link) 2>conftest.er1
38195   ac_status=$?
38196   grep -v '^ *+' conftest.er1 >conftest.err
38197   rm -f conftest.er1
38198   cat conftest.err >&5
38199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200   (exit $ac_status); } &&
38201          { ac_try='test -z "$ac_c_werror_flag"
38202                          || test ! -s conftest.err'
38203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38204   (eval $ac_try) 2>&5
38205   ac_status=$?
38206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207   (exit $ac_status); }; } &&
38208          { ac_try='test -s conftest$ac_exeext'
38209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38210   (eval $ac_try) 2>&5
38211   ac_status=$?
38212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213   (exit $ac_status); }; }; then
38214   eval "$as_ac_var=yes"
38215 else
38216   echo "$as_me: failed program was:" >&5
38217 sed 's/^/| /' conftest.$ac_ext >&5
38218
38219 eval "$as_ac_var=no"
38220 fi
38221 rm -f conftest.err conftest.$ac_objext \
38222       conftest$ac_exeext conftest.$ac_ext
38223 fi
38224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38226 if test `eval echo '${'$as_ac_var'}'` = yes; then
38227   cat >>confdefs.h <<_ACEOF
38228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38229 _ACEOF
38230
38231 else
38232   case $LIBOBJS in
38233     "$ac_func.$ac_objext"   | \
38234   *" $ac_func.$ac_objext"   | \
38235     "$ac_func.$ac_objext "* | \
38236   *" $ac_func.$ac_objext "* ) ;;
38237   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
38238 esac
38239
38240 fi
38241 done
38242
38243
38244
38245 ice_have_mktime=no
38246
38247 for ac_func in mktime
38248 do
38249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38250 echo "$as_me:$LINENO: checking for $ac_func" >&5
38251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38252 if eval "test \"\${$as_ac_var+set}\" = set"; then
38253   echo $ECHO_N "(cached) $ECHO_C" >&6
38254 else
38255   cat >conftest.$ac_ext <<_ACEOF
38256 /* confdefs.h.  */
38257 _ACEOF
38258 cat confdefs.h >>conftest.$ac_ext
38259 cat >>conftest.$ac_ext <<_ACEOF
38260 /* end confdefs.h.  */
38261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38263 #define $ac_func innocuous_$ac_func
38264
38265 /* System header to define __stub macros and hopefully few prototypes,
38266     which can conflict with char $ac_func (); below.
38267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38268     <limits.h> exists even on freestanding compilers.  */
38269
38270 #ifdef __STDC__
38271 # include <limits.h>
38272 #else
38273 # include <assert.h>
38274 #endif
38275
38276 #undef $ac_func
38277
38278 /* Override any gcc2 internal prototype to avoid an error.  */
38279 #ifdef __cplusplus
38280 extern "C"
38281 {
38282 #endif
38283 /* We use char because int might match the return type of a gcc2
38284    builtin and then its argument prototype would still apply.  */
38285 char $ac_func ();
38286 /* The GNU C library defines this for functions which it implements
38287     to always fail with ENOSYS.  Some functions are actually named
38288     something starting with __ and the normal name is an alias.  */
38289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38290 choke me
38291 #else
38292 char (*f) () = $ac_func;
38293 #endif
38294 #ifdef __cplusplus
38295 }
38296 #endif
38297
38298 int
38299 main ()
38300 {
38301 return f != $ac_func;
38302   ;
38303   return 0;
38304 }
38305 _ACEOF
38306 rm -f conftest.$ac_objext conftest$ac_exeext
38307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38308   (eval $ac_link) 2>conftest.er1
38309   ac_status=$?
38310   grep -v '^ *+' conftest.er1 >conftest.err
38311   rm -f conftest.er1
38312   cat conftest.err >&5
38313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38314   (exit $ac_status); } &&
38315          { ac_try='test -z "$ac_c_werror_flag"
38316                          || test ! -s conftest.err'
38317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38318   (eval $ac_try) 2>&5
38319   ac_status=$?
38320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38321   (exit $ac_status); }; } &&
38322          { ac_try='test -s conftest$ac_exeext'
38323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38324   (eval $ac_try) 2>&5
38325   ac_status=$?
38326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38327   (exit $ac_status); }; }; then
38328   eval "$as_ac_var=yes"
38329 else
38330   echo "$as_me: failed program was:" >&5
38331 sed 's/^/| /' conftest.$ac_ext >&5
38332
38333 eval "$as_ac_var=no"
38334 fi
38335 rm -f conftest.err conftest.$ac_objext \
38336       conftest$ac_exeext conftest.$ac_ext
38337 fi
38338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38340 if test `eval echo '${'$as_ac_var'}'` = yes; then
38341   cat >>confdefs.h <<_ACEOF
38342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38343 _ACEOF
38344  ice_have_mktime=yes
38345 fi
38346 done
38347
38348 if test "${ice_have_mktime}" = yes; then
38349 echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
38350 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6
38351 if test "${ice_cv_have_mktime_decl+set}" = set; then
38352   echo $ECHO_N "(cached) $ECHO_C" >&6
38353 else
38354
38355 ice_cv_have_mktime_decl=no
38356 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38357 ice_re_word='(^|[^a-zA-Z0-9_])'
38358 for header in time.h sys/time.h; do
38359 # Check for ordinary declaration
38360 cat >conftest.$ac_ext <<_ACEOF
38361 /* confdefs.h.  */
38362 _ACEOF
38363 cat confdefs.h >>conftest.$ac_ext
38364 cat >>conftest.$ac_ext <<_ACEOF
38365 /* end confdefs.h.  */
38366 #include <$header>
38367
38368 _ACEOF
38369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38370   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
38371   ice_cv_have_mktime_decl=yes
38372 fi
38373 rm -f conftest*
38374
38375 if test "$ice_cv_have_mktime_decl" = yes; then
38376         break
38377 fi
38378 # Check for "fixed" declaration like "getpid _PARAMS((int))"
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 #include <$header>
38386
38387 _ACEOF
38388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38389   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38390   ice_cv_have_mktime_decl=yes
38391 fi
38392 rm -f conftest*
38393
38394 if test "$ice_cv_have_mktime_decl" = yes; then
38395         break
38396 fi
38397 done
38398
38399 fi
38400
38401 echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
38402 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6
38403 if test "$ice_cv_have_mktime_decl" = yes; then
38404
38405 cat >>confdefs.h <<_ACEOF
38406 #define HAVE_MKTIME_DECL 1
38407 _ACEOF
38408
38409 fi
38410 fi
38411
38412
38413
38414 for ac_header in stdlib.h unistd.h
38415 do
38416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38418   echo "$as_me:$LINENO: checking for $ac_header" >&5
38419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38421   echo $ECHO_N "(cached) $ECHO_C" >&6
38422 fi
38423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38425 else
38426   # Is the header compilable?
38427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38429 cat >conftest.$ac_ext <<_ACEOF
38430 /* confdefs.h.  */
38431 _ACEOF
38432 cat confdefs.h >>conftest.$ac_ext
38433 cat >>conftest.$ac_ext <<_ACEOF
38434 /* end confdefs.h.  */
38435 $ac_includes_default
38436 #include <$ac_header>
38437 _ACEOF
38438 rm -f conftest.$ac_objext
38439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38440   (eval $ac_compile) 2>conftest.er1
38441   ac_status=$?
38442   grep -v '^ *+' conftest.er1 >conftest.err
38443   rm -f conftest.er1
38444   cat conftest.err >&5
38445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38446   (exit $ac_status); } &&
38447          { ac_try='test -z "$ac_c_werror_flag"
38448                          || test ! -s conftest.err'
38449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38450   (eval $ac_try) 2>&5
38451   ac_status=$?
38452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453   (exit $ac_status); }; } &&
38454          { ac_try='test -s conftest.$ac_objext'
38455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38456   (eval $ac_try) 2>&5
38457   ac_status=$?
38458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459   (exit $ac_status); }; }; then
38460   ac_header_compiler=yes
38461 else
38462   echo "$as_me: failed program was:" >&5
38463 sed 's/^/| /' conftest.$ac_ext >&5
38464
38465 ac_header_compiler=no
38466 fi
38467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38469 echo "${ECHO_T}$ac_header_compiler" >&6
38470
38471 # Is the header present?
38472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38474 cat >conftest.$ac_ext <<_ACEOF
38475 /* confdefs.h.  */
38476 _ACEOF
38477 cat confdefs.h >>conftest.$ac_ext
38478 cat >>conftest.$ac_ext <<_ACEOF
38479 /* end confdefs.h.  */
38480 #include <$ac_header>
38481 _ACEOF
38482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38484   ac_status=$?
38485   grep -v '^ *+' conftest.er1 >conftest.err
38486   rm -f conftest.er1
38487   cat conftest.err >&5
38488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38489   (exit $ac_status); } >/dev/null; then
38490   if test -s conftest.err; then
38491     ac_cpp_err=$ac_c_preproc_warn_flag
38492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38493   else
38494     ac_cpp_err=
38495   fi
38496 else
38497   ac_cpp_err=yes
38498 fi
38499 if test -z "$ac_cpp_err"; then
38500   ac_header_preproc=yes
38501 else
38502   echo "$as_me: failed program was:" >&5
38503 sed 's/^/| /' conftest.$ac_ext >&5
38504
38505   ac_header_preproc=no
38506 fi
38507 rm -f conftest.err conftest.$ac_ext
38508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38509 echo "${ECHO_T}$ac_header_preproc" >&6
38510
38511 # So?  What about this header?
38512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38513   yes:no: )
38514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38518     ac_header_preproc=yes
38519     ;;
38520   no:yes:* )
38521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38523     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38524 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38525     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38527     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38528 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38531     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38533     (
38534       cat <<\_ASBOX
38535 ## ------------------------------------------ ##
38536 ## Report this to the AC_PACKAGE_NAME lists.  ##
38537 ## ------------------------------------------ ##
38538 _ASBOX
38539     ) |
38540       sed "s/^/$as_me: WARNING:     /" >&2
38541     ;;
38542 esac
38543 echo "$as_me:$LINENO: checking for $ac_header" >&5
38544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38546   echo $ECHO_N "(cached) $ECHO_C" >&6
38547 else
38548   eval "$as_ac_Header=\$ac_header_preproc"
38549 fi
38550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38552
38553 fi
38554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38555   cat >>confdefs.h <<_ACEOF
38556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38557 _ACEOF
38558
38559 fi
38560
38561 done
38562
38563
38564 for ac_func in getpagesize
38565 do
38566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38567 echo "$as_me:$LINENO: checking for $ac_func" >&5
38568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38569 if eval "test \"\${$as_ac_var+set}\" = set"; then
38570   echo $ECHO_N "(cached) $ECHO_C" >&6
38571 else
38572   cat >conftest.$ac_ext <<_ACEOF
38573 /* confdefs.h.  */
38574 _ACEOF
38575 cat confdefs.h >>conftest.$ac_ext
38576 cat >>conftest.$ac_ext <<_ACEOF
38577 /* end confdefs.h.  */
38578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38580 #define $ac_func innocuous_$ac_func
38581
38582 /* System header to define __stub macros and hopefully few prototypes,
38583     which can conflict with char $ac_func (); below.
38584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38585     <limits.h> exists even on freestanding compilers.  */
38586
38587 #ifdef __STDC__
38588 # include <limits.h>
38589 #else
38590 # include <assert.h>
38591 #endif
38592
38593 #undef $ac_func
38594
38595 /* Override any gcc2 internal prototype to avoid an error.  */
38596 #ifdef __cplusplus
38597 extern "C"
38598 {
38599 #endif
38600 /* We use char because int might match the return type of a gcc2
38601    builtin and then its argument prototype would still apply.  */
38602 char $ac_func ();
38603 /* The GNU C library defines this for functions which it implements
38604     to always fail with ENOSYS.  Some functions are actually named
38605     something starting with __ and the normal name is an alias.  */
38606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38607 choke me
38608 #else
38609 char (*f) () = $ac_func;
38610 #endif
38611 #ifdef __cplusplus
38612 }
38613 #endif
38614
38615 int
38616 main ()
38617 {
38618 return f != $ac_func;
38619   ;
38620   return 0;
38621 }
38622 _ACEOF
38623 rm -f conftest.$ac_objext conftest$ac_exeext
38624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38625   (eval $ac_link) 2>conftest.er1
38626   ac_status=$?
38627   grep -v '^ *+' conftest.er1 >conftest.err
38628   rm -f conftest.er1
38629   cat conftest.err >&5
38630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38631   (exit $ac_status); } &&
38632          { ac_try='test -z "$ac_c_werror_flag"
38633                          || test ! -s conftest.err'
38634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38635   (eval $ac_try) 2>&5
38636   ac_status=$?
38637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38638   (exit $ac_status); }; } &&
38639          { ac_try='test -s conftest$ac_exeext'
38640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38641   (eval $ac_try) 2>&5
38642   ac_status=$?
38643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38644   (exit $ac_status); }; }; then
38645   eval "$as_ac_var=yes"
38646 else
38647   echo "$as_me: failed program was:" >&5
38648 sed 's/^/| /' conftest.$ac_ext >&5
38649
38650 eval "$as_ac_var=no"
38651 fi
38652 rm -f conftest.err conftest.$ac_objext \
38653       conftest$ac_exeext conftest.$ac_ext
38654 fi
38655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38657 if test `eval echo '${'$as_ac_var'}'` = yes; then
38658   cat >>confdefs.h <<_ACEOF
38659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38660 _ACEOF
38661
38662 fi
38663 done
38664
38665 echo "$as_me:$LINENO: checking for working mmap" >&5
38666 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
38667 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
38668   echo $ECHO_N "(cached) $ECHO_C" >&6
38669 else
38670   if test "$cross_compiling" = yes; then
38671   ac_cv_func_mmap_fixed_mapped=no
38672 else
38673   cat >conftest.$ac_ext <<_ACEOF
38674 /* confdefs.h.  */
38675 _ACEOF
38676 cat confdefs.h >>conftest.$ac_ext
38677 cat >>conftest.$ac_ext <<_ACEOF
38678 /* end confdefs.h.  */
38679 $ac_includes_default
38680 /* malloc might have been renamed as rpl_malloc. */
38681 #undef malloc
38682
38683 /* Thanks to Mike Haertel and Jim Avera for this test.
38684    Here is a matrix of mmap possibilities:
38685         mmap private not fixed
38686         mmap private fixed at somewhere currently unmapped
38687         mmap private fixed at somewhere already mapped
38688         mmap shared not fixed
38689         mmap shared fixed at somewhere currently unmapped
38690         mmap shared fixed at somewhere already mapped
38691    For private mappings, we should verify that changes cannot be read()
38692    back from the file, nor mmap's back from the file at a different
38693    address.  (There have been systems where private was not correctly
38694    implemented like the infamous i386 svr4.0, and systems where the
38695    VM page cache was not coherent with the file system buffer cache
38696    like early versions of FreeBSD and possibly contemporary NetBSD.)
38697    For shared mappings, we should conversely verify that changes get
38698    propagated back to all the places they're supposed to be.
38699
38700    Grep wants private fixed already mapped.
38701    The main things grep needs to know about mmap are:
38702    * does it exist and is it safe to write into the mmap'd area
38703    * how to use it (BSD variants)  */
38704
38705 #include <fcntl.h>
38706 #include <sys/mman.h>
38707
38708 #if !STDC_HEADERS && !HAVE_STDLIB_H
38709 char *malloc ();
38710 #endif
38711
38712 /* This mess was copied from the GNU getpagesize.h.  */
38713 #if !HAVE_GETPAGESIZE
38714 /* Assume that all systems that can run configure have sys/param.h.  */
38715 # if !HAVE_SYS_PARAM_H
38716 #  define HAVE_SYS_PARAM_H 1
38717 # endif
38718
38719 # ifdef _SC_PAGESIZE
38720 #  define getpagesize() sysconf(_SC_PAGESIZE)
38721 # else /* no _SC_PAGESIZE */
38722 #  if HAVE_SYS_PARAM_H
38723 #   include <sys/param.h>
38724 #   ifdef EXEC_PAGESIZE
38725 #    define getpagesize() EXEC_PAGESIZE
38726 #   else /* no EXEC_PAGESIZE */
38727 #    ifdef NBPG
38728 #     define getpagesize() NBPG * CLSIZE
38729 #     ifndef CLSIZE
38730 #      define CLSIZE 1
38731 #     endif /* no CLSIZE */
38732 #    else /* no NBPG */
38733 #     ifdef NBPC
38734 #      define getpagesize() NBPC
38735 #     else /* no NBPC */
38736 #      ifdef PAGESIZE
38737 #       define getpagesize() PAGESIZE
38738 #      endif /* PAGESIZE */
38739 #     endif /* no NBPC */
38740 #    endif /* no NBPG */
38741 #   endif /* no EXEC_PAGESIZE */
38742 #  else /* no HAVE_SYS_PARAM_H */
38743 #   define getpagesize() 8192   /* punt totally */
38744 #  endif /* no HAVE_SYS_PARAM_H */
38745 # endif /* no _SC_PAGESIZE */
38746
38747 #endif /* no HAVE_GETPAGESIZE */
38748
38749 int
38750 main ()
38751 {
38752   char *data, *data2, *data3;
38753   int i, pagesize;
38754   int fd;
38755
38756   pagesize = getpagesize ();
38757
38758   /* First, make a file with some known garbage in it. */
38759   data = (char *) malloc (pagesize);
38760   if (!data)
38761     exit (1);
38762   for (i = 0; i < pagesize; ++i)
38763     *(data + i) = rand ();
38764   umask (0);
38765   fd = creat ("conftest.mmap", 0600);
38766   if (fd < 0)
38767     exit (1);
38768   if (write (fd, data, pagesize) != pagesize)
38769     exit (1);
38770   close (fd);
38771
38772   /* Next, try to mmap the file at a fixed address which already has
38773      something else allocated at it.  If we can, also make sure that
38774      we see the same garbage.  */
38775   fd = open ("conftest.mmap", O_RDWR);
38776   if (fd < 0)
38777     exit (1);
38778   data2 = (char *) malloc (2 * pagesize);
38779   if (!data2)
38780     exit (1);
38781   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
38782   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
38783                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
38784     exit (1);
38785   for (i = 0; i < pagesize; ++i)
38786     if (*(data + i) != *(data2 + i))
38787       exit (1);
38788
38789   /* Finally, make sure that changes to the mapped area do not
38790      percolate back to the file as seen by read().  (This is a bug on
38791      some variants of i386 svr4.0.)  */
38792   for (i = 0; i < pagesize; ++i)
38793     *(data2 + i) = *(data2 + i) + 1;
38794   data3 = (char *) malloc (pagesize);
38795   if (!data3)
38796     exit (1);
38797   if (read (fd, data3, pagesize) != pagesize)
38798     exit (1);
38799   for (i = 0; i < pagesize; ++i)
38800     if (*(data + i) != *(data3 + i))
38801       exit (1);
38802   close (fd);
38803   exit (0);
38804 }
38805 _ACEOF
38806 rm -f conftest$ac_exeext
38807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38808   (eval $ac_link) 2>&5
38809   ac_status=$?
38810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38811   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38813   (eval $ac_try) 2>&5
38814   ac_status=$?
38815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38816   (exit $ac_status); }; }; then
38817   ac_cv_func_mmap_fixed_mapped=yes
38818 else
38819   echo "$as_me: program exited with status $ac_status" >&5
38820 echo "$as_me: failed program was:" >&5
38821 sed 's/^/| /' conftest.$ac_ext >&5
38822
38823 ( exit $ac_status )
38824 ac_cv_func_mmap_fixed_mapped=no
38825 fi
38826 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38827 fi
38828 fi
38829 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
38830 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
38831 if test $ac_cv_func_mmap_fixed_mapped = yes; then
38832
38833 cat >>confdefs.h <<\_ACEOF
38834 #define HAVE_MMAP 1
38835 _ACEOF
38836
38837 fi
38838 rm -f conftest.mmap
38839
38840
38841 for ac_func in on_exit
38842 do
38843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38844 echo "$as_me:$LINENO: checking for $ac_func" >&5
38845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38846 if eval "test \"\${$as_ac_var+set}\" = set"; then
38847   echo $ECHO_N "(cached) $ECHO_C" >&6
38848 else
38849   cat >conftest.$ac_ext <<_ACEOF
38850 /* confdefs.h.  */
38851 _ACEOF
38852 cat confdefs.h >>conftest.$ac_ext
38853 cat >>conftest.$ac_ext <<_ACEOF
38854 /* end confdefs.h.  */
38855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38857 #define $ac_func innocuous_$ac_func
38858
38859 /* System header to define __stub macros and hopefully few prototypes,
38860     which can conflict with char $ac_func (); below.
38861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38862     <limits.h> exists even on freestanding compilers.  */
38863
38864 #ifdef __STDC__
38865 # include <limits.h>
38866 #else
38867 # include <assert.h>
38868 #endif
38869
38870 #undef $ac_func
38871
38872 /* Override any gcc2 internal prototype to avoid an error.  */
38873 #ifdef __cplusplus
38874 extern "C"
38875 {
38876 #endif
38877 /* We use char because int might match the return type of a gcc2
38878    builtin and then its argument prototype would still apply.  */
38879 char $ac_func ();
38880 /* The GNU C library defines this for functions which it implements
38881     to always fail with ENOSYS.  Some functions are actually named
38882     something starting with __ and the normal name is an alias.  */
38883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38884 choke me
38885 #else
38886 char (*f) () = $ac_func;
38887 #endif
38888 #ifdef __cplusplus
38889 }
38890 #endif
38891
38892 int
38893 main ()
38894 {
38895 return f != $ac_func;
38896   ;
38897   return 0;
38898 }
38899 _ACEOF
38900 rm -f conftest.$ac_objext conftest$ac_exeext
38901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38902   (eval $ac_link) 2>conftest.er1
38903   ac_status=$?
38904   grep -v '^ *+' conftest.er1 >conftest.err
38905   rm -f conftest.er1
38906   cat conftest.err >&5
38907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38908   (exit $ac_status); } &&
38909          { ac_try='test -z "$ac_c_werror_flag"
38910                          || test ! -s conftest.err'
38911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38912   (eval $ac_try) 2>&5
38913   ac_status=$?
38914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915   (exit $ac_status); }; } &&
38916          { ac_try='test -s conftest$ac_exeext'
38917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38918   (eval $ac_try) 2>&5
38919   ac_status=$?
38920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38921   (exit $ac_status); }; }; then
38922   eval "$as_ac_var=yes"
38923 else
38924   echo "$as_me: failed program was:" >&5
38925 sed 's/^/| /' conftest.$ac_ext >&5
38926
38927 eval "$as_ac_var=no"
38928 fi
38929 rm -f conftest.err conftest.$ac_objext \
38930       conftest$ac_exeext conftest.$ac_ext
38931 fi
38932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38934 if test `eval echo '${'$as_ac_var'}'` = yes; then
38935   cat >>confdefs.h <<_ACEOF
38936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38937 _ACEOF
38938
38939 fi
38940 done
38941
38942
38943 ice_have_openlog=no
38944
38945 for ac_func in openlog
38946 do
38947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38948 echo "$as_me:$LINENO: checking for $ac_func" >&5
38949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38950 if eval "test \"\${$as_ac_var+set}\" = set"; then
38951   echo $ECHO_N "(cached) $ECHO_C" >&6
38952 else
38953   cat >conftest.$ac_ext <<_ACEOF
38954 /* confdefs.h.  */
38955 _ACEOF
38956 cat confdefs.h >>conftest.$ac_ext
38957 cat >>conftest.$ac_ext <<_ACEOF
38958 /* end confdefs.h.  */
38959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38961 #define $ac_func innocuous_$ac_func
38962
38963 /* System header to define __stub macros and hopefully few prototypes,
38964     which can conflict with char $ac_func (); below.
38965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38966     <limits.h> exists even on freestanding compilers.  */
38967
38968 #ifdef __STDC__
38969 # include <limits.h>
38970 #else
38971 # include <assert.h>
38972 #endif
38973
38974 #undef $ac_func
38975
38976 /* Override any gcc2 internal prototype to avoid an error.  */
38977 #ifdef __cplusplus
38978 extern "C"
38979 {
38980 #endif
38981 /* We use char because int might match the return type of a gcc2
38982    builtin and then its argument prototype would still apply.  */
38983 char $ac_func ();
38984 /* The GNU C library defines this for functions which it implements
38985     to always fail with ENOSYS.  Some functions are actually named
38986     something starting with __ and the normal name is an alias.  */
38987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38988 choke me
38989 #else
38990 char (*f) () = $ac_func;
38991 #endif
38992 #ifdef __cplusplus
38993 }
38994 #endif
38995
38996 int
38997 main ()
38998 {
38999 return f != $ac_func;
39000   ;
39001   return 0;
39002 }
39003 _ACEOF
39004 rm -f conftest.$ac_objext conftest$ac_exeext
39005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39006   (eval $ac_link) 2>conftest.er1
39007   ac_status=$?
39008   grep -v '^ *+' conftest.er1 >conftest.err
39009   rm -f conftest.er1
39010   cat conftest.err >&5
39011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39012   (exit $ac_status); } &&
39013          { ac_try='test -z "$ac_c_werror_flag"
39014                          || test ! -s conftest.err'
39015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39016   (eval $ac_try) 2>&5
39017   ac_status=$?
39018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39019   (exit $ac_status); }; } &&
39020          { ac_try='test -s conftest$ac_exeext'
39021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39022   (eval $ac_try) 2>&5
39023   ac_status=$?
39024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39025   (exit $ac_status); }; }; then
39026   eval "$as_ac_var=yes"
39027 else
39028   echo "$as_me: failed program was:" >&5
39029 sed 's/^/| /' conftest.$ac_ext >&5
39030
39031 eval "$as_ac_var=no"
39032 fi
39033 rm -f conftest.err conftest.$ac_objext \
39034       conftest$ac_exeext conftest.$ac_ext
39035 fi
39036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39038 if test `eval echo '${'$as_ac_var'}'` = yes; then
39039   cat >>confdefs.h <<_ACEOF
39040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39041 _ACEOF
39042  ice_have_openlog=yes
39043 fi
39044 done
39045
39046 if test "${ice_have_openlog}" = yes; then
39047 echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
39048 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6
39049 if test "${ice_cv_have_openlog_decl+set}" = set; then
39050   echo $ECHO_N "(cached) $ECHO_C" >&6
39051 else
39052
39053 ice_cv_have_openlog_decl=no
39054 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39055 ice_re_word='(^|[^a-zA-Z0-9_])'
39056 for header in syslog.h; do
39057 # Check for ordinary declaration
39058 cat >conftest.$ac_ext <<_ACEOF
39059 /* confdefs.h.  */
39060 _ACEOF
39061 cat confdefs.h >>conftest.$ac_ext
39062 cat >>conftest.$ac_ext <<_ACEOF
39063 /* end confdefs.h.  */
39064 #include <$header>
39065
39066 _ACEOF
39067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39068   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then
39069   ice_cv_have_openlog_decl=yes
39070 fi
39071 rm -f conftest*
39072
39073 if test "$ice_cv_have_openlog_decl" = yes; then
39074         break
39075 fi
39076 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39077 cat >conftest.$ac_ext <<_ACEOF
39078 /* confdefs.h.  */
39079 _ACEOF
39080 cat confdefs.h >>conftest.$ac_ext
39081 cat >>conftest.$ac_ext <<_ACEOF
39082 /* end confdefs.h.  */
39083 #include <$header>
39084
39085 _ACEOF
39086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39087   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39088   ice_cv_have_openlog_decl=yes
39089 fi
39090 rm -f conftest*
39091
39092 if test "$ice_cv_have_openlog_decl" = yes; then
39093         break
39094 fi
39095 done
39096
39097 fi
39098
39099 echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
39100 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6
39101 if test "$ice_cv_have_openlog_decl" = yes; then
39102
39103 cat >>confdefs.h <<_ACEOF
39104 #define HAVE_OPENLOG_DECL 1
39105 _ACEOF
39106
39107 fi
39108 fi
39109
39110
39111 ice_have_pclose=no
39112
39113 for ac_func in pclose
39114 do
39115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39116 echo "$as_me:$LINENO: checking for $ac_func" >&5
39117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39118 if eval "test \"\${$as_ac_var+set}\" = set"; then
39119   echo $ECHO_N "(cached) $ECHO_C" >&6
39120 else
39121   cat >conftest.$ac_ext <<_ACEOF
39122 /* confdefs.h.  */
39123 _ACEOF
39124 cat confdefs.h >>conftest.$ac_ext
39125 cat >>conftest.$ac_ext <<_ACEOF
39126 /* end confdefs.h.  */
39127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39129 #define $ac_func innocuous_$ac_func
39130
39131 /* System header to define __stub macros and hopefully few prototypes,
39132     which can conflict with char $ac_func (); below.
39133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39134     <limits.h> exists even on freestanding compilers.  */
39135
39136 #ifdef __STDC__
39137 # include <limits.h>
39138 #else
39139 # include <assert.h>
39140 #endif
39141
39142 #undef $ac_func
39143
39144 /* Override any gcc2 internal prototype to avoid an error.  */
39145 #ifdef __cplusplus
39146 extern "C"
39147 {
39148 #endif
39149 /* We use char because int might match the return type of a gcc2
39150    builtin and then its argument prototype would still apply.  */
39151 char $ac_func ();
39152 /* The GNU C library defines this for functions which it implements
39153     to always fail with ENOSYS.  Some functions are actually named
39154     something starting with __ and the normal name is an alias.  */
39155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39156 choke me
39157 #else
39158 char (*f) () = $ac_func;
39159 #endif
39160 #ifdef __cplusplus
39161 }
39162 #endif
39163
39164 int
39165 main ()
39166 {
39167 return f != $ac_func;
39168   ;
39169   return 0;
39170 }
39171 _ACEOF
39172 rm -f conftest.$ac_objext conftest$ac_exeext
39173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39174   (eval $ac_link) 2>conftest.er1
39175   ac_status=$?
39176   grep -v '^ *+' conftest.er1 >conftest.err
39177   rm -f conftest.er1
39178   cat conftest.err >&5
39179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39180   (exit $ac_status); } &&
39181          { ac_try='test -z "$ac_c_werror_flag"
39182                          || test ! -s conftest.err'
39183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39184   (eval $ac_try) 2>&5
39185   ac_status=$?
39186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39187   (exit $ac_status); }; } &&
39188          { ac_try='test -s conftest$ac_exeext'
39189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39190   (eval $ac_try) 2>&5
39191   ac_status=$?
39192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39193   (exit $ac_status); }; }; then
39194   eval "$as_ac_var=yes"
39195 else
39196   echo "$as_me: failed program was:" >&5
39197 sed 's/^/| /' conftest.$ac_ext >&5
39198
39199 eval "$as_ac_var=no"
39200 fi
39201 rm -f conftest.err conftest.$ac_objext \
39202       conftest$ac_exeext conftest.$ac_ext
39203 fi
39204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39206 if test `eval echo '${'$as_ac_var'}'` = yes; then
39207   cat >>confdefs.h <<_ACEOF
39208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39209 _ACEOF
39210  ice_have_pclose=yes
39211 fi
39212 done
39213
39214 if test "${ice_have_pclose}" = yes; then
39215 echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
39216 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6
39217 if test "${ice_cv_have_pclose_decl+set}" = set; then
39218   echo $ECHO_N "(cached) $ECHO_C" >&6
39219 else
39220
39221 ice_cv_have_pclose_decl=no
39222 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39223 ice_re_word='(^|[^a-zA-Z0-9_])'
39224 for header in stdio.h; do
39225 # Check for ordinary declaration
39226 cat >conftest.$ac_ext <<_ACEOF
39227 /* confdefs.h.  */
39228 _ACEOF
39229 cat confdefs.h >>conftest.$ac_ext
39230 cat >>conftest.$ac_ext <<_ACEOF
39231 /* end confdefs.h.  */
39232 #include <$header>
39233
39234 _ACEOF
39235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39236   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
39237   ice_cv_have_pclose_decl=yes
39238 fi
39239 rm -f conftest*
39240
39241 if test "$ice_cv_have_pclose_decl" = yes; then
39242         break
39243 fi
39244 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39245 cat >conftest.$ac_ext <<_ACEOF
39246 /* confdefs.h.  */
39247 _ACEOF
39248 cat confdefs.h >>conftest.$ac_ext
39249 cat >>conftest.$ac_ext <<_ACEOF
39250 /* end confdefs.h.  */
39251 #include <$header>
39252
39253 _ACEOF
39254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39255   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39256   ice_cv_have_pclose_decl=yes
39257 fi
39258 rm -f conftest*
39259
39260 if test "$ice_cv_have_pclose_decl" = yes; then
39261         break
39262 fi
39263 done
39264
39265 fi
39266
39267 echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
39268 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6
39269 if test "$ice_cv_have_pclose_decl" = yes; then
39270
39271 cat >>confdefs.h <<_ACEOF
39272 #define HAVE_PCLOSE_DECL 1
39273 _ACEOF
39274
39275 fi
39276 fi
39277
39278
39279 ice_have_perror=no
39280
39281 for ac_func in perror
39282 do
39283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39284 echo "$as_me:$LINENO: checking for $ac_func" >&5
39285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39286 if eval "test \"\${$as_ac_var+set}\" = set"; then
39287   echo $ECHO_N "(cached) $ECHO_C" >&6
39288 else
39289   cat >conftest.$ac_ext <<_ACEOF
39290 /* confdefs.h.  */
39291 _ACEOF
39292 cat confdefs.h >>conftest.$ac_ext
39293 cat >>conftest.$ac_ext <<_ACEOF
39294 /* end confdefs.h.  */
39295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39297 #define $ac_func innocuous_$ac_func
39298
39299 /* System header to define __stub macros and hopefully few prototypes,
39300     which can conflict with char $ac_func (); below.
39301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39302     <limits.h> exists even on freestanding compilers.  */
39303
39304 #ifdef __STDC__
39305 # include <limits.h>
39306 #else
39307 # include <assert.h>
39308 #endif
39309
39310 #undef $ac_func
39311
39312 /* Override any gcc2 internal prototype to avoid an error.  */
39313 #ifdef __cplusplus
39314 extern "C"
39315 {
39316 #endif
39317 /* We use char because int might match the return type of a gcc2
39318    builtin and then its argument prototype would still apply.  */
39319 char $ac_func ();
39320 /* The GNU C library defines this for functions which it implements
39321     to always fail with ENOSYS.  Some functions are actually named
39322     something starting with __ and the normal name is an alias.  */
39323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39324 choke me
39325 #else
39326 char (*f) () = $ac_func;
39327 #endif
39328 #ifdef __cplusplus
39329 }
39330 #endif
39331
39332 int
39333 main ()
39334 {
39335 return f != $ac_func;
39336   ;
39337   return 0;
39338 }
39339 _ACEOF
39340 rm -f conftest.$ac_objext conftest$ac_exeext
39341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39342   (eval $ac_link) 2>conftest.er1
39343   ac_status=$?
39344   grep -v '^ *+' conftest.er1 >conftest.err
39345   rm -f conftest.er1
39346   cat conftest.err >&5
39347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39348   (exit $ac_status); } &&
39349          { ac_try='test -z "$ac_c_werror_flag"
39350                          || test ! -s conftest.err'
39351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39352   (eval $ac_try) 2>&5
39353   ac_status=$?
39354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39355   (exit $ac_status); }; } &&
39356          { ac_try='test -s conftest$ac_exeext'
39357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39358   (eval $ac_try) 2>&5
39359   ac_status=$?
39360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39361   (exit $ac_status); }; }; then
39362   eval "$as_ac_var=yes"
39363 else
39364   echo "$as_me: failed program was:" >&5
39365 sed 's/^/| /' conftest.$ac_ext >&5
39366
39367 eval "$as_ac_var=no"
39368 fi
39369 rm -f conftest.err conftest.$ac_objext \
39370       conftest$ac_exeext conftest.$ac_ext
39371 fi
39372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39374 if test `eval echo '${'$as_ac_var'}'` = yes; then
39375   cat >>confdefs.h <<_ACEOF
39376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39377 _ACEOF
39378  ice_have_perror=yes
39379 fi
39380 done
39381
39382 if test "${ice_have_perror}" = yes; then
39383 echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
39384 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6
39385 if test "${ice_cv_have_perror_decl+set}" = set; then
39386   echo $ECHO_N "(cached) $ECHO_C" >&6
39387 else
39388
39389 ice_cv_have_perror_decl=no
39390 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39391 ice_re_word='(^|[^a-zA-Z0-9_])'
39392 for header in stdio.h; do
39393 # Check for ordinary declaration
39394 cat >conftest.$ac_ext <<_ACEOF
39395 /* confdefs.h.  */
39396 _ACEOF
39397 cat confdefs.h >>conftest.$ac_ext
39398 cat >>conftest.$ac_ext <<_ACEOF
39399 /* end confdefs.h.  */
39400 #include <$header>
39401
39402 _ACEOF
39403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39404   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
39405   ice_cv_have_perror_decl=yes
39406 fi
39407 rm -f conftest*
39408
39409 if test "$ice_cv_have_perror_decl" = yes; then
39410         break
39411 fi
39412 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39413 cat >conftest.$ac_ext <<_ACEOF
39414 /* confdefs.h.  */
39415 _ACEOF
39416 cat confdefs.h >>conftest.$ac_ext
39417 cat >>conftest.$ac_ext <<_ACEOF
39418 /* end confdefs.h.  */
39419 #include <$header>
39420
39421 _ACEOF
39422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39423   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39424   ice_cv_have_perror_decl=yes
39425 fi
39426 rm -f conftest*
39427
39428 if test "$ice_cv_have_perror_decl" = yes; then
39429         break
39430 fi
39431 done
39432
39433 fi
39434
39435 echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
39436 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6
39437 if test "$ice_cv_have_perror_decl" = yes; then
39438
39439 cat >>confdefs.h <<_ACEOF
39440 #define HAVE_PERROR_DECL 1
39441 _ACEOF
39442
39443 fi
39444 fi
39445
39446
39447 ice_have_printf=no
39448
39449 for ac_func in printf
39450 do
39451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39452 echo "$as_me:$LINENO: checking for $ac_func" >&5
39453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39454 if eval "test \"\${$as_ac_var+set}\" = set"; then
39455   echo $ECHO_N "(cached) $ECHO_C" >&6
39456 else
39457   cat >conftest.$ac_ext <<_ACEOF
39458 /* confdefs.h.  */
39459 _ACEOF
39460 cat confdefs.h >>conftest.$ac_ext
39461 cat >>conftest.$ac_ext <<_ACEOF
39462 /* end confdefs.h.  */
39463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39465 #define $ac_func innocuous_$ac_func
39466
39467 /* System header to define __stub macros and hopefully few prototypes,
39468     which can conflict with char $ac_func (); below.
39469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39470     <limits.h> exists even on freestanding compilers.  */
39471
39472 #ifdef __STDC__
39473 # include <limits.h>
39474 #else
39475 # include <assert.h>
39476 #endif
39477
39478 #undef $ac_func
39479
39480 /* Override any gcc2 internal prototype to avoid an error.  */
39481 #ifdef __cplusplus
39482 extern "C"
39483 {
39484 #endif
39485 /* We use char because int might match the return type of a gcc2
39486    builtin and then its argument prototype would still apply.  */
39487 char $ac_func ();
39488 /* The GNU C library defines this for functions which it implements
39489     to always fail with ENOSYS.  Some functions are actually named
39490     something starting with __ and the normal name is an alias.  */
39491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39492 choke me
39493 #else
39494 char (*f) () = $ac_func;
39495 #endif
39496 #ifdef __cplusplus
39497 }
39498 #endif
39499
39500 int
39501 main ()
39502 {
39503 return f != $ac_func;
39504   ;
39505   return 0;
39506 }
39507 _ACEOF
39508 rm -f conftest.$ac_objext conftest$ac_exeext
39509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39510   (eval $ac_link) 2>conftest.er1
39511   ac_status=$?
39512   grep -v '^ *+' conftest.er1 >conftest.err
39513   rm -f conftest.er1
39514   cat conftest.err >&5
39515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516   (exit $ac_status); } &&
39517          { ac_try='test -z "$ac_c_werror_flag"
39518                          || test ! -s conftest.err'
39519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39520   (eval $ac_try) 2>&5
39521   ac_status=$?
39522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39523   (exit $ac_status); }; } &&
39524          { ac_try='test -s conftest$ac_exeext'
39525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39526   (eval $ac_try) 2>&5
39527   ac_status=$?
39528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39529   (exit $ac_status); }; }; then
39530   eval "$as_ac_var=yes"
39531 else
39532   echo "$as_me: failed program was:" >&5
39533 sed 's/^/| /' conftest.$ac_ext >&5
39534
39535 eval "$as_ac_var=no"
39536 fi
39537 rm -f conftest.err conftest.$ac_objext \
39538       conftest$ac_exeext conftest.$ac_ext
39539 fi
39540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39542 if test `eval echo '${'$as_ac_var'}'` = yes; then
39543   cat >>confdefs.h <<_ACEOF
39544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39545 _ACEOF
39546  ice_have_printf=yes
39547 fi
39548 done
39549
39550 if test "${ice_have_printf}" = yes; then
39551 echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
39552 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6
39553 if test "${ice_cv_have_printf_decl+set}" = set; then
39554   echo $ECHO_N "(cached) $ECHO_C" >&6
39555 else
39556
39557 ice_cv_have_printf_decl=no
39558 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39559 ice_re_word='(^|[^a-zA-Z0-9_])'
39560 for header in stdio.h; do
39561 # Check for ordinary declaration
39562 cat >conftest.$ac_ext <<_ACEOF
39563 /* confdefs.h.  */
39564 _ACEOF
39565 cat confdefs.h >>conftest.$ac_ext
39566 cat >>conftest.$ac_ext <<_ACEOF
39567 /* end confdefs.h.  */
39568 #include <$header>
39569
39570 _ACEOF
39571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39572   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
39573   ice_cv_have_printf_decl=yes
39574 fi
39575 rm -f conftest*
39576
39577 if test "$ice_cv_have_printf_decl" = yes; then
39578         break
39579 fi
39580 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39581 cat >conftest.$ac_ext <<_ACEOF
39582 /* confdefs.h.  */
39583 _ACEOF
39584 cat confdefs.h >>conftest.$ac_ext
39585 cat >>conftest.$ac_ext <<_ACEOF
39586 /* end confdefs.h.  */
39587 #include <$header>
39588
39589 _ACEOF
39590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39591   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39592   ice_cv_have_printf_decl=yes
39593 fi
39594 rm -f conftest*
39595
39596 if test "$ice_cv_have_printf_decl" = yes; then
39597         break
39598 fi
39599 done
39600
39601 fi
39602
39603 echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
39604 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6
39605 if test "$ice_cv_have_printf_decl" = yes; then
39606
39607 cat >>confdefs.h <<_ACEOF
39608 #define HAVE_PRINTF_DECL 1
39609 _ACEOF
39610
39611 fi
39612 fi
39613
39614
39615 for ac_func in putenv
39616 do
39617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39618 echo "$as_me:$LINENO: checking for $ac_func" >&5
39619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39620 if eval "test \"\${$as_ac_var+set}\" = set"; then
39621   echo $ECHO_N "(cached) $ECHO_C" >&6
39622 else
39623   cat >conftest.$ac_ext <<_ACEOF
39624 /* confdefs.h.  */
39625 _ACEOF
39626 cat confdefs.h >>conftest.$ac_ext
39627 cat >>conftest.$ac_ext <<_ACEOF
39628 /* end confdefs.h.  */
39629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39631 #define $ac_func innocuous_$ac_func
39632
39633 /* System header to define __stub macros and hopefully few prototypes,
39634     which can conflict with char $ac_func (); below.
39635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39636     <limits.h> exists even on freestanding compilers.  */
39637
39638 #ifdef __STDC__
39639 # include <limits.h>
39640 #else
39641 # include <assert.h>
39642 #endif
39643
39644 #undef $ac_func
39645
39646 /* Override any gcc2 internal prototype to avoid an error.  */
39647 #ifdef __cplusplus
39648 extern "C"
39649 {
39650 #endif
39651 /* We use char because int might match the return type of a gcc2
39652    builtin and then its argument prototype would still apply.  */
39653 char $ac_func ();
39654 /* The GNU C library defines this for functions which it implements
39655     to always fail with ENOSYS.  Some functions are actually named
39656     something starting with __ and the normal name is an alias.  */
39657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39658 choke me
39659 #else
39660 char (*f) () = $ac_func;
39661 #endif
39662 #ifdef __cplusplus
39663 }
39664 #endif
39665
39666 int
39667 main ()
39668 {
39669 return f != $ac_func;
39670   ;
39671   return 0;
39672 }
39673 _ACEOF
39674 rm -f conftest.$ac_objext conftest$ac_exeext
39675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39676   (eval $ac_link) 2>conftest.er1
39677   ac_status=$?
39678   grep -v '^ *+' conftest.er1 >conftest.err
39679   rm -f conftest.er1
39680   cat conftest.err >&5
39681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39682   (exit $ac_status); } &&
39683          { ac_try='test -z "$ac_c_werror_flag"
39684                          || test ! -s conftest.err'
39685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39686   (eval $ac_try) 2>&5
39687   ac_status=$?
39688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39689   (exit $ac_status); }; } &&
39690          { ac_try='test -s conftest$ac_exeext'
39691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39692   (eval $ac_try) 2>&5
39693   ac_status=$?
39694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39695   (exit $ac_status); }; }; then
39696   eval "$as_ac_var=yes"
39697 else
39698   echo "$as_me: failed program was:" >&5
39699 sed 's/^/| /' conftest.$ac_ext >&5
39700
39701 eval "$as_ac_var=no"
39702 fi
39703 rm -f conftest.err conftest.$ac_objext \
39704       conftest$ac_exeext conftest.$ac_ext
39705 fi
39706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39708 if test `eval echo '${'$as_ac_var'}'` = yes; then
39709   cat >>confdefs.h <<_ACEOF
39710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39711 _ACEOF
39712
39713 fi
39714 done
39715
39716
39717 ice_have_puts=no
39718
39719 for ac_func in puts
39720 do
39721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39722 echo "$as_me:$LINENO: checking for $ac_func" >&5
39723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39724 if eval "test \"\${$as_ac_var+set}\" = set"; then
39725   echo $ECHO_N "(cached) $ECHO_C" >&6
39726 else
39727   cat >conftest.$ac_ext <<_ACEOF
39728 /* confdefs.h.  */
39729 _ACEOF
39730 cat confdefs.h >>conftest.$ac_ext
39731 cat >>conftest.$ac_ext <<_ACEOF
39732 /* end confdefs.h.  */
39733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39735 #define $ac_func innocuous_$ac_func
39736
39737 /* System header to define __stub macros and hopefully few prototypes,
39738     which can conflict with char $ac_func (); below.
39739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39740     <limits.h> exists even on freestanding compilers.  */
39741
39742 #ifdef __STDC__
39743 # include <limits.h>
39744 #else
39745 # include <assert.h>
39746 #endif
39747
39748 #undef $ac_func
39749
39750 /* Override any gcc2 internal prototype to avoid an error.  */
39751 #ifdef __cplusplus
39752 extern "C"
39753 {
39754 #endif
39755 /* We use char because int might match the return type of a gcc2
39756    builtin and then its argument prototype would still apply.  */
39757 char $ac_func ();
39758 /* The GNU C library defines this for functions which it implements
39759     to always fail with ENOSYS.  Some functions are actually named
39760     something starting with __ and the normal name is an alias.  */
39761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39762 choke me
39763 #else
39764 char (*f) () = $ac_func;
39765 #endif
39766 #ifdef __cplusplus
39767 }
39768 #endif
39769
39770 int
39771 main ()
39772 {
39773 return f != $ac_func;
39774   ;
39775   return 0;
39776 }
39777 _ACEOF
39778 rm -f conftest.$ac_objext conftest$ac_exeext
39779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39780   (eval $ac_link) 2>conftest.er1
39781   ac_status=$?
39782   grep -v '^ *+' conftest.er1 >conftest.err
39783   rm -f conftest.er1
39784   cat conftest.err >&5
39785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39786   (exit $ac_status); } &&
39787          { ac_try='test -z "$ac_c_werror_flag"
39788                          || test ! -s conftest.err'
39789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39790   (eval $ac_try) 2>&5
39791   ac_status=$?
39792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39793   (exit $ac_status); }; } &&
39794          { ac_try='test -s conftest$ac_exeext'
39795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39796   (eval $ac_try) 2>&5
39797   ac_status=$?
39798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39799   (exit $ac_status); }; }; then
39800   eval "$as_ac_var=yes"
39801 else
39802   echo "$as_me: failed program was:" >&5
39803 sed 's/^/| /' conftest.$ac_ext >&5
39804
39805 eval "$as_ac_var=no"
39806 fi
39807 rm -f conftest.err conftest.$ac_objext \
39808       conftest$ac_exeext conftest.$ac_ext
39809 fi
39810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39812 if test `eval echo '${'$as_ac_var'}'` = yes; then
39813   cat >>confdefs.h <<_ACEOF
39814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39815 _ACEOF
39816  ice_have_puts=yes
39817 fi
39818 done
39819
39820 if test "${ice_have_puts}" = yes; then
39821 echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
39822 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6
39823 if test "${ice_cv_have_puts_decl+set}" = set; then
39824   echo $ECHO_N "(cached) $ECHO_C" >&6
39825 else
39826
39827 ice_cv_have_puts_decl=no
39828 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39829 ice_re_word='(^|[^a-zA-Z0-9_])'
39830 for header in stdio.h; do
39831 # Check for ordinary declaration
39832 cat >conftest.$ac_ext <<_ACEOF
39833 /* confdefs.h.  */
39834 _ACEOF
39835 cat confdefs.h >>conftest.$ac_ext
39836 cat >>conftest.$ac_ext <<_ACEOF
39837 /* end confdefs.h.  */
39838 #include <$header>
39839
39840 _ACEOF
39841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39842   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
39843   ice_cv_have_puts_decl=yes
39844 fi
39845 rm -f conftest*
39846
39847 if test "$ice_cv_have_puts_decl" = yes; then
39848         break
39849 fi
39850 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39851 cat >conftest.$ac_ext <<_ACEOF
39852 /* confdefs.h.  */
39853 _ACEOF
39854 cat confdefs.h >>conftest.$ac_ext
39855 cat >>conftest.$ac_ext <<_ACEOF
39856 /* end confdefs.h.  */
39857 #include <$header>
39858
39859 _ACEOF
39860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39861   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39862   ice_cv_have_puts_decl=yes
39863 fi
39864 rm -f conftest*
39865
39866 if test "$ice_cv_have_puts_decl" = yes; then
39867         break
39868 fi
39869 done
39870
39871 fi
39872
39873 echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
39874 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6
39875 if test "$ice_cv_have_puts_decl" = yes; then
39876
39877 cat >>confdefs.h <<_ACEOF
39878 #define HAVE_PUTS_DECL 1
39879 _ACEOF
39880
39881 fi
39882 fi
39883
39884
39885 ice_have_realloc=no
39886
39887 for ac_func in realloc
39888 do
39889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39890 echo "$as_me:$LINENO: checking for $ac_func" >&5
39891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39892 if eval "test \"\${$as_ac_var+set}\" = set"; then
39893   echo $ECHO_N "(cached) $ECHO_C" >&6
39894 else
39895   cat >conftest.$ac_ext <<_ACEOF
39896 /* confdefs.h.  */
39897 _ACEOF
39898 cat confdefs.h >>conftest.$ac_ext
39899 cat >>conftest.$ac_ext <<_ACEOF
39900 /* end confdefs.h.  */
39901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39903 #define $ac_func innocuous_$ac_func
39904
39905 /* System header to define __stub macros and hopefully few prototypes,
39906     which can conflict with char $ac_func (); below.
39907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39908     <limits.h> exists even on freestanding compilers.  */
39909
39910 #ifdef __STDC__
39911 # include <limits.h>
39912 #else
39913 # include <assert.h>
39914 #endif
39915
39916 #undef $ac_func
39917
39918 /* Override any gcc2 internal prototype to avoid an error.  */
39919 #ifdef __cplusplus
39920 extern "C"
39921 {
39922 #endif
39923 /* We use char because int might match the return type of a gcc2
39924    builtin and then its argument prototype would still apply.  */
39925 char $ac_func ();
39926 /* The GNU C library defines this for functions which it implements
39927     to always fail with ENOSYS.  Some functions are actually named
39928     something starting with __ and the normal name is an alias.  */
39929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39930 choke me
39931 #else
39932 char (*f) () = $ac_func;
39933 #endif
39934 #ifdef __cplusplus
39935 }
39936 #endif
39937
39938 int
39939 main ()
39940 {
39941 return f != $ac_func;
39942   ;
39943   return 0;
39944 }
39945 _ACEOF
39946 rm -f conftest.$ac_objext conftest$ac_exeext
39947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39948   (eval $ac_link) 2>conftest.er1
39949   ac_status=$?
39950   grep -v '^ *+' conftest.er1 >conftest.err
39951   rm -f conftest.er1
39952   cat conftest.err >&5
39953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954   (exit $ac_status); } &&
39955          { ac_try='test -z "$ac_c_werror_flag"
39956                          || test ! -s conftest.err'
39957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39958   (eval $ac_try) 2>&5
39959   ac_status=$?
39960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39961   (exit $ac_status); }; } &&
39962          { ac_try='test -s conftest$ac_exeext'
39963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39964   (eval $ac_try) 2>&5
39965   ac_status=$?
39966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967   (exit $ac_status); }; }; then
39968   eval "$as_ac_var=yes"
39969 else
39970   echo "$as_me: failed program was:" >&5
39971 sed 's/^/| /' conftest.$ac_ext >&5
39972
39973 eval "$as_ac_var=no"
39974 fi
39975 rm -f conftest.err conftest.$ac_objext \
39976       conftest$ac_exeext conftest.$ac_ext
39977 fi
39978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39980 if test `eval echo '${'$as_ac_var'}'` = yes; then
39981   cat >>confdefs.h <<_ACEOF
39982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39983 _ACEOF
39984  ice_have_realloc=yes
39985 fi
39986 done
39987
39988 if test "${ice_have_realloc}" = yes; then
39989 echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
39990 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6
39991 if test "${ice_cv_have_realloc_decl+set}" = set; then
39992   echo $ECHO_N "(cached) $ECHO_C" >&6
39993 else
39994
39995 ice_cv_have_realloc_decl=no
39996 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39997 ice_re_word='(^|[^a-zA-Z0-9_])'
39998 for header in stdlib.h; do
39999 # Check for ordinary declaration
40000 cat >conftest.$ac_ext <<_ACEOF
40001 /* confdefs.h.  */
40002 _ACEOF
40003 cat confdefs.h >>conftest.$ac_ext
40004 cat >>conftest.$ac_ext <<_ACEOF
40005 /* end confdefs.h.  */
40006 #include <$header>
40007
40008 _ACEOF
40009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40010   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
40011   ice_cv_have_realloc_decl=yes
40012 fi
40013 rm -f conftest*
40014
40015 if test "$ice_cv_have_realloc_decl" = yes; then
40016         break
40017 fi
40018 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40019 cat >conftest.$ac_ext <<_ACEOF
40020 /* confdefs.h.  */
40021 _ACEOF
40022 cat confdefs.h >>conftest.$ac_ext
40023 cat >>conftest.$ac_ext <<_ACEOF
40024 /* end confdefs.h.  */
40025 #include <$header>
40026
40027 _ACEOF
40028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40029   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40030   ice_cv_have_realloc_decl=yes
40031 fi
40032 rm -f conftest*
40033
40034 if test "$ice_cv_have_realloc_decl" = yes; then
40035         break
40036 fi
40037 done
40038
40039 fi
40040
40041 echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
40042 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6
40043 if test "$ice_cv_have_realloc_decl" = yes; then
40044
40045 cat >>confdefs.h <<_ACEOF
40046 #define HAVE_REALLOC_DECL 1
40047 _ACEOF
40048
40049 fi
40050 fi
40051
40052
40053 ice_have_recvfrom=no
40054
40055 for ac_func in recvfrom
40056 do
40057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40058 echo "$as_me:$LINENO: checking for $ac_func" >&5
40059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40060 if eval "test \"\${$as_ac_var+set}\" = set"; then
40061   echo $ECHO_N "(cached) $ECHO_C" >&6
40062 else
40063   cat >conftest.$ac_ext <<_ACEOF
40064 /* confdefs.h.  */
40065 _ACEOF
40066 cat confdefs.h >>conftest.$ac_ext
40067 cat >>conftest.$ac_ext <<_ACEOF
40068 /* end confdefs.h.  */
40069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40071 #define $ac_func innocuous_$ac_func
40072
40073 /* System header to define __stub macros and hopefully few prototypes,
40074     which can conflict with char $ac_func (); below.
40075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40076     <limits.h> exists even on freestanding compilers.  */
40077
40078 #ifdef __STDC__
40079 # include <limits.h>
40080 #else
40081 # include <assert.h>
40082 #endif
40083
40084 #undef $ac_func
40085
40086 /* Override any gcc2 internal prototype to avoid an error.  */
40087 #ifdef __cplusplus
40088 extern "C"
40089 {
40090 #endif
40091 /* We use char because int might match the return type of a gcc2
40092    builtin and then its argument prototype would still apply.  */
40093 char $ac_func ();
40094 /* The GNU C library defines this for functions which it implements
40095     to always fail with ENOSYS.  Some functions are actually named
40096     something starting with __ and the normal name is an alias.  */
40097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40098 choke me
40099 #else
40100 char (*f) () = $ac_func;
40101 #endif
40102 #ifdef __cplusplus
40103 }
40104 #endif
40105
40106 int
40107 main ()
40108 {
40109 return f != $ac_func;
40110   ;
40111   return 0;
40112 }
40113 _ACEOF
40114 rm -f conftest.$ac_objext conftest$ac_exeext
40115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40116   (eval $ac_link) 2>conftest.er1
40117   ac_status=$?
40118   grep -v '^ *+' conftest.er1 >conftest.err
40119   rm -f conftest.er1
40120   cat conftest.err >&5
40121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40122   (exit $ac_status); } &&
40123          { ac_try='test -z "$ac_c_werror_flag"
40124                          || test ! -s conftest.err'
40125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40126   (eval $ac_try) 2>&5
40127   ac_status=$?
40128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40129   (exit $ac_status); }; } &&
40130          { ac_try='test -s conftest$ac_exeext'
40131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40132   (eval $ac_try) 2>&5
40133   ac_status=$?
40134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40135   (exit $ac_status); }; }; then
40136   eval "$as_ac_var=yes"
40137 else
40138   echo "$as_me: failed program was:" >&5
40139 sed 's/^/| /' conftest.$ac_ext >&5
40140
40141 eval "$as_ac_var=no"
40142 fi
40143 rm -f conftest.err conftest.$ac_objext \
40144       conftest$ac_exeext conftest.$ac_ext
40145 fi
40146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40148 if test `eval echo '${'$as_ac_var'}'` = yes; then
40149   cat >>confdefs.h <<_ACEOF
40150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40151 _ACEOF
40152  ice_have_recvfrom=yes
40153 fi
40154 done
40155
40156 if test "${ice_have_recvfrom}" = yes; then
40157 echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
40158 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
40159 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
40160   echo $ECHO_N "(cached) $ECHO_C" >&6
40161 else
40162
40163 ice_cv_have_recvfrom_decl=no
40164 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40165 ice_re_word='(^|[^a-zA-Z0-9_])'
40166 for header in sys/types.h sys/socket.h; do
40167 # Check for ordinary declaration
40168 cat >conftest.$ac_ext <<_ACEOF
40169 /* confdefs.h.  */
40170 _ACEOF
40171 cat confdefs.h >>conftest.$ac_ext
40172 cat >>conftest.$ac_ext <<_ACEOF
40173 /* end confdefs.h.  */
40174 #include <$header>
40175
40176 _ACEOF
40177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40178   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
40179   ice_cv_have_recvfrom_decl=yes
40180 fi
40181 rm -f conftest*
40182
40183 if test "$ice_cv_have_recvfrom_decl" = yes; then
40184         break
40185 fi
40186 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40187 cat >conftest.$ac_ext <<_ACEOF
40188 /* confdefs.h.  */
40189 _ACEOF
40190 cat confdefs.h >>conftest.$ac_ext
40191 cat >>conftest.$ac_ext <<_ACEOF
40192 /* end confdefs.h.  */
40193 #include <$header>
40194
40195 _ACEOF
40196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40197   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40198   ice_cv_have_recvfrom_decl=yes
40199 fi
40200 rm -f conftest*
40201
40202 if test "$ice_cv_have_recvfrom_decl" = yes; then
40203         break
40204 fi
40205 done
40206
40207 fi
40208
40209 echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
40210 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6
40211 if test "$ice_cv_have_recvfrom_decl" = yes; then
40212
40213 cat >>confdefs.h <<_ACEOF
40214 #define HAVE_RECVFROM_DECL 1
40215 _ACEOF
40216
40217 fi
40218 fi
40219
40220
40221 ice_have_remove=no
40222
40223 for ac_func in remove
40224 do
40225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40226 echo "$as_me:$LINENO: checking for $ac_func" >&5
40227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40228 if eval "test \"\${$as_ac_var+set}\" = set"; then
40229   echo $ECHO_N "(cached) $ECHO_C" >&6
40230 else
40231   cat >conftest.$ac_ext <<_ACEOF
40232 /* confdefs.h.  */
40233 _ACEOF
40234 cat confdefs.h >>conftest.$ac_ext
40235 cat >>conftest.$ac_ext <<_ACEOF
40236 /* end confdefs.h.  */
40237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40239 #define $ac_func innocuous_$ac_func
40240
40241 /* System header to define __stub macros and hopefully few prototypes,
40242     which can conflict with char $ac_func (); below.
40243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40244     <limits.h> exists even on freestanding compilers.  */
40245
40246 #ifdef __STDC__
40247 # include <limits.h>
40248 #else
40249 # include <assert.h>
40250 #endif
40251
40252 #undef $ac_func
40253
40254 /* Override any gcc2 internal prototype to avoid an error.  */
40255 #ifdef __cplusplus
40256 extern "C"
40257 {
40258 #endif
40259 /* We use char because int might match the return type of a gcc2
40260    builtin and then its argument prototype would still apply.  */
40261 char $ac_func ();
40262 /* The GNU C library defines this for functions which it implements
40263     to always fail with ENOSYS.  Some functions are actually named
40264     something starting with __ and the normal name is an alias.  */
40265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40266 choke me
40267 #else
40268 char (*f) () = $ac_func;
40269 #endif
40270 #ifdef __cplusplus
40271 }
40272 #endif
40273
40274 int
40275 main ()
40276 {
40277 return f != $ac_func;
40278   ;
40279   return 0;
40280 }
40281 _ACEOF
40282 rm -f conftest.$ac_objext conftest$ac_exeext
40283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40284   (eval $ac_link) 2>conftest.er1
40285   ac_status=$?
40286   grep -v '^ *+' conftest.er1 >conftest.err
40287   rm -f conftest.er1
40288   cat conftest.err >&5
40289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40290   (exit $ac_status); } &&
40291          { ac_try='test -z "$ac_c_werror_flag"
40292                          || test ! -s conftest.err'
40293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40294   (eval $ac_try) 2>&5
40295   ac_status=$?
40296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40297   (exit $ac_status); }; } &&
40298          { ac_try='test -s conftest$ac_exeext'
40299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40300   (eval $ac_try) 2>&5
40301   ac_status=$?
40302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40303   (exit $ac_status); }; }; then
40304   eval "$as_ac_var=yes"
40305 else
40306   echo "$as_me: failed program was:" >&5
40307 sed 's/^/| /' conftest.$ac_ext >&5
40308
40309 eval "$as_ac_var=no"
40310 fi
40311 rm -f conftest.err conftest.$ac_objext \
40312       conftest$ac_exeext conftest.$ac_ext
40313 fi
40314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40316 if test `eval echo '${'$as_ac_var'}'` = yes; then
40317   cat >>confdefs.h <<_ACEOF
40318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40319 _ACEOF
40320  ice_have_remove=yes
40321 fi
40322 done
40323
40324 if test "${ice_have_remove}" = yes; then
40325 echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
40326 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6
40327 if test "${ice_cv_have_remove_decl+set}" = set; then
40328   echo $ECHO_N "(cached) $ECHO_C" >&6
40329 else
40330
40331 ice_cv_have_remove_decl=no
40332 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40333 ice_re_word='(^|[^a-zA-Z0-9_])'
40334 for header in stdio.h; do
40335 # Check for ordinary declaration
40336 cat >conftest.$ac_ext <<_ACEOF
40337 /* confdefs.h.  */
40338 _ACEOF
40339 cat confdefs.h >>conftest.$ac_ext
40340 cat >>conftest.$ac_ext <<_ACEOF
40341 /* end confdefs.h.  */
40342 #include <$header>
40343
40344 _ACEOF
40345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40346   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
40347   ice_cv_have_remove_decl=yes
40348 fi
40349 rm -f conftest*
40350
40351 if test "$ice_cv_have_remove_decl" = yes; then
40352         break
40353 fi
40354 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40355 cat >conftest.$ac_ext <<_ACEOF
40356 /* confdefs.h.  */
40357 _ACEOF
40358 cat confdefs.h >>conftest.$ac_ext
40359 cat >>conftest.$ac_ext <<_ACEOF
40360 /* end confdefs.h.  */
40361 #include <$header>
40362
40363 _ACEOF
40364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40365   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40366   ice_cv_have_remove_decl=yes
40367 fi
40368 rm -f conftest*
40369
40370 if test "$ice_cv_have_remove_decl" = yes; then
40371         break
40372 fi
40373 done
40374
40375 fi
40376
40377 echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
40378 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6
40379 if test "$ice_cv_have_remove_decl" = yes; then
40380
40381 cat >>confdefs.h <<_ACEOF
40382 #define HAVE_REMOVE_DECL 1
40383 _ACEOF
40384
40385 fi
40386 fi
40387
40388
40389 ice_have_rename=no
40390
40391 for ac_func in rename
40392 do
40393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40394 echo "$as_me:$LINENO: checking for $ac_func" >&5
40395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40396 if eval "test \"\${$as_ac_var+set}\" = set"; then
40397   echo $ECHO_N "(cached) $ECHO_C" >&6
40398 else
40399   cat >conftest.$ac_ext <<_ACEOF
40400 /* confdefs.h.  */
40401 _ACEOF
40402 cat confdefs.h >>conftest.$ac_ext
40403 cat >>conftest.$ac_ext <<_ACEOF
40404 /* end confdefs.h.  */
40405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40407 #define $ac_func innocuous_$ac_func
40408
40409 /* System header to define __stub macros and hopefully few prototypes,
40410     which can conflict with char $ac_func (); below.
40411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40412     <limits.h> exists even on freestanding compilers.  */
40413
40414 #ifdef __STDC__
40415 # include <limits.h>
40416 #else
40417 # include <assert.h>
40418 #endif
40419
40420 #undef $ac_func
40421
40422 /* Override any gcc2 internal prototype to avoid an error.  */
40423 #ifdef __cplusplus
40424 extern "C"
40425 {
40426 #endif
40427 /* We use char because int might match the return type of a gcc2
40428    builtin and then its argument prototype would still apply.  */
40429 char $ac_func ();
40430 /* The GNU C library defines this for functions which it implements
40431     to always fail with ENOSYS.  Some functions are actually named
40432     something starting with __ and the normal name is an alias.  */
40433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40434 choke me
40435 #else
40436 char (*f) () = $ac_func;
40437 #endif
40438 #ifdef __cplusplus
40439 }
40440 #endif
40441
40442 int
40443 main ()
40444 {
40445 return f != $ac_func;
40446   ;
40447   return 0;
40448 }
40449 _ACEOF
40450 rm -f conftest.$ac_objext conftest$ac_exeext
40451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40452   (eval $ac_link) 2>conftest.er1
40453   ac_status=$?
40454   grep -v '^ *+' conftest.er1 >conftest.err
40455   rm -f conftest.er1
40456   cat conftest.err >&5
40457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40458   (exit $ac_status); } &&
40459          { ac_try='test -z "$ac_c_werror_flag"
40460                          || test ! -s conftest.err'
40461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40462   (eval $ac_try) 2>&5
40463   ac_status=$?
40464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40465   (exit $ac_status); }; } &&
40466          { ac_try='test -s conftest$ac_exeext'
40467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40468   (eval $ac_try) 2>&5
40469   ac_status=$?
40470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40471   (exit $ac_status); }; }; then
40472   eval "$as_ac_var=yes"
40473 else
40474   echo "$as_me: failed program was:" >&5
40475 sed 's/^/| /' conftest.$ac_ext >&5
40476
40477 eval "$as_ac_var=no"
40478 fi
40479 rm -f conftest.err conftest.$ac_objext \
40480       conftest$ac_exeext conftest.$ac_ext
40481 fi
40482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40484 if test `eval echo '${'$as_ac_var'}'` = yes; then
40485   cat >>confdefs.h <<_ACEOF
40486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40487 _ACEOF
40488  ice_have_rename=yes
40489 fi
40490 done
40491
40492 if test "${ice_have_rename}" = yes; then
40493 echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
40494 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6
40495 if test "${ice_cv_have_rename_decl+set}" = set; then
40496   echo $ECHO_N "(cached) $ECHO_C" >&6
40497 else
40498
40499 ice_cv_have_rename_decl=no
40500 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40501 ice_re_word='(^|[^a-zA-Z0-9_])'
40502 for header in stdio.h; do
40503 # Check for ordinary declaration
40504 cat >conftest.$ac_ext <<_ACEOF
40505 /* confdefs.h.  */
40506 _ACEOF
40507 cat confdefs.h >>conftest.$ac_ext
40508 cat >>conftest.$ac_ext <<_ACEOF
40509 /* end confdefs.h.  */
40510 #include <$header>
40511
40512 _ACEOF
40513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40514   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
40515   ice_cv_have_rename_decl=yes
40516 fi
40517 rm -f conftest*
40518
40519 if test "$ice_cv_have_rename_decl" = yes; then
40520         break
40521 fi
40522 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40523 cat >conftest.$ac_ext <<_ACEOF
40524 /* confdefs.h.  */
40525 _ACEOF
40526 cat confdefs.h >>conftest.$ac_ext
40527 cat >>conftest.$ac_ext <<_ACEOF
40528 /* end confdefs.h.  */
40529 #include <$header>
40530
40531 _ACEOF
40532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40533   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40534   ice_cv_have_rename_decl=yes
40535 fi
40536 rm -f conftest*
40537
40538 if test "$ice_cv_have_rename_decl" = yes; then
40539         break
40540 fi
40541 done
40542
40543 fi
40544
40545 echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
40546 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6
40547 if test "$ice_cv_have_rename_decl" = yes; then
40548
40549 cat >>confdefs.h <<_ACEOF
40550 #define HAVE_RENAME_DECL 1
40551 _ACEOF
40552
40553 fi
40554 fi
40555
40556
40557 ice_have_rewind=no
40558
40559 for ac_func in rewind
40560 do
40561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40562 echo "$as_me:$LINENO: checking for $ac_func" >&5
40563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40564 if eval "test \"\${$as_ac_var+set}\" = set"; then
40565   echo $ECHO_N "(cached) $ECHO_C" >&6
40566 else
40567   cat >conftest.$ac_ext <<_ACEOF
40568 /* confdefs.h.  */
40569 _ACEOF
40570 cat confdefs.h >>conftest.$ac_ext
40571 cat >>conftest.$ac_ext <<_ACEOF
40572 /* end confdefs.h.  */
40573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40575 #define $ac_func innocuous_$ac_func
40576
40577 /* System header to define __stub macros and hopefully few prototypes,
40578     which can conflict with char $ac_func (); below.
40579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40580     <limits.h> exists even on freestanding compilers.  */
40581
40582 #ifdef __STDC__
40583 # include <limits.h>
40584 #else
40585 # include <assert.h>
40586 #endif
40587
40588 #undef $ac_func
40589
40590 /* Override any gcc2 internal prototype to avoid an error.  */
40591 #ifdef __cplusplus
40592 extern "C"
40593 {
40594 #endif
40595 /* We use char because int might match the return type of a gcc2
40596    builtin and then its argument prototype would still apply.  */
40597 char $ac_func ();
40598 /* The GNU C library defines this for functions which it implements
40599     to always fail with ENOSYS.  Some functions are actually named
40600     something starting with __ and the normal name is an alias.  */
40601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40602 choke me
40603 #else
40604 char (*f) () = $ac_func;
40605 #endif
40606 #ifdef __cplusplus
40607 }
40608 #endif
40609
40610 int
40611 main ()
40612 {
40613 return f != $ac_func;
40614   ;
40615   return 0;
40616 }
40617 _ACEOF
40618 rm -f conftest.$ac_objext conftest$ac_exeext
40619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40620   (eval $ac_link) 2>conftest.er1
40621   ac_status=$?
40622   grep -v '^ *+' conftest.er1 >conftest.err
40623   rm -f conftest.er1
40624   cat conftest.err >&5
40625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40626   (exit $ac_status); } &&
40627          { ac_try='test -z "$ac_c_werror_flag"
40628                          || test ! -s conftest.err'
40629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40630   (eval $ac_try) 2>&5
40631   ac_status=$?
40632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40633   (exit $ac_status); }; } &&
40634          { ac_try='test -s conftest$ac_exeext'
40635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40636   (eval $ac_try) 2>&5
40637   ac_status=$?
40638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40639   (exit $ac_status); }; }; then
40640   eval "$as_ac_var=yes"
40641 else
40642   echo "$as_me: failed program was:" >&5
40643 sed 's/^/| /' conftest.$ac_ext >&5
40644
40645 eval "$as_ac_var=no"
40646 fi
40647 rm -f conftest.err conftest.$ac_objext \
40648       conftest$ac_exeext conftest.$ac_ext
40649 fi
40650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40652 if test `eval echo '${'$as_ac_var'}'` = yes; then
40653   cat >>confdefs.h <<_ACEOF
40654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40655 _ACEOF
40656  ice_have_rewind=yes
40657 fi
40658 done
40659
40660 if test "${ice_have_rewind}" = yes; then
40661 echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
40662 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6
40663 if test "${ice_cv_have_rewind_decl+set}" = set; then
40664   echo $ECHO_N "(cached) $ECHO_C" >&6
40665 else
40666
40667 ice_cv_have_rewind_decl=no
40668 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40669 ice_re_word='(^|[^a-zA-Z0-9_])'
40670 for header in stdio.h; do
40671 # Check for ordinary declaration
40672 cat >conftest.$ac_ext <<_ACEOF
40673 /* confdefs.h.  */
40674 _ACEOF
40675 cat confdefs.h >>conftest.$ac_ext
40676 cat >>conftest.$ac_ext <<_ACEOF
40677 /* end confdefs.h.  */
40678 #include <$header>
40679
40680 _ACEOF
40681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40682   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
40683   ice_cv_have_rewind_decl=yes
40684 fi
40685 rm -f conftest*
40686
40687 if test "$ice_cv_have_rewind_decl" = yes; then
40688         break
40689 fi
40690 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40691 cat >conftest.$ac_ext <<_ACEOF
40692 /* confdefs.h.  */
40693 _ACEOF
40694 cat confdefs.h >>conftest.$ac_ext
40695 cat >>conftest.$ac_ext <<_ACEOF
40696 /* end confdefs.h.  */
40697 #include <$header>
40698
40699 _ACEOF
40700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40701   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40702   ice_cv_have_rewind_decl=yes
40703 fi
40704 rm -f conftest*
40705
40706 if test "$ice_cv_have_rewind_decl" = yes; then
40707         break
40708 fi
40709 done
40710
40711 fi
40712
40713 echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
40714 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6
40715 if test "$ice_cv_have_rewind_decl" = yes; then
40716
40717 cat >>confdefs.h <<_ACEOF
40718 #define HAVE_REWIND_DECL 1
40719 _ACEOF
40720
40721 fi
40722 fi
40723
40724
40725 for ac_func in rmdir
40726 do
40727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40728 echo "$as_me:$LINENO: checking for $ac_func" >&5
40729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40730 if eval "test \"\${$as_ac_var+set}\" = set"; then
40731   echo $ECHO_N "(cached) $ECHO_C" >&6
40732 else
40733   cat >conftest.$ac_ext <<_ACEOF
40734 /* confdefs.h.  */
40735 _ACEOF
40736 cat confdefs.h >>conftest.$ac_ext
40737 cat >>conftest.$ac_ext <<_ACEOF
40738 /* end confdefs.h.  */
40739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40741 #define $ac_func innocuous_$ac_func
40742
40743 /* System header to define __stub macros and hopefully few prototypes,
40744     which can conflict with char $ac_func (); below.
40745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40746     <limits.h> exists even on freestanding compilers.  */
40747
40748 #ifdef __STDC__
40749 # include <limits.h>
40750 #else
40751 # include <assert.h>
40752 #endif
40753
40754 #undef $ac_func
40755
40756 /* Override any gcc2 internal prototype to avoid an error.  */
40757 #ifdef __cplusplus
40758 extern "C"
40759 {
40760 #endif
40761 /* We use char because int might match the return type of a gcc2
40762    builtin and then its argument prototype would still apply.  */
40763 char $ac_func ();
40764 /* The GNU C library defines this for functions which it implements
40765     to always fail with ENOSYS.  Some functions are actually named
40766     something starting with __ and the normal name is an alias.  */
40767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40768 choke me
40769 #else
40770 char (*f) () = $ac_func;
40771 #endif
40772 #ifdef __cplusplus
40773 }
40774 #endif
40775
40776 int
40777 main ()
40778 {
40779 return f != $ac_func;
40780   ;
40781   return 0;
40782 }
40783 _ACEOF
40784 rm -f conftest.$ac_objext conftest$ac_exeext
40785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40786   (eval $ac_link) 2>conftest.er1
40787   ac_status=$?
40788   grep -v '^ *+' conftest.er1 >conftest.err
40789   rm -f conftest.er1
40790   cat conftest.err >&5
40791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40792   (exit $ac_status); } &&
40793          { ac_try='test -z "$ac_c_werror_flag"
40794                          || test ! -s conftest.err'
40795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40796   (eval $ac_try) 2>&5
40797   ac_status=$?
40798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40799   (exit $ac_status); }; } &&
40800          { ac_try='test -s conftest$ac_exeext'
40801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40802   (eval $ac_try) 2>&5
40803   ac_status=$?
40804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805   (exit $ac_status); }; }; then
40806   eval "$as_ac_var=yes"
40807 else
40808   echo "$as_me: failed program was:" >&5
40809 sed 's/^/| /' conftest.$ac_ext >&5
40810
40811 eval "$as_ac_var=no"
40812 fi
40813 rm -f conftest.err conftest.$ac_objext \
40814       conftest$ac_exeext conftest.$ac_ext
40815 fi
40816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40818 if test `eval echo '${'$as_ac_var'}'` = yes; then
40819   cat >>confdefs.h <<_ACEOF
40820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40821 _ACEOF
40822
40823 fi
40824 done
40825
40826
40827 ice_have_ruserok=no
40828
40829 for ac_func in ruserok
40830 do
40831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40832 echo "$as_me:$LINENO: checking for $ac_func" >&5
40833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40834 if eval "test \"\${$as_ac_var+set}\" = set"; then
40835   echo $ECHO_N "(cached) $ECHO_C" >&6
40836 else
40837   cat >conftest.$ac_ext <<_ACEOF
40838 /* confdefs.h.  */
40839 _ACEOF
40840 cat confdefs.h >>conftest.$ac_ext
40841 cat >>conftest.$ac_ext <<_ACEOF
40842 /* end confdefs.h.  */
40843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40845 #define $ac_func innocuous_$ac_func
40846
40847 /* System header to define __stub macros and hopefully few prototypes,
40848     which can conflict with char $ac_func (); below.
40849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40850     <limits.h> exists even on freestanding compilers.  */
40851
40852 #ifdef __STDC__
40853 # include <limits.h>
40854 #else
40855 # include <assert.h>
40856 #endif
40857
40858 #undef $ac_func
40859
40860 /* Override any gcc2 internal prototype to avoid an error.  */
40861 #ifdef __cplusplus
40862 extern "C"
40863 {
40864 #endif
40865 /* We use char because int might match the return type of a gcc2
40866    builtin and then its argument prototype would still apply.  */
40867 char $ac_func ();
40868 /* The GNU C library defines this for functions which it implements
40869     to always fail with ENOSYS.  Some functions are actually named
40870     something starting with __ and the normal name is an alias.  */
40871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40872 choke me
40873 #else
40874 char (*f) () = $ac_func;
40875 #endif
40876 #ifdef __cplusplus
40877 }
40878 #endif
40879
40880 int
40881 main ()
40882 {
40883 return f != $ac_func;
40884   ;
40885   return 0;
40886 }
40887 _ACEOF
40888 rm -f conftest.$ac_objext conftest$ac_exeext
40889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40890   (eval $ac_link) 2>conftest.er1
40891   ac_status=$?
40892   grep -v '^ *+' conftest.er1 >conftest.err
40893   rm -f conftest.er1
40894   cat conftest.err >&5
40895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896   (exit $ac_status); } &&
40897          { ac_try='test -z "$ac_c_werror_flag"
40898                          || test ! -s conftest.err'
40899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40900   (eval $ac_try) 2>&5
40901   ac_status=$?
40902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40903   (exit $ac_status); }; } &&
40904          { ac_try='test -s conftest$ac_exeext'
40905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40906   (eval $ac_try) 2>&5
40907   ac_status=$?
40908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40909   (exit $ac_status); }; }; then
40910   eval "$as_ac_var=yes"
40911 else
40912   echo "$as_me: failed program was:" >&5
40913 sed 's/^/| /' conftest.$ac_ext >&5
40914
40915 eval "$as_ac_var=no"
40916 fi
40917 rm -f conftest.err conftest.$ac_objext \
40918       conftest$ac_exeext conftest.$ac_ext
40919 fi
40920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40922 if test `eval echo '${'$as_ac_var'}'` = yes; then
40923   cat >>confdefs.h <<_ACEOF
40924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40925 _ACEOF
40926  ice_have_ruserok=yes
40927 fi
40928 done
40929
40930 if test "${ice_have_ruserok}" = yes; then
40931 echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
40932 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6
40933 if test "${ice_cv_have_ruserok_decl+set}" = set; then
40934   echo $ECHO_N "(cached) $ECHO_C" >&6
40935 else
40936
40937 ice_cv_have_ruserok_decl=no
40938 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40939 ice_re_word='(^|[^a-zA-Z0-9_])'
40940 for header in netdb.h sys/socket.h libc.h unistd.h; do
40941 # Check for ordinary declaration
40942 cat >conftest.$ac_ext <<_ACEOF
40943 /* confdefs.h.  */
40944 _ACEOF
40945 cat confdefs.h >>conftest.$ac_ext
40946 cat >>conftest.$ac_ext <<_ACEOF
40947 /* end confdefs.h.  */
40948 #include <$header>
40949
40950 _ACEOF
40951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40952   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
40953   ice_cv_have_ruserok_decl=yes
40954 fi
40955 rm -f conftest*
40956
40957 if test "$ice_cv_have_ruserok_decl" = yes; then
40958         break
40959 fi
40960 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40961 cat >conftest.$ac_ext <<_ACEOF
40962 /* confdefs.h.  */
40963 _ACEOF
40964 cat confdefs.h >>conftest.$ac_ext
40965 cat >>conftest.$ac_ext <<_ACEOF
40966 /* end confdefs.h.  */
40967 #include <$header>
40968
40969 _ACEOF
40970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40971   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40972   ice_cv_have_ruserok_decl=yes
40973 fi
40974 rm -f conftest*
40975
40976 if test "$ice_cv_have_ruserok_decl" = yes; then
40977         break
40978 fi
40979 done
40980
40981 fi
40982
40983 echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
40984 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6
40985 if test "$ice_cv_have_ruserok_decl" = yes; then
40986
40987 cat >>confdefs.h <<_ACEOF
40988 #define HAVE_RUSEROK_DECL 1
40989 _ACEOF
40990
40991 fi
40992 fi
40993
40994
40995 ice_have_select=no
40996
40997 for ac_func in select
40998 do
40999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41000 echo "$as_me:$LINENO: checking for $ac_func" >&5
41001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41002 if eval "test \"\${$as_ac_var+set}\" = set"; then
41003   echo $ECHO_N "(cached) $ECHO_C" >&6
41004 else
41005   cat >conftest.$ac_ext <<_ACEOF
41006 /* confdefs.h.  */
41007 _ACEOF
41008 cat confdefs.h >>conftest.$ac_ext
41009 cat >>conftest.$ac_ext <<_ACEOF
41010 /* end confdefs.h.  */
41011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41013 #define $ac_func innocuous_$ac_func
41014
41015 /* System header to define __stub macros and hopefully few prototypes,
41016     which can conflict with char $ac_func (); below.
41017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41018     <limits.h> exists even on freestanding compilers.  */
41019
41020 #ifdef __STDC__
41021 # include <limits.h>
41022 #else
41023 # include <assert.h>
41024 #endif
41025
41026 #undef $ac_func
41027
41028 /* Override any gcc2 internal prototype to avoid an error.  */
41029 #ifdef __cplusplus
41030 extern "C"
41031 {
41032 #endif
41033 /* We use char because int might match the return type of a gcc2
41034    builtin and then its argument prototype would still apply.  */
41035 char $ac_func ();
41036 /* The GNU C library defines this for functions which it implements
41037     to always fail with ENOSYS.  Some functions are actually named
41038     something starting with __ and the normal name is an alias.  */
41039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41040 choke me
41041 #else
41042 char (*f) () = $ac_func;
41043 #endif
41044 #ifdef __cplusplus
41045 }
41046 #endif
41047
41048 int
41049 main ()
41050 {
41051 return f != $ac_func;
41052   ;
41053   return 0;
41054 }
41055 _ACEOF
41056 rm -f conftest.$ac_objext conftest$ac_exeext
41057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41058   (eval $ac_link) 2>conftest.er1
41059   ac_status=$?
41060   grep -v '^ *+' conftest.er1 >conftest.err
41061   rm -f conftest.er1
41062   cat conftest.err >&5
41063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41064   (exit $ac_status); } &&
41065          { ac_try='test -z "$ac_c_werror_flag"
41066                          || test ! -s conftest.err'
41067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41068   (eval $ac_try) 2>&5
41069   ac_status=$?
41070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071   (exit $ac_status); }; } &&
41072          { ac_try='test -s conftest$ac_exeext'
41073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41074   (eval $ac_try) 2>&5
41075   ac_status=$?
41076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41077   (exit $ac_status); }; }; then
41078   eval "$as_ac_var=yes"
41079 else
41080   echo "$as_me: failed program was:" >&5
41081 sed 's/^/| /' conftest.$ac_ext >&5
41082
41083 eval "$as_ac_var=no"
41084 fi
41085 rm -f conftest.err conftest.$ac_objext \
41086       conftest$ac_exeext conftest.$ac_ext
41087 fi
41088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41090 if test `eval echo '${'$as_ac_var'}'` = yes; then
41091   cat >>confdefs.h <<_ACEOF
41092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41093 _ACEOF
41094  ice_have_select=yes
41095 fi
41096 done
41097
41098 if test "${ice_have_select}" = yes; then
41099 echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
41100 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
41101 if test "${ice_cv_have_select_decl+set}" = set; then
41102   echo $ECHO_N "(cached) $ECHO_C" >&6
41103 else
41104
41105 ice_cv_have_select_decl=no
41106 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41107 ice_re_word='(^|[^a-zA-Z0-9_])'
41108 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
41109 # Check for ordinary declaration
41110 cat >conftest.$ac_ext <<_ACEOF
41111 /* confdefs.h.  */
41112 _ACEOF
41113 cat confdefs.h >>conftest.$ac_ext
41114 cat >>conftest.$ac_ext <<_ACEOF
41115 /* end confdefs.h.  */
41116 #include <$header>
41117
41118 _ACEOF
41119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41120   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
41121   ice_cv_have_select_decl=yes
41122 fi
41123 rm -f conftest*
41124
41125 if test "$ice_cv_have_select_decl" = yes; then
41126         break
41127 fi
41128 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41129 cat >conftest.$ac_ext <<_ACEOF
41130 /* confdefs.h.  */
41131 _ACEOF
41132 cat confdefs.h >>conftest.$ac_ext
41133 cat >>conftest.$ac_ext <<_ACEOF
41134 /* end confdefs.h.  */
41135 #include <$header>
41136
41137 _ACEOF
41138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41139   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41140   ice_cv_have_select_decl=yes
41141 fi
41142 rm -f conftest*
41143
41144 if test "$ice_cv_have_select_decl" = yes; then
41145         break
41146 fi
41147 done
41148
41149 fi
41150
41151 echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
41152 echo "${ECHO_T}$ice_cv_have_select_decl" >&6
41153 if test "$ice_cv_have_select_decl" = yes; then
41154
41155 cat >>confdefs.h <<_ACEOF
41156 #define HAVE_SELECT_DECL 1
41157 _ACEOF
41158
41159 fi
41160 fi
41161
41162
41163         echo "$as_me:$LINENO: checking for select() argument type" >&5
41164 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6
41165 if test "${amanda_cv_select_arg_type+set}" = set; then
41166   echo $ECHO_N "(cached) $ECHO_C" >&6
41167 else
41168
41169                 rm -f conftest.c
41170                 cat <<EOF >conftest.$ac_ext
41171 #include "confdefs.h"
41172 #ifdef HAVE_SYS_TIME_H
41173 # include <sys/time.h>
41174 #endif
41175 #ifdef HAVE_SYS_TYPES_H
41176 # include <sys/types.h>
41177 #endif
41178 #ifdef HAVE_SYS_SELECT_H
41179 #  include <sys/select.h>
41180 #endif
41181 #ifdef HAVE_SYS_SOCKET_H
41182 #  include <sys/socket.h>
41183 #endif
41184 #ifdef HAVE_UNISTD_H
41185 # include <unistd.h>
41186 #endif
41187
41188 int main()
41189 {
41190 #ifdef FD_SET_POINTER
41191         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
41192 #else
41193         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
41194 #endif
41195         return 0;
41196 }
41197 EOF
41198
41199                                                                                                                                 amanda_cv_select_arg_type=no
41200                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
41201                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
41202                 if test $? -ne 0; then
41203                     amanda_cv_select_arg_type=int
41204                 fi
41205                 if test "$amanda_cv_select_arg_type" = no; then
41206                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
41207                     if test $? -ne 0; then
41208                         amanda_cv_select_arg_type=fd_set
41209                     fi
41210                 fi
41211                 if test "$amanda_cv_select_arg_type" = no; then
41212                     wc_fdset=`wc -l <conftest.fd_set`
41213                     wc_int=`wc -l <conftest.int`
41214                     if test "$wc_fdset" -le "$wc_int"; then
41215                         amanda_cv_select_arg_type=fd_set
41216                     else
41217                         amanda_cv_select_arg_type=int
41218                     fi
41219                 fi
41220                 rm -f conftest*
41221
41222
41223 fi
41224 echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
41225 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6
41226
41227 cat >>confdefs.h <<_ACEOF
41228 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
41229 _ACEOF
41230
41231
41232
41233
41234 ice_have_sendto=no
41235
41236 for ac_func in sendto
41237 do
41238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41239 echo "$as_me:$LINENO: checking for $ac_func" >&5
41240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41241 if eval "test \"\${$as_ac_var+set}\" = set"; then
41242   echo $ECHO_N "(cached) $ECHO_C" >&6
41243 else
41244   cat >conftest.$ac_ext <<_ACEOF
41245 /* confdefs.h.  */
41246 _ACEOF
41247 cat confdefs.h >>conftest.$ac_ext
41248 cat >>conftest.$ac_ext <<_ACEOF
41249 /* end confdefs.h.  */
41250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41252 #define $ac_func innocuous_$ac_func
41253
41254 /* System header to define __stub macros and hopefully few prototypes,
41255     which can conflict with char $ac_func (); below.
41256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41257     <limits.h> exists even on freestanding compilers.  */
41258
41259 #ifdef __STDC__
41260 # include <limits.h>
41261 #else
41262 # include <assert.h>
41263 #endif
41264
41265 #undef $ac_func
41266
41267 /* Override any gcc2 internal prototype to avoid an error.  */
41268 #ifdef __cplusplus
41269 extern "C"
41270 {
41271 #endif
41272 /* We use char because int might match the return type of a gcc2
41273    builtin and then its argument prototype would still apply.  */
41274 char $ac_func ();
41275 /* The GNU C library defines this for functions which it implements
41276     to always fail with ENOSYS.  Some functions are actually named
41277     something starting with __ and the normal name is an alias.  */
41278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41279 choke me
41280 #else
41281 char (*f) () = $ac_func;
41282 #endif
41283 #ifdef __cplusplus
41284 }
41285 #endif
41286
41287 int
41288 main ()
41289 {
41290 return f != $ac_func;
41291   ;
41292   return 0;
41293 }
41294 _ACEOF
41295 rm -f conftest.$ac_objext conftest$ac_exeext
41296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41297   (eval $ac_link) 2>conftest.er1
41298   ac_status=$?
41299   grep -v '^ *+' conftest.er1 >conftest.err
41300   rm -f conftest.er1
41301   cat conftest.err >&5
41302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41303   (exit $ac_status); } &&
41304          { ac_try='test -z "$ac_c_werror_flag"
41305                          || test ! -s conftest.err'
41306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41307   (eval $ac_try) 2>&5
41308   ac_status=$?
41309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41310   (exit $ac_status); }; } &&
41311          { ac_try='test -s conftest$ac_exeext'
41312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41313   (eval $ac_try) 2>&5
41314   ac_status=$?
41315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41316   (exit $ac_status); }; }; then
41317   eval "$as_ac_var=yes"
41318 else
41319   echo "$as_me: failed program was:" >&5
41320 sed 's/^/| /' conftest.$ac_ext >&5
41321
41322 eval "$as_ac_var=no"
41323 fi
41324 rm -f conftest.err conftest.$ac_objext \
41325       conftest$ac_exeext conftest.$ac_ext
41326 fi
41327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41329 if test `eval echo '${'$as_ac_var'}'` = yes; then
41330   cat >>confdefs.h <<_ACEOF
41331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41332 _ACEOF
41333  ice_have_sendto=yes
41334 fi
41335 done
41336
41337 if test "${ice_have_sendto}" = yes; then
41338 echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
41339 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
41340 if test "${ice_cv_have_sendto_decl+set}" = set; then
41341   echo $ECHO_N "(cached) $ECHO_C" >&6
41342 else
41343
41344 ice_cv_have_sendto_decl=no
41345 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41346 ice_re_word='(^|[^a-zA-Z0-9_])'
41347 for header in sys/types.h sys/socket.h; do
41348 # Check for ordinary declaration
41349 cat >conftest.$ac_ext <<_ACEOF
41350 /* confdefs.h.  */
41351 _ACEOF
41352 cat confdefs.h >>conftest.$ac_ext
41353 cat >>conftest.$ac_ext <<_ACEOF
41354 /* end confdefs.h.  */
41355 #include <$header>
41356
41357 _ACEOF
41358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41359   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
41360   ice_cv_have_sendto_decl=yes
41361 fi
41362 rm -f conftest*
41363
41364 if test "$ice_cv_have_sendto_decl" = yes; then
41365         break
41366 fi
41367 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41368 cat >conftest.$ac_ext <<_ACEOF
41369 /* confdefs.h.  */
41370 _ACEOF
41371 cat confdefs.h >>conftest.$ac_ext
41372 cat >>conftest.$ac_ext <<_ACEOF
41373 /* end confdefs.h.  */
41374 #include <$header>
41375
41376 _ACEOF
41377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41378   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41379   ice_cv_have_sendto_decl=yes
41380 fi
41381 rm -f conftest*
41382
41383 if test "$ice_cv_have_sendto_decl" = yes; then
41384         break
41385 fi
41386 done
41387
41388 fi
41389
41390 echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
41391 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6
41392 if test "$ice_cv_have_sendto_decl" = yes; then
41393
41394 cat >>confdefs.h <<_ACEOF
41395 #define HAVE_SENDTO_DECL 1
41396 _ACEOF
41397
41398 fi
41399 fi
41400
41401
41402 ice_have_setegid=no
41403
41404 for ac_func in setegid
41405 do
41406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41407 echo "$as_me:$LINENO: checking for $ac_func" >&5
41408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41409 if eval "test \"\${$as_ac_var+set}\" = set"; then
41410   echo $ECHO_N "(cached) $ECHO_C" >&6
41411 else
41412   cat >conftest.$ac_ext <<_ACEOF
41413 /* confdefs.h.  */
41414 _ACEOF
41415 cat confdefs.h >>conftest.$ac_ext
41416 cat >>conftest.$ac_ext <<_ACEOF
41417 /* end confdefs.h.  */
41418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41419    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41420 #define $ac_func innocuous_$ac_func
41421
41422 /* System header to define __stub macros and hopefully few prototypes,
41423     which can conflict with char $ac_func (); below.
41424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41425     <limits.h> exists even on freestanding compilers.  */
41426
41427 #ifdef __STDC__
41428 # include <limits.h>
41429 #else
41430 # include <assert.h>
41431 #endif
41432
41433 #undef $ac_func
41434
41435 /* Override any gcc2 internal prototype to avoid an error.  */
41436 #ifdef __cplusplus
41437 extern "C"
41438 {
41439 #endif
41440 /* We use char because int might match the return type of a gcc2
41441    builtin and then its argument prototype would still apply.  */
41442 char $ac_func ();
41443 /* The GNU C library defines this for functions which it implements
41444     to always fail with ENOSYS.  Some functions are actually named
41445     something starting with __ and the normal name is an alias.  */
41446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41447 choke me
41448 #else
41449 char (*f) () = $ac_func;
41450 #endif
41451 #ifdef __cplusplus
41452 }
41453 #endif
41454
41455 int
41456 main ()
41457 {
41458 return f != $ac_func;
41459   ;
41460   return 0;
41461 }
41462 _ACEOF
41463 rm -f conftest.$ac_objext conftest$ac_exeext
41464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41465   (eval $ac_link) 2>conftest.er1
41466   ac_status=$?
41467   grep -v '^ *+' conftest.er1 >conftest.err
41468   rm -f conftest.er1
41469   cat conftest.err >&5
41470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41471   (exit $ac_status); } &&
41472          { ac_try='test -z "$ac_c_werror_flag"
41473                          || test ! -s conftest.err'
41474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41475   (eval $ac_try) 2>&5
41476   ac_status=$?
41477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41478   (exit $ac_status); }; } &&
41479          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
41485   eval "$as_ac_var=yes"
41486 else
41487   echo "$as_me: failed program was:" >&5
41488 sed 's/^/| /' conftest.$ac_ext >&5
41489
41490 eval "$as_ac_var=no"
41491 fi
41492 rm -f conftest.err conftest.$ac_objext \
41493       conftest$ac_exeext conftest.$ac_ext
41494 fi
41495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41497 if test `eval echo '${'$as_ac_var'}'` = yes; then
41498   cat >>confdefs.h <<_ACEOF
41499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41500 _ACEOF
41501  ice_have_setegid=yes
41502 fi
41503 done
41504
41505 if test "${ice_have_setegid}" = yes; then
41506 echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
41507 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6
41508 if test "${ice_cv_have_setegid_decl+set}" = set; then
41509   echo $ECHO_N "(cached) $ECHO_C" >&6
41510 else
41511
41512 ice_cv_have_setegid_decl=no
41513 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41514 ice_re_word='(^|[^a-zA-Z0-9_])'
41515 for header in unistd.h; do
41516 # Check for ordinary declaration
41517 cat >conftest.$ac_ext <<_ACEOF
41518 /* confdefs.h.  */
41519 _ACEOF
41520 cat confdefs.h >>conftest.$ac_ext
41521 cat >>conftest.$ac_ext <<_ACEOF
41522 /* end confdefs.h.  */
41523 #include <$header>
41524
41525 _ACEOF
41526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41527   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
41528   ice_cv_have_setegid_decl=yes
41529 fi
41530 rm -f conftest*
41531
41532 if test "$ice_cv_have_setegid_decl" = yes; then
41533         break
41534 fi
41535 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41536 cat >conftest.$ac_ext <<_ACEOF
41537 /* confdefs.h.  */
41538 _ACEOF
41539 cat confdefs.h >>conftest.$ac_ext
41540 cat >>conftest.$ac_ext <<_ACEOF
41541 /* end confdefs.h.  */
41542 #include <$header>
41543
41544 _ACEOF
41545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41546   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41547   ice_cv_have_setegid_decl=yes
41548 fi
41549 rm -f conftest*
41550
41551 if test "$ice_cv_have_setegid_decl" = yes; then
41552         break
41553 fi
41554 done
41555
41556 fi
41557
41558 echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
41559 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6
41560 if test "$ice_cv_have_setegid_decl" = yes; then
41561
41562 cat >>confdefs.h <<_ACEOF
41563 #define HAVE_SETEGID_DECL 1
41564 _ACEOF
41565
41566 fi
41567 fi
41568
41569
41570 ice_have_seteuid=no
41571
41572 for ac_func in seteuid
41573 do
41574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41575 echo "$as_me:$LINENO: checking for $ac_func" >&5
41576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41577 if eval "test \"\${$as_ac_var+set}\" = set"; then
41578   echo $ECHO_N "(cached) $ECHO_C" >&6
41579 else
41580   cat >conftest.$ac_ext <<_ACEOF
41581 /* confdefs.h.  */
41582 _ACEOF
41583 cat confdefs.h >>conftest.$ac_ext
41584 cat >>conftest.$ac_ext <<_ACEOF
41585 /* end confdefs.h.  */
41586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41588 #define $ac_func innocuous_$ac_func
41589
41590 /* System header to define __stub macros and hopefully few prototypes,
41591     which can conflict with char $ac_func (); below.
41592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41593     <limits.h> exists even on freestanding compilers.  */
41594
41595 #ifdef __STDC__
41596 # include <limits.h>
41597 #else
41598 # include <assert.h>
41599 #endif
41600
41601 #undef $ac_func
41602
41603 /* Override any gcc2 internal prototype to avoid an error.  */
41604 #ifdef __cplusplus
41605 extern "C"
41606 {
41607 #endif
41608 /* We use char because int might match the return type of a gcc2
41609    builtin and then its argument prototype would still apply.  */
41610 char $ac_func ();
41611 /* The GNU C library defines this for functions which it implements
41612     to always fail with ENOSYS.  Some functions are actually named
41613     something starting with __ and the normal name is an alias.  */
41614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41615 choke me
41616 #else
41617 char (*f) () = $ac_func;
41618 #endif
41619 #ifdef __cplusplus
41620 }
41621 #endif
41622
41623 int
41624 main ()
41625 {
41626 return f != $ac_func;
41627   ;
41628   return 0;
41629 }
41630 _ACEOF
41631 rm -f conftest.$ac_objext conftest$ac_exeext
41632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41633   (eval $ac_link) 2>conftest.er1
41634   ac_status=$?
41635   grep -v '^ *+' conftest.er1 >conftest.err
41636   rm -f conftest.er1
41637   cat conftest.err >&5
41638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41639   (exit $ac_status); } &&
41640          { ac_try='test -z "$ac_c_werror_flag"
41641                          || test ! -s conftest.err'
41642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41643   (eval $ac_try) 2>&5
41644   ac_status=$?
41645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41646   (exit $ac_status); }; } &&
41647          { ac_try='test -s conftest$ac_exeext'
41648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41649   (eval $ac_try) 2>&5
41650   ac_status=$?
41651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41652   (exit $ac_status); }; }; then
41653   eval "$as_ac_var=yes"
41654 else
41655   echo "$as_me: failed program was:" >&5
41656 sed 's/^/| /' conftest.$ac_ext >&5
41657
41658 eval "$as_ac_var=no"
41659 fi
41660 rm -f conftest.err conftest.$ac_objext \
41661       conftest$ac_exeext conftest.$ac_ext
41662 fi
41663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41665 if test `eval echo '${'$as_ac_var'}'` = yes; then
41666   cat >>confdefs.h <<_ACEOF
41667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41668 _ACEOF
41669  ice_have_seteuid=yes
41670 fi
41671 done
41672
41673 if test "${ice_have_seteuid}" = yes; then
41674 echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
41675 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6
41676 if test "${ice_cv_have_seteuid_decl+set}" = set; then
41677   echo $ECHO_N "(cached) $ECHO_C" >&6
41678 else
41679
41680 ice_cv_have_seteuid_decl=no
41681 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41682 ice_re_word='(^|[^a-zA-Z0-9_])'
41683 for header in unistd.h; do
41684 # Check for ordinary declaration
41685 cat >conftest.$ac_ext <<_ACEOF
41686 /* confdefs.h.  */
41687 _ACEOF
41688 cat confdefs.h >>conftest.$ac_ext
41689 cat >>conftest.$ac_ext <<_ACEOF
41690 /* end confdefs.h.  */
41691 #include <$header>
41692
41693 _ACEOF
41694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41695   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
41696   ice_cv_have_seteuid_decl=yes
41697 fi
41698 rm -f conftest*
41699
41700 if test "$ice_cv_have_seteuid_decl" = yes; then
41701         break
41702 fi
41703 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41704 cat >conftest.$ac_ext <<_ACEOF
41705 /* confdefs.h.  */
41706 _ACEOF
41707 cat confdefs.h >>conftest.$ac_ext
41708 cat >>conftest.$ac_ext <<_ACEOF
41709 /* end confdefs.h.  */
41710 #include <$header>
41711
41712 _ACEOF
41713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41714   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41715   ice_cv_have_seteuid_decl=yes
41716 fi
41717 rm -f conftest*
41718
41719 if test "$ice_cv_have_seteuid_decl" = yes; then
41720         break
41721 fi
41722 done
41723
41724 fi
41725
41726 echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
41727 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6
41728 if test "$ice_cv_have_seteuid_decl" = yes; then
41729
41730 cat >>confdefs.h <<_ACEOF
41731 #define HAVE_SETEUID_DECL 1
41732 _ACEOF
41733
41734 fi
41735 fi
41736
41737
41738 for ac_func in setmntent
41739 do
41740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41741 echo "$as_me:$LINENO: checking for $ac_func" >&5
41742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41743 if eval "test \"\${$as_ac_var+set}\" = set"; then
41744   echo $ECHO_N "(cached) $ECHO_C" >&6
41745 else
41746   cat >conftest.$ac_ext <<_ACEOF
41747 /* confdefs.h.  */
41748 _ACEOF
41749 cat confdefs.h >>conftest.$ac_ext
41750 cat >>conftest.$ac_ext <<_ACEOF
41751 /* end confdefs.h.  */
41752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41754 #define $ac_func innocuous_$ac_func
41755
41756 /* System header to define __stub macros and hopefully few prototypes,
41757     which can conflict with char $ac_func (); below.
41758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41759     <limits.h> exists even on freestanding compilers.  */
41760
41761 #ifdef __STDC__
41762 # include <limits.h>
41763 #else
41764 # include <assert.h>
41765 #endif
41766
41767 #undef $ac_func
41768
41769 /* Override any gcc2 internal prototype to avoid an error.  */
41770 #ifdef __cplusplus
41771 extern "C"
41772 {
41773 #endif
41774 /* We use char because int might match the return type of a gcc2
41775    builtin and then its argument prototype would still apply.  */
41776 char $ac_func ();
41777 /* The GNU C library defines this for functions which it implements
41778     to always fail with ENOSYS.  Some functions are actually named
41779     something starting with __ and the normal name is an alias.  */
41780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41781 choke me
41782 #else
41783 char (*f) () = $ac_func;
41784 #endif
41785 #ifdef __cplusplus
41786 }
41787 #endif
41788
41789 int
41790 main ()
41791 {
41792 return f != $ac_func;
41793   ;
41794   return 0;
41795 }
41796 _ACEOF
41797 rm -f conftest.$ac_objext conftest$ac_exeext
41798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41799   (eval $ac_link) 2>conftest.er1
41800   ac_status=$?
41801   grep -v '^ *+' conftest.er1 >conftest.err
41802   rm -f conftest.er1
41803   cat conftest.err >&5
41804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41805   (exit $ac_status); } &&
41806          { ac_try='test -z "$ac_c_werror_flag"
41807                          || test ! -s conftest.err'
41808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41809   (eval $ac_try) 2>&5
41810   ac_status=$?
41811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41812   (exit $ac_status); }; } &&
41813          { ac_try='test -s conftest$ac_exeext'
41814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41815   (eval $ac_try) 2>&5
41816   ac_status=$?
41817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41818   (exit $ac_status); }; }; then
41819   eval "$as_ac_var=yes"
41820 else
41821   echo "$as_me: failed program was:" >&5
41822 sed 's/^/| /' conftest.$ac_ext >&5
41823
41824 eval "$as_ac_var=no"
41825 fi
41826 rm -f conftest.err conftest.$ac_objext \
41827       conftest$ac_exeext conftest.$ac_ext
41828 fi
41829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41831 if test `eval echo '${'$as_ac_var'}'` = yes; then
41832   cat >>confdefs.h <<_ACEOF
41833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41834 _ACEOF
41835
41836 fi
41837 done
41838
41839
41840 ice_have_setresgid=no
41841
41842 for ac_func in setresgid
41843 do
41844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41845 echo "$as_me:$LINENO: checking for $ac_func" >&5
41846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41847 if eval "test \"\${$as_ac_var+set}\" = set"; then
41848   echo $ECHO_N "(cached) $ECHO_C" >&6
41849 else
41850   cat >conftest.$ac_ext <<_ACEOF
41851 /* confdefs.h.  */
41852 _ACEOF
41853 cat confdefs.h >>conftest.$ac_ext
41854 cat >>conftest.$ac_ext <<_ACEOF
41855 /* end confdefs.h.  */
41856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41858 #define $ac_func innocuous_$ac_func
41859
41860 /* System header to define __stub macros and hopefully few prototypes,
41861     which can conflict with char $ac_func (); below.
41862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41863     <limits.h> exists even on freestanding compilers.  */
41864
41865 #ifdef __STDC__
41866 # include <limits.h>
41867 #else
41868 # include <assert.h>
41869 #endif
41870
41871 #undef $ac_func
41872
41873 /* Override any gcc2 internal prototype to avoid an error.  */
41874 #ifdef __cplusplus
41875 extern "C"
41876 {
41877 #endif
41878 /* We use char because int might match the return type of a gcc2
41879    builtin and then its argument prototype would still apply.  */
41880 char $ac_func ();
41881 /* The GNU C library defines this for functions which it implements
41882     to always fail with ENOSYS.  Some functions are actually named
41883     something starting with __ and the normal name is an alias.  */
41884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41885 choke me
41886 #else
41887 char (*f) () = $ac_func;
41888 #endif
41889 #ifdef __cplusplus
41890 }
41891 #endif
41892
41893 int
41894 main ()
41895 {
41896 return f != $ac_func;
41897   ;
41898   return 0;
41899 }
41900 _ACEOF
41901 rm -f conftest.$ac_objext conftest$ac_exeext
41902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41903   (eval $ac_link) 2>conftest.er1
41904   ac_status=$?
41905   grep -v '^ *+' conftest.er1 >conftest.err
41906   rm -f conftest.er1
41907   cat conftest.err >&5
41908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41909   (exit $ac_status); } &&
41910          { ac_try='test -z "$ac_c_werror_flag"
41911                          || test ! -s conftest.err'
41912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41913   (eval $ac_try) 2>&5
41914   ac_status=$?
41915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41916   (exit $ac_status); }; } &&
41917          { ac_try='test -s conftest$ac_exeext'
41918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41919   (eval $ac_try) 2>&5
41920   ac_status=$?
41921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41922   (exit $ac_status); }; }; then
41923   eval "$as_ac_var=yes"
41924 else
41925   echo "$as_me: failed program was:" >&5
41926 sed 's/^/| /' conftest.$ac_ext >&5
41927
41928 eval "$as_ac_var=no"
41929 fi
41930 rm -f conftest.err conftest.$ac_objext \
41931       conftest$ac_exeext conftest.$ac_ext
41932 fi
41933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41935 if test `eval echo '${'$as_ac_var'}'` = yes; then
41936   cat >>confdefs.h <<_ACEOF
41937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41938 _ACEOF
41939  ice_have_setresgid=yes
41940 fi
41941 done
41942
41943 if test "${ice_have_setresgid}" = yes; then
41944 echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
41945 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6
41946 if test "${ice_cv_have_setresgid_decl+set}" = set; then
41947   echo $ECHO_N "(cached) $ECHO_C" >&6
41948 else
41949
41950 ice_cv_have_setresgid_decl=no
41951 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41952 ice_re_word='(^|[^a-zA-Z0-9_])'
41953 for header in unistd.h; do
41954 # Check for ordinary declaration
41955 cat >conftest.$ac_ext <<_ACEOF
41956 /* confdefs.h.  */
41957 _ACEOF
41958 cat confdefs.h >>conftest.$ac_ext
41959 cat >>conftest.$ac_ext <<_ACEOF
41960 /* end confdefs.h.  */
41961 #include <$header>
41962
41963 _ACEOF
41964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41965   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then
41966   ice_cv_have_setresgid_decl=yes
41967 fi
41968 rm -f conftest*
41969
41970 if test "$ice_cv_have_setresgid_decl" = yes; then
41971         break
41972 fi
41973 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41974 cat >conftest.$ac_ext <<_ACEOF
41975 /* confdefs.h.  */
41976 _ACEOF
41977 cat confdefs.h >>conftest.$ac_ext
41978 cat >>conftest.$ac_ext <<_ACEOF
41979 /* end confdefs.h.  */
41980 #include <$header>
41981
41982 _ACEOF
41983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41984   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41985   ice_cv_have_setresgid_decl=yes
41986 fi
41987 rm -f conftest*
41988
41989 if test "$ice_cv_have_setresgid_decl" = yes; then
41990         break
41991 fi
41992 done
41993
41994 fi
41995
41996 echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
41997 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6
41998 if test "$ice_cv_have_setresgid_decl" = yes; then
41999
42000 cat >>confdefs.h <<_ACEOF
42001 #define HAVE_SETRESGID_DECL 1
42002 _ACEOF
42003
42004 fi
42005 fi
42006
42007
42008 ice_have_setresuid=no
42009
42010 for ac_func in setresuid
42011 do
42012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42013 echo "$as_me:$LINENO: checking for $ac_func" >&5
42014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42015 if eval "test \"\${$as_ac_var+set}\" = set"; then
42016   echo $ECHO_N "(cached) $ECHO_C" >&6
42017 else
42018   cat >conftest.$ac_ext <<_ACEOF
42019 /* confdefs.h.  */
42020 _ACEOF
42021 cat confdefs.h >>conftest.$ac_ext
42022 cat >>conftest.$ac_ext <<_ACEOF
42023 /* end confdefs.h.  */
42024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42026 #define $ac_func innocuous_$ac_func
42027
42028 /* System header to define __stub macros and hopefully few prototypes,
42029     which can conflict with char $ac_func (); below.
42030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42031     <limits.h> exists even on freestanding compilers.  */
42032
42033 #ifdef __STDC__
42034 # include <limits.h>
42035 #else
42036 # include <assert.h>
42037 #endif
42038
42039 #undef $ac_func
42040
42041 /* Override any gcc2 internal prototype to avoid an error.  */
42042 #ifdef __cplusplus
42043 extern "C"
42044 {
42045 #endif
42046 /* We use char because int might match the return type of a gcc2
42047    builtin and then its argument prototype would still apply.  */
42048 char $ac_func ();
42049 /* The GNU C library defines this for functions which it implements
42050     to always fail with ENOSYS.  Some functions are actually named
42051     something starting with __ and the normal name is an alias.  */
42052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42053 choke me
42054 #else
42055 char (*f) () = $ac_func;
42056 #endif
42057 #ifdef __cplusplus
42058 }
42059 #endif
42060
42061 int
42062 main ()
42063 {
42064 return f != $ac_func;
42065   ;
42066   return 0;
42067 }
42068 _ACEOF
42069 rm -f conftest.$ac_objext conftest$ac_exeext
42070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42071   (eval $ac_link) 2>conftest.er1
42072   ac_status=$?
42073   grep -v '^ *+' conftest.er1 >conftest.err
42074   rm -f conftest.er1
42075   cat conftest.err >&5
42076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42077   (exit $ac_status); } &&
42078          { ac_try='test -z "$ac_c_werror_flag"
42079                          || test ! -s conftest.err'
42080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42081   (eval $ac_try) 2>&5
42082   ac_status=$?
42083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42084   (exit $ac_status); }; } &&
42085          { ac_try='test -s conftest$ac_exeext'
42086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42087   (eval $ac_try) 2>&5
42088   ac_status=$?
42089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42090   (exit $ac_status); }; }; then
42091   eval "$as_ac_var=yes"
42092 else
42093   echo "$as_me: failed program was:" >&5
42094 sed 's/^/| /' conftest.$ac_ext >&5
42095
42096 eval "$as_ac_var=no"
42097 fi
42098 rm -f conftest.err conftest.$ac_objext \
42099       conftest$ac_exeext conftest.$ac_ext
42100 fi
42101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42103 if test `eval echo '${'$as_ac_var'}'` = yes; then
42104   cat >>confdefs.h <<_ACEOF
42105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42106 _ACEOF
42107  ice_have_setresuid=yes
42108 fi
42109 done
42110
42111 if test "${ice_have_setresuid}" = yes; then
42112 echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
42113 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6
42114 if test "${ice_cv_have_setresuid_decl+set}" = set; then
42115   echo $ECHO_N "(cached) $ECHO_C" >&6
42116 else
42117
42118 ice_cv_have_setresuid_decl=no
42119 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42120 ice_re_word='(^|[^a-zA-Z0-9_])'
42121 for header in unistd.h; do
42122 # Check for ordinary declaration
42123 cat >conftest.$ac_ext <<_ACEOF
42124 /* confdefs.h.  */
42125 _ACEOF
42126 cat confdefs.h >>conftest.$ac_ext
42127 cat >>conftest.$ac_ext <<_ACEOF
42128 /* end confdefs.h.  */
42129 #include <$header>
42130
42131 _ACEOF
42132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42133   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
42134   ice_cv_have_setresuid_decl=yes
42135 fi
42136 rm -f conftest*
42137
42138 if test "$ice_cv_have_setresuid_decl" = yes; then
42139         break
42140 fi
42141 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42142 cat >conftest.$ac_ext <<_ACEOF
42143 /* confdefs.h.  */
42144 _ACEOF
42145 cat confdefs.h >>conftest.$ac_ext
42146 cat >>conftest.$ac_ext <<_ACEOF
42147 /* end confdefs.h.  */
42148 #include <$header>
42149
42150 _ACEOF
42151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42152   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42153   ice_cv_have_setresuid_decl=yes
42154 fi
42155 rm -f conftest*
42156
42157 if test "$ice_cv_have_setresuid_decl" = yes; then
42158         break
42159 fi
42160 done
42161
42162 fi
42163
42164 echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
42165 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6
42166 if test "$ice_cv_have_setresuid_decl" = yes; then
42167
42168 cat >>confdefs.h <<_ACEOF
42169 #define HAVE_SETRESUID_DECL 1
42170 _ACEOF
42171
42172 fi
42173 fi
42174
42175
42176 echo "$as_me:$LINENO: checking for setpgid" >&5
42177 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
42178 if test "${ac_cv_func_setpgid+set}" = set; then
42179   echo $ECHO_N "(cached) $ECHO_C" >&6
42180 else
42181   cat >conftest.$ac_ext <<_ACEOF
42182 /* confdefs.h.  */
42183 _ACEOF
42184 cat confdefs.h >>conftest.$ac_ext
42185 cat >>conftest.$ac_ext <<_ACEOF
42186 /* end confdefs.h.  */
42187 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
42188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42189 #define setpgid innocuous_setpgid
42190
42191 /* System header to define __stub macros and hopefully few prototypes,
42192     which can conflict with char setpgid (); below.
42193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42194     <limits.h> exists even on freestanding compilers.  */
42195
42196 #ifdef __STDC__
42197 # include <limits.h>
42198 #else
42199 # include <assert.h>
42200 #endif
42201
42202 #undef setpgid
42203
42204 /* Override any gcc2 internal prototype to avoid an error.  */
42205 #ifdef __cplusplus
42206 extern "C"
42207 {
42208 #endif
42209 /* We use char because int might match the return type of a gcc2
42210    builtin and then its argument prototype would still apply.  */
42211 char setpgid ();
42212 /* The GNU C library defines this for functions which it implements
42213     to always fail with ENOSYS.  Some functions are actually named
42214     something starting with __ and the normal name is an alias.  */
42215 #if defined (__stub_setpgid) || defined (__stub___setpgid)
42216 choke me
42217 #else
42218 char (*f) () = setpgid;
42219 #endif
42220 #ifdef __cplusplus
42221 }
42222 #endif
42223
42224 int
42225 main ()
42226 {
42227 return f != setpgid;
42228   ;
42229   return 0;
42230 }
42231 _ACEOF
42232 rm -f conftest.$ac_objext conftest$ac_exeext
42233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42234   (eval $ac_link) 2>conftest.er1
42235   ac_status=$?
42236   grep -v '^ *+' conftest.er1 >conftest.err
42237   rm -f conftest.er1
42238   cat conftest.err >&5
42239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42240   (exit $ac_status); } &&
42241          { ac_try='test -z "$ac_c_werror_flag"
42242                          || test ! -s conftest.err'
42243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42244   (eval $ac_try) 2>&5
42245   ac_status=$?
42246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42247   (exit $ac_status); }; } &&
42248          { ac_try='test -s conftest$ac_exeext'
42249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42250   (eval $ac_try) 2>&5
42251   ac_status=$?
42252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42253   (exit $ac_status); }; }; then
42254   ac_cv_func_setpgid=yes
42255 else
42256   echo "$as_me: failed program was:" >&5
42257 sed 's/^/| /' conftest.$ac_ext >&5
42258
42259 ac_cv_func_setpgid=no
42260 fi
42261 rm -f conftest.err conftest.$ac_objext \
42262       conftest$ac_exeext conftest.$ac_ext
42263 fi
42264 echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
42265 echo "${ECHO_T}$ac_cv_func_setpgid" >&6
42266 if test $ac_cv_func_setpgid = yes; then
42267
42268
42269 cat >>confdefs.h <<\_ACEOF
42270 #define HAVE_SETPGID 1
42271 _ACEOF
42272
42273
42274 ice_have_setpgid=no
42275
42276 for ac_func in setpgid
42277 do
42278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42279 echo "$as_me:$LINENO: checking for $ac_func" >&5
42280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42281 if eval "test \"\${$as_ac_var+set}\" = set"; then
42282   echo $ECHO_N "(cached) $ECHO_C" >&6
42283 else
42284   cat >conftest.$ac_ext <<_ACEOF
42285 /* confdefs.h.  */
42286 _ACEOF
42287 cat confdefs.h >>conftest.$ac_ext
42288 cat >>conftest.$ac_ext <<_ACEOF
42289 /* end confdefs.h.  */
42290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42292 #define $ac_func innocuous_$ac_func
42293
42294 /* System header to define __stub macros and hopefully few prototypes,
42295     which can conflict with char $ac_func (); below.
42296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42297     <limits.h> exists even on freestanding compilers.  */
42298
42299 #ifdef __STDC__
42300 # include <limits.h>
42301 #else
42302 # include <assert.h>
42303 #endif
42304
42305 #undef $ac_func
42306
42307 /* Override any gcc2 internal prototype to avoid an error.  */
42308 #ifdef __cplusplus
42309 extern "C"
42310 {
42311 #endif
42312 /* We use char because int might match the return type of a gcc2
42313    builtin and then its argument prototype would still apply.  */
42314 char $ac_func ();
42315 /* The GNU C library defines this for functions which it implements
42316     to always fail with ENOSYS.  Some functions are actually named
42317     something starting with __ and the normal name is an alias.  */
42318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42319 choke me
42320 #else
42321 char (*f) () = $ac_func;
42322 #endif
42323 #ifdef __cplusplus
42324 }
42325 #endif
42326
42327 int
42328 main ()
42329 {
42330 return f != $ac_func;
42331   ;
42332   return 0;
42333 }
42334 _ACEOF
42335 rm -f conftest.$ac_objext conftest$ac_exeext
42336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42337   (eval $ac_link) 2>conftest.er1
42338   ac_status=$?
42339   grep -v '^ *+' conftest.er1 >conftest.err
42340   rm -f conftest.er1
42341   cat conftest.err >&5
42342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42343   (exit $ac_status); } &&
42344          { ac_try='test -z "$ac_c_werror_flag"
42345                          || test ! -s conftest.err'
42346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42347   (eval $ac_try) 2>&5
42348   ac_status=$?
42349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42350   (exit $ac_status); }; } &&
42351          { ac_try='test -s conftest$ac_exeext'
42352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42353   (eval $ac_try) 2>&5
42354   ac_status=$?
42355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42356   (exit $ac_status); }; }; then
42357   eval "$as_ac_var=yes"
42358 else
42359   echo "$as_me: failed program was:" >&5
42360 sed 's/^/| /' conftest.$ac_ext >&5
42361
42362 eval "$as_ac_var=no"
42363 fi
42364 rm -f conftest.err conftest.$ac_objext \
42365       conftest$ac_exeext conftest.$ac_ext
42366 fi
42367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42369 if test `eval echo '${'$as_ac_var'}'` = yes; then
42370   cat >>confdefs.h <<_ACEOF
42371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42372 _ACEOF
42373  ice_have_setpgid=yes
42374 fi
42375 done
42376
42377 if test "${ice_have_setpgid}" = yes; then
42378 echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
42379 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6
42380 if test "${ice_cv_have_setpgid_decl+set}" = set; then
42381   echo $ECHO_N "(cached) $ECHO_C" >&6
42382 else
42383
42384 ice_cv_have_setpgid_decl=no
42385 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42386 ice_re_word='(^|[^a-zA-Z0-9_])'
42387 for header in sys/types.h unistd.h; do
42388 # Check for ordinary declaration
42389 cat >conftest.$ac_ext <<_ACEOF
42390 /* confdefs.h.  */
42391 _ACEOF
42392 cat confdefs.h >>conftest.$ac_ext
42393 cat >>conftest.$ac_ext <<_ACEOF
42394 /* end confdefs.h.  */
42395 #include <$header>
42396
42397 _ACEOF
42398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42399   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
42400   ice_cv_have_setpgid_decl=yes
42401 fi
42402 rm -f conftest*
42403
42404 if test "$ice_cv_have_setpgid_decl" = yes; then
42405         break
42406 fi
42407 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42408 cat >conftest.$ac_ext <<_ACEOF
42409 /* confdefs.h.  */
42410 _ACEOF
42411 cat confdefs.h >>conftest.$ac_ext
42412 cat >>conftest.$ac_ext <<_ACEOF
42413 /* end confdefs.h.  */
42414 #include <$header>
42415
42416 _ACEOF
42417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42418   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42419   ice_cv_have_setpgid_decl=yes
42420 fi
42421 rm -f conftest*
42422
42423 if test "$ice_cv_have_setpgid_decl" = yes; then
42424         break
42425 fi
42426 done
42427
42428 fi
42429
42430 echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
42431 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6
42432 if test "$ice_cv_have_setpgid_decl" = yes; then
42433
42434 cat >>confdefs.h <<_ACEOF
42435 #define HAVE_SETPGID_DECL 1
42436 _ACEOF
42437
42438 fi
42439 fi
42440
42441
42442 fi
42443
42444 echo "$as_me:$LINENO: checking for setpgrp" >&5
42445 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
42446 if test "${ac_cv_func_setpgrp+set}" = set; then
42447   echo $ECHO_N "(cached) $ECHO_C" >&6
42448 else
42449   cat >conftest.$ac_ext <<_ACEOF
42450 /* confdefs.h.  */
42451 _ACEOF
42452 cat confdefs.h >>conftest.$ac_ext
42453 cat >>conftest.$ac_ext <<_ACEOF
42454 /* end confdefs.h.  */
42455 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
42456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42457 #define setpgrp innocuous_setpgrp
42458
42459 /* System header to define __stub macros and hopefully few prototypes,
42460     which can conflict with char setpgrp (); below.
42461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42462     <limits.h> exists even on freestanding compilers.  */
42463
42464 #ifdef __STDC__
42465 # include <limits.h>
42466 #else
42467 # include <assert.h>
42468 #endif
42469
42470 #undef setpgrp
42471
42472 /* Override any gcc2 internal prototype to avoid an error.  */
42473 #ifdef __cplusplus
42474 extern "C"
42475 {
42476 #endif
42477 /* We use char because int might match the return type of a gcc2
42478    builtin and then its argument prototype would still apply.  */
42479 char setpgrp ();
42480 /* The GNU C library defines this for functions which it implements
42481     to always fail with ENOSYS.  Some functions are actually named
42482     something starting with __ and the normal name is an alias.  */
42483 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
42484 choke me
42485 #else
42486 char (*f) () = setpgrp;
42487 #endif
42488 #ifdef __cplusplus
42489 }
42490 #endif
42491
42492 int
42493 main ()
42494 {
42495 return f != setpgrp;
42496   ;
42497   return 0;
42498 }
42499 _ACEOF
42500 rm -f conftest.$ac_objext conftest$ac_exeext
42501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42502   (eval $ac_link) 2>conftest.er1
42503   ac_status=$?
42504   grep -v '^ *+' conftest.er1 >conftest.err
42505   rm -f conftest.er1
42506   cat conftest.err >&5
42507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42508   (exit $ac_status); } &&
42509          { ac_try='test -z "$ac_c_werror_flag"
42510                          || test ! -s conftest.err'
42511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42512   (eval $ac_try) 2>&5
42513   ac_status=$?
42514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42515   (exit $ac_status); }; } &&
42516          { ac_try='test -s conftest$ac_exeext'
42517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42518   (eval $ac_try) 2>&5
42519   ac_status=$?
42520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42521   (exit $ac_status); }; }; then
42522   ac_cv_func_setpgrp=yes
42523 else
42524   echo "$as_me: failed program was:" >&5
42525 sed 's/^/| /' conftest.$ac_ext >&5
42526
42527 ac_cv_func_setpgrp=no
42528 fi
42529 rm -f conftest.err conftest.$ac_objext \
42530       conftest$ac_exeext conftest.$ac_ext
42531 fi
42532 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
42533 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
42534 if test $ac_cv_func_setpgrp = yes; then
42535   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
42536 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
42537 if test "${ac_cv_func_setpgrp_void+set}" = set; then
42538   echo $ECHO_N "(cached) $ECHO_C" >&6
42539 else
42540   if test "$cross_compiling" = yes; then
42541   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
42542 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
42543    { (exit 1); exit 1; }; }
42544 else
42545   cat >conftest.$ac_ext <<_ACEOF
42546 /* confdefs.h.  */
42547 _ACEOF
42548 cat confdefs.h >>conftest.$ac_ext
42549 cat >>conftest.$ac_ext <<_ACEOF
42550 /* end confdefs.h.  */
42551 #if HAVE_UNISTD_H
42552 # include <unistd.h>
42553 #endif
42554
42555 int
42556 main ()
42557 {
42558 /* If this system has a BSD-style setpgrp which takes arguments,
42559   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
42560   exit successfully. */
42561   exit (setpgrp (1,1) == -1 ? 0 : 1);
42562   ;
42563   return 0;
42564 }
42565 _ACEOF
42566 rm -f conftest$ac_exeext
42567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42568   (eval $ac_link) 2>&5
42569   ac_status=$?
42570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42571   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42573   (eval $ac_try) 2>&5
42574   ac_status=$?
42575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576   (exit $ac_status); }; }; then
42577   ac_cv_func_setpgrp_void=no
42578 else
42579   echo "$as_me: program exited with status $ac_status" >&5
42580 echo "$as_me: failed program was:" >&5
42581 sed 's/^/| /' conftest.$ac_ext >&5
42582
42583 ( exit $ac_status )
42584 ac_cv_func_setpgrp_void=yes
42585 fi
42586 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42587 fi
42588 fi
42589 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
42590 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
42591 if test $ac_cv_func_setpgrp_void = yes; then
42592
42593 cat >>confdefs.h <<\_ACEOF
42594 #define SETPGRP_VOID 1
42595 _ACEOF
42596
42597 fi
42598
42599 fi
42600
42601
42602 ice_have_setpgrp=no
42603
42604 for ac_func in setpgrp
42605 do
42606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42607 echo "$as_me:$LINENO: checking for $ac_func" >&5
42608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42609 if eval "test \"\${$as_ac_var+set}\" = set"; then
42610   echo $ECHO_N "(cached) $ECHO_C" >&6
42611 else
42612   cat >conftest.$ac_ext <<_ACEOF
42613 /* confdefs.h.  */
42614 _ACEOF
42615 cat confdefs.h >>conftest.$ac_ext
42616 cat >>conftest.$ac_ext <<_ACEOF
42617 /* end confdefs.h.  */
42618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42620 #define $ac_func innocuous_$ac_func
42621
42622 /* System header to define __stub macros and hopefully few prototypes,
42623     which can conflict with char $ac_func (); below.
42624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42625     <limits.h> exists even on freestanding compilers.  */
42626
42627 #ifdef __STDC__
42628 # include <limits.h>
42629 #else
42630 # include <assert.h>
42631 #endif
42632
42633 #undef $ac_func
42634
42635 /* Override any gcc2 internal prototype to avoid an error.  */
42636 #ifdef __cplusplus
42637 extern "C"
42638 {
42639 #endif
42640 /* We use char because int might match the return type of a gcc2
42641    builtin and then its argument prototype would still apply.  */
42642 char $ac_func ();
42643 /* The GNU C library defines this for functions which it implements
42644     to always fail with ENOSYS.  Some functions are actually named
42645     something starting with __ and the normal name is an alias.  */
42646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42647 choke me
42648 #else
42649 char (*f) () = $ac_func;
42650 #endif
42651 #ifdef __cplusplus
42652 }
42653 #endif
42654
42655 int
42656 main ()
42657 {
42658 return f != $ac_func;
42659   ;
42660   return 0;
42661 }
42662 _ACEOF
42663 rm -f conftest.$ac_objext conftest$ac_exeext
42664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42665   (eval $ac_link) 2>conftest.er1
42666   ac_status=$?
42667   grep -v '^ *+' conftest.er1 >conftest.err
42668   rm -f conftest.er1
42669   cat conftest.err >&5
42670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42671   (exit $ac_status); } &&
42672          { ac_try='test -z "$ac_c_werror_flag"
42673                          || test ! -s conftest.err'
42674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42675   (eval $ac_try) 2>&5
42676   ac_status=$?
42677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42678   (exit $ac_status); }; } &&
42679          { ac_try='test -s conftest$ac_exeext'
42680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42681   (eval $ac_try) 2>&5
42682   ac_status=$?
42683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42684   (exit $ac_status); }; }; then
42685   eval "$as_ac_var=yes"
42686 else
42687   echo "$as_me: failed program was:" >&5
42688 sed 's/^/| /' conftest.$ac_ext >&5
42689
42690 eval "$as_ac_var=no"
42691 fi
42692 rm -f conftest.err conftest.$ac_objext \
42693       conftest$ac_exeext conftest.$ac_ext
42694 fi
42695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42697 if test `eval echo '${'$as_ac_var'}'` = yes; then
42698   cat >>confdefs.h <<_ACEOF
42699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42700 _ACEOF
42701  ice_have_setpgrp=yes
42702 fi
42703 done
42704
42705 if test "${ice_have_setpgrp}" = yes; then
42706 echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
42707 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6
42708 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
42709   echo $ECHO_N "(cached) $ECHO_C" >&6
42710 else
42711
42712 ice_cv_have_setpgrp_decl=no
42713 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42714 ice_re_word='(^|[^a-zA-Z0-9_])'
42715 for header in sys/types.h unistd.h libc.h; do
42716 # Check for ordinary declaration
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 #include <$header>
42724
42725 _ACEOF
42726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42727   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
42728   ice_cv_have_setpgrp_decl=yes
42729 fi
42730 rm -f conftest*
42731
42732 if test "$ice_cv_have_setpgrp_decl" = yes; then
42733         break
42734 fi
42735 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42736 cat >conftest.$ac_ext <<_ACEOF
42737 /* confdefs.h.  */
42738 _ACEOF
42739 cat confdefs.h >>conftest.$ac_ext
42740 cat >>conftest.$ac_ext <<_ACEOF
42741 /* end confdefs.h.  */
42742 #include <$header>
42743
42744 _ACEOF
42745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42746   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42747   ice_cv_have_setpgrp_decl=yes
42748 fi
42749 rm -f conftest*
42750
42751 if test "$ice_cv_have_setpgrp_decl" = yes; then
42752         break
42753 fi
42754 done
42755
42756 fi
42757
42758 echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
42759 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6
42760 if test "$ice_cv_have_setpgrp_decl" = yes; then
42761
42762 cat >>confdefs.h <<_ACEOF
42763 #define HAVE_SETPGRP_DECL 1
42764 _ACEOF
42765
42766 fi
42767 fi
42768
42769
42770
42771 ice_have_setsockopt=no
42772
42773 for ac_func in setsockopt
42774 do
42775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42776 echo "$as_me:$LINENO: checking for $ac_func" >&5
42777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42778 if eval "test \"\${$as_ac_var+set}\" = set"; then
42779   echo $ECHO_N "(cached) $ECHO_C" >&6
42780 else
42781   cat >conftest.$ac_ext <<_ACEOF
42782 /* confdefs.h.  */
42783 _ACEOF
42784 cat confdefs.h >>conftest.$ac_ext
42785 cat >>conftest.$ac_ext <<_ACEOF
42786 /* end confdefs.h.  */
42787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42789 #define $ac_func innocuous_$ac_func
42790
42791 /* System header to define __stub macros and hopefully few prototypes,
42792     which can conflict with char $ac_func (); below.
42793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42794     <limits.h> exists even on freestanding compilers.  */
42795
42796 #ifdef __STDC__
42797 # include <limits.h>
42798 #else
42799 # include <assert.h>
42800 #endif
42801
42802 #undef $ac_func
42803
42804 /* Override any gcc2 internal prototype to avoid an error.  */
42805 #ifdef __cplusplus
42806 extern "C"
42807 {
42808 #endif
42809 /* We use char because int might match the return type of a gcc2
42810    builtin and then its argument prototype would still apply.  */
42811 char $ac_func ();
42812 /* The GNU C library defines this for functions which it implements
42813     to always fail with ENOSYS.  Some functions are actually named
42814     something starting with __ and the normal name is an alias.  */
42815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42816 choke me
42817 #else
42818 char (*f) () = $ac_func;
42819 #endif
42820 #ifdef __cplusplus
42821 }
42822 #endif
42823
42824 int
42825 main ()
42826 {
42827 return f != $ac_func;
42828   ;
42829   return 0;
42830 }
42831 _ACEOF
42832 rm -f conftest.$ac_objext conftest$ac_exeext
42833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42834   (eval $ac_link) 2>conftest.er1
42835   ac_status=$?
42836   grep -v '^ *+' conftest.er1 >conftest.err
42837   rm -f conftest.er1
42838   cat conftest.err >&5
42839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42840   (exit $ac_status); } &&
42841          { ac_try='test -z "$ac_c_werror_flag"
42842                          || test ! -s conftest.err'
42843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42844   (eval $ac_try) 2>&5
42845   ac_status=$?
42846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42847   (exit $ac_status); }; } &&
42848          { ac_try='test -s conftest$ac_exeext'
42849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42850   (eval $ac_try) 2>&5
42851   ac_status=$?
42852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42853   (exit $ac_status); }; }; then
42854   eval "$as_ac_var=yes"
42855 else
42856   echo "$as_me: failed program was:" >&5
42857 sed 's/^/| /' conftest.$ac_ext >&5
42858
42859 eval "$as_ac_var=no"
42860 fi
42861 rm -f conftest.err conftest.$ac_objext \
42862       conftest$ac_exeext conftest.$ac_ext
42863 fi
42864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42866 if test `eval echo '${'$as_ac_var'}'` = yes; then
42867   cat >>confdefs.h <<_ACEOF
42868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42869 _ACEOF
42870  ice_have_setsockopt=yes
42871 fi
42872 done
42873
42874 if test "${ice_have_setsockopt}" = yes; then
42875 echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
42876 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
42877 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
42878   echo $ECHO_N "(cached) $ECHO_C" >&6
42879 else
42880
42881 ice_cv_have_setsockopt_decl=no
42882 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42883 ice_re_word='(^|[^a-zA-Z0-9_])'
42884 for header in sys/types.h sys/socket.h; do
42885 # Check for ordinary declaration
42886 cat >conftest.$ac_ext <<_ACEOF
42887 /* confdefs.h.  */
42888 _ACEOF
42889 cat confdefs.h >>conftest.$ac_ext
42890 cat >>conftest.$ac_ext <<_ACEOF
42891 /* end confdefs.h.  */
42892 #include <$header>
42893
42894 _ACEOF
42895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42896   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
42897   ice_cv_have_setsockopt_decl=yes
42898 fi
42899 rm -f conftest*
42900
42901 if test "$ice_cv_have_setsockopt_decl" = yes; then
42902         break
42903 fi
42904 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42905 cat >conftest.$ac_ext <<_ACEOF
42906 /* confdefs.h.  */
42907 _ACEOF
42908 cat confdefs.h >>conftest.$ac_ext
42909 cat >>conftest.$ac_ext <<_ACEOF
42910 /* end confdefs.h.  */
42911 #include <$header>
42912
42913 _ACEOF
42914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42915   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42916   ice_cv_have_setsockopt_decl=yes
42917 fi
42918 rm -f conftest*
42919
42920 if test "$ice_cv_have_setsockopt_decl" = yes; then
42921         break
42922 fi
42923 done
42924
42925 fi
42926
42927 echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
42928 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6
42929 if test "$ice_cv_have_setsockopt_decl" = yes; then
42930
42931 cat >>confdefs.h <<_ACEOF
42932 #define HAVE_SETSOCKOPT_DECL 1
42933 _ACEOF
42934
42935 fi
42936 fi
42937
42938
42939
42940 for ac_func in shmget
42941 do
42942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42943 echo "$as_me:$LINENO: checking for $ac_func" >&5
42944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42945 if eval "test \"\${$as_ac_var+set}\" = set"; then
42946   echo $ECHO_N "(cached) $ECHO_C" >&6
42947 else
42948   cat >conftest.$ac_ext <<_ACEOF
42949 /* confdefs.h.  */
42950 _ACEOF
42951 cat confdefs.h >>conftest.$ac_ext
42952 cat >>conftest.$ac_ext <<_ACEOF
42953 /* end confdefs.h.  */
42954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42956 #define $ac_func innocuous_$ac_func
42957
42958 /* System header to define __stub macros and hopefully few prototypes,
42959     which can conflict with char $ac_func (); below.
42960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42961     <limits.h> exists even on freestanding compilers.  */
42962
42963 #ifdef __STDC__
42964 # include <limits.h>
42965 #else
42966 # include <assert.h>
42967 #endif
42968
42969 #undef $ac_func
42970
42971 /* Override any gcc2 internal prototype to avoid an error.  */
42972 #ifdef __cplusplus
42973 extern "C"
42974 {
42975 #endif
42976 /* We use char because int might match the return type of a gcc2
42977    builtin and then its argument prototype would still apply.  */
42978 char $ac_func ();
42979 /* The GNU C library defines this for functions which it implements
42980     to always fail with ENOSYS.  Some functions are actually named
42981     something starting with __ and the normal name is an alias.  */
42982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42983 choke me
42984 #else
42985 char (*f) () = $ac_func;
42986 #endif
42987 #ifdef __cplusplus
42988 }
42989 #endif
42990
42991 int
42992 main ()
42993 {
42994 return f != $ac_func;
42995   ;
42996   return 0;
42997 }
42998 _ACEOF
42999 rm -f conftest.$ac_objext conftest$ac_exeext
43000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43001   (eval $ac_link) 2>conftest.er1
43002   ac_status=$?
43003   grep -v '^ *+' conftest.er1 >conftest.err
43004   rm -f conftest.er1
43005   cat conftest.err >&5
43006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43007   (exit $ac_status); } &&
43008          { ac_try='test -z "$ac_c_werror_flag"
43009                          || test ! -s conftest.err'
43010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43011   (eval $ac_try) 2>&5
43012   ac_status=$?
43013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43014   (exit $ac_status); }; } &&
43015          { ac_try='test -s conftest$ac_exeext'
43016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43017   (eval $ac_try) 2>&5
43018   ac_status=$?
43019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43020   (exit $ac_status); }; }; then
43021   eval "$as_ac_var=yes"
43022 else
43023   echo "$as_me: failed program was:" >&5
43024 sed 's/^/| /' conftest.$ac_ext >&5
43025
43026 eval "$as_ac_var=no"
43027 fi
43028 rm -f conftest.err conftest.$ac_objext \
43029       conftest$ac_exeext conftest.$ac_ext
43030 fi
43031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43033 if test `eval echo '${'$as_ac_var'}'` = yes; then
43034   cat >>confdefs.h <<_ACEOF
43035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43036 _ACEOF
43037
43038
43039         echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
43040 echo $ECHO_N "checking for shmdt() argument type... $ECHO_C" >&6
43041 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
43042   echo $ECHO_N "(cached) $ECHO_C" >&6
43043 else
43044
43045                 if test "$ac_cv_func_shmget" = yes; then
43046                     cat <<EOF >conftest.$ac_ext
43047 #include "confdefs.h"
43048 #ifdef HAVE_SYS_TYPES_H
43049 # include <sys/types.h>
43050 #endif
43051 #ifdef HAVE_SYS_IPC_H
43052 # include <sys/ipc.h>
43053 #endif
43054 #ifdef HAVE_SYS_SHM_H
43055 # include <sys/shm.h>
43056 #endif
43057
43058 #ifdef __cplusplus
43059 extern "C" void *shmat(int, void *, int);
43060 #else
43061 void *shmat();
43062 #endif
43063
43064 int main()
43065 {
43066     int i;
43067     return 0;
43068 }
43069 EOF
43070                     ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
43071                     if test $? = 0; then
43072                         amanda_cv_shmdt_arg_type=void
43073                     else
43074                         amanda_cv_shmdt_arg_type=char
43075                     fi
43076                     rm -f conftest*
43077                 else
43078                     amanda_cv_shmdt_arg_type=nothing
43079                 fi
43080
43081
43082 fi
43083 echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
43084 echo "${ECHO_T}$amanda_cv_shmdt_arg_type" >&6
43085
43086 cat >>confdefs.h <<_ACEOF
43087 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
43088 _ACEOF
43089
43090
43091
43092         case "$FORCE_MMAP" in
43093         n | no)
43094
43095 cat >>confdefs.h <<\_ACEOF
43096 #define HAVE_SYSVSHM 1
43097 _ACEOF
43098
43099           ;;
43100         esac
43101
43102
43103 fi
43104 done
43105
43106
43107 ice_have_shmat=no
43108
43109 for ac_func in shmat
43110 do
43111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43112 echo "$as_me:$LINENO: checking for $ac_func" >&5
43113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43114 if eval "test \"\${$as_ac_var+set}\" = set"; then
43115   echo $ECHO_N "(cached) $ECHO_C" >&6
43116 else
43117   cat >conftest.$ac_ext <<_ACEOF
43118 /* confdefs.h.  */
43119 _ACEOF
43120 cat confdefs.h >>conftest.$ac_ext
43121 cat >>conftest.$ac_ext <<_ACEOF
43122 /* end confdefs.h.  */
43123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43125 #define $ac_func innocuous_$ac_func
43126
43127 /* System header to define __stub macros and hopefully few prototypes,
43128     which can conflict with char $ac_func (); below.
43129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43130     <limits.h> exists even on freestanding compilers.  */
43131
43132 #ifdef __STDC__
43133 # include <limits.h>
43134 #else
43135 # include <assert.h>
43136 #endif
43137
43138 #undef $ac_func
43139
43140 /* Override any gcc2 internal prototype to avoid an error.  */
43141 #ifdef __cplusplus
43142 extern "C"
43143 {
43144 #endif
43145 /* We use char because int might match the return type of a gcc2
43146    builtin and then its argument prototype would still apply.  */
43147 char $ac_func ();
43148 /* The GNU C library defines this for functions which it implements
43149     to always fail with ENOSYS.  Some functions are actually named
43150     something starting with __ and the normal name is an alias.  */
43151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43152 choke me
43153 #else
43154 char (*f) () = $ac_func;
43155 #endif
43156 #ifdef __cplusplus
43157 }
43158 #endif
43159
43160 int
43161 main ()
43162 {
43163 return f != $ac_func;
43164   ;
43165   return 0;
43166 }
43167 _ACEOF
43168 rm -f conftest.$ac_objext conftest$ac_exeext
43169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43170   (eval $ac_link) 2>conftest.er1
43171   ac_status=$?
43172   grep -v '^ *+' conftest.er1 >conftest.err
43173   rm -f conftest.er1
43174   cat conftest.err >&5
43175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43176   (exit $ac_status); } &&
43177          { ac_try='test -z "$ac_c_werror_flag"
43178                          || test ! -s conftest.err'
43179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43180   (eval $ac_try) 2>&5
43181   ac_status=$?
43182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43183   (exit $ac_status); }; } &&
43184          { ac_try='test -s conftest$ac_exeext'
43185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43186   (eval $ac_try) 2>&5
43187   ac_status=$?
43188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43189   (exit $ac_status); }; }; then
43190   eval "$as_ac_var=yes"
43191 else
43192   echo "$as_me: failed program was:" >&5
43193 sed 's/^/| /' conftest.$ac_ext >&5
43194
43195 eval "$as_ac_var=no"
43196 fi
43197 rm -f conftest.err conftest.$ac_objext \
43198       conftest$ac_exeext conftest.$ac_ext
43199 fi
43200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43202 if test `eval echo '${'$as_ac_var'}'` = yes; then
43203   cat >>confdefs.h <<_ACEOF
43204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43205 _ACEOF
43206  ice_have_shmat=yes
43207 fi
43208 done
43209
43210 if test "${ice_have_shmat}" = yes; then
43211 echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
43212 echo $ECHO_N "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
43213 if test "${ice_cv_have_shmat_decl+set}" = set; then
43214   echo $ECHO_N "(cached) $ECHO_C" >&6
43215 else
43216
43217 ice_cv_have_shmat_decl=no
43218 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43219 ice_re_word='(^|[^a-zA-Z0-9_])'
43220 for header in sys/types.h sys/ipc.h sys/shm.h; do
43221 # Check for ordinary declaration
43222 cat >conftest.$ac_ext <<_ACEOF
43223 /* confdefs.h.  */
43224 _ACEOF
43225 cat confdefs.h >>conftest.$ac_ext
43226 cat >>conftest.$ac_ext <<_ACEOF
43227 /* end confdefs.h.  */
43228 #include <$header>
43229
43230 _ACEOF
43231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43232   $EGREP "${ice_re_word}shmat[  ]*\(" >/dev/null 2>&1; then
43233   ice_cv_have_shmat_decl=yes
43234 fi
43235 rm -f conftest*
43236
43237 if test "$ice_cv_have_shmat_decl" = yes; then
43238         break
43239 fi
43240 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43241 cat >conftest.$ac_ext <<_ACEOF
43242 /* confdefs.h.  */
43243 _ACEOF
43244 cat confdefs.h >>conftest.$ac_ext
43245 cat >>conftest.$ac_ext <<_ACEOF
43246 /* end confdefs.h.  */
43247 #include <$header>
43248
43249 _ACEOF
43250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43251   $EGREP "${ice_re_word}shmat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43252   ice_cv_have_shmat_decl=yes
43253 fi
43254 rm -f conftest*
43255
43256 if test "$ice_cv_have_shmat_decl" = yes; then
43257         break
43258 fi
43259 done
43260
43261 fi
43262
43263 echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
43264 echo "${ECHO_T}$ice_cv_have_shmat_decl" >&6
43265 if test "$ice_cv_have_shmat_decl" = yes; then
43266
43267 cat >>confdefs.h <<_ACEOF
43268 #define HAVE_SHMAT_DECL 1
43269 _ACEOF
43270
43271 fi
43272 fi
43273
43274
43275 ice_have_shmctl=no
43276
43277 for ac_func in shmctl
43278 do
43279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43280 echo "$as_me:$LINENO: checking for $ac_func" >&5
43281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43282 if eval "test \"\${$as_ac_var+set}\" = set"; then
43283   echo $ECHO_N "(cached) $ECHO_C" >&6
43284 else
43285   cat >conftest.$ac_ext <<_ACEOF
43286 /* confdefs.h.  */
43287 _ACEOF
43288 cat confdefs.h >>conftest.$ac_ext
43289 cat >>conftest.$ac_ext <<_ACEOF
43290 /* end confdefs.h.  */
43291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43293 #define $ac_func innocuous_$ac_func
43294
43295 /* System header to define __stub macros and hopefully few prototypes,
43296     which can conflict with char $ac_func (); below.
43297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43298     <limits.h> exists even on freestanding compilers.  */
43299
43300 #ifdef __STDC__
43301 # include <limits.h>
43302 #else
43303 # include <assert.h>
43304 #endif
43305
43306 #undef $ac_func
43307
43308 /* Override any gcc2 internal prototype to avoid an error.  */
43309 #ifdef __cplusplus
43310 extern "C"
43311 {
43312 #endif
43313 /* We use char because int might match the return type of a gcc2
43314    builtin and then its argument prototype would still apply.  */
43315 char $ac_func ();
43316 /* The GNU C library defines this for functions which it implements
43317     to always fail with ENOSYS.  Some functions are actually named
43318     something starting with __ and the normal name is an alias.  */
43319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43320 choke me
43321 #else
43322 char (*f) () = $ac_func;
43323 #endif
43324 #ifdef __cplusplus
43325 }
43326 #endif
43327
43328 int
43329 main ()
43330 {
43331 return f != $ac_func;
43332   ;
43333   return 0;
43334 }
43335 _ACEOF
43336 rm -f conftest.$ac_objext conftest$ac_exeext
43337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43338   (eval $ac_link) 2>conftest.er1
43339   ac_status=$?
43340   grep -v '^ *+' conftest.er1 >conftest.err
43341   rm -f conftest.er1
43342   cat conftest.err >&5
43343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43344   (exit $ac_status); } &&
43345          { ac_try='test -z "$ac_c_werror_flag"
43346                          || test ! -s conftest.err'
43347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43348   (eval $ac_try) 2>&5
43349   ac_status=$?
43350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43351   (exit $ac_status); }; } &&
43352          { ac_try='test -s conftest$ac_exeext'
43353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43354   (eval $ac_try) 2>&5
43355   ac_status=$?
43356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43357   (exit $ac_status); }; }; then
43358   eval "$as_ac_var=yes"
43359 else
43360   echo "$as_me: failed program was:" >&5
43361 sed 's/^/| /' conftest.$ac_ext >&5
43362
43363 eval "$as_ac_var=no"
43364 fi
43365 rm -f conftest.err conftest.$ac_objext \
43366       conftest$ac_exeext conftest.$ac_ext
43367 fi
43368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43370 if test `eval echo '${'$as_ac_var'}'` = yes; then
43371   cat >>confdefs.h <<_ACEOF
43372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43373 _ACEOF
43374  ice_have_shmctl=yes
43375 fi
43376 done
43377
43378 if test "${ice_have_shmctl}" = yes; then
43379 echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
43380 echo $ECHO_N "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
43381 if test "${ice_cv_have_shmctl_decl+set}" = set; then
43382   echo $ECHO_N "(cached) $ECHO_C" >&6
43383 else
43384
43385 ice_cv_have_shmctl_decl=no
43386 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43387 ice_re_word='(^|[^a-zA-Z0-9_])'
43388 for header in sys/types.h sys/ipc.h sys/shm.h; do
43389 # Check for ordinary declaration
43390 cat >conftest.$ac_ext <<_ACEOF
43391 /* confdefs.h.  */
43392 _ACEOF
43393 cat confdefs.h >>conftest.$ac_ext
43394 cat >>conftest.$ac_ext <<_ACEOF
43395 /* end confdefs.h.  */
43396 #include <$header>
43397
43398 _ACEOF
43399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43400   $EGREP "${ice_re_word}shmctl[         ]*\(" >/dev/null 2>&1; then
43401   ice_cv_have_shmctl_decl=yes
43402 fi
43403 rm -f conftest*
43404
43405 if test "$ice_cv_have_shmctl_decl" = yes; then
43406         break
43407 fi
43408 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43409 cat >conftest.$ac_ext <<_ACEOF
43410 /* confdefs.h.  */
43411 _ACEOF
43412 cat confdefs.h >>conftest.$ac_ext
43413 cat >>conftest.$ac_ext <<_ACEOF
43414 /* end confdefs.h.  */
43415 #include <$header>
43416
43417 _ACEOF
43418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43419   $EGREP "${ice_re_word}shmctl[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43420   ice_cv_have_shmctl_decl=yes
43421 fi
43422 rm -f conftest*
43423
43424 if test "$ice_cv_have_shmctl_decl" = yes; then
43425         break
43426 fi
43427 done
43428
43429 fi
43430
43431 echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
43432 echo "${ECHO_T}$ice_cv_have_shmctl_decl" >&6
43433 if test "$ice_cv_have_shmctl_decl" = yes; then
43434
43435 cat >>confdefs.h <<_ACEOF
43436 #define HAVE_SHMCTL_DECL 1
43437 _ACEOF
43438
43439 fi
43440 fi
43441
43442
43443 ice_have_shmdt=no
43444
43445 for ac_func in shmdt
43446 do
43447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43448 echo "$as_me:$LINENO: checking for $ac_func" >&5
43449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43450 if eval "test \"\${$as_ac_var+set}\" = set"; then
43451   echo $ECHO_N "(cached) $ECHO_C" >&6
43452 else
43453   cat >conftest.$ac_ext <<_ACEOF
43454 /* confdefs.h.  */
43455 _ACEOF
43456 cat confdefs.h >>conftest.$ac_ext
43457 cat >>conftest.$ac_ext <<_ACEOF
43458 /* end confdefs.h.  */
43459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43460    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43461 #define $ac_func innocuous_$ac_func
43462
43463 /* System header to define __stub macros and hopefully few prototypes,
43464     which can conflict with char $ac_func (); below.
43465     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43466     <limits.h> exists even on freestanding compilers.  */
43467
43468 #ifdef __STDC__
43469 # include <limits.h>
43470 #else
43471 # include <assert.h>
43472 #endif
43473
43474 #undef $ac_func
43475
43476 /* Override any gcc2 internal prototype to avoid an error.  */
43477 #ifdef __cplusplus
43478 extern "C"
43479 {
43480 #endif
43481 /* We use char because int might match the return type of a gcc2
43482    builtin and then its argument prototype would still apply.  */
43483 char $ac_func ();
43484 /* The GNU C library defines this for functions which it implements
43485     to always fail with ENOSYS.  Some functions are actually named
43486     something starting with __ and the normal name is an alias.  */
43487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43488 choke me
43489 #else
43490 char (*f) () = $ac_func;
43491 #endif
43492 #ifdef __cplusplus
43493 }
43494 #endif
43495
43496 int
43497 main ()
43498 {
43499 return f != $ac_func;
43500   ;
43501   return 0;
43502 }
43503 _ACEOF
43504 rm -f conftest.$ac_objext conftest$ac_exeext
43505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43506   (eval $ac_link) 2>conftest.er1
43507   ac_status=$?
43508   grep -v '^ *+' conftest.er1 >conftest.err
43509   rm -f conftest.er1
43510   cat conftest.err >&5
43511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43512   (exit $ac_status); } &&
43513          { ac_try='test -z "$ac_c_werror_flag"
43514                          || test ! -s conftest.err'
43515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43516   (eval $ac_try) 2>&5
43517   ac_status=$?
43518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43519   (exit $ac_status); }; } &&
43520          { ac_try='test -s conftest$ac_exeext'
43521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43522   (eval $ac_try) 2>&5
43523   ac_status=$?
43524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43525   (exit $ac_status); }; }; then
43526   eval "$as_ac_var=yes"
43527 else
43528   echo "$as_me: failed program was:" >&5
43529 sed 's/^/| /' conftest.$ac_ext >&5
43530
43531 eval "$as_ac_var=no"
43532 fi
43533 rm -f conftest.err conftest.$ac_objext \
43534       conftest$ac_exeext conftest.$ac_ext
43535 fi
43536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43538 if test `eval echo '${'$as_ac_var'}'` = yes; then
43539   cat >>confdefs.h <<_ACEOF
43540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43541 _ACEOF
43542  ice_have_shmdt=yes
43543 fi
43544 done
43545
43546 if test "${ice_have_shmdt}" = yes; then
43547 echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
43548 echo $ECHO_N "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
43549 if test "${ice_cv_have_shmdt_decl+set}" = set; then
43550   echo $ECHO_N "(cached) $ECHO_C" >&6
43551 else
43552
43553 ice_cv_have_shmdt_decl=no
43554 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43555 ice_re_word='(^|[^a-zA-Z0-9_])'
43556 for header in sys/types.h sys/ipc.h sys/shm.h; do
43557 # Check for ordinary declaration
43558 cat >conftest.$ac_ext <<_ACEOF
43559 /* confdefs.h.  */
43560 _ACEOF
43561 cat confdefs.h >>conftest.$ac_ext
43562 cat >>conftest.$ac_ext <<_ACEOF
43563 /* end confdefs.h.  */
43564 #include <$header>
43565
43566 _ACEOF
43567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43568   $EGREP "${ice_re_word}shmdt[  ]*\(" >/dev/null 2>&1; then
43569   ice_cv_have_shmdt_decl=yes
43570 fi
43571 rm -f conftest*
43572
43573 if test "$ice_cv_have_shmdt_decl" = yes; then
43574         break
43575 fi
43576 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43577 cat >conftest.$ac_ext <<_ACEOF
43578 /* confdefs.h.  */
43579 _ACEOF
43580 cat confdefs.h >>conftest.$ac_ext
43581 cat >>conftest.$ac_ext <<_ACEOF
43582 /* end confdefs.h.  */
43583 #include <$header>
43584
43585 _ACEOF
43586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43587   $EGREP "${ice_re_word}shmdt[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43588   ice_cv_have_shmdt_decl=yes
43589 fi
43590 rm -f conftest*
43591
43592 if test "$ice_cv_have_shmdt_decl" = yes; then
43593         break
43594 fi
43595 done
43596
43597 fi
43598
43599 echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
43600 echo "${ECHO_T}$ice_cv_have_shmdt_decl" >&6
43601 if test "$ice_cv_have_shmdt_decl" = yes; then
43602
43603 cat >>confdefs.h <<_ACEOF
43604 #define HAVE_SHMDT_DECL 1
43605 _ACEOF
43606
43607 fi
43608 fi
43609
43610
43611 ice_have_shmget=no
43612
43613 for ac_func in shmget
43614 do
43615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43616 echo "$as_me:$LINENO: checking for $ac_func" >&5
43617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43618 if eval "test \"\${$as_ac_var+set}\" = set"; then
43619   echo $ECHO_N "(cached) $ECHO_C" >&6
43620 else
43621   cat >conftest.$ac_ext <<_ACEOF
43622 /* confdefs.h.  */
43623 _ACEOF
43624 cat confdefs.h >>conftest.$ac_ext
43625 cat >>conftest.$ac_ext <<_ACEOF
43626 /* end confdefs.h.  */
43627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43629 #define $ac_func innocuous_$ac_func
43630
43631 /* System header to define __stub macros and hopefully few prototypes,
43632     which can conflict with char $ac_func (); below.
43633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43634     <limits.h> exists even on freestanding compilers.  */
43635
43636 #ifdef __STDC__
43637 # include <limits.h>
43638 #else
43639 # include <assert.h>
43640 #endif
43641
43642 #undef $ac_func
43643
43644 /* Override any gcc2 internal prototype to avoid an error.  */
43645 #ifdef __cplusplus
43646 extern "C"
43647 {
43648 #endif
43649 /* We use char because int might match the return type of a gcc2
43650    builtin and then its argument prototype would still apply.  */
43651 char $ac_func ();
43652 /* The GNU C library defines this for functions which it implements
43653     to always fail with ENOSYS.  Some functions are actually named
43654     something starting with __ and the normal name is an alias.  */
43655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43656 choke me
43657 #else
43658 char (*f) () = $ac_func;
43659 #endif
43660 #ifdef __cplusplus
43661 }
43662 #endif
43663
43664 int
43665 main ()
43666 {
43667 return f != $ac_func;
43668   ;
43669   return 0;
43670 }
43671 _ACEOF
43672 rm -f conftest.$ac_objext conftest$ac_exeext
43673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43674   (eval $ac_link) 2>conftest.er1
43675   ac_status=$?
43676   grep -v '^ *+' conftest.er1 >conftest.err
43677   rm -f conftest.er1
43678   cat conftest.err >&5
43679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43680   (exit $ac_status); } &&
43681          { ac_try='test -z "$ac_c_werror_flag"
43682                          || test ! -s conftest.err'
43683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43684   (eval $ac_try) 2>&5
43685   ac_status=$?
43686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43687   (exit $ac_status); }; } &&
43688          { ac_try='test -s conftest$ac_exeext'
43689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43690   (eval $ac_try) 2>&5
43691   ac_status=$?
43692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43693   (exit $ac_status); }; }; then
43694   eval "$as_ac_var=yes"
43695 else
43696   echo "$as_me: failed program was:" >&5
43697 sed 's/^/| /' conftest.$ac_ext >&5
43698
43699 eval "$as_ac_var=no"
43700 fi
43701 rm -f conftest.err conftest.$ac_objext \
43702       conftest$ac_exeext conftest.$ac_ext
43703 fi
43704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43706 if test `eval echo '${'$as_ac_var'}'` = yes; then
43707   cat >>confdefs.h <<_ACEOF
43708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43709 _ACEOF
43710  ice_have_shmget=yes
43711 fi
43712 done
43713
43714 if test "${ice_have_shmget}" = yes; then
43715 echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
43716 echo $ECHO_N "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
43717 if test "${ice_cv_have_shmget_decl+set}" = set; then
43718   echo $ECHO_N "(cached) $ECHO_C" >&6
43719 else
43720
43721 ice_cv_have_shmget_decl=no
43722 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43723 ice_re_word='(^|[^a-zA-Z0-9_])'
43724 for header in sys/types.h sys/ipc.h sys/shm.h; do
43725 # Check for ordinary declaration
43726 cat >conftest.$ac_ext <<_ACEOF
43727 /* confdefs.h.  */
43728 _ACEOF
43729 cat confdefs.h >>conftest.$ac_ext
43730 cat >>conftest.$ac_ext <<_ACEOF
43731 /* end confdefs.h.  */
43732 #include <$header>
43733
43734 _ACEOF
43735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43736   $EGREP "${ice_re_word}shmget[         ]*\(" >/dev/null 2>&1; then
43737   ice_cv_have_shmget_decl=yes
43738 fi
43739 rm -f conftest*
43740
43741 if test "$ice_cv_have_shmget_decl" = yes; then
43742         break
43743 fi
43744 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43745 cat >conftest.$ac_ext <<_ACEOF
43746 /* confdefs.h.  */
43747 _ACEOF
43748 cat confdefs.h >>conftest.$ac_ext
43749 cat >>conftest.$ac_ext <<_ACEOF
43750 /* end confdefs.h.  */
43751 #include <$header>
43752
43753 _ACEOF
43754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43755   $EGREP "${ice_re_word}shmget[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43756   ice_cv_have_shmget_decl=yes
43757 fi
43758 rm -f conftest*
43759
43760 if test "$ice_cv_have_shmget_decl" = yes; then
43761         break
43762 fi
43763 done
43764
43765 fi
43766
43767 echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
43768 echo "${ECHO_T}$ice_cv_have_shmget_decl" >&6
43769 if test "$ice_cv_have_shmget_decl" = yes; then
43770
43771 cat >>confdefs.h <<_ACEOF
43772 #define HAVE_SHMGET_DECL 1
43773 _ACEOF
43774
43775 fi
43776 fi
43777
43778
43779 if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
43780     case "$FORCE_MMAP" in
43781     n | no)
43782         if test "$ac_cv_func_shmget" != yes; then
43783             { echo "$as_me:$LINENO: WARNING: *** Neither shmget() nor mmap() found!" >&5
43784 echo "$as_me: WARNING: *** Neither shmget() nor mmap() found!" >&2;}
43785             { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
43786 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
43787             NO_SERVER_MODE=true
43788         fi
43789       ;;
43790     y | ye | yes)
43791         { echo "$as_me:$LINENO: WARNING: *** --with-mmap used on a system with no mmap() support!" >&5
43792 echo "$as_me: WARNING: *** --with-mmap used on a system with no mmap() support!" >&2;}
43793         { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
43794 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
43795         NO_SERVER_MODE=true
43796       ;;
43797     esac
43798 fi
43799
43800
43801 ice_have_shquote=no
43802
43803 for ac_func in shquote
43804 do
43805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43806 echo "$as_me:$LINENO: checking for $ac_func" >&5
43807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43808 if eval "test \"\${$as_ac_var+set}\" = set"; then
43809   echo $ECHO_N "(cached) $ECHO_C" >&6
43810 else
43811   cat >conftest.$ac_ext <<_ACEOF
43812 /* confdefs.h.  */
43813 _ACEOF
43814 cat confdefs.h >>conftest.$ac_ext
43815 cat >>conftest.$ac_ext <<_ACEOF
43816 /* end confdefs.h.  */
43817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43819 #define $ac_func innocuous_$ac_func
43820
43821 /* System header to define __stub macros and hopefully few prototypes,
43822     which can conflict with char $ac_func (); below.
43823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43824     <limits.h> exists even on freestanding compilers.  */
43825
43826 #ifdef __STDC__
43827 # include <limits.h>
43828 #else
43829 # include <assert.h>
43830 #endif
43831
43832 #undef $ac_func
43833
43834 /* Override any gcc2 internal prototype to avoid an error.  */
43835 #ifdef __cplusplus
43836 extern "C"
43837 {
43838 #endif
43839 /* We use char because int might match the return type of a gcc2
43840    builtin and then its argument prototype would still apply.  */
43841 char $ac_func ();
43842 /* The GNU C library defines this for functions which it implements
43843     to always fail with ENOSYS.  Some functions are actually named
43844     something starting with __ and the normal name is an alias.  */
43845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43846 choke me
43847 #else
43848 char (*f) () = $ac_func;
43849 #endif
43850 #ifdef __cplusplus
43851 }
43852 #endif
43853
43854 int
43855 main ()
43856 {
43857 return f != $ac_func;
43858   ;
43859   return 0;
43860 }
43861 _ACEOF
43862 rm -f conftest.$ac_objext conftest$ac_exeext
43863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43864   (eval $ac_link) 2>conftest.er1
43865   ac_status=$?
43866   grep -v '^ *+' conftest.er1 >conftest.err
43867   rm -f conftest.er1
43868   cat conftest.err >&5
43869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43870   (exit $ac_status); } &&
43871          { ac_try='test -z "$ac_c_werror_flag"
43872                          || test ! -s conftest.err'
43873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43874   (eval $ac_try) 2>&5
43875   ac_status=$?
43876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43877   (exit $ac_status); }; } &&
43878          { ac_try='test -s conftest$ac_exeext'
43879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43880   (eval $ac_try) 2>&5
43881   ac_status=$?
43882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43883   (exit $ac_status); }; }; then
43884   eval "$as_ac_var=yes"
43885 else
43886   echo "$as_me: failed program was:" >&5
43887 sed 's/^/| /' conftest.$ac_ext >&5
43888
43889 eval "$as_ac_var=no"
43890 fi
43891 rm -f conftest.err conftest.$ac_objext \
43892       conftest$ac_exeext conftest.$ac_ext
43893 fi
43894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43896 if test `eval echo '${'$as_ac_var'}'` = yes; then
43897   cat >>confdefs.h <<_ACEOF
43898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43899 _ACEOF
43900  ice_have_shquote=yes
43901 fi
43902 done
43903
43904 if test "${ice_have_shquote}" = yes; then
43905 echo "$as_me:$LINENO: checking for shquote declaration in stdlib.h" >&5
43906 echo $ECHO_N "checking for shquote declaration in stdlib.h... $ECHO_C" >&6
43907 if test "${ice_cv_have_shquote_decl+set}" = set; then
43908   echo $ECHO_N "(cached) $ECHO_C" >&6
43909 else
43910
43911 ice_cv_have_shquote_decl=no
43912 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43913 ice_re_word='(^|[^a-zA-Z0-9_])'
43914 for header in stdlib.h; do
43915 # Check for ordinary declaration
43916 cat >conftest.$ac_ext <<_ACEOF
43917 /* confdefs.h.  */
43918 _ACEOF
43919 cat confdefs.h >>conftest.$ac_ext
43920 cat >>conftest.$ac_ext <<_ACEOF
43921 /* end confdefs.h.  */
43922 #include <$header>
43923
43924 _ACEOF
43925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43926   $EGREP "${ice_re_word}shquote[        ]*\(" >/dev/null 2>&1; then
43927   ice_cv_have_shquote_decl=yes
43928 fi
43929 rm -f conftest*
43930
43931 if test "$ice_cv_have_shquote_decl" = yes; then
43932         break
43933 fi
43934 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43935 cat >conftest.$ac_ext <<_ACEOF
43936 /* confdefs.h.  */
43937 _ACEOF
43938 cat confdefs.h >>conftest.$ac_ext
43939 cat >>conftest.$ac_ext <<_ACEOF
43940 /* end confdefs.h.  */
43941 #include <$header>
43942
43943 _ACEOF
43944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43945   $EGREP "${ice_re_word}shquote[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43946   ice_cv_have_shquote_decl=yes
43947 fi
43948 rm -f conftest*
43949
43950 if test "$ice_cv_have_shquote_decl" = yes; then
43951         break
43952 fi
43953 done
43954
43955 fi
43956
43957 echo "$as_me:$LINENO: result: $ice_cv_have_shquote_decl" >&5
43958 echo "${ECHO_T}$ice_cv_have_shquote_decl" >&6
43959 if test "$ice_cv_have_shquote_decl" = yes; then
43960
43961 cat >>confdefs.h <<_ACEOF
43962 #define HAVE_SHQUOTE_DECL 1
43963 _ACEOF
43964
43965 fi
43966 fi
43967
43968
43969
43970 ice_have_snprintf=no
43971
43972 for ac_func in snprintf
43973 do
43974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43975 echo "$as_me:$LINENO: checking for $ac_func" >&5
43976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43977 if eval "test \"\${$as_ac_var+set}\" = set"; then
43978   echo $ECHO_N "(cached) $ECHO_C" >&6
43979 else
43980   cat >conftest.$ac_ext <<_ACEOF
43981 /* confdefs.h.  */
43982 _ACEOF
43983 cat confdefs.h >>conftest.$ac_ext
43984 cat >>conftest.$ac_ext <<_ACEOF
43985 /* end confdefs.h.  */
43986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43988 #define $ac_func innocuous_$ac_func
43989
43990 /* System header to define __stub macros and hopefully few prototypes,
43991     which can conflict with char $ac_func (); below.
43992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43993     <limits.h> exists even on freestanding compilers.  */
43994
43995 #ifdef __STDC__
43996 # include <limits.h>
43997 #else
43998 # include <assert.h>
43999 #endif
44000
44001 #undef $ac_func
44002
44003 /* Override any gcc2 internal prototype to avoid an error.  */
44004 #ifdef __cplusplus
44005 extern "C"
44006 {
44007 #endif
44008 /* We use char because int might match the return type of a gcc2
44009    builtin and then its argument prototype would still apply.  */
44010 char $ac_func ();
44011 /* The GNU C library defines this for functions which it implements
44012     to always fail with ENOSYS.  Some functions are actually named
44013     something starting with __ and the normal name is an alias.  */
44014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44015 choke me
44016 #else
44017 char (*f) () = $ac_func;
44018 #endif
44019 #ifdef __cplusplus
44020 }
44021 #endif
44022
44023 int
44024 main ()
44025 {
44026 return f != $ac_func;
44027   ;
44028   return 0;
44029 }
44030 _ACEOF
44031 rm -f conftest.$ac_objext conftest$ac_exeext
44032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44033   (eval $ac_link) 2>conftest.er1
44034   ac_status=$?
44035   grep -v '^ *+' conftest.er1 >conftest.err
44036   rm -f conftest.er1
44037   cat conftest.err >&5
44038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44039   (exit $ac_status); } &&
44040          { ac_try='test -z "$ac_c_werror_flag"
44041                          || test ! -s conftest.err'
44042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44043   (eval $ac_try) 2>&5
44044   ac_status=$?
44045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44046   (exit $ac_status); }; } &&
44047          { ac_try='test -s conftest$ac_exeext'
44048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44049   (eval $ac_try) 2>&5
44050   ac_status=$?
44051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44052   (exit $ac_status); }; }; then
44053   eval "$as_ac_var=yes"
44054 else
44055   echo "$as_me: failed program was:" >&5
44056 sed 's/^/| /' conftest.$ac_ext >&5
44057
44058 eval "$as_ac_var=no"
44059 fi
44060 rm -f conftest.err conftest.$ac_objext \
44061       conftest$ac_exeext conftest.$ac_ext
44062 fi
44063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44065 if test `eval echo '${'$as_ac_var'}'` = yes; then
44066   cat >>confdefs.h <<_ACEOF
44067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44068 _ACEOF
44069  ice_have_snprintf=yes
44070 fi
44071 done
44072
44073 if test "${ice_have_snprintf}" = yes; then
44074 echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
44075 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6
44076 if test "${ice_cv_have_snprintf_decl+set}" = set; then
44077   echo $ECHO_N "(cached) $ECHO_C" >&6
44078 else
44079
44080 ice_cv_have_snprintf_decl=no
44081 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44082 ice_re_word='(^|[^a-zA-Z0-9_])'
44083 for header in stdio.h; do
44084 # Check for ordinary declaration
44085 cat >conftest.$ac_ext <<_ACEOF
44086 /* confdefs.h.  */
44087 _ACEOF
44088 cat confdefs.h >>conftest.$ac_ext
44089 cat >>conftest.$ac_ext <<_ACEOF
44090 /* end confdefs.h.  */
44091 #include <$header>
44092
44093 _ACEOF
44094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44095   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
44096   ice_cv_have_snprintf_decl=yes
44097 fi
44098 rm -f conftest*
44099
44100 if test "$ice_cv_have_snprintf_decl" = yes; then
44101         break
44102 fi
44103 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44104 cat >conftest.$ac_ext <<_ACEOF
44105 /* confdefs.h.  */
44106 _ACEOF
44107 cat confdefs.h >>conftest.$ac_ext
44108 cat >>conftest.$ac_ext <<_ACEOF
44109 /* end confdefs.h.  */
44110 #include <$header>
44111
44112 _ACEOF
44113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44114   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44115   ice_cv_have_snprintf_decl=yes
44116 fi
44117 rm -f conftest*
44118
44119 if test "$ice_cv_have_snprintf_decl" = yes; then
44120         break
44121 fi
44122 done
44123
44124 fi
44125
44126 echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
44127 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6
44128 if test "$ice_cv_have_snprintf_decl" = yes; then
44129
44130 cat >>confdefs.h <<_ACEOF
44131 #define HAVE_SNPRINTF_DECL 1
44132 _ACEOF
44133
44134 fi
44135 fi
44136
44137
44138 ice_have_vsnprintf=no
44139
44140 for ac_func in vsnprintf
44141 do
44142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44143 echo "$as_me:$LINENO: checking for $ac_func" >&5
44144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44145 if eval "test \"\${$as_ac_var+set}\" = set"; then
44146   echo $ECHO_N "(cached) $ECHO_C" >&6
44147 else
44148   cat >conftest.$ac_ext <<_ACEOF
44149 /* confdefs.h.  */
44150 _ACEOF
44151 cat confdefs.h >>conftest.$ac_ext
44152 cat >>conftest.$ac_ext <<_ACEOF
44153 /* end confdefs.h.  */
44154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44156 #define $ac_func innocuous_$ac_func
44157
44158 /* System header to define __stub macros and hopefully few prototypes,
44159     which can conflict with char $ac_func (); below.
44160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44161     <limits.h> exists even on freestanding compilers.  */
44162
44163 #ifdef __STDC__
44164 # include <limits.h>
44165 #else
44166 # include <assert.h>
44167 #endif
44168
44169 #undef $ac_func
44170
44171 /* Override any gcc2 internal prototype to avoid an error.  */
44172 #ifdef __cplusplus
44173 extern "C"
44174 {
44175 #endif
44176 /* We use char because int might match the return type of a gcc2
44177    builtin and then its argument prototype would still apply.  */
44178 char $ac_func ();
44179 /* The GNU C library defines this for functions which it implements
44180     to always fail with ENOSYS.  Some functions are actually named
44181     something starting with __ and the normal name is an alias.  */
44182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44183 choke me
44184 #else
44185 char (*f) () = $ac_func;
44186 #endif
44187 #ifdef __cplusplus
44188 }
44189 #endif
44190
44191 int
44192 main ()
44193 {
44194 return f != $ac_func;
44195   ;
44196   return 0;
44197 }
44198 _ACEOF
44199 rm -f conftest.$ac_objext conftest$ac_exeext
44200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44201   (eval $ac_link) 2>conftest.er1
44202   ac_status=$?
44203   grep -v '^ *+' conftest.er1 >conftest.err
44204   rm -f conftest.er1
44205   cat conftest.err >&5
44206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44207   (exit $ac_status); } &&
44208          { ac_try='test -z "$ac_c_werror_flag"
44209                          || test ! -s conftest.err'
44210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44211   (eval $ac_try) 2>&5
44212   ac_status=$?
44213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44214   (exit $ac_status); }; } &&
44215          { ac_try='test -s conftest$ac_exeext'
44216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44217   (eval $ac_try) 2>&5
44218   ac_status=$?
44219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44220   (exit $ac_status); }; }; then
44221   eval "$as_ac_var=yes"
44222 else
44223   echo "$as_me: failed program was:" >&5
44224 sed 's/^/| /' conftest.$ac_ext >&5
44225
44226 eval "$as_ac_var=no"
44227 fi
44228 rm -f conftest.err conftest.$ac_objext \
44229       conftest$ac_exeext conftest.$ac_ext
44230 fi
44231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44233 if test `eval echo '${'$as_ac_var'}'` = yes; then
44234   cat >>confdefs.h <<_ACEOF
44235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44236 _ACEOF
44237  ice_have_vsnprintf=yes
44238 fi
44239 done
44240
44241 if test "${ice_have_vsnprintf}" = yes; then
44242 echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
44243 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6
44244 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
44245   echo $ECHO_N "(cached) $ECHO_C" >&6
44246 else
44247
44248 ice_cv_have_vsnprintf_decl=no
44249 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44250 ice_re_word='(^|[^a-zA-Z0-9_])'
44251 for header in stdio.h; do
44252 # Check for ordinary declaration
44253 cat >conftest.$ac_ext <<_ACEOF
44254 /* confdefs.h.  */
44255 _ACEOF
44256 cat confdefs.h >>conftest.$ac_ext
44257 cat >>conftest.$ac_ext <<_ACEOF
44258 /* end confdefs.h.  */
44259 #include <$header>
44260
44261 _ACEOF
44262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44263   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
44264   ice_cv_have_vsnprintf_decl=yes
44265 fi
44266 rm -f conftest*
44267
44268 if test "$ice_cv_have_vsnprintf_decl" = yes; then
44269         break
44270 fi
44271 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44272 cat >conftest.$ac_ext <<_ACEOF
44273 /* confdefs.h.  */
44274 _ACEOF
44275 cat confdefs.h >>conftest.$ac_ext
44276 cat >>conftest.$ac_ext <<_ACEOF
44277 /* end confdefs.h.  */
44278 #include <$header>
44279
44280 _ACEOF
44281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44282   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44283   ice_cv_have_vsnprintf_decl=yes
44284 fi
44285 rm -f conftest*
44286
44287 if test "$ice_cv_have_vsnprintf_decl" = yes; then
44288         break
44289 fi
44290 done
44291
44292 fi
44293
44294 echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
44295 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6
44296 if test "$ice_cv_have_vsnprintf_decl" = yes; then
44297
44298 cat >>confdefs.h <<_ACEOF
44299 #define HAVE_VSNPRINTF_DECL 1
44300 _ACEOF
44301
44302 fi
44303 fi
44304
44305 if test x"$ice_have_snprintf" != x"yes" ||
44306    test x"$ice_have_vsnprintf" != x"yes"; then
44307     case $LIBOBJS in
44308     "snprintf.$ac_objext"   | \
44309   *" snprintf.$ac_objext"   | \
44310     "snprintf.$ac_objext "* | \
44311   *" snprintf.$ac_objext "* ) ;;
44312   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
44313 esac
44314
44315     if false; then :
44316
44317 for ac_func in snprintf
44318 do
44319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44320 echo "$as_me:$LINENO: checking for $ac_func" >&5
44321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44322 if eval "test \"\${$as_ac_var+set}\" = set"; then
44323   echo $ECHO_N "(cached) $ECHO_C" >&6
44324 else
44325   cat >conftest.$ac_ext <<_ACEOF
44326 /* confdefs.h.  */
44327 _ACEOF
44328 cat confdefs.h >>conftest.$ac_ext
44329 cat >>conftest.$ac_ext <<_ACEOF
44330 /* end confdefs.h.  */
44331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44333 #define $ac_func innocuous_$ac_func
44334
44335 /* System header to define __stub macros and hopefully few prototypes,
44336     which can conflict with char $ac_func (); below.
44337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44338     <limits.h> exists even on freestanding compilers.  */
44339
44340 #ifdef __STDC__
44341 # include <limits.h>
44342 #else
44343 # include <assert.h>
44344 #endif
44345
44346 #undef $ac_func
44347
44348 /* Override any gcc2 internal prototype to avoid an error.  */
44349 #ifdef __cplusplus
44350 extern "C"
44351 {
44352 #endif
44353 /* We use char because int might match the return type of a gcc2
44354    builtin and then its argument prototype would still apply.  */
44355 char $ac_func ();
44356 /* The GNU C library defines this for functions which it implements
44357     to always fail with ENOSYS.  Some functions are actually named
44358     something starting with __ and the normal name is an alias.  */
44359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44360 choke me
44361 #else
44362 char (*f) () = $ac_func;
44363 #endif
44364 #ifdef __cplusplus
44365 }
44366 #endif
44367
44368 int
44369 main ()
44370 {
44371 return f != $ac_func;
44372   ;
44373   return 0;
44374 }
44375 _ACEOF
44376 rm -f conftest.$ac_objext conftest$ac_exeext
44377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44378   (eval $ac_link) 2>conftest.er1
44379   ac_status=$?
44380   grep -v '^ *+' conftest.er1 >conftest.err
44381   rm -f conftest.er1
44382   cat conftest.err >&5
44383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44384   (exit $ac_status); } &&
44385          { ac_try='test -z "$ac_c_werror_flag"
44386                          || test ! -s conftest.err'
44387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44388   (eval $ac_try) 2>&5
44389   ac_status=$?
44390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44391   (exit $ac_status); }; } &&
44392          { ac_try='test -s conftest$ac_exeext'
44393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44394   (eval $ac_try) 2>&5
44395   ac_status=$?
44396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44397   (exit $ac_status); }; }; then
44398   eval "$as_ac_var=yes"
44399 else
44400   echo "$as_me: failed program was:" >&5
44401 sed 's/^/| /' conftest.$ac_ext >&5
44402
44403 eval "$as_ac_var=no"
44404 fi
44405 rm -f conftest.err conftest.$ac_objext \
44406       conftest$ac_exeext conftest.$ac_ext
44407 fi
44408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44410 if test `eval echo '${'$as_ac_var'}'` = yes; then
44411   cat >>confdefs.h <<_ACEOF
44412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44413 _ACEOF
44414
44415 else
44416   case $LIBOBJS in
44417     "$ac_func.$ac_objext"   | \
44418   *" $ac_func.$ac_objext"   | \
44419     "$ac_func.$ac_objext "* | \
44420   *" $ac_func.$ac_objext "* ) ;;
44421   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
44422 esac
44423
44424 fi
44425 done
44426
44427
44428     fi
44429 fi
44430
44431
44432
44433
44434 for ac_func in sigaction sigemptyset sigvec
44435 do
44436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44437 echo "$as_me:$LINENO: checking for $ac_func" >&5
44438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44439 if eval "test \"\${$as_ac_var+set}\" = set"; then
44440   echo $ECHO_N "(cached) $ECHO_C" >&6
44441 else
44442   cat >conftest.$ac_ext <<_ACEOF
44443 /* confdefs.h.  */
44444 _ACEOF
44445 cat confdefs.h >>conftest.$ac_ext
44446 cat >>conftest.$ac_ext <<_ACEOF
44447 /* end confdefs.h.  */
44448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44450 #define $ac_func innocuous_$ac_func
44451
44452 /* System header to define __stub macros and hopefully few prototypes,
44453     which can conflict with char $ac_func (); below.
44454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44455     <limits.h> exists even on freestanding compilers.  */
44456
44457 #ifdef __STDC__
44458 # include <limits.h>
44459 #else
44460 # include <assert.h>
44461 #endif
44462
44463 #undef $ac_func
44464
44465 /* Override any gcc2 internal prototype to avoid an error.  */
44466 #ifdef __cplusplus
44467 extern "C"
44468 {
44469 #endif
44470 /* We use char because int might match the return type of a gcc2
44471    builtin and then its argument prototype would still apply.  */
44472 char $ac_func ();
44473 /* The GNU C library defines this for functions which it implements
44474     to always fail with ENOSYS.  Some functions are actually named
44475     something starting with __ and the normal name is an alias.  */
44476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44477 choke me
44478 #else
44479 char (*f) () = $ac_func;
44480 #endif
44481 #ifdef __cplusplus
44482 }
44483 #endif
44484
44485 int
44486 main ()
44487 {
44488 return f != $ac_func;
44489   ;
44490   return 0;
44491 }
44492 _ACEOF
44493 rm -f conftest.$ac_objext conftest$ac_exeext
44494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44495   (eval $ac_link) 2>conftest.er1
44496   ac_status=$?
44497   grep -v '^ *+' conftest.er1 >conftest.err
44498   rm -f conftest.er1
44499   cat conftest.err >&5
44500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44501   (exit $ac_status); } &&
44502          { ac_try='test -z "$ac_c_werror_flag"
44503                          || test ! -s conftest.err'
44504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44505   (eval $ac_try) 2>&5
44506   ac_status=$?
44507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44508   (exit $ac_status); }; } &&
44509          { ac_try='test -s conftest$ac_exeext'
44510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44511   (eval $ac_try) 2>&5
44512   ac_status=$?
44513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44514   (exit $ac_status); }; }; then
44515   eval "$as_ac_var=yes"
44516 else
44517   echo "$as_me: failed program was:" >&5
44518 sed 's/^/| /' conftest.$ac_ext >&5
44519
44520 eval "$as_ac_var=no"
44521 fi
44522 rm -f conftest.err conftest.$ac_objext \
44523       conftest$ac_exeext conftest.$ac_ext
44524 fi
44525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44527 if test `eval echo '${'$as_ac_var'}'` = yes; then
44528   cat >>confdefs.h <<_ACEOF
44529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44530 _ACEOF
44531
44532 fi
44533 done
44534
44535
44536 ice_have_socket=no
44537
44538 for ac_func in socket
44539 do
44540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44541 echo "$as_me:$LINENO: checking for $ac_func" >&5
44542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44543 if eval "test \"\${$as_ac_var+set}\" = set"; then
44544   echo $ECHO_N "(cached) $ECHO_C" >&6
44545 else
44546   cat >conftest.$ac_ext <<_ACEOF
44547 /* confdefs.h.  */
44548 _ACEOF
44549 cat confdefs.h >>conftest.$ac_ext
44550 cat >>conftest.$ac_ext <<_ACEOF
44551 /* end confdefs.h.  */
44552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44554 #define $ac_func innocuous_$ac_func
44555
44556 /* System header to define __stub macros and hopefully few prototypes,
44557     which can conflict with char $ac_func (); below.
44558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44559     <limits.h> exists even on freestanding compilers.  */
44560
44561 #ifdef __STDC__
44562 # include <limits.h>
44563 #else
44564 # include <assert.h>
44565 #endif
44566
44567 #undef $ac_func
44568
44569 /* Override any gcc2 internal prototype to avoid an error.  */
44570 #ifdef __cplusplus
44571 extern "C"
44572 {
44573 #endif
44574 /* We use char because int might match the return type of a gcc2
44575    builtin and then its argument prototype would still apply.  */
44576 char $ac_func ();
44577 /* The GNU C library defines this for functions which it implements
44578     to always fail with ENOSYS.  Some functions are actually named
44579     something starting with __ and the normal name is an alias.  */
44580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44581 choke me
44582 #else
44583 char (*f) () = $ac_func;
44584 #endif
44585 #ifdef __cplusplus
44586 }
44587 #endif
44588
44589 int
44590 main ()
44591 {
44592 return f != $ac_func;
44593   ;
44594   return 0;
44595 }
44596 _ACEOF
44597 rm -f conftest.$ac_objext conftest$ac_exeext
44598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44599   (eval $ac_link) 2>conftest.er1
44600   ac_status=$?
44601   grep -v '^ *+' conftest.er1 >conftest.err
44602   rm -f conftest.er1
44603   cat conftest.err >&5
44604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44605   (exit $ac_status); } &&
44606          { ac_try='test -z "$ac_c_werror_flag"
44607                          || test ! -s conftest.err'
44608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44609   (eval $ac_try) 2>&5
44610   ac_status=$?
44611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44612   (exit $ac_status); }; } &&
44613          { ac_try='test -s conftest$ac_exeext'
44614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44615   (eval $ac_try) 2>&5
44616   ac_status=$?
44617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44618   (exit $ac_status); }; }; then
44619   eval "$as_ac_var=yes"
44620 else
44621   echo "$as_me: failed program was:" >&5
44622 sed 's/^/| /' conftest.$ac_ext >&5
44623
44624 eval "$as_ac_var=no"
44625 fi
44626 rm -f conftest.err conftest.$ac_objext \
44627       conftest$ac_exeext conftest.$ac_ext
44628 fi
44629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44631 if test `eval echo '${'$as_ac_var'}'` = yes; then
44632   cat >>confdefs.h <<_ACEOF
44633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44634 _ACEOF
44635  ice_have_socket=yes
44636 fi
44637 done
44638
44639 if test "${ice_have_socket}" = yes; then
44640 echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
44641 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
44642 if test "${ice_cv_have_socket_decl+set}" = set; then
44643   echo $ECHO_N "(cached) $ECHO_C" >&6
44644 else
44645
44646 ice_cv_have_socket_decl=no
44647 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44648 ice_re_word='(^|[^a-zA-Z0-9_])'
44649 for header in sys/types.h sys/socket.h; do
44650 # Check for ordinary declaration
44651 cat >conftest.$ac_ext <<_ACEOF
44652 /* confdefs.h.  */
44653 _ACEOF
44654 cat confdefs.h >>conftest.$ac_ext
44655 cat >>conftest.$ac_ext <<_ACEOF
44656 /* end confdefs.h.  */
44657 #include <$header>
44658
44659 _ACEOF
44660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44661   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
44662   ice_cv_have_socket_decl=yes
44663 fi
44664 rm -f conftest*
44665
44666 if test "$ice_cv_have_socket_decl" = yes; then
44667         break
44668 fi
44669 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44670 cat >conftest.$ac_ext <<_ACEOF
44671 /* confdefs.h.  */
44672 _ACEOF
44673 cat confdefs.h >>conftest.$ac_ext
44674 cat >>conftest.$ac_ext <<_ACEOF
44675 /* end confdefs.h.  */
44676 #include <$header>
44677
44678 _ACEOF
44679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44680   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44681   ice_cv_have_socket_decl=yes
44682 fi
44683 rm -f conftest*
44684
44685 if test "$ice_cv_have_socket_decl" = yes; then
44686         break
44687 fi
44688 done
44689
44690 fi
44691
44692 echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
44693 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6
44694 if test "$ice_cv_have_socket_decl" = yes; then
44695
44696 cat >>confdefs.h <<_ACEOF
44697 #define HAVE_SOCKET_DECL 1
44698 _ACEOF
44699
44700 fi
44701 fi
44702
44703
44704 ice_have_socketpair=no
44705
44706 for ac_func in socketpair
44707 do
44708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44709 echo "$as_me:$LINENO: checking for $ac_func" >&5
44710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44711 if eval "test \"\${$as_ac_var+set}\" = set"; then
44712   echo $ECHO_N "(cached) $ECHO_C" >&6
44713 else
44714   cat >conftest.$ac_ext <<_ACEOF
44715 /* confdefs.h.  */
44716 _ACEOF
44717 cat confdefs.h >>conftest.$ac_ext
44718 cat >>conftest.$ac_ext <<_ACEOF
44719 /* end confdefs.h.  */
44720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44721    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44722 #define $ac_func innocuous_$ac_func
44723
44724 /* System header to define __stub macros and hopefully few prototypes,
44725     which can conflict with char $ac_func (); below.
44726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44727     <limits.h> exists even on freestanding compilers.  */
44728
44729 #ifdef __STDC__
44730 # include <limits.h>
44731 #else
44732 # include <assert.h>
44733 #endif
44734
44735 #undef $ac_func
44736
44737 /* Override any gcc2 internal prototype to avoid an error.  */
44738 #ifdef __cplusplus
44739 extern "C"
44740 {
44741 #endif
44742 /* We use char because int might match the return type of a gcc2
44743    builtin and then its argument prototype would still apply.  */
44744 char $ac_func ();
44745 /* The GNU C library defines this for functions which it implements
44746     to always fail with ENOSYS.  Some functions are actually named
44747     something starting with __ and the normal name is an alias.  */
44748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44749 choke me
44750 #else
44751 char (*f) () = $ac_func;
44752 #endif
44753 #ifdef __cplusplus
44754 }
44755 #endif
44756
44757 int
44758 main ()
44759 {
44760 return f != $ac_func;
44761   ;
44762   return 0;
44763 }
44764 _ACEOF
44765 rm -f conftest.$ac_objext conftest$ac_exeext
44766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44767   (eval $ac_link) 2>conftest.er1
44768   ac_status=$?
44769   grep -v '^ *+' conftest.er1 >conftest.err
44770   rm -f conftest.er1
44771   cat conftest.err >&5
44772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44773   (exit $ac_status); } &&
44774          { ac_try='test -z "$ac_c_werror_flag"
44775                          || test ! -s conftest.err'
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); }; } &&
44781          { ac_try='test -s conftest$ac_exeext'
44782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44783   (eval $ac_try) 2>&5
44784   ac_status=$?
44785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44786   (exit $ac_status); }; }; then
44787   eval "$as_ac_var=yes"
44788 else
44789   echo "$as_me: failed program was:" >&5
44790 sed 's/^/| /' conftest.$ac_ext >&5
44791
44792 eval "$as_ac_var=no"
44793 fi
44794 rm -f conftest.err conftest.$ac_objext \
44795       conftest$ac_exeext conftest.$ac_ext
44796 fi
44797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44798 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44799 if test `eval echo '${'$as_ac_var'}'` = yes; then
44800   cat >>confdefs.h <<_ACEOF
44801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44802 _ACEOF
44803  ice_have_socketpair=yes
44804 fi
44805 done
44806
44807 if test "${ice_have_socketpair}" = yes; then
44808 echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
44809 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
44810 if test "${ice_cv_have_socketpair_decl+set}" = set; then
44811   echo $ECHO_N "(cached) $ECHO_C" >&6
44812 else
44813
44814 ice_cv_have_socketpair_decl=no
44815 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44816 ice_re_word='(^|[^a-zA-Z0-9_])'
44817 for header in sys/types.h sys/socket.h; do
44818 # Check for ordinary declaration
44819 cat >conftest.$ac_ext <<_ACEOF
44820 /* confdefs.h.  */
44821 _ACEOF
44822 cat confdefs.h >>conftest.$ac_ext
44823 cat >>conftest.$ac_ext <<_ACEOF
44824 /* end confdefs.h.  */
44825 #include <$header>
44826
44827 _ACEOF
44828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44829   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
44830   ice_cv_have_socketpair_decl=yes
44831 fi
44832 rm -f conftest*
44833
44834 if test "$ice_cv_have_socketpair_decl" = yes; then
44835         break
44836 fi
44837 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44838 cat >conftest.$ac_ext <<_ACEOF
44839 /* confdefs.h.  */
44840 _ACEOF
44841 cat confdefs.h >>conftest.$ac_ext
44842 cat >>conftest.$ac_ext <<_ACEOF
44843 /* end confdefs.h.  */
44844 #include <$header>
44845
44846 _ACEOF
44847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44848   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44849   ice_cv_have_socketpair_decl=yes
44850 fi
44851 rm -f conftest*
44852
44853 if test "$ice_cv_have_socketpair_decl" = yes; then
44854         break
44855 fi
44856 done
44857
44858 fi
44859
44860 echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
44861 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6
44862 if test "$ice_cv_have_socketpair_decl" = yes; then
44863
44864 cat >>confdefs.h <<_ACEOF
44865 #define HAVE_SOCKETPAIR_DECL 1
44866 _ACEOF
44867
44868 fi
44869 fi
44870
44871
44872 ice_have_sscanf=no
44873
44874 for ac_func in sscanf
44875 do
44876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44877 echo "$as_me:$LINENO: checking for $ac_func" >&5
44878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44879 if eval "test \"\${$as_ac_var+set}\" = set"; then
44880   echo $ECHO_N "(cached) $ECHO_C" >&6
44881 else
44882   cat >conftest.$ac_ext <<_ACEOF
44883 /* confdefs.h.  */
44884 _ACEOF
44885 cat confdefs.h >>conftest.$ac_ext
44886 cat >>conftest.$ac_ext <<_ACEOF
44887 /* end confdefs.h.  */
44888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44890 #define $ac_func innocuous_$ac_func
44891
44892 /* System header to define __stub macros and hopefully few prototypes,
44893     which can conflict with char $ac_func (); below.
44894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44895     <limits.h> exists even on freestanding compilers.  */
44896
44897 #ifdef __STDC__
44898 # include <limits.h>
44899 #else
44900 # include <assert.h>
44901 #endif
44902
44903 #undef $ac_func
44904
44905 /* Override any gcc2 internal prototype to avoid an error.  */
44906 #ifdef __cplusplus
44907 extern "C"
44908 {
44909 #endif
44910 /* We use char because int might match the return type of a gcc2
44911    builtin and then its argument prototype would still apply.  */
44912 char $ac_func ();
44913 /* The GNU C library defines this for functions which it implements
44914     to always fail with ENOSYS.  Some functions are actually named
44915     something starting with __ and the normal name is an alias.  */
44916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44917 choke me
44918 #else
44919 char (*f) () = $ac_func;
44920 #endif
44921 #ifdef __cplusplus
44922 }
44923 #endif
44924
44925 int
44926 main ()
44927 {
44928 return f != $ac_func;
44929   ;
44930   return 0;
44931 }
44932 _ACEOF
44933 rm -f conftest.$ac_objext conftest$ac_exeext
44934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44935   (eval $ac_link) 2>conftest.er1
44936   ac_status=$?
44937   grep -v '^ *+' conftest.er1 >conftest.err
44938   rm -f conftest.er1
44939   cat conftest.err >&5
44940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44941   (exit $ac_status); } &&
44942          { ac_try='test -z "$ac_c_werror_flag"
44943                          || test ! -s conftest.err'
44944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44945   (eval $ac_try) 2>&5
44946   ac_status=$?
44947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44948   (exit $ac_status); }; } &&
44949          { ac_try='test -s conftest$ac_exeext'
44950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44951   (eval $ac_try) 2>&5
44952   ac_status=$?
44953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44954   (exit $ac_status); }; }; then
44955   eval "$as_ac_var=yes"
44956 else
44957   echo "$as_me: failed program was:" >&5
44958 sed 's/^/| /' conftest.$ac_ext >&5
44959
44960 eval "$as_ac_var=no"
44961 fi
44962 rm -f conftest.err conftest.$ac_objext \
44963       conftest$ac_exeext conftest.$ac_ext
44964 fi
44965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44967 if test `eval echo '${'$as_ac_var'}'` = yes; then
44968   cat >>confdefs.h <<_ACEOF
44969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44970 _ACEOF
44971  ice_have_sscanf=yes
44972 fi
44973 done
44974
44975 if test "${ice_have_sscanf}" = yes; then
44976 echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
44977 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6
44978 if test "${ice_cv_have_sscanf_decl+set}" = set; then
44979   echo $ECHO_N "(cached) $ECHO_C" >&6
44980 else
44981
44982 ice_cv_have_sscanf_decl=no
44983 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44984 ice_re_word='(^|[^a-zA-Z0-9_])'
44985 for header in stdio.h; do
44986 # Check for ordinary declaration
44987 cat >conftest.$ac_ext <<_ACEOF
44988 /* confdefs.h.  */
44989 _ACEOF
44990 cat confdefs.h >>conftest.$ac_ext
44991 cat >>conftest.$ac_ext <<_ACEOF
44992 /* end confdefs.h.  */
44993 #include <$header>
44994
44995 _ACEOF
44996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44997   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
44998   ice_cv_have_sscanf_decl=yes
44999 fi
45000 rm -f conftest*
45001
45002 if test "$ice_cv_have_sscanf_decl" = yes; then
45003         break
45004 fi
45005 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45006 cat >conftest.$ac_ext <<_ACEOF
45007 /* confdefs.h.  */
45008 _ACEOF
45009 cat confdefs.h >>conftest.$ac_ext
45010 cat >>conftest.$ac_ext <<_ACEOF
45011 /* end confdefs.h.  */
45012 #include <$header>
45013
45014 _ACEOF
45015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45016   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45017   ice_cv_have_sscanf_decl=yes
45018 fi
45019 rm -f conftest*
45020
45021 if test "$ice_cv_have_sscanf_decl" = yes; then
45022         break
45023 fi
45024 done
45025
45026 fi
45027
45028 echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
45029 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6
45030 if test "$ice_cv_have_sscanf_decl" = yes; then
45031
45032 cat >>confdefs.h <<_ACEOF
45033 #define HAVE_SSCANF_DECL 1
45034 _ACEOF
45035
45036 fi
45037 fi
45038
45039
45040
45041 for ac_func in statfs statvfs
45042 do
45043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45044 echo "$as_me:$LINENO: checking for $ac_func" >&5
45045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45046 if eval "test \"\${$as_ac_var+set}\" = set"; then
45047   echo $ECHO_N "(cached) $ECHO_C" >&6
45048 else
45049   cat >conftest.$ac_ext <<_ACEOF
45050 /* confdefs.h.  */
45051 _ACEOF
45052 cat confdefs.h >>conftest.$ac_ext
45053 cat >>conftest.$ac_ext <<_ACEOF
45054 /* end confdefs.h.  */
45055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45057 #define $ac_func innocuous_$ac_func
45058
45059 /* System header to define __stub macros and hopefully few prototypes,
45060     which can conflict with char $ac_func (); below.
45061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45062     <limits.h> exists even on freestanding compilers.  */
45063
45064 #ifdef __STDC__
45065 # include <limits.h>
45066 #else
45067 # include <assert.h>
45068 #endif
45069
45070 #undef $ac_func
45071
45072 /* Override any gcc2 internal prototype to avoid an error.  */
45073 #ifdef __cplusplus
45074 extern "C"
45075 {
45076 #endif
45077 /* We use char because int might match the return type of a gcc2
45078    builtin and then its argument prototype would still apply.  */
45079 char $ac_func ();
45080 /* The GNU C library defines this for functions which it implements
45081     to always fail with ENOSYS.  Some functions are actually named
45082     something starting with __ and the normal name is an alias.  */
45083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45084 choke me
45085 #else
45086 char (*f) () = $ac_func;
45087 #endif
45088 #ifdef __cplusplus
45089 }
45090 #endif
45091
45092 int
45093 main ()
45094 {
45095 return f != $ac_func;
45096   ;
45097   return 0;
45098 }
45099 _ACEOF
45100 rm -f conftest.$ac_objext conftest$ac_exeext
45101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45102   (eval $ac_link) 2>conftest.er1
45103   ac_status=$?
45104   grep -v '^ *+' conftest.er1 >conftest.err
45105   rm -f conftest.er1
45106   cat conftest.err >&5
45107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45108   (exit $ac_status); } &&
45109          { ac_try='test -z "$ac_c_werror_flag"
45110                          || test ! -s conftest.err'
45111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45112   (eval $ac_try) 2>&5
45113   ac_status=$?
45114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45115   (exit $ac_status); }; } &&
45116          { ac_try='test -s conftest$ac_exeext'
45117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45118   (eval $ac_try) 2>&5
45119   ac_status=$?
45120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45121   (exit $ac_status); }; }; then
45122   eval "$as_ac_var=yes"
45123 else
45124   echo "$as_me: failed program was:" >&5
45125 sed 's/^/| /' conftest.$ac_ext >&5
45126
45127 eval "$as_ac_var=no"
45128 fi
45129 rm -f conftest.err conftest.$ac_objext \
45130       conftest$ac_exeext conftest.$ac_ext
45131 fi
45132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45134 if test `eval echo '${'$as_ac_var'}'` = yes; then
45135   cat >>confdefs.h <<_ACEOF
45136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45137 _ACEOF
45138
45139 fi
45140 done
45141
45142
45143 for ac_func in strerror
45144 do
45145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45146 echo "$as_me:$LINENO: checking for $ac_func" >&5
45147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45148 if eval "test \"\${$as_ac_var+set}\" = set"; then
45149   echo $ECHO_N "(cached) $ECHO_C" >&6
45150 else
45151   cat >conftest.$ac_ext <<_ACEOF
45152 /* confdefs.h.  */
45153 _ACEOF
45154 cat confdefs.h >>conftest.$ac_ext
45155 cat >>conftest.$ac_ext <<_ACEOF
45156 /* end confdefs.h.  */
45157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45159 #define $ac_func innocuous_$ac_func
45160
45161 /* System header to define __stub macros and hopefully few prototypes,
45162     which can conflict with char $ac_func (); below.
45163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45164     <limits.h> exists even on freestanding compilers.  */
45165
45166 #ifdef __STDC__
45167 # include <limits.h>
45168 #else
45169 # include <assert.h>
45170 #endif
45171
45172 #undef $ac_func
45173
45174 /* Override any gcc2 internal prototype to avoid an error.  */
45175 #ifdef __cplusplus
45176 extern "C"
45177 {
45178 #endif
45179 /* We use char because int might match the return type of a gcc2
45180    builtin and then its argument prototype would still apply.  */
45181 char $ac_func ();
45182 /* The GNU C library defines this for functions which it implements
45183     to always fail with ENOSYS.  Some functions are actually named
45184     something starting with __ and the normal name is an alias.  */
45185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45186 choke me
45187 #else
45188 char (*f) () = $ac_func;
45189 #endif
45190 #ifdef __cplusplus
45191 }
45192 #endif
45193
45194 int
45195 main ()
45196 {
45197 return f != $ac_func;
45198   ;
45199   return 0;
45200 }
45201 _ACEOF
45202 rm -f conftest.$ac_objext conftest$ac_exeext
45203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45204   (eval $ac_link) 2>conftest.er1
45205   ac_status=$?
45206   grep -v '^ *+' conftest.er1 >conftest.err
45207   rm -f conftest.er1
45208   cat conftest.err >&5
45209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45210   (exit $ac_status); } &&
45211          { ac_try='test -z "$ac_c_werror_flag"
45212                          || test ! -s conftest.err'
45213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45214   (eval $ac_try) 2>&5
45215   ac_status=$?
45216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45217   (exit $ac_status); }; } &&
45218          { ac_try='test -s conftest$ac_exeext'
45219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45220   (eval $ac_try) 2>&5
45221   ac_status=$?
45222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45223   (exit $ac_status); }; }; then
45224   eval "$as_ac_var=yes"
45225 else
45226   echo "$as_me: failed program was:" >&5
45227 sed 's/^/| /' conftest.$ac_ext >&5
45228
45229 eval "$as_ac_var=no"
45230 fi
45231 rm -f conftest.err conftest.$ac_objext \
45232       conftest$ac_exeext conftest.$ac_ext
45233 fi
45234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45236 if test `eval echo '${'$as_ac_var'}'` = yes; then
45237   cat >>confdefs.h <<_ACEOF
45238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45239 _ACEOF
45240
45241 else
45242   case $LIBOBJS in
45243     "$ac_func.$ac_objext"   | \
45244   *" $ac_func.$ac_objext"   | \
45245     "$ac_func.$ac_objext "* | \
45246   *" $ac_func.$ac_objext "* ) ;;
45247   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
45248 esac
45249
45250 fi
45251 done
45252
45253
45254
45255 ice_have_strerror=no
45256
45257 for ac_func in strerror
45258 do
45259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45260 echo "$as_me:$LINENO: checking for $ac_func" >&5
45261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45262 if eval "test \"\${$as_ac_var+set}\" = set"; then
45263   echo $ECHO_N "(cached) $ECHO_C" >&6
45264 else
45265   cat >conftest.$ac_ext <<_ACEOF
45266 /* confdefs.h.  */
45267 _ACEOF
45268 cat confdefs.h >>conftest.$ac_ext
45269 cat >>conftest.$ac_ext <<_ACEOF
45270 /* end confdefs.h.  */
45271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45273 #define $ac_func innocuous_$ac_func
45274
45275 /* System header to define __stub macros and hopefully few prototypes,
45276     which can conflict with char $ac_func (); below.
45277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45278     <limits.h> exists even on freestanding compilers.  */
45279
45280 #ifdef __STDC__
45281 # include <limits.h>
45282 #else
45283 # include <assert.h>
45284 #endif
45285
45286 #undef $ac_func
45287
45288 /* Override any gcc2 internal prototype to avoid an error.  */
45289 #ifdef __cplusplus
45290 extern "C"
45291 {
45292 #endif
45293 /* We use char because int might match the return type of a gcc2
45294    builtin and then its argument prototype would still apply.  */
45295 char $ac_func ();
45296 /* The GNU C library defines this for functions which it implements
45297     to always fail with ENOSYS.  Some functions are actually named
45298     something starting with __ and the normal name is an alias.  */
45299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45300 choke me
45301 #else
45302 char (*f) () = $ac_func;
45303 #endif
45304 #ifdef __cplusplus
45305 }
45306 #endif
45307
45308 int
45309 main ()
45310 {
45311 return f != $ac_func;
45312   ;
45313   return 0;
45314 }
45315 _ACEOF
45316 rm -f conftest.$ac_objext conftest$ac_exeext
45317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45318   (eval $ac_link) 2>conftest.er1
45319   ac_status=$?
45320   grep -v '^ *+' conftest.er1 >conftest.err
45321   rm -f conftest.er1
45322   cat conftest.err >&5
45323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45324   (exit $ac_status); } &&
45325          { ac_try='test -z "$ac_c_werror_flag"
45326                          || test ! -s conftest.err'
45327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45328   (eval $ac_try) 2>&5
45329   ac_status=$?
45330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45331   (exit $ac_status); }; } &&
45332          { ac_try='test -s conftest$ac_exeext'
45333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45334   (eval $ac_try) 2>&5
45335   ac_status=$?
45336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45337   (exit $ac_status); }; }; then
45338   eval "$as_ac_var=yes"
45339 else
45340   echo "$as_me: failed program was:" >&5
45341 sed 's/^/| /' conftest.$ac_ext >&5
45342
45343 eval "$as_ac_var=no"
45344 fi
45345 rm -f conftest.err conftest.$ac_objext \
45346       conftest$ac_exeext conftest.$ac_ext
45347 fi
45348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45350 if test `eval echo '${'$as_ac_var'}'` = yes; then
45351   cat >>confdefs.h <<_ACEOF
45352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45353 _ACEOF
45354  ice_have_strerror=yes
45355 fi
45356 done
45357
45358 if test "${ice_have_strerror}" = yes; then
45359 echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
45360 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6
45361 if test "${ice_cv_have_strerror_decl+set}" = set; then
45362   echo $ECHO_N "(cached) $ECHO_C" >&6
45363 else
45364
45365 ice_cv_have_strerror_decl=no
45366 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45367 ice_re_word='(^|[^a-zA-Z0-9_])'
45368 for header in string.h strings.h; do
45369 # Check for ordinary declaration
45370 cat >conftest.$ac_ext <<_ACEOF
45371 /* confdefs.h.  */
45372 _ACEOF
45373 cat confdefs.h >>conftest.$ac_ext
45374 cat >>conftest.$ac_ext <<_ACEOF
45375 /* end confdefs.h.  */
45376 #include <$header>
45377
45378 _ACEOF
45379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45380   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
45381   ice_cv_have_strerror_decl=yes
45382 fi
45383 rm -f conftest*
45384
45385 if test "$ice_cv_have_strerror_decl" = yes; then
45386         break
45387 fi
45388 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45389 cat >conftest.$ac_ext <<_ACEOF
45390 /* confdefs.h.  */
45391 _ACEOF
45392 cat confdefs.h >>conftest.$ac_ext
45393 cat >>conftest.$ac_ext <<_ACEOF
45394 /* end confdefs.h.  */
45395 #include <$header>
45396
45397 _ACEOF
45398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45399   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45400   ice_cv_have_strerror_decl=yes
45401 fi
45402 rm -f conftest*
45403
45404 if test "$ice_cv_have_strerror_decl" = yes; then
45405         break
45406 fi
45407 done
45408
45409 fi
45410
45411 echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
45412 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6
45413 if test "$ice_cv_have_strerror_decl" = yes; then
45414
45415 cat >>confdefs.h <<_ACEOF
45416 #define HAVE_STRERROR_DECL 1
45417 _ACEOF
45418
45419 fi
45420 fi
45421
45422
45423 for ac_func in strftime
45424 do
45425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45426 echo "$as_me:$LINENO: checking for $ac_func" >&5
45427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45428 if eval "test \"\${$as_ac_var+set}\" = set"; then
45429   echo $ECHO_N "(cached) $ECHO_C" >&6
45430 else
45431   cat >conftest.$ac_ext <<_ACEOF
45432 /* confdefs.h.  */
45433 _ACEOF
45434 cat confdefs.h >>conftest.$ac_ext
45435 cat >>conftest.$ac_ext <<_ACEOF
45436 /* end confdefs.h.  */
45437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45439 #define $ac_func innocuous_$ac_func
45440
45441 /* System header to define __stub macros and hopefully few prototypes,
45442     which can conflict with char $ac_func (); below.
45443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45444     <limits.h> exists even on freestanding compilers.  */
45445
45446 #ifdef __STDC__
45447 # include <limits.h>
45448 #else
45449 # include <assert.h>
45450 #endif
45451
45452 #undef $ac_func
45453
45454 /* Override any gcc2 internal prototype to avoid an error.  */
45455 #ifdef __cplusplus
45456 extern "C"
45457 {
45458 #endif
45459 /* We use char because int might match the return type of a gcc2
45460    builtin and then its argument prototype would still apply.  */
45461 char $ac_func ();
45462 /* The GNU C library defines this for functions which it implements
45463     to always fail with ENOSYS.  Some functions are actually named
45464     something starting with __ and the normal name is an alias.  */
45465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45466 choke me
45467 #else
45468 char (*f) () = $ac_func;
45469 #endif
45470 #ifdef __cplusplus
45471 }
45472 #endif
45473
45474 int
45475 main ()
45476 {
45477 return f != $ac_func;
45478   ;
45479   return 0;
45480 }
45481 _ACEOF
45482 rm -f conftest.$ac_objext conftest$ac_exeext
45483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45484   (eval $ac_link) 2>conftest.er1
45485   ac_status=$?
45486   grep -v '^ *+' conftest.er1 >conftest.err
45487   rm -f conftest.er1
45488   cat conftest.err >&5
45489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45490   (exit $ac_status); } &&
45491          { ac_try='test -z "$ac_c_werror_flag"
45492                          || test ! -s conftest.err'
45493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45494   (eval $ac_try) 2>&5
45495   ac_status=$?
45496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45497   (exit $ac_status); }; } &&
45498          { ac_try='test -s conftest$ac_exeext'
45499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45500   (eval $ac_try) 2>&5
45501   ac_status=$?
45502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45503   (exit $ac_status); }; }; then
45504   eval "$as_ac_var=yes"
45505 else
45506   echo "$as_me: failed program was:" >&5
45507 sed 's/^/| /' conftest.$ac_ext >&5
45508
45509 eval "$as_ac_var=no"
45510 fi
45511 rm -f conftest.err conftest.$ac_objext \
45512       conftest$ac_exeext conftest.$ac_ext
45513 fi
45514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45516 if test `eval echo '${'$as_ac_var'}'` = yes; then
45517   cat >>confdefs.h <<_ACEOF
45518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45519 _ACEOF
45520
45521 else
45522   # strftime is in -lintl on SCO UNIX.
45523 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
45524 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
45525 if test "${ac_cv_lib_intl_strftime+set}" = set; then
45526   echo $ECHO_N "(cached) $ECHO_C" >&6
45527 else
45528   ac_check_lib_save_LIBS=$LIBS
45529 LIBS="-lintl  $LIBS"
45530 cat >conftest.$ac_ext <<_ACEOF
45531 /* confdefs.h.  */
45532 _ACEOF
45533 cat confdefs.h >>conftest.$ac_ext
45534 cat >>conftest.$ac_ext <<_ACEOF
45535 /* end confdefs.h.  */
45536
45537 /* Override any gcc2 internal prototype to avoid an error.  */
45538 #ifdef __cplusplus
45539 extern "C"
45540 #endif
45541 /* We use char because int might match the return type of a gcc2
45542    builtin and then its argument prototype would still apply.  */
45543 char strftime ();
45544 int
45545 main ()
45546 {
45547 strftime ();
45548   ;
45549   return 0;
45550 }
45551 _ACEOF
45552 rm -f conftest.$ac_objext conftest$ac_exeext
45553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45554   (eval $ac_link) 2>conftest.er1
45555   ac_status=$?
45556   grep -v '^ *+' conftest.er1 >conftest.err
45557   rm -f conftest.er1
45558   cat conftest.err >&5
45559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45560   (exit $ac_status); } &&
45561          { ac_try='test -z "$ac_c_werror_flag"
45562                          || test ! -s conftest.err'
45563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45564   (eval $ac_try) 2>&5
45565   ac_status=$?
45566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45567   (exit $ac_status); }; } &&
45568          { ac_try='test -s conftest$ac_exeext'
45569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45570   (eval $ac_try) 2>&5
45571   ac_status=$?
45572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45573   (exit $ac_status); }; }; then
45574   ac_cv_lib_intl_strftime=yes
45575 else
45576   echo "$as_me: failed program was:" >&5
45577 sed 's/^/| /' conftest.$ac_ext >&5
45578
45579 ac_cv_lib_intl_strftime=no
45580 fi
45581 rm -f conftest.err conftest.$ac_objext \
45582       conftest$ac_exeext conftest.$ac_ext
45583 LIBS=$ac_check_lib_save_LIBS
45584 fi
45585 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
45586 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
45587 if test $ac_cv_lib_intl_strftime = yes; then
45588   cat >>confdefs.h <<\_ACEOF
45589 #define HAVE_STRFTIME 1
45590 _ACEOF
45591
45592 LIBS="-lintl $LIBS"
45593 fi
45594
45595 fi
45596 done
45597
45598
45599 for ac_func in strftime
45600 do
45601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45602 echo "$as_me:$LINENO: checking for $ac_func" >&5
45603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45604 if eval "test \"\${$as_ac_var+set}\" = set"; then
45605   echo $ECHO_N "(cached) $ECHO_C" >&6
45606 else
45607   cat >conftest.$ac_ext <<_ACEOF
45608 /* confdefs.h.  */
45609 _ACEOF
45610 cat confdefs.h >>conftest.$ac_ext
45611 cat >>conftest.$ac_ext <<_ACEOF
45612 /* end confdefs.h.  */
45613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45614    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45615 #define $ac_func innocuous_$ac_func
45616
45617 /* System header to define __stub macros and hopefully few prototypes,
45618     which can conflict with char $ac_func (); below.
45619     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45620     <limits.h> exists even on freestanding compilers.  */
45621
45622 #ifdef __STDC__
45623 # include <limits.h>
45624 #else
45625 # include <assert.h>
45626 #endif
45627
45628 #undef $ac_func
45629
45630 /* Override any gcc2 internal prototype to avoid an error.  */
45631 #ifdef __cplusplus
45632 extern "C"
45633 {
45634 #endif
45635 /* We use char because int might match the return type of a gcc2
45636    builtin and then its argument prototype would still apply.  */
45637 char $ac_func ();
45638 /* The GNU C library defines this for functions which it implements
45639     to always fail with ENOSYS.  Some functions are actually named
45640     something starting with __ and the normal name is an alias.  */
45641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45642 choke me
45643 #else
45644 char (*f) () = $ac_func;
45645 #endif
45646 #ifdef __cplusplus
45647 }
45648 #endif
45649
45650 int
45651 main ()
45652 {
45653 return f != $ac_func;
45654   ;
45655   return 0;
45656 }
45657 _ACEOF
45658 rm -f conftest.$ac_objext conftest$ac_exeext
45659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45660   (eval $ac_link) 2>conftest.er1
45661   ac_status=$?
45662   grep -v '^ *+' conftest.er1 >conftest.err
45663   rm -f conftest.er1
45664   cat conftest.err >&5
45665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45666   (exit $ac_status); } &&
45667          { ac_try='test -z "$ac_c_werror_flag"
45668                          || test ! -s conftest.err'
45669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45670   (eval $ac_try) 2>&5
45671   ac_status=$?
45672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45673   (exit $ac_status); }; } &&
45674          { ac_try='test -s conftest$ac_exeext'
45675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45676   (eval $ac_try) 2>&5
45677   ac_status=$?
45678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45679   (exit $ac_status); }; }; then
45680   eval "$as_ac_var=yes"
45681 else
45682   echo "$as_me: failed program was:" >&5
45683 sed 's/^/| /' conftest.$ac_ext >&5
45684
45685 eval "$as_ac_var=no"
45686 fi
45687 rm -f conftest.err conftest.$ac_objext \
45688       conftest$ac_exeext conftest.$ac_ext
45689 fi
45690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45692 if test `eval echo '${'$as_ac_var'}'` = yes; then
45693   cat >>confdefs.h <<_ACEOF
45694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45695 _ACEOF
45696
45697 else
45698   case $LIBOBJS in
45699     "$ac_func.$ac_objext"   | \
45700   *" $ac_func.$ac_objext"   | \
45701     "$ac_func.$ac_objext "* | \
45702   *" $ac_func.$ac_objext "* ) ;;
45703   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
45704 esac
45705
45706 fi
45707 done
45708
45709
45710
45711 ice_have_strftime=no
45712
45713 for ac_func in strftime
45714 do
45715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45716 echo "$as_me:$LINENO: checking for $ac_func" >&5
45717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45718 if eval "test \"\${$as_ac_var+set}\" = set"; then
45719   echo $ECHO_N "(cached) $ECHO_C" >&6
45720 else
45721   cat >conftest.$ac_ext <<_ACEOF
45722 /* confdefs.h.  */
45723 _ACEOF
45724 cat confdefs.h >>conftest.$ac_ext
45725 cat >>conftest.$ac_ext <<_ACEOF
45726 /* end confdefs.h.  */
45727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45729 #define $ac_func innocuous_$ac_func
45730
45731 /* System header to define __stub macros and hopefully few prototypes,
45732     which can conflict with char $ac_func (); below.
45733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45734     <limits.h> exists even on freestanding compilers.  */
45735
45736 #ifdef __STDC__
45737 # include <limits.h>
45738 #else
45739 # include <assert.h>
45740 #endif
45741
45742 #undef $ac_func
45743
45744 /* Override any gcc2 internal prototype to avoid an error.  */
45745 #ifdef __cplusplus
45746 extern "C"
45747 {
45748 #endif
45749 /* We use char because int might match the return type of a gcc2
45750    builtin and then its argument prototype would still apply.  */
45751 char $ac_func ();
45752 /* The GNU C library defines this for functions which it implements
45753     to always fail with ENOSYS.  Some functions are actually named
45754     something starting with __ and the normal name is an alias.  */
45755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45756 choke me
45757 #else
45758 char (*f) () = $ac_func;
45759 #endif
45760 #ifdef __cplusplus
45761 }
45762 #endif
45763
45764 int
45765 main ()
45766 {
45767 return f != $ac_func;
45768   ;
45769   return 0;
45770 }
45771 _ACEOF
45772 rm -f conftest.$ac_objext conftest$ac_exeext
45773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45774   (eval $ac_link) 2>conftest.er1
45775   ac_status=$?
45776   grep -v '^ *+' conftest.er1 >conftest.err
45777   rm -f conftest.er1
45778   cat conftest.err >&5
45779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45780   (exit $ac_status); } &&
45781          { ac_try='test -z "$ac_c_werror_flag"
45782                          || test ! -s conftest.err'
45783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45784   (eval $ac_try) 2>&5
45785   ac_status=$?
45786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45787   (exit $ac_status); }; } &&
45788          { ac_try='test -s conftest$ac_exeext'
45789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45790   (eval $ac_try) 2>&5
45791   ac_status=$?
45792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45793   (exit $ac_status); }; }; then
45794   eval "$as_ac_var=yes"
45795 else
45796   echo "$as_me: failed program was:" >&5
45797 sed 's/^/| /' conftest.$ac_ext >&5
45798
45799 eval "$as_ac_var=no"
45800 fi
45801 rm -f conftest.err conftest.$ac_objext \
45802       conftest$ac_exeext conftest.$ac_ext
45803 fi
45804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45806 if test `eval echo '${'$as_ac_var'}'` = yes; then
45807   cat >>confdefs.h <<_ACEOF
45808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45809 _ACEOF
45810  ice_have_strftime=yes
45811 fi
45812 done
45813
45814 if test "${ice_have_strftime}" = yes; then
45815 echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
45816 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6
45817 if test "${ice_cv_have_strftime_decl+set}" = set; then
45818   echo $ECHO_N "(cached) $ECHO_C" >&6
45819 else
45820
45821 ice_cv_have_strftime_decl=no
45822 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45823 ice_re_word='(^|[^a-zA-Z0-9_])'
45824 for header in time.h sys/time.h; do
45825 # Check for ordinary declaration
45826 cat >conftest.$ac_ext <<_ACEOF
45827 /* confdefs.h.  */
45828 _ACEOF
45829 cat confdefs.h >>conftest.$ac_ext
45830 cat >>conftest.$ac_ext <<_ACEOF
45831 /* end confdefs.h.  */
45832 #include <$header>
45833
45834 _ACEOF
45835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45836   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
45837   ice_cv_have_strftime_decl=yes
45838 fi
45839 rm -f conftest*
45840
45841 if test "$ice_cv_have_strftime_decl" = yes; then
45842         break
45843 fi
45844 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45845 cat >conftest.$ac_ext <<_ACEOF
45846 /* confdefs.h.  */
45847 _ACEOF
45848 cat confdefs.h >>conftest.$ac_ext
45849 cat >>conftest.$ac_ext <<_ACEOF
45850 /* end confdefs.h.  */
45851 #include <$header>
45852
45853 _ACEOF
45854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45855   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45856   ice_cv_have_strftime_decl=yes
45857 fi
45858 rm -f conftest*
45859
45860 if test "$ice_cv_have_strftime_decl" = yes; then
45861         break
45862 fi
45863 done
45864
45865 fi
45866
45867 echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
45868 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6
45869 if test "$ice_cv_have_strftime_decl" = yes; then
45870
45871 cat >>confdefs.h <<_ACEOF
45872 #define HAVE_STRFTIME_DECL 1
45873 _ACEOF
45874
45875 fi
45876 fi
45877
45878
45879 for ac_func in strncasecmp
45880 do
45881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45882 echo "$as_me:$LINENO: checking for $ac_func" >&5
45883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45884 if eval "test \"\${$as_ac_var+set}\" = set"; then
45885   echo $ECHO_N "(cached) $ECHO_C" >&6
45886 else
45887   cat >conftest.$ac_ext <<_ACEOF
45888 /* confdefs.h.  */
45889 _ACEOF
45890 cat confdefs.h >>conftest.$ac_ext
45891 cat >>conftest.$ac_ext <<_ACEOF
45892 /* end confdefs.h.  */
45893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45895 #define $ac_func innocuous_$ac_func
45896
45897 /* System header to define __stub macros and hopefully few prototypes,
45898     which can conflict with char $ac_func (); below.
45899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45900     <limits.h> exists even on freestanding compilers.  */
45901
45902 #ifdef __STDC__
45903 # include <limits.h>
45904 #else
45905 # include <assert.h>
45906 #endif
45907
45908 #undef $ac_func
45909
45910 /* Override any gcc2 internal prototype to avoid an error.  */
45911 #ifdef __cplusplus
45912 extern "C"
45913 {
45914 #endif
45915 /* We use char because int might match the return type of a gcc2
45916    builtin and then its argument prototype would still apply.  */
45917 char $ac_func ();
45918 /* The GNU C library defines this for functions which it implements
45919     to always fail with ENOSYS.  Some functions are actually named
45920     something starting with __ and the normal name is an alias.  */
45921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45922 choke me
45923 #else
45924 char (*f) () = $ac_func;
45925 #endif
45926 #ifdef __cplusplus
45927 }
45928 #endif
45929
45930 int
45931 main ()
45932 {
45933 return f != $ac_func;
45934   ;
45935   return 0;
45936 }
45937 _ACEOF
45938 rm -f conftest.$ac_objext conftest$ac_exeext
45939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45940   (eval $ac_link) 2>conftest.er1
45941   ac_status=$?
45942   grep -v '^ *+' conftest.er1 >conftest.err
45943   rm -f conftest.er1
45944   cat conftest.err >&5
45945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45946   (exit $ac_status); } &&
45947          { ac_try='test -z "$ac_c_werror_flag"
45948                          || test ! -s conftest.err'
45949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45950   (eval $ac_try) 2>&5
45951   ac_status=$?
45952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45953   (exit $ac_status); }; } &&
45954          { ac_try='test -s conftest$ac_exeext'
45955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45956   (eval $ac_try) 2>&5
45957   ac_status=$?
45958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45959   (exit $ac_status); }; }; then
45960   eval "$as_ac_var=yes"
45961 else
45962   echo "$as_me: failed program was:" >&5
45963 sed 's/^/| /' conftest.$ac_ext >&5
45964
45965 eval "$as_ac_var=no"
45966 fi
45967 rm -f conftest.err conftest.$ac_objext \
45968       conftest$ac_exeext conftest.$ac_ext
45969 fi
45970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45972 if test `eval echo '${'$as_ac_var'}'` = yes; then
45973   cat >>confdefs.h <<_ACEOF
45974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45975 _ACEOF
45976
45977 else
45978   case $LIBOBJS in
45979     "$ac_func.$ac_objext"   | \
45980   *" $ac_func.$ac_objext"   | \
45981     "$ac_func.$ac_objext "* | \
45982   *" $ac_func.$ac_objext "* ) ;;
45983   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
45984 esac
45985
45986 fi
45987 done
45988
45989
45990
45991 ice_have_strncasecmp=no
45992
45993 for ac_func in strncasecmp
45994 do
45995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45996 echo "$as_me:$LINENO: checking for $ac_func" >&5
45997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45998 if eval "test \"\${$as_ac_var+set}\" = set"; then
45999   echo $ECHO_N "(cached) $ECHO_C" >&6
46000 else
46001   cat >conftest.$ac_ext <<_ACEOF
46002 /* confdefs.h.  */
46003 _ACEOF
46004 cat confdefs.h >>conftest.$ac_ext
46005 cat >>conftest.$ac_ext <<_ACEOF
46006 /* end confdefs.h.  */
46007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46009 #define $ac_func innocuous_$ac_func
46010
46011 /* System header to define __stub macros and hopefully few prototypes,
46012     which can conflict with char $ac_func (); below.
46013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46014     <limits.h> exists even on freestanding compilers.  */
46015
46016 #ifdef __STDC__
46017 # include <limits.h>
46018 #else
46019 # include <assert.h>
46020 #endif
46021
46022 #undef $ac_func
46023
46024 /* Override any gcc2 internal prototype to avoid an error.  */
46025 #ifdef __cplusplus
46026 extern "C"
46027 {
46028 #endif
46029 /* We use char because int might match the return type of a gcc2
46030    builtin and then its argument prototype would still apply.  */
46031 char $ac_func ();
46032 /* The GNU C library defines this for functions which it implements
46033     to always fail with ENOSYS.  Some functions are actually named
46034     something starting with __ and the normal name is an alias.  */
46035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46036 choke me
46037 #else
46038 char (*f) () = $ac_func;
46039 #endif
46040 #ifdef __cplusplus
46041 }
46042 #endif
46043
46044 int
46045 main ()
46046 {
46047 return f != $ac_func;
46048   ;
46049   return 0;
46050 }
46051 _ACEOF
46052 rm -f conftest.$ac_objext conftest$ac_exeext
46053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46054   (eval $ac_link) 2>conftest.er1
46055   ac_status=$?
46056   grep -v '^ *+' conftest.er1 >conftest.err
46057   rm -f conftest.er1
46058   cat conftest.err >&5
46059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46060   (exit $ac_status); } &&
46061          { ac_try='test -z "$ac_c_werror_flag"
46062                          || test ! -s conftest.err'
46063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46064   (eval $ac_try) 2>&5
46065   ac_status=$?
46066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46067   (exit $ac_status); }; } &&
46068          { ac_try='test -s conftest$ac_exeext'
46069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46070   (eval $ac_try) 2>&5
46071   ac_status=$?
46072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46073   (exit $ac_status); }; }; then
46074   eval "$as_ac_var=yes"
46075 else
46076   echo "$as_me: failed program was:" >&5
46077 sed 's/^/| /' conftest.$ac_ext >&5
46078
46079 eval "$as_ac_var=no"
46080 fi
46081 rm -f conftest.err conftest.$ac_objext \
46082       conftest$ac_exeext conftest.$ac_ext
46083 fi
46084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46086 if test `eval echo '${'$as_ac_var'}'` = yes; then
46087   cat >>confdefs.h <<_ACEOF
46088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46089 _ACEOF
46090  ice_have_strncasecmp=yes
46091 fi
46092 done
46093
46094 if test "${ice_have_strncasecmp}" = yes; then
46095 echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
46096 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6
46097 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
46098   echo $ECHO_N "(cached) $ECHO_C" >&6
46099 else
46100
46101 ice_cv_have_strncasecmp_decl=no
46102 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46103 ice_re_word='(^|[^a-zA-Z0-9_])'
46104 for header in string.h strings.h; do
46105 # Check for ordinary declaration
46106 cat >conftest.$ac_ext <<_ACEOF
46107 /* confdefs.h.  */
46108 _ACEOF
46109 cat confdefs.h >>conftest.$ac_ext
46110 cat >>conftest.$ac_ext <<_ACEOF
46111 /* end confdefs.h.  */
46112 #include <$header>
46113
46114 _ACEOF
46115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46116   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
46117   ice_cv_have_strncasecmp_decl=yes
46118 fi
46119 rm -f conftest*
46120
46121 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46122         break
46123 fi
46124 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46125 cat >conftest.$ac_ext <<_ACEOF
46126 /* confdefs.h.  */
46127 _ACEOF
46128 cat confdefs.h >>conftest.$ac_ext
46129 cat >>conftest.$ac_ext <<_ACEOF
46130 /* end confdefs.h.  */
46131 #include <$header>
46132
46133 _ACEOF
46134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46135   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46136   ice_cv_have_strncasecmp_decl=yes
46137 fi
46138 rm -f conftest*
46139
46140 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46141         break
46142 fi
46143 done
46144
46145 fi
46146
46147 echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
46148 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6
46149 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46150
46151 cat >>confdefs.h <<_ACEOF
46152 #define HAVE_STRNCASECMP_DECL 1
46153 _ACEOF
46154
46155 fi
46156 fi
46157
46158
46159 for ac_func in strstr
46160 do
46161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46162 echo "$as_me:$LINENO: checking for $ac_func" >&5
46163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46164 if eval "test \"\${$as_ac_var+set}\" = set"; then
46165   echo $ECHO_N "(cached) $ECHO_C" >&6
46166 else
46167   cat >conftest.$ac_ext <<_ACEOF
46168 /* confdefs.h.  */
46169 _ACEOF
46170 cat confdefs.h >>conftest.$ac_ext
46171 cat >>conftest.$ac_ext <<_ACEOF
46172 /* end confdefs.h.  */
46173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46175 #define $ac_func innocuous_$ac_func
46176
46177 /* System header to define __stub macros and hopefully few prototypes,
46178     which can conflict with char $ac_func (); below.
46179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46180     <limits.h> exists even on freestanding compilers.  */
46181
46182 #ifdef __STDC__
46183 # include <limits.h>
46184 #else
46185 # include <assert.h>
46186 #endif
46187
46188 #undef $ac_func
46189
46190 /* Override any gcc2 internal prototype to avoid an error.  */
46191 #ifdef __cplusplus
46192 extern "C"
46193 {
46194 #endif
46195 /* We use char because int might match the return type of a gcc2
46196    builtin and then its argument prototype would still apply.  */
46197 char $ac_func ();
46198 /* The GNU C library defines this for functions which it implements
46199     to always fail with ENOSYS.  Some functions are actually named
46200     something starting with __ and the normal name is an alias.  */
46201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46202 choke me
46203 #else
46204 char (*f) () = $ac_func;
46205 #endif
46206 #ifdef __cplusplus
46207 }
46208 #endif
46209
46210 int
46211 main ()
46212 {
46213 return f != $ac_func;
46214   ;
46215   return 0;
46216 }
46217 _ACEOF
46218 rm -f conftest.$ac_objext conftest$ac_exeext
46219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46220   (eval $ac_link) 2>conftest.er1
46221   ac_status=$?
46222   grep -v '^ *+' conftest.er1 >conftest.err
46223   rm -f conftest.er1
46224   cat conftest.err >&5
46225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46226   (exit $ac_status); } &&
46227          { ac_try='test -z "$ac_c_werror_flag"
46228                          || test ! -s conftest.err'
46229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46230   (eval $ac_try) 2>&5
46231   ac_status=$?
46232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46233   (exit $ac_status); }; } &&
46234          { ac_try='test -s conftest$ac_exeext'
46235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46236   (eval $ac_try) 2>&5
46237   ac_status=$?
46238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46239   (exit $ac_status); }; }; then
46240   eval "$as_ac_var=yes"
46241 else
46242   echo "$as_me: failed program was:" >&5
46243 sed 's/^/| /' conftest.$ac_ext >&5
46244
46245 eval "$as_ac_var=no"
46246 fi
46247 rm -f conftest.err conftest.$ac_objext \
46248       conftest$ac_exeext conftest.$ac_ext
46249 fi
46250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46252 if test `eval echo '${'$as_ac_var'}'` = yes; then
46253   cat >>confdefs.h <<_ACEOF
46254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46255 _ACEOF
46256
46257 else
46258   case $LIBOBJS in
46259     "$ac_func.$ac_objext"   | \
46260   *" $ac_func.$ac_objext"   | \
46261     "$ac_func.$ac_objext "* | \
46262   *" $ac_func.$ac_objext "* ) ;;
46263   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
46264 esac
46265
46266 fi
46267 done
46268
46269
46270
46271 ice_have_syslog=no
46272
46273 for ac_func in syslog
46274 do
46275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46276 echo "$as_me:$LINENO: checking for $ac_func" >&5
46277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46278 if eval "test \"\${$as_ac_var+set}\" = set"; then
46279   echo $ECHO_N "(cached) $ECHO_C" >&6
46280 else
46281   cat >conftest.$ac_ext <<_ACEOF
46282 /* confdefs.h.  */
46283 _ACEOF
46284 cat confdefs.h >>conftest.$ac_ext
46285 cat >>conftest.$ac_ext <<_ACEOF
46286 /* end confdefs.h.  */
46287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46288    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46289 #define $ac_func innocuous_$ac_func
46290
46291 /* System header to define __stub macros and hopefully few prototypes,
46292     which can conflict with char $ac_func (); below.
46293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46294     <limits.h> exists even on freestanding compilers.  */
46295
46296 #ifdef __STDC__
46297 # include <limits.h>
46298 #else
46299 # include <assert.h>
46300 #endif
46301
46302 #undef $ac_func
46303
46304 /* Override any gcc2 internal prototype to avoid an error.  */
46305 #ifdef __cplusplus
46306 extern "C"
46307 {
46308 #endif
46309 /* We use char because int might match the return type of a gcc2
46310    builtin and then its argument prototype would still apply.  */
46311 char $ac_func ();
46312 /* The GNU C library defines this for functions which it implements
46313     to always fail with ENOSYS.  Some functions are actually named
46314     something starting with __ and the normal name is an alias.  */
46315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46316 choke me
46317 #else
46318 char (*f) () = $ac_func;
46319 #endif
46320 #ifdef __cplusplus
46321 }
46322 #endif
46323
46324 int
46325 main ()
46326 {
46327 return f != $ac_func;
46328   ;
46329   return 0;
46330 }
46331 _ACEOF
46332 rm -f conftest.$ac_objext conftest$ac_exeext
46333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46334   (eval $ac_link) 2>conftest.er1
46335   ac_status=$?
46336   grep -v '^ *+' conftest.er1 >conftest.err
46337   rm -f conftest.er1
46338   cat conftest.err >&5
46339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46340   (exit $ac_status); } &&
46341          { ac_try='test -z "$ac_c_werror_flag"
46342                          || test ! -s conftest.err'
46343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46344   (eval $ac_try) 2>&5
46345   ac_status=$?
46346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46347   (exit $ac_status); }; } &&
46348          { ac_try='test -s conftest$ac_exeext'
46349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46350   (eval $ac_try) 2>&5
46351   ac_status=$?
46352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46353   (exit $ac_status); }; }; then
46354   eval "$as_ac_var=yes"
46355 else
46356   echo "$as_me: failed program was:" >&5
46357 sed 's/^/| /' conftest.$ac_ext >&5
46358
46359 eval "$as_ac_var=no"
46360 fi
46361 rm -f conftest.err conftest.$ac_objext \
46362       conftest$ac_exeext conftest.$ac_ext
46363 fi
46364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46366 if test `eval echo '${'$as_ac_var'}'` = yes; then
46367   cat >>confdefs.h <<_ACEOF
46368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46369 _ACEOF
46370  ice_have_syslog=yes
46371 fi
46372 done
46373
46374 if test "${ice_have_syslog}" = yes; then
46375 echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
46376 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6
46377 if test "${ice_cv_have_syslog_decl+set}" = set; then
46378   echo $ECHO_N "(cached) $ECHO_C" >&6
46379 else
46380
46381 ice_cv_have_syslog_decl=no
46382 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46383 ice_re_word='(^|[^a-zA-Z0-9_])'
46384 for header in syslog.h; do
46385 # Check for ordinary declaration
46386 cat >conftest.$ac_ext <<_ACEOF
46387 /* confdefs.h.  */
46388 _ACEOF
46389 cat confdefs.h >>conftest.$ac_ext
46390 cat >>conftest.$ac_ext <<_ACEOF
46391 /* end confdefs.h.  */
46392 #include <$header>
46393
46394 _ACEOF
46395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46396   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
46397   ice_cv_have_syslog_decl=yes
46398 fi
46399 rm -f conftest*
46400
46401 if test "$ice_cv_have_syslog_decl" = yes; then
46402         break
46403 fi
46404 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46405 cat >conftest.$ac_ext <<_ACEOF
46406 /* confdefs.h.  */
46407 _ACEOF
46408 cat confdefs.h >>conftest.$ac_ext
46409 cat >>conftest.$ac_ext <<_ACEOF
46410 /* end confdefs.h.  */
46411 #include <$header>
46412
46413 _ACEOF
46414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46415   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46416   ice_cv_have_syslog_decl=yes
46417 fi
46418 rm -f conftest*
46419
46420 if test "$ice_cv_have_syslog_decl" = yes; then
46421         break
46422 fi
46423 done
46424
46425 fi
46426
46427 echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
46428 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6
46429 if test "$ice_cv_have_syslog_decl" = yes; then
46430
46431 cat >>confdefs.h <<_ACEOF
46432 #define HAVE_SYSLOG_DECL 1
46433 _ACEOF
46434
46435 fi
46436 fi
46437
46438
46439 ice_have_system=no
46440
46441 for ac_func in system
46442 do
46443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46444 echo "$as_me:$LINENO: checking for $ac_func" >&5
46445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46446 if eval "test \"\${$as_ac_var+set}\" = set"; then
46447   echo $ECHO_N "(cached) $ECHO_C" >&6
46448 else
46449   cat >conftest.$ac_ext <<_ACEOF
46450 /* confdefs.h.  */
46451 _ACEOF
46452 cat confdefs.h >>conftest.$ac_ext
46453 cat >>conftest.$ac_ext <<_ACEOF
46454 /* end confdefs.h.  */
46455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46457 #define $ac_func innocuous_$ac_func
46458
46459 /* System header to define __stub macros and hopefully few prototypes,
46460     which can conflict with char $ac_func (); below.
46461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46462     <limits.h> exists even on freestanding compilers.  */
46463
46464 #ifdef __STDC__
46465 # include <limits.h>
46466 #else
46467 # include <assert.h>
46468 #endif
46469
46470 #undef $ac_func
46471
46472 /* Override any gcc2 internal prototype to avoid an error.  */
46473 #ifdef __cplusplus
46474 extern "C"
46475 {
46476 #endif
46477 /* We use char because int might match the return type of a gcc2
46478    builtin and then its argument prototype would still apply.  */
46479 char $ac_func ();
46480 /* The GNU C library defines this for functions which it implements
46481     to always fail with ENOSYS.  Some functions are actually named
46482     something starting with __ and the normal name is an alias.  */
46483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46484 choke me
46485 #else
46486 char (*f) () = $ac_func;
46487 #endif
46488 #ifdef __cplusplus
46489 }
46490 #endif
46491
46492 int
46493 main ()
46494 {
46495 return f != $ac_func;
46496   ;
46497   return 0;
46498 }
46499 _ACEOF
46500 rm -f conftest.$ac_objext conftest$ac_exeext
46501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46502   (eval $ac_link) 2>conftest.er1
46503   ac_status=$?
46504   grep -v '^ *+' conftest.er1 >conftest.err
46505   rm -f conftest.er1
46506   cat conftest.err >&5
46507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46508   (exit $ac_status); } &&
46509          { ac_try='test -z "$ac_c_werror_flag"
46510                          || test ! -s conftest.err'
46511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46512   (eval $ac_try) 2>&5
46513   ac_status=$?
46514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46515   (exit $ac_status); }; } &&
46516          { ac_try='test -s conftest$ac_exeext'
46517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46518   (eval $ac_try) 2>&5
46519   ac_status=$?
46520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46521   (exit $ac_status); }; }; then
46522   eval "$as_ac_var=yes"
46523 else
46524   echo "$as_me: failed program was:" >&5
46525 sed 's/^/| /' conftest.$ac_ext >&5
46526
46527 eval "$as_ac_var=no"
46528 fi
46529 rm -f conftest.err conftest.$ac_objext \
46530       conftest$ac_exeext conftest.$ac_ext
46531 fi
46532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46534 if test `eval echo '${'$as_ac_var'}'` = yes; then
46535   cat >>confdefs.h <<_ACEOF
46536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46537 _ACEOF
46538  ice_have_system=yes
46539 fi
46540 done
46541
46542 if test "${ice_have_system}" = yes; then
46543 echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
46544 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6
46545 if test "${ice_cv_have_system_decl+set}" = set; then
46546   echo $ECHO_N "(cached) $ECHO_C" >&6
46547 else
46548
46549 ice_cv_have_system_decl=no
46550 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46551 ice_re_word='(^|[^a-zA-Z0-9_])'
46552 for header in stdlib.h; do
46553 # Check for ordinary declaration
46554 cat >conftest.$ac_ext <<_ACEOF
46555 /* confdefs.h.  */
46556 _ACEOF
46557 cat confdefs.h >>conftest.$ac_ext
46558 cat >>conftest.$ac_ext <<_ACEOF
46559 /* end confdefs.h.  */
46560 #include <$header>
46561
46562 _ACEOF
46563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46564   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
46565   ice_cv_have_system_decl=yes
46566 fi
46567 rm -f conftest*
46568
46569 if test "$ice_cv_have_system_decl" = yes; then
46570         break
46571 fi
46572 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46573 cat >conftest.$ac_ext <<_ACEOF
46574 /* confdefs.h.  */
46575 _ACEOF
46576 cat confdefs.h >>conftest.$ac_ext
46577 cat >>conftest.$ac_ext <<_ACEOF
46578 /* end confdefs.h.  */
46579 #include <$header>
46580
46581 _ACEOF
46582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46583   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46584   ice_cv_have_system_decl=yes
46585 fi
46586 rm -f conftest*
46587
46588 if test "$ice_cv_have_system_decl" = yes; then
46589         break
46590 fi
46591 done
46592
46593 fi
46594
46595 echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
46596 echo "${ECHO_T}$ice_cv_have_system_decl" >&6
46597 if test "$ice_cv_have_system_decl" = yes; then
46598
46599 cat >>confdefs.h <<_ACEOF
46600 #define HAVE_SYSTEM_DECL 1
46601 _ACEOF
46602
46603 fi
46604 fi
46605
46606
46607 ice_have_time=no
46608
46609 for ac_func in time
46610 do
46611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46612 echo "$as_me:$LINENO: checking for $ac_func" >&5
46613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46614 if eval "test \"\${$as_ac_var+set}\" = set"; then
46615   echo $ECHO_N "(cached) $ECHO_C" >&6
46616 else
46617   cat >conftest.$ac_ext <<_ACEOF
46618 /* confdefs.h.  */
46619 _ACEOF
46620 cat confdefs.h >>conftest.$ac_ext
46621 cat >>conftest.$ac_ext <<_ACEOF
46622 /* end confdefs.h.  */
46623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46625 #define $ac_func innocuous_$ac_func
46626
46627 /* System header to define __stub macros and hopefully few prototypes,
46628     which can conflict with char $ac_func (); below.
46629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46630     <limits.h> exists even on freestanding compilers.  */
46631
46632 #ifdef __STDC__
46633 # include <limits.h>
46634 #else
46635 # include <assert.h>
46636 #endif
46637
46638 #undef $ac_func
46639
46640 /* Override any gcc2 internal prototype to avoid an error.  */
46641 #ifdef __cplusplus
46642 extern "C"
46643 {
46644 #endif
46645 /* We use char because int might match the return type of a gcc2
46646    builtin and then its argument prototype would still apply.  */
46647 char $ac_func ();
46648 /* The GNU C library defines this for functions which it implements
46649     to always fail with ENOSYS.  Some functions are actually named
46650     something starting with __ and the normal name is an alias.  */
46651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46652 choke me
46653 #else
46654 char (*f) () = $ac_func;
46655 #endif
46656 #ifdef __cplusplus
46657 }
46658 #endif
46659
46660 int
46661 main ()
46662 {
46663 return f != $ac_func;
46664   ;
46665   return 0;
46666 }
46667 _ACEOF
46668 rm -f conftest.$ac_objext conftest$ac_exeext
46669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46670   (eval $ac_link) 2>conftest.er1
46671   ac_status=$?
46672   grep -v '^ *+' conftest.er1 >conftest.err
46673   rm -f conftest.er1
46674   cat conftest.err >&5
46675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46676   (exit $ac_status); } &&
46677          { ac_try='test -z "$ac_c_werror_flag"
46678                          || test ! -s conftest.err'
46679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46680   (eval $ac_try) 2>&5
46681   ac_status=$?
46682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46683   (exit $ac_status); }; } &&
46684          { ac_try='test -s conftest$ac_exeext'
46685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46686   (eval $ac_try) 2>&5
46687   ac_status=$?
46688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46689   (exit $ac_status); }; }; then
46690   eval "$as_ac_var=yes"
46691 else
46692   echo "$as_me: failed program was:" >&5
46693 sed 's/^/| /' conftest.$ac_ext >&5
46694
46695 eval "$as_ac_var=no"
46696 fi
46697 rm -f conftest.err conftest.$ac_objext \
46698       conftest$ac_exeext conftest.$ac_ext
46699 fi
46700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46702 if test `eval echo '${'$as_ac_var'}'` = yes; then
46703   cat >>confdefs.h <<_ACEOF
46704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46705 _ACEOF
46706  ice_have_time=yes
46707 fi
46708 done
46709
46710 if test "${ice_have_time}" = yes; then
46711 echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
46712 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6
46713 if test "${ice_cv_have_time_decl+set}" = set; then
46714   echo $ECHO_N "(cached) $ECHO_C" >&6
46715 else
46716
46717 ice_cv_have_time_decl=no
46718 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46719 ice_re_word='(^|[^a-zA-Z0-9_])'
46720 for header in time.h sys/time.h; do
46721 # Check for ordinary declaration
46722 cat >conftest.$ac_ext <<_ACEOF
46723 /* confdefs.h.  */
46724 _ACEOF
46725 cat confdefs.h >>conftest.$ac_ext
46726 cat >>conftest.$ac_ext <<_ACEOF
46727 /* end confdefs.h.  */
46728 #include <$header>
46729
46730 _ACEOF
46731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46732   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
46733   ice_cv_have_time_decl=yes
46734 fi
46735 rm -f conftest*
46736
46737 if test "$ice_cv_have_time_decl" = yes; then
46738         break
46739 fi
46740 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46741 cat >conftest.$ac_ext <<_ACEOF
46742 /* confdefs.h.  */
46743 _ACEOF
46744 cat confdefs.h >>conftest.$ac_ext
46745 cat >>conftest.$ac_ext <<_ACEOF
46746 /* end confdefs.h.  */
46747 #include <$header>
46748
46749 _ACEOF
46750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46751   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46752   ice_cv_have_time_decl=yes
46753 fi
46754 rm -f conftest*
46755
46756 if test "$ice_cv_have_time_decl" = yes; then
46757         break
46758 fi
46759 done
46760
46761 fi
46762
46763 echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
46764 echo "${ECHO_T}$ice_cv_have_time_decl" >&6
46765 if test "$ice_cv_have_time_decl" = yes; then
46766
46767 cat >>confdefs.h <<_ACEOF
46768 #define HAVE_TIME_DECL 1
46769 _ACEOF
46770
46771 fi
46772 fi
46773
46774
46775 ice_have_tolower=no
46776
46777 for ac_func in tolower
46778 do
46779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46780 echo "$as_me:$LINENO: checking for $ac_func" >&5
46781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46782 if eval "test \"\${$as_ac_var+set}\" = set"; then
46783   echo $ECHO_N "(cached) $ECHO_C" >&6
46784 else
46785   cat >conftest.$ac_ext <<_ACEOF
46786 /* confdefs.h.  */
46787 _ACEOF
46788 cat confdefs.h >>conftest.$ac_ext
46789 cat >>conftest.$ac_ext <<_ACEOF
46790 /* end confdefs.h.  */
46791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46793 #define $ac_func innocuous_$ac_func
46794
46795 /* System header to define __stub macros and hopefully few prototypes,
46796     which can conflict with char $ac_func (); below.
46797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46798     <limits.h> exists even on freestanding compilers.  */
46799
46800 #ifdef __STDC__
46801 # include <limits.h>
46802 #else
46803 # include <assert.h>
46804 #endif
46805
46806 #undef $ac_func
46807
46808 /* Override any gcc2 internal prototype to avoid an error.  */
46809 #ifdef __cplusplus
46810 extern "C"
46811 {
46812 #endif
46813 /* We use char because int might match the return type of a gcc2
46814    builtin and then its argument prototype would still apply.  */
46815 char $ac_func ();
46816 /* The GNU C library defines this for functions which it implements
46817     to always fail with ENOSYS.  Some functions are actually named
46818     something starting with __ and the normal name is an alias.  */
46819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46820 choke me
46821 #else
46822 char (*f) () = $ac_func;
46823 #endif
46824 #ifdef __cplusplus
46825 }
46826 #endif
46827
46828 int
46829 main ()
46830 {
46831 return f != $ac_func;
46832   ;
46833   return 0;
46834 }
46835 _ACEOF
46836 rm -f conftest.$ac_objext conftest$ac_exeext
46837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46838   (eval $ac_link) 2>conftest.er1
46839   ac_status=$?
46840   grep -v '^ *+' conftest.er1 >conftest.err
46841   rm -f conftest.er1
46842   cat conftest.err >&5
46843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46844   (exit $ac_status); } &&
46845          { ac_try='test -z "$ac_c_werror_flag"
46846                          || test ! -s conftest.err'
46847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46848   (eval $ac_try) 2>&5
46849   ac_status=$?
46850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46851   (exit $ac_status); }; } &&
46852          { ac_try='test -s conftest$ac_exeext'
46853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46854   (eval $ac_try) 2>&5
46855   ac_status=$?
46856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46857   (exit $ac_status); }; }; then
46858   eval "$as_ac_var=yes"
46859 else
46860   echo "$as_me: failed program was:" >&5
46861 sed 's/^/| /' conftest.$ac_ext >&5
46862
46863 eval "$as_ac_var=no"
46864 fi
46865 rm -f conftest.err conftest.$ac_objext \
46866       conftest$ac_exeext conftest.$ac_ext
46867 fi
46868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46870 if test `eval echo '${'$as_ac_var'}'` = yes; then
46871   cat >>confdefs.h <<_ACEOF
46872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46873 _ACEOF
46874  ice_have_tolower=yes
46875 fi
46876 done
46877
46878 if test "${ice_have_tolower}" = yes; then
46879 echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
46880 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6
46881 if test "${ice_cv_have_tolower_decl+set}" = set; then
46882   echo $ECHO_N "(cached) $ECHO_C" >&6
46883 else
46884
46885 ice_cv_have_tolower_decl=no
46886 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46887 ice_re_word='(^|[^a-zA-Z0-9_])'
46888 for header in ctype.h; do
46889 # Check for ordinary declaration
46890 cat >conftest.$ac_ext <<_ACEOF
46891 /* confdefs.h.  */
46892 _ACEOF
46893 cat confdefs.h >>conftest.$ac_ext
46894 cat >>conftest.$ac_ext <<_ACEOF
46895 /* end confdefs.h.  */
46896 #include <$header>
46897
46898 _ACEOF
46899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46900   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
46901   ice_cv_have_tolower_decl=yes
46902 fi
46903 rm -f conftest*
46904
46905 if test "$ice_cv_have_tolower_decl" = yes; then
46906         break
46907 fi
46908 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46909 cat >conftest.$ac_ext <<_ACEOF
46910 /* confdefs.h.  */
46911 _ACEOF
46912 cat confdefs.h >>conftest.$ac_ext
46913 cat >>conftest.$ac_ext <<_ACEOF
46914 /* end confdefs.h.  */
46915 #include <$header>
46916
46917 _ACEOF
46918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46919   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46920   ice_cv_have_tolower_decl=yes
46921 fi
46922 rm -f conftest*
46923
46924 if test "$ice_cv_have_tolower_decl" = yes; then
46925         break
46926 fi
46927 done
46928
46929 fi
46930
46931 echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
46932 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6
46933 if test "$ice_cv_have_tolower_decl" = yes; then
46934
46935 cat >>confdefs.h <<_ACEOF
46936 #define HAVE_TOLOWER_DECL 1
46937 _ACEOF
46938
46939 fi
46940 fi
46941
46942
46943 ice_have_toupper=no
46944
46945 for ac_func in toupper
46946 do
46947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46948 echo "$as_me:$LINENO: checking for $ac_func" >&5
46949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46950 if eval "test \"\${$as_ac_var+set}\" = set"; then
46951   echo $ECHO_N "(cached) $ECHO_C" >&6
46952 else
46953   cat >conftest.$ac_ext <<_ACEOF
46954 /* confdefs.h.  */
46955 _ACEOF
46956 cat confdefs.h >>conftest.$ac_ext
46957 cat >>conftest.$ac_ext <<_ACEOF
46958 /* end confdefs.h.  */
46959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46961 #define $ac_func innocuous_$ac_func
46962
46963 /* System header to define __stub macros and hopefully few prototypes,
46964     which can conflict with char $ac_func (); below.
46965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46966     <limits.h> exists even on freestanding compilers.  */
46967
46968 #ifdef __STDC__
46969 # include <limits.h>
46970 #else
46971 # include <assert.h>
46972 #endif
46973
46974 #undef $ac_func
46975
46976 /* Override any gcc2 internal prototype to avoid an error.  */
46977 #ifdef __cplusplus
46978 extern "C"
46979 {
46980 #endif
46981 /* We use char because int might match the return type of a gcc2
46982    builtin and then its argument prototype would still apply.  */
46983 char $ac_func ();
46984 /* The GNU C library defines this for functions which it implements
46985     to always fail with ENOSYS.  Some functions are actually named
46986     something starting with __ and the normal name is an alias.  */
46987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46988 choke me
46989 #else
46990 char (*f) () = $ac_func;
46991 #endif
46992 #ifdef __cplusplus
46993 }
46994 #endif
46995
46996 int
46997 main ()
46998 {
46999 return f != $ac_func;
47000   ;
47001   return 0;
47002 }
47003 _ACEOF
47004 rm -f conftest.$ac_objext conftest$ac_exeext
47005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47006   (eval $ac_link) 2>conftest.er1
47007   ac_status=$?
47008   grep -v '^ *+' conftest.er1 >conftest.err
47009   rm -f conftest.er1
47010   cat conftest.err >&5
47011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47012   (exit $ac_status); } &&
47013          { ac_try='test -z "$ac_c_werror_flag"
47014                          || test ! -s conftest.err'
47015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47016   (eval $ac_try) 2>&5
47017   ac_status=$?
47018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47019   (exit $ac_status); }; } &&
47020          { ac_try='test -s conftest$ac_exeext'
47021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47022   (eval $ac_try) 2>&5
47023   ac_status=$?
47024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47025   (exit $ac_status); }; }; then
47026   eval "$as_ac_var=yes"
47027 else
47028   echo "$as_me: failed program was:" >&5
47029 sed 's/^/| /' conftest.$ac_ext >&5
47030
47031 eval "$as_ac_var=no"
47032 fi
47033 rm -f conftest.err conftest.$ac_objext \
47034       conftest$ac_exeext conftest.$ac_ext
47035 fi
47036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47038 if test `eval echo '${'$as_ac_var'}'` = yes; then
47039   cat >>confdefs.h <<_ACEOF
47040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47041 _ACEOF
47042  ice_have_toupper=yes
47043 fi
47044 done
47045
47046 if test "${ice_have_toupper}" = yes; then
47047 echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
47048 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6
47049 if test "${ice_cv_have_toupper_decl+set}" = set; then
47050   echo $ECHO_N "(cached) $ECHO_C" >&6
47051 else
47052
47053 ice_cv_have_toupper_decl=no
47054 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47055 ice_re_word='(^|[^a-zA-Z0-9_])'
47056 for header in ctype.h; do
47057 # Check for ordinary declaration
47058 cat >conftest.$ac_ext <<_ACEOF
47059 /* confdefs.h.  */
47060 _ACEOF
47061 cat confdefs.h >>conftest.$ac_ext
47062 cat >>conftest.$ac_ext <<_ACEOF
47063 /* end confdefs.h.  */
47064 #include <$header>
47065
47066 _ACEOF
47067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47068   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
47069   ice_cv_have_toupper_decl=yes
47070 fi
47071 rm -f conftest*
47072
47073 if test "$ice_cv_have_toupper_decl" = yes; then
47074         break
47075 fi
47076 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47077 cat >conftest.$ac_ext <<_ACEOF
47078 /* confdefs.h.  */
47079 _ACEOF
47080 cat confdefs.h >>conftest.$ac_ext
47081 cat >>conftest.$ac_ext <<_ACEOF
47082 /* end confdefs.h.  */
47083 #include <$header>
47084
47085 _ACEOF
47086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47087   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47088   ice_cv_have_toupper_decl=yes
47089 fi
47090 rm -f conftest*
47091
47092 if test "$ice_cv_have_toupper_decl" = yes; then
47093         break
47094 fi
47095 done
47096
47097 fi
47098
47099 echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
47100 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6
47101 if test "$ice_cv_have_toupper_decl" = yes; then
47102
47103 cat >>confdefs.h <<_ACEOF
47104 #define HAVE_TOUPPER_DECL 1
47105 _ACEOF
47106
47107 fi
47108 fi
47109
47110
47111 ice_have_ungetc=no
47112
47113 for ac_func in ungetc
47114 do
47115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47116 echo "$as_me:$LINENO: checking for $ac_func" >&5
47117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47118 if eval "test \"\${$as_ac_var+set}\" = set"; then
47119   echo $ECHO_N "(cached) $ECHO_C" >&6
47120 else
47121   cat >conftest.$ac_ext <<_ACEOF
47122 /* confdefs.h.  */
47123 _ACEOF
47124 cat confdefs.h >>conftest.$ac_ext
47125 cat >>conftest.$ac_ext <<_ACEOF
47126 /* end confdefs.h.  */
47127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47129 #define $ac_func innocuous_$ac_func
47130
47131 /* System header to define __stub macros and hopefully few prototypes,
47132     which can conflict with char $ac_func (); below.
47133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47134     <limits.h> exists even on freestanding compilers.  */
47135
47136 #ifdef __STDC__
47137 # include <limits.h>
47138 #else
47139 # include <assert.h>
47140 #endif
47141
47142 #undef $ac_func
47143
47144 /* Override any gcc2 internal prototype to avoid an error.  */
47145 #ifdef __cplusplus
47146 extern "C"
47147 {
47148 #endif
47149 /* We use char because int might match the return type of a gcc2
47150    builtin and then its argument prototype would still apply.  */
47151 char $ac_func ();
47152 /* The GNU C library defines this for functions which it implements
47153     to always fail with ENOSYS.  Some functions are actually named
47154     something starting with __ and the normal name is an alias.  */
47155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47156 choke me
47157 #else
47158 char (*f) () = $ac_func;
47159 #endif
47160 #ifdef __cplusplus
47161 }
47162 #endif
47163
47164 int
47165 main ()
47166 {
47167 return f != $ac_func;
47168   ;
47169   return 0;
47170 }
47171 _ACEOF
47172 rm -f conftest.$ac_objext conftest$ac_exeext
47173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47174   (eval $ac_link) 2>conftest.er1
47175   ac_status=$?
47176   grep -v '^ *+' conftest.er1 >conftest.err
47177   rm -f conftest.er1
47178   cat conftest.err >&5
47179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47180   (exit $ac_status); } &&
47181          { ac_try='test -z "$ac_c_werror_flag"
47182                          || test ! -s conftest.err'
47183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47184   (eval $ac_try) 2>&5
47185   ac_status=$?
47186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47187   (exit $ac_status); }; } &&
47188          { ac_try='test -s conftest$ac_exeext'
47189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47190   (eval $ac_try) 2>&5
47191   ac_status=$?
47192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47193   (exit $ac_status); }; }; then
47194   eval "$as_ac_var=yes"
47195 else
47196   echo "$as_me: failed program was:" >&5
47197 sed 's/^/| /' conftest.$ac_ext >&5
47198
47199 eval "$as_ac_var=no"
47200 fi
47201 rm -f conftest.err conftest.$ac_objext \
47202       conftest$ac_exeext conftest.$ac_ext
47203 fi
47204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47206 if test `eval echo '${'$as_ac_var'}'` = yes; then
47207   cat >>confdefs.h <<_ACEOF
47208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47209 _ACEOF
47210  ice_have_ungetc=yes
47211 fi
47212 done
47213
47214 if test "${ice_have_ungetc}" = yes; then
47215 echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
47216 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6
47217 if test "${ice_cv_have_ungetc_decl+set}" = set; then
47218   echo $ECHO_N "(cached) $ECHO_C" >&6
47219 else
47220
47221 ice_cv_have_ungetc_decl=no
47222 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47223 ice_re_word='(^|[^a-zA-Z0-9_])'
47224 for header in stdio.h; do
47225 # Check for ordinary declaration
47226 cat >conftest.$ac_ext <<_ACEOF
47227 /* confdefs.h.  */
47228 _ACEOF
47229 cat confdefs.h >>conftest.$ac_ext
47230 cat >>conftest.$ac_ext <<_ACEOF
47231 /* end confdefs.h.  */
47232 #include <$header>
47233
47234 _ACEOF
47235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47236   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
47237   ice_cv_have_ungetc_decl=yes
47238 fi
47239 rm -f conftest*
47240
47241 if test "$ice_cv_have_ungetc_decl" = yes; then
47242         break
47243 fi
47244 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47245 cat >conftest.$ac_ext <<_ACEOF
47246 /* confdefs.h.  */
47247 _ACEOF
47248 cat confdefs.h >>conftest.$ac_ext
47249 cat >>conftest.$ac_ext <<_ACEOF
47250 /* end confdefs.h.  */
47251 #include <$header>
47252
47253 _ACEOF
47254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47255   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47256   ice_cv_have_ungetc_decl=yes
47257 fi
47258 rm -f conftest*
47259
47260 if test "$ice_cv_have_ungetc_decl" = yes; then
47261         break
47262 fi
47263 done
47264
47265 fi
47266
47267 echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
47268 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6
47269 if test "$ice_cv_have_ungetc_decl" = yes; then
47270
47271 cat >>confdefs.h <<_ACEOF
47272 #define HAVE_UNGETC_DECL 1
47273 _ACEOF
47274
47275 fi
47276 fi
47277
47278
47279 for ac_func in vprintf
47280 do
47281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47282 echo "$as_me:$LINENO: checking for $ac_func" >&5
47283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47284 if eval "test \"\${$as_ac_var+set}\" = set"; then
47285   echo $ECHO_N "(cached) $ECHO_C" >&6
47286 else
47287   cat >conftest.$ac_ext <<_ACEOF
47288 /* confdefs.h.  */
47289 _ACEOF
47290 cat confdefs.h >>conftest.$ac_ext
47291 cat >>conftest.$ac_ext <<_ACEOF
47292 /* end confdefs.h.  */
47293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47295 #define $ac_func innocuous_$ac_func
47296
47297 /* System header to define __stub macros and hopefully few prototypes,
47298     which can conflict with char $ac_func (); below.
47299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47300     <limits.h> exists even on freestanding compilers.  */
47301
47302 #ifdef __STDC__
47303 # include <limits.h>
47304 #else
47305 # include <assert.h>
47306 #endif
47307
47308 #undef $ac_func
47309
47310 /* Override any gcc2 internal prototype to avoid an error.  */
47311 #ifdef __cplusplus
47312 extern "C"
47313 {
47314 #endif
47315 /* We use char because int might match the return type of a gcc2
47316    builtin and then its argument prototype would still apply.  */
47317 char $ac_func ();
47318 /* The GNU C library defines this for functions which it implements
47319     to always fail with ENOSYS.  Some functions are actually named
47320     something starting with __ and the normal name is an alias.  */
47321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47322 choke me
47323 #else
47324 char (*f) () = $ac_func;
47325 #endif
47326 #ifdef __cplusplus
47327 }
47328 #endif
47329
47330 int
47331 main ()
47332 {
47333 return f != $ac_func;
47334   ;
47335   return 0;
47336 }
47337 _ACEOF
47338 rm -f conftest.$ac_objext conftest$ac_exeext
47339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47340   (eval $ac_link) 2>conftest.er1
47341   ac_status=$?
47342   grep -v '^ *+' conftest.er1 >conftest.err
47343   rm -f conftest.er1
47344   cat conftest.err >&5
47345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47346   (exit $ac_status); } &&
47347          { ac_try='test -z "$ac_c_werror_flag"
47348                          || test ! -s conftest.err'
47349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47350   (eval $ac_try) 2>&5
47351   ac_status=$?
47352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47353   (exit $ac_status); }; } &&
47354          { ac_try='test -s conftest$ac_exeext'
47355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47356   (eval $ac_try) 2>&5
47357   ac_status=$?
47358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47359   (exit $ac_status); }; }; then
47360   eval "$as_ac_var=yes"
47361 else
47362   echo "$as_me: failed program was:" >&5
47363 sed 's/^/| /' conftest.$ac_ext >&5
47364
47365 eval "$as_ac_var=no"
47366 fi
47367 rm -f conftest.err conftest.$ac_objext \
47368       conftest$ac_exeext conftest.$ac_ext
47369 fi
47370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47372 if test `eval echo '${'$as_ac_var'}'` = yes; then
47373   cat >>confdefs.h <<_ACEOF
47374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47375 _ACEOF
47376
47377 echo "$as_me:$LINENO: checking for _doprnt" >&5
47378 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
47379 if test "${ac_cv_func__doprnt+set}" = set; then
47380   echo $ECHO_N "(cached) $ECHO_C" >&6
47381 else
47382   cat >conftest.$ac_ext <<_ACEOF
47383 /* confdefs.h.  */
47384 _ACEOF
47385 cat confdefs.h >>conftest.$ac_ext
47386 cat >>conftest.$ac_ext <<_ACEOF
47387 /* end confdefs.h.  */
47388 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
47389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47390 #define _doprnt innocuous__doprnt
47391
47392 /* System header to define __stub macros and hopefully few prototypes,
47393     which can conflict with char _doprnt (); below.
47394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47395     <limits.h> exists even on freestanding compilers.  */
47396
47397 #ifdef __STDC__
47398 # include <limits.h>
47399 #else
47400 # include <assert.h>
47401 #endif
47402
47403 #undef _doprnt
47404
47405 /* Override any gcc2 internal prototype to avoid an error.  */
47406 #ifdef __cplusplus
47407 extern "C"
47408 {
47409 #endif
47410 /* We use char because int might match the return type of a gcc2
47411    builtin and then its argument prototype would still apply.  */
47412 char _doprnt ();
47413 /* The GNU C library defines this for functions which it implements
47414     to always fail with ENOSYS.  Some functions are actually named
47415     something starting with __ and the normal name is an alias.  */
47416 #if defined (__stub__doprnt) || defined (__stub____doprnt)
47417 choke me
47418 #else
47419 char (*f) () = _doprnt;
47420 #endif
47421 #ifdef __cplusplus
47422 }
47423 #endif
47424
47425 int
47426 main ()
47427 {
47428 return f != _doprnt;
47429   ;
47430   return 0;
47431 }
47432 _ACEOF
47433 rm -f conftest.$ac_objext conftest$ac_exeext
47434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47435   (eval $ac_link) 2>conftest.er1
47436   ac_status=$?
47437   grep -v '^ *+' conftest.er1 >conftest.err
47438   rm -f conftest.er1
47439   cat conftest.err >&5
47440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47441   (exit $ac_status); } &&
47442          { ac_try='test -z "$ac_c_werror_flag"
47443                          || test ! -s conftest.err'
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); }; } &&
47449          { ac_try='test -s conftest$ac_exeext'
47450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47451   (eval $ac_try) 2>&5
47452   ac_status=$?
47453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47454   (exit $ac_status); }; }; then
47455   ac_cv_func__doprnt=yes
47456 else
47457   echo "$as_me: failed program was:" >&5
47458 sed 's/^/| /' conftest.$ac_ext >&5
47459
47460 ac_cv_func__doprnt=no
47461 fi
47462 rm -f conftest.err conftest.$ac_objext \
47463       conftest$ac_exeext conftest.$ac_ext
47464 fi
47465 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
47466 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
47467 if test $ac_cv_func__doprnt = yes; then
47468
47469 cat >>confdefs.h <<\_ACEOF
47470 #define HAVE_DOPRNT 1
47471 _ACEOF
47472
47473 fi
47474
47475 fi
47476 done
47477
47478
47479
47480 ice_have_vfprintf=no
47481
47482 for ac_func in vfprintf
47483 do
47484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47485 echo "$as_me:$LINENO: checking for $ac_func" >&5
47486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47487 if eval "test \"\${$as_ac_var+set}\" = set"; then
47488   echo $ECHO_N "(cached) $ECHO_C" >&6
47489 else
47490   cat >conftest.$ac_ext <<_ACEOF
47491 /* confdefs.h.  */
47492 _ACEOF
47493 cat confdefs.h >>conftest.$ac_ext
47494 cat >>conftest.$ac_ext <<_ACEOF
47495 /* end confdefs.h.  */
47496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47498 #define $ac_func innocuous_$ac_func
47499
47500 /* System header to define __stub macros and hopefully few prototypes,
47501     which can conflict with char $ac_func (); below.
47502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47503     <limits.h> exists even on freestanding compilers.  */
47504
47505 #ifdef __STDC__
47506 # include <limits.h>
47507 #else
47508 # include <assert.h>
47509 #endif
47510
47511 #undef $ac_func
47512
47513 /* Override any gcc2 internal prototype to avoid an error.  */
47514 #ifdef __cplusplus
47515 extern "C"
47516 {
47517 #endif
47518 /* We use char because int might match the return type of a gcc2
47519    builtin and then its argument prototype would still apply.  */
47520 char $ac_func ();
47521 /* The GNU C library defines this for functions which it implements
47522     to always fail with ENOSYS.  Some functions are actually named
47523     something starting with __ and the normal name is an alias.  */
47524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47525 choke me
47526 #else
47527 char (*f) () = $ac_func;
47528 #endif
47529 #ifdef __cplusplus
47530 }
47531 #endif
47532
47533 int
47534 main ()
47535 {
47536 return f != $ac_func;
47537   ;
47538   return 0;
47539 }
47540 _ACEOF
47541 rm -f conftest.$ac_objext conftest$ac_exeext
47542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47543   (eval $ac_link) 2>conftest.er1
47544   ac_status=$?
47545   grep -v '^ *+' conftest.er1 >conftest.err
47546   rm -f conftest.er1
47547   cat conftest.err >&5
47548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47549   (exit $ac_status); } &&
47550          { ac_try='test -z "$ac_c_werror_flag"
47551                          || test ! -s conftest.err'
47552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47553   (eval $ac_try) 2>&5
47554   ac_status=$?
47555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47556   (exit $ac_status); }; } &&
47557          { ac_try='test -s conftest$ac_exeext'
47558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47559   (eval $ac_try) 2>&5
47560   ac_status=$?
47561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47562   (exit $ac_status); }; }; then
47563   eval "$as_ac_var=yes"
47564 else
47565   echo "$as_me: failed program was:" >&5
47566 sed 's/^/| /' conftest.$ac_ext >&5
47567
47568 eval "$as_ac_var=no"
47569 fi
47570 rm -f conftest.err conftest.$ac_objext \
47571       conftest$ac_exeext conftest.$ac_ext
47572 fi
47573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47575 if test `eval echo '${'$as_ac_var'}'` = yes; then
47576   cat >>confdefs.h <<_ACEOF
47577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47578 _ACEOF
47579  ice_have_vfprintf=yes
47580 fi
47581 done
47582
47583 if test "${ice_have_vfprintf}" = yes; then
47584 echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
47585 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
47586 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
47587   echo $ECHO_N "(cached) $ECHO_C" >&6
47588 else
47589
47590 ice_cv_have_vfprintf_decl=no
47591 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47592 ice_re_word='(^|[^a-zA-Z0-9_])'
47593 for header in stdio.h stdlib.h; do
47594 # Check for ordinary declaration
47595 cat >conftest.$ac_ext <<_ACEOF
47596 /* confdefs.h.  */
47597 _ACEOF
47598 cat confdefs.h >>conftest.$ac_ext
47599 cat >>conftest.$ac_ext <<_ACEOF
47600 /* end confdefs.h.  */
47601 #include <$header>
47602
47603 _ACEOF
47604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47605   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
47606   ice_cv_have_vfprintf_decl=yes
47607 fi
47608 rm -f conftest*
47609
47610 if test "$ice_cv_have_vfprintf_decl" = yes; then
47611         break
47612 fi
47613 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47614 cat >conftest.$ac_ext <<_ACEOF
47615 /* confdefs.h.  */
47616 _ACEOF
47617 cat confdefs.h >>conftest.$ac_ext
47618 cat >>conftest.$ac_ext <<_ACEOF
47619 /* end confdefs.h.  */
47620 #include <$header>
47621
47622 _ACEOF
47623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47624   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47625   ice_cv_have_vfprintf_decl=yes
47626 fi
47627 rm -f conftest*
47628
47629 if test "$ice_cv_have_vfprintf_decl" = yes; then
47630         break
47631 fi
47632 done
47633
47634 fi
47635
47636 echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
47637 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6
47638 if test "$ice_cv_have_vfprintf_decl" = yes; then
47639
47640 cat >>confdefs.h <<_ACEOF
47641 #define HAVE_VFPRINTF_DECL 1
47642 _ACEOF
47643
47644 fi
47645 fi
47646
47647
47648 ice_have_vprintf=no
47649
47650 for ac_func in vprintf
47651 do
47652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47653 echo "$as_me:$LINENO: checking for $ac_func" >&5
47654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47655 if eval "test \"\${$as_ac_var+set}\" = set"; then
47656   echo $ECHO_N "(cached) $ECHO_C" >&6
47657 else
47658   cat >conftest.$ac_ext <<_ACEOF
47659 /* confdefs.h.  */
47660 _ACEOF
47661 cat confdefs.h >>conftest.$ac_ext
47662 cat >>conftest.$ac_ext <<_ACEOF
47663 /* end confdefs.h.  */
47664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47666 #define $ac_func innocuous_$ac_func
47667
47668 /* System header to define __stub macros and hopefully few prototypes,
47669     which can conflict with char $ac_func (); below.
47670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47671     <limits.h> exists even on freestanding compilers.  */
47672
47673 #ifdef __STDC__
47674 # include <limits.h>
47675 #else
47676 # include <assert.h>
47677 #endif
47678
47679 #undef $ac_func
47680
47681 /* Override any gcc2 internal prototype to avoid an error.  */
47682 #ifdef __cplusplus
47683 extern "C"
47684 {
47685 #endif
47686 /* We use char because int might match the return type of a gcc2
47687    builtin and then its argument prototype would still apply.  */
47688 char $ac_func ();
47689 /* The GNU C library defines this for functions which it implements
47690     to always fail with ENOSYS.  Some functions are actually named
47691     something starting with __ and the normal name is an alias.  */
47692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47693 choke me
47694 #else
47695 char (*f) () = $ac_func;
47696 #endif
47697 #ifdef __cplusplus
47698 }
47699 #endif
47700
47701 int
47702 main ()
47703 {
47704 return f != $ac_func;
47705   ;
47706   return 0;
47707 }
47708 _ACEOF
47709 rm -f conftest.$ac_objext conftest$ac_exeext
47710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47711   (eval $ac_link) 2>conftest.er1
47712   ac_status=$?
47713   grep -v '^ *+' conftest.er1 >conftest.err
47714   rm -f conftest.er1
47715   cat conftest.err >&5
47716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47717   (exit $ac_status); } &&
47718          { ac_try='test -z "$ac_c_werror_flag"
47719                          || test ! -s conftest.err'
47720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47721   (eval $ac_try) 2>&5
47722   ac_status=$?
47723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47724   (exit $ac_status); }; } &&
47725          { ac_try='test -s conftest$ac_exeext'
47726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47727   (eval $ac_try) 2>&5
47728   ac_status=$?
47729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47730   (exit $ac_status); }; }; then
47731   eval "$as_ac_var=yes"
47732 else
47733   echo "$as_me: failed program was:" >&5
47734 sed 's/^/| /' conftest.$ac_ext >&5
47735
47736 eval "$as_ac_var=no"
47737 fi
47738 rm -f conftest.err conftest.$ac_objext \
47739       conftest$ac_exeext conftest.$ac_ext
47740 fi
47741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47743 if test `eval echo '${'$as_ac_var'}'` = yes; then
47744   cat >>confdefs.h <<_ACEOF
47745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47746 _ACEOF
47747  ice_have_vprintf=yes
47748 fi
47749 done
47750
47751 if test "${ice_have_vprintf}" = yes; then
47752 echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
47753 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
47754 if test "${ice_cv_have_vprintf_decl+set}" = set; then
47755   echo $ECHO_N "(cached) $ECHO_C" >&6
47756 else
47757
47758 ice_cv_have_vprintf_decl=no
47759 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47760 ice_re_word='(^|[^a-zA-Z0-9_])'
47761 for header in stdio.h stdlib.h; do
47762 # Check for ordinary declaration
47763 cat >conftest.$ac_ext <<_ACEOF
47764 /* confdefs.h.  */
47765 _ACEOF
47766 cat confdefs.h >>conftest.$ac_ext
47767 cat >>conftest.$ac_ext <<_ACEOF
47768 /* end confdefs.h.  */
47769 #include <$header>
47770
47771 _ACEOF
47772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47773   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
47774   ice_cv_have_vprintf_decl=yes
47775 fi
47776 rm -f conftest*
47777
47778 if test "$ice_cv_have_vprintf_decl" = yes; then
47779         break
47780 fi
47781 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47782 cat >conftest.$ac_ext <<_ACEOF
47783 /* confdefs.h.  */
47784 _ACEOF
47785 cat confdefs.h >>conftest.$ac_ext
47786 cat >>conftest.$ac_ext <<_ACEOF
47787 /* end confdefs.h.  */
47788 #include <$header>
47789
47790 _ACEOF
47791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47792   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47793   ice_cv_have_vprintf_decl=yes
47794 fi
47795 rm -f conftest*
47796
47797 if test "$ice_cv_have_vprintf_decl" = yes; then
47798         break
47799 fi
47800 done
47801
47802 fi
47803
47804 echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
47805 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6
47806 if test "$ice_cv_have_vprintf_decl" = yes; then
47807
47808 cat >>confdefs.h <<_ACEOF
47809 #define HAVE_VPRINTF_DECL 1
47810 _ACEOF
47811
47812 fi
47813 fi
47814
47815
47816 ice_have_vsprintf=no
47817
47818 for ac_func in vsprintf
47819 do
47820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47821 echo "$as_me:$LINENO: checking for $ac_func" >&5
47822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47823 if eval "test \"\${$as_ac_var+set}\" = set"; then
47824   echo $ECHO_N "(cached) $ECHO_C" >&6
47825 else
47826   cat >conftest.$ac_ext <<_ACEOF
47827 /* confdefs.h.  */
47828 _ACEOF
47829 cat confdefs.h >>conftest.$ac_ext
47830 cat >>conftest.$ac_ext <<_ACEOF
47831 /* end confdefs.h.  */
47832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47834 #define $ac_func innocuous_$ac_func
47835
47836 /* System header to define __stub macros and hopefully few prototypes,
47837     which can conflict with char $ac_func (); below.
47838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47839     <limits.h> exists even on freestanding compilers.  */
47840
47841 #ifdef __STDC__
47842 # include <limits.h>
47843 #else
47844 # include <assert.h>
47845 #endif
47846
47847 #undef $ac_func
47848
47849 /* Override any gcc2 internal prototype to avoid an error.  */
47850 #ifdef __cplusplus
47851 extern "C"
47852 {
47853 #endif
47854 /* We use char because int might match the return type of a gcc2
47855    builtin and then its argument prototype would still apply.  */
47856 char $ac_func ();
47857 /* The GNU C library defines this for functions which it implements
47858     to always fail with ENOSYS.  Some functions are actually named
47859     something starting with __ and the normal name is an alias.  */
47860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47861 choke me
47862 #else
47863 char (*f) () = $ac_func;
47864 #endif
47865 #ifdef __cplusplus
47866 }
47867 #endif
47868
47869 int
47870 main ()
47871 {
47872 return f != $ac_func;
47873   ;
47874   return 0;
47875 }
47876 _ACEOF
47877 rm -f conftest.$ac_objext conftest$ac_exeext
47878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47879   (eval $ac_link) 2>conftest.er1
47880   ac_status=$?
47881   grep -v '^ *+' conftest.er1 >conftest.err
47882   rm -f conftest.er1
47883   cat conftest.err >&5
47884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47885   (exit $ac_status); } &&
47886          { ac_try='test -z "$ac_c_werror_flag"
47887                          || test ! -s conftest.err'
47888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47889   (eval $ac_try) 2>&5
47890   ac_status=$?
47891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47892   (exit $ac_status); }; } &&
47893          { ac_try='test -s conftest$ac_exeext'
47894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47895   (eval $ac_try) 2>&5
47896   ac_status=$?
47897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47898   (exit $ac_status); }; }; then
47899   eval "$as_ac_var=yes"
47900 else
47901   echo "$as_me: failed program was:" >&5
47902 sed 's/^/| /' conftest.$ac_ext >&5
47903
47904 eval "$as_ac_var=no"
47905 fi
47906 rm -f conftest.err conftest.$ac_objext \
47907       conftest$ac_exeext conftest.$ac_ext
47908 fi
47909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47911 if test `eval echo '${'$as_ac_var'}'` = yes; then
47912   cat >>confdefs.h <<_ACEOF
47913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47914 _ACEOF
47915  ice_have_vsprintf=yes
47916 fi
47917 done
47918
47919 if test "${ice_have_vsprintf}" = yes; then
47920 echo "$as_me:$LINENO: checking for vsprintf declaration in stdio.h stdlib.h" >&5
47921 echo $ECHO_N "checking for vsprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
47922 if test "${ice_cv_have_vsprintf_decl+set}" = set; then
47923   echo $ECHO_N "(cached) $ECHO_C" >&6
47924 else
47925
47926 ice_cv_have_vsprintf_decl=no
47927 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47928 ice_re_word='(^|[^a-zA-Z0-9_])'
47929 for header in stdio.h stdlib.h; do
47930 # Check for ordinary declaration
47931 cat >conftest.$ac_ext <<_ACEOF
47932 /* confdefs.h.  */
47933 _ACEOF
47934 cat confdefs.h >>conftest.$ac_ext
47935 cat >>conftest.$ac_ext <<_ACEOF
47936 /* end confdefs.h.  */
47937 #include <$header>
47938
47939 _ACEOF
47940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47941   $EGREP "${ice_re_word}vsprintf[       ]*\(" >/dev/null 2>&1; then
47942   ice_cv_have_vsprintf_decl=yes
47943 fi
47944 rm -f conftest*
47945
47946 if test "$ice_cv_have_vsprintf_decl" = yes; then
47947         break
47948 fi
47949 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47950 cat >conftest.$ac_ext <<_ACEOF
47951 /* confdefs.h.  */
47952 _ACEOF
47953 cat confdefs.h >>conftest.$ac_ext
47954 cat >>conftest.$ac_ext <<_ACEOF
47955 /* end confdefs.h.  */
47956 #include <$header>
47957
47958 _ACEOF
47959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47960   $EGREP "${ice_re_word}vsprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47961   ice_cv_have_vsprintf_decl=yes
47962 fi
47963 rm -f conftest*
47964
47965 if test "$ice_cv_have_vsprintf_decl" = yes; then
47966         break
47967 fi
47968 done
47969
47970 fi
47971
47972 echo "$as_me:$LINENO: result: $ice_cv_have_vsprintf_decl" >&5
47973 echo "${ECHO_T}$ice_cv_have_vsprintf_decl" >&6
47974 if test "$ice_cv_have_vsprintf_decl" = yes; then
47975
47976 cat >>confdefs.h <<_ACEOF
47977 #define HAVE_VSPRINTF_DECL 1
47978 _ACEOF
47979
47980 fi
47981 fi
47982
47983 echo "$as_me:$LINENO: checking for wait4" >&5
47984 echo $ECHO_N "checking for wait4... $ECHO_C" >&6
47985 if test "${ac_cv_func_wait4+set}" = set; then
47986   echo $ECHO_N "(cached) $ECHO_C" >&6
47987 else
47988   cat >conftest.$ac_ext <<_ACEOF
47989 /* confdefs.h.  */
47990 _ACEOF
47991 cat confdefs.h >>conftest.$ac_ext
47992 cat >>conftest.$ac_ext <<_ACEOF
47993 /* end confdefs.h.  */
47994 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
47995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47996 #define wait4 innocuous_wait4
47997
47998 /* System header to define __stub macros and hopefully few prototypes,
47999     which can conflict with char wait4 (); below.
48000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48001     <limits.h> exists even on freestanding compilers.  */
48002
48003 #ifdef __STDC__
48004 # include <limits.h>
48005 #else
48006 # include <assert.h>
48007 #endif
48008
48009 #undef wait4
48010
48011 /* Override any gcc2 internal prototype to avoid an error.  */
48012 #ifdef __cplusplus
48013 extern "C"
48014 {
48015 #endif
48016 /* We use char because int might match the return type of a gcc2
48017    builtin and then its argument prototype would still apply.  */
48018 char wait4 ();
48019 /* The GNU C library defines this for functions which it implements
48020     to always fail with ENOSYS.  Some functions are actually named
48021     something starting with __ and the normal name is an alias.  */
48022 #if defined (__stub_wait4) || defined (__stub___wait4)
48023 choke me
48024 #else
48025 char (*f) () = wait4;
48026 #endif
48027 #ifdef __cplusplus
48028 }
48029 #endif
48030
48031 int
48032 main ()
48033 {
48034 return f != wait4;
48035   ;
48036   return 0;
48037 }
48038 _ACEOF
48039 rm -f conftest.$ac_objext conftest$ac_exeext
48040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48041   (eval $ac_link) 2>conftest.er1
48042   ac_status=$?
48043   grep -v '^ *+' conftest.er1 >conftest.err
48044   rm -f conftest.er1
48045   cat conftest.err >&5
48046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48047   (exit $ac_status); } &&
48048          { ac_try='test -z "$ac_c_werror_flag"
48049                          || test ! -s conftest.err'
48050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48051   (eval $ac_try) 2>&5
48052   ac_status=$?
48053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48054   (exit $ac_status); }; } &&
48055          { ac_try='test -s conftest$ac_exeext'
48056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48057   (eval $ac_try) 2>&5
48058   ac_status=$?
48059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48060   (exit $ac_status); }; }; then
48061   ac_cv_func_wait4=yes
48062 else
48063   echo "$as_me: failed program was:" >&5
48064 sed 's/^/| /' conftest.$ac_ext >&5
48065
48066 ac_cv_func_wait4=no
48067 fi
48068 rm -f conftest.err conftest.$ac_objext \
48069       conftest$ac_exeext conftest.$ac_ext
48070 fi
48071 echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
48072 echo "${ECHO_T}$ac_cv_func_wait4" >&6
48073
48074
48075 for ac_func in waitpid
48076 do
48077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48078 echo "$as_me:$LINENO: checking for $ac_func" >&5
48079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48080 if eval "test \"\${$as_ac_var+set}\" = set"; then
48081   echo $ECHO_N "(cached) $ECHO_C" >&6
48082 else
48083   cat >conftest.$ac_ext <<_ACEOF
48084 /* confdefs.h.  */
48085 _ACEOF
48086 cat confdefs.h >>conftest.$ac_ext
48087 cat >>conftest.$ac_ext <<_ACEOF
48088 /* end confdefs.h.  */
48089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48091 #define $ac_func innocuous_$ac_func
48092
48093 /* System header to define __stub macros and hopefully few prototypes,
48094     which can conflict with char $ac_func (); below.
48095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48096     <limits.h> exists even on freestanding compilers.  */
48097
48098 #ifdef __STDC__
48099 # include <limits.h>
48100 #else
48101 # include <assert.h>
48102 #endif
48103
48104 #undef $ac_func
48105
48106 /* Override any gcc2 internal prototype to avoid an error.  */
48107 #ifdef __cplusplus
48108 extern "C"
48109 {
48110 #endif
48111 /* We use char because int might match the return type of a gcc2
48112    builtin and then its argument prototype would still apply.  */
48113 char $ac_func ();
48114 /* The GNU C library defines this for functions which it implements
48115     to always fail with ENOSYS.  Some functions are actually named
48116     something starting with __ and the normal name is an alias.  */
48117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48118 choke me
48119 #else
48120 char (*f) () = $ac_func;
48121 #endif
48122 #ifdef __cplusplus
48123 }
48124 #endif
48125
48126 int
48127 main ()
48128 {
48129 return f != $ac_func;
48130   ;
48131   return 0;
48132 }
48133 _ACEOF
48134 rm -f conftest.$ac_objext conftest$ac_exeext
48135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48136   (eval $ac_link) 2>conftest.er1
48137   ac_status=$?
48138   grep -v '^ *+' conftest.er1 >conftest.err
48139   rm -f conftest.er1
48140   cat conftest.err >&5
48141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48142   (exit $ac_status); } &&
48143          { ac_try='test -z "$ac_c_werror_flag"
48144                          || test ! -s conftest.err'
48145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48146   (eval $ac_try) 2>&5
48147   ac_status=$?
48148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48149   (exit $ac_status); }; } &&
48150          { ac_try='test -s conftest$ac_exeext'
48151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48152   (eval $ac_try) 2>&5
48153   ac_status=$?
48154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48155   (exit $ac_status); }; }; then
48156   eval "$as_ac_var=yes"
48157 else
48158   echo "$as_me: failed program was:" >&5
48159 sed 's/^/| /' conftest.$ac_ext >&5
48160
48161 eval "$as_ac_var=no"
48162 fi
48163 rm -f conftest.err conftest.$ac_objext \
48164       conftest$ac_exeext conftest.$ac_ext
48165 fi
48166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48168 if test `eval echo '${'$as_ac_var'}'` = yes; then
48169   cat >>confdefs.h <<_ACEOF
48170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48171 _ACEOF
48172
48173 else
48174   case $LIBOBJS in
48175     "$ac_func.$ac_objext"   | \
48176   *" $ac_func.$ac_objext"   | \
48177     "$ac_func.$ac_objext "* | \
48178   *" $ac_func.$ac_objext "* ) ;;
48179   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
48180 esac
48181
48182 fi
48183 done
48184
48185
48186
48187 for ac_func in strcasecmp
48188 do
48189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48190 echo "$as_me:$LINENO: checking for $ac_func" >&5
48191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48192 if eval "test \"\${$as_ac_var+set}\" = set"; then
48193   echo $ECHO_N "(cached) $ECHO_C" >&6
48194 else
48195   cat >conftest.$ac_ext <<_ACEOF
48196 /* confdefs.h.  */
48197 _ACEOF
48198 cat confdefs.h >>conftest.$ac_ext
48199 cat >>conftest.$ac_ext <<_ACEOF
48200 /* end confdefs.h.  */
48201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48203 #define $ac_func innocuous_$ac_func
48204
48205 /* System header to define __stub macros and hopefully few prototypes,
48206     which can conflict with char $ac_func (); below.
48207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48208     <limits.h> exists even on freestanding compilers.  */
48209
48210 #ifdef __STDC__
48211 # include <limits.h>
48212 #else
48213 # include <assert.h>
48214 #endif
48215
48216 #undef $ac_func
48217
48218 /* Override any gcc2 internal prototype to avoid an error.  */
48219 #ifdef __cplusplus
48220 extern "C"
48221 {
48222 #endif
48223 /* We use char because int might match the return type of a gcc2
48224    builtin and then its argument prototype would still apply.  */
48225 char $ac_func ();
48226 /* The GNU C library defines this for functions which it implements
48227     to always fail with ENOSYS.  Some functions are actually named
48228     something starting with __ and the normal name is an alias.  */
48229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48230 choke me
48231 #else
48232 char (*f) () = $ac_func;
48233 #endif
48234 #ifdef __cplusplus
48235 }
48236 #endif
48237
48238 int
48239 main ()
48240 {
48241 return f != $ac_func;
48242   ;
48243   return 0;
48244 }
48245 _ACEOF
48246 rm -f conftest.$ac_objext conftest$ac_exeext
48247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48248   (eval $ac_link) 2>conftest.er1
48249   ac_status=$?
48250   grep -v '^ *+' conftest.er1 >conftest.err
48251   rm -f conftest.er1
48252   cat conftest.err >&5
48253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48254   (exit $ac_status); } &&
48255          { ac_try='test -z "$ac_c_werror_flag"
48256                          || test ! -s conftest.err'
48257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48258   (eval $ac_try) 2>&5
48259   ac_status=$?
48260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48261   (exit $ac_status); }; } &&
48262          { ac_try='test -s conftest$ac_exeext'
48263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48264   (eval $ac_try) 2>&5
48265   ac_status=$?
48266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48267   (exit $ac_status); }; }; then
48268   eval "$as_ac_var=yes"
48269 else
48270   echo "$as_me: failed program was:" >&5
48271 sed 's/^/| /' conftest.$ac_ext >&5
48272
48273 eval "$as_ac_var=no"
48274 fi
48275 rm -f conftest.err conftest.$ac_objext \
48276       conftest$ac_exeext conftest.$ac_ext
48277 fi
48278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48280 if test `eval echo '${'$as_ac_var'}'` = yes; then
48281   cat >>confdefs.h <<_ACEOF
48282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48283 _ACEOF
48284
48285 else
48286   case $LIBOBJS in
48287     "$ac_func.$ac_objext"   | \
48288   *" $ac_func.$ac_objext"   | \
48289     "$ac_func.$ac_objext "* | \
48290   *" $ac_func.$ac_objext "* ) ;;
48291   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
48292 esac
48293
48294 fi
48295 done
48296
48297
48298
48299 ice_have_strcasecmp=no
48300
48301 for ac_func in strcasecmp
48302 do
48303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48304 echo "$as_me:$LINENO: checking for $ac_func" >&5
48305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48306 if eval "test \"\${$as_ac_var+set}\" = set"; then
48307   echo $ECHO_N "(cached) $ECHO_C" >&6
48308 else
48309   cat >conftest.$ac_ext <<_ACEOF
48310 /* confdefs.h.  */
48311 _ACEOF
48312 cat confdefs.h >>conftest.$ac_ext
48313 cat >>conftest.$ac_ext <<_ACEOF
48314 /* end confdefs.h.  */
48315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48317 #define $ac_func innocuous_$ac_func
48318
48319 /* System header to define __stub macros and hopefully few prototypes,
48320     which can conflict with char $ac_func (); below.
48321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48322     <limits.h> exists even on freestanding compilers.  */
48323
48324 #ifdef __STDC__
48325 # include <limits.h>
48326 #else
48327 # include <assert.h>
48328 #endif
48329
48330 #undef $ac_func
48331
48332 /* Override any gcc2 internal prototype to avoid an error.  */
48333 #ifdef __cplusplus
48334 extern "C"
48335 {
48336 #endif
48337 /* We use char because int might match the return type of a gcc2
48338    builtin and then its argument prototype would still apply.  */
48339 char $ac_func ();
48340 /* The GNU C library defines this for functions which it implements
48341     to always fail with ENOSYS.  Some functions are actually named
48342     something starting with __ and the normal name is an alias.  */
48343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48344 choke me
48345 #else
48346 char (*f) () = $ac_func;
48347 #endif
48348 #ifdef __cplusplus
48349 }
48350 #endif
48351
48352 int
48353 main ()
48354 {
48355 return f != $ac_func;
48356   ;
48357   return 0;
48358 }
48359 _ACEOF
48360 rm -f conftest.$ac_objext conftest$ac_exeext
48361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48362   (eval $ac_link) 2>conftest.er1
48363   ac_status=$?
48364   grep -v '^ *+' conftest.er1 >conftest.err
48365   rm -f conftest.er1
48366   cat conftest.err >&5
48367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48368   (exit $ac_status); } &&
48369          { ac_try='test -z "$ac_c_werror_flag"
48370                          || test ! -s conftest.err'
48371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48372   (eval $ac_try) 2>&5
48373   ac_status=$?
48374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48375   (exit $ac_status); }; } &&
48376          { ac_try='test -s conftest$ac_exeext'
48377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48378   (eval $ac_try) 2>&5
48379   ac_status=$?
48380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48381   (exit $ac_status); }; }; then
48382   eval "$as_ac_var=yes"
48383 else
48384   echo "$as_me: failed program was:" >&5
48385 sed 's/^/| /' conftest.$ac_ext >&5
48386
48387 eval "$as_ac_var=no"
48388 fi
48389 rm -f conftest.err conftest.$ac_objext \
48390       conftest$ac_exeext conftest.$ac_ext
48391 fi
48392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48394 if test `eval echo '${'$as_ac_var'}'` = yes; then
48395   cat >>confdefs.h <<_ACEOF
48396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48397 _ACEOF
48398  ice_have_strcasecmp=yes
48399 fi
48400 done
48401
48402 if test "${ice_have_strcasecmp}" = yes; then
48403 echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
48404 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6
48405 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
48406   echo $ECHO_N "(cached) $ECHO_C" >&6
48407 else
48408
48409 ice_cv_have_strcasecmp_decl=no
48410 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48411 ice_re_word='(^|[^a-zA-Z0-9_])'
48412 for header in string.h strings.h; do
48413 # Check for ordinary declaration
48414 cat >conftest.$ac_ext <<_ACEOF
48415 /* confdefs.h.  */
48416 _ACEOF
48417 cat confdefs.h >>conftest.$ac_ext
48418 cat >>conftest.$ac_ext <<_ACEOF
48419 /* end confdefs.h.  */
48420 #include <$header>
48421
48422 _ACEOF
48423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48424   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then
48425   ice_cv_have_strcasecmp_decl=yes
48426 fi
48427 rm -f conftest*
48428
48429 if test "$ice_cv_have_strcasecmp_decl" = yes; then
48430         break
48431 fi
48432 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48433 cat >conftest.$ac_ext <<_ACEOF
48434 /* confdefs.h.  */
48435 _ACEOF
48436 cat confdefs.h >>conftest.$ac_ext
48437 cat >>conftest.$ac_ext <<_ACEOF
48438 /* end confdefs.h.  */
48439 #include <$header>
48440
48441 _ACEOF
48442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48443   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48444   ice_cv_have_strcasecmp_decl=yes
48445 fi
48446 rm -f conftest*
48447
48448 if test "$ice_cv_have_strcasecmp_decl" = yes; then
48449         break
48450 fi
48451 done
48452
48453 fi
48454
48455 echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
48456 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6
48457 if test "$ice_cv_have_strcasecmp_decl" = yes; then
48458
48459 cat >>confdefs.h <<_ACEOF
48460 #define HAVE_STRCASECMP_DECL 1
48461 _ACEOF
48462
48463 fi
48464 fi
48465
48466
48467
48468 for ac_func in fnmatch
48469 do
48470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48471 echo "$as_me:$LINENO: checking for $ac_func" >&5
48472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48473 if eval "test \"\${$as_ac_var+set}\" = set"; then
48474   echo $ECHO_N "(cached) $ECHO_C" >&6
48475 else
48476   cat >conftest.$ac_ext <<_ACEOF
48477 /* confdefs.h.  */
48478 _ACEOF
48479 cat confdefs.h >>conftest.$ac_ext
48480 cat >>conftest.$ac_ext <<_ACEOF
48481 /* end confdefs.h.  */
48482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48484 #define $ac_func innocuous_$ac_func
48485
48486 /* System header to define __stub macros and hopefully few prototypes,
48487     which can conflict with char $ac_func (); below.
48488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48489     <limits.h> exists even on freestanding compilers.  */
48490
48491 #ifdef __STDC__
48492 # include <limits.h>
48493 #else
48494 # include <assert.h>
48495 #endif
48496
48497 #undef $ac_func
48498
48499 /* Override any gcc2 internal prototype to avoid an error.  */
48500 #ifdef __cplusplus
48501 extern "C"
48502 {
48503 #endif
48504 /* We use char because int might match the return type of a gcc2
48505    builtin and then its argument prototype would still apply.  */
48506 char $ac_func ();
48507 /* The GNU C library defines this for functions which it implements
48508     to always fail with ENOSYS.  Some functions are actually named
48509     something starting with __ and the normal name is an alias.  */
48510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48511 choke me
48512 #else
48513 char (*f) () = $ac_func;
48514 #endif
48515 #ifdef __cplusplus
48516 }
48517 #endif
48518
48519 int
48520 main ()
48521 {
48522 return f != $ac_func;
48523   ;
48524   return 0;
48525 }
48526 _ACEOF
48527 rm -f conftest.$ac_objext conftest$ac_exeext
48528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48529   (eval $ac_link) 2>conftest.er1
48530   ac_status=$?
48531   grep -v '^ *+' conftest.er1 >conftest.err
48532   rm -f conftest.er1
48533   cat conftest.err >&5
48534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48535   (exit $ac_status); } &&
48536          { ac_try='test -z "$ac_c_werror_flag"
48537                          || test ! -s conftest.err'
48538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48539   (eval $ac_try) 2>&5
48540   ac_status=$?
48541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48542   (exit $ac_status); }; } &&
48543          { ac_try='test -s conftest$ac_exeext'
48544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48545   (eval $ac_try) 2>&5
48546   ac_status=$?
48547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48548   (exit $ac_status); }; }; then
48549   eval "$as_ac_var=yes"
48550 else
48551   echo "$as_me: failed program was:" >&5
48552 sed 's/^/| /' conftest.$ac_ext >&5
48553
48554 eval "$as_ac_var=no"
48555 fi
48556 rm -f conftest.err conftest.$ac_objext \
48557       conftest$ac_exeext conftest.$ac_ext
48558 fi
48559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48561 if test `eval echo '${'$as_ac_var'}'` = yes; then
48562   cat >>confdefs.h <<_ACEOF
48563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48564 _ACEOF
48565
48566 fi
48567 done
48568
48569
48570 if test "$ac_cv_func_fnmatch" != yes -a "$USE_QUICK_AND_DIRTY_ESTIMATES" != yes ; then
48571     { echo "$as_me:$LINENO: WARNING: --with-qde and no fnmatch -- gnutar exclude files will not work" >&5
48572 echo "$as_me: WARNING: --with-qde and no fnmatch -- gnutar exclude files will not work" >&2;}
48573 fi
48574
48575 echo "$as_me:$LINENO: checking disk device prefixes" >&5
48576 echo $ECHO_N "checking disk device prefixes... $ECHO_C" >&6
48577 dfline=`(
48578     df / | while read line; do
48579         set -- $line
48580         while test $# -gt 0; do
48581             if test "$1" = "/"; then
48582                 echo $line
48583                 break 2
48584             fi
48585             shift
48586         done
48587     done
48588 ) | sed 's/(//' | sed 's/)//' `
48589
48590 mount=`(
48591     set -- $dfline
48592     while test $# -gt 0; do
48593         if expr "$1" : '.*dev' >/dev/null 2>&1; then
48594             echo $1
48595             break
48596         fi
48597         shift
48598     done
48599 )`
48600
48601 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
48602     echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
48603 echo "${ECHO_T}(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6
48604 else
48605     if test -d /dev/dsk; then
48606         DEV_PREFIX=/dev/dsk/
48607         if test -d /dev/rdsk; then
48608             RDEV_PREFIX=/dev/rdsk/
48609         else
48610             RDEV_PREFIX=/dev/dsk/
48611         fi
48612     elif test -d /dev; then
48613         case "$target" in
48614             *-sni-sysv4)
48615                 dev_prefix=/dev/dsk/
48616                 rdev_prefix=/dev/rdsk/
48617                 { echo "$as_me:$LINENO: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&5
48618 echo "$as_me: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&2;}
48619                 ;;
48620
48621             *)
48622                 DEV_PREFIX=/dev/
48623                 # Some systems, notably Linux, do not have raw disk devices
48624                 # names.  Check this by trying to see if a raw disk device name
48625                 # exists using the normal raw device path prepended to the
48626                 # mount point of the root filesystem.
48627                 if test "$mount"; then
48628                     dev_name="/dev/r`basename $mount`"
48629                     if test -b $dev_name -o -c $dev_name; then
48630                         RDEV_PREFIX=/dev/r
48631                     else
48632                         RDEV_PREFIX=/dev/
48633                     fi
48634                 else
48635                     RDEV_PREFIX=/dev/r
48636                 fi
48637                 ;;
48638         esac
48639     else
48640         DEV_PREFIX=/
48641         RDEV_PREFIX=/
48642     fi
48643     echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
48644 echo "${ECHO_T}$DEV_PREFIX - $RDEV_PREFIX" >&6
48645 fi
48646
48647
48648 cat >>confdefs.h <<_ACEOF
48649 #define DEV_PREFIX "${DEV_PREFIX}"
48650 _ACEOF
48651
48652
48653 cat >>confdefs.h <<_ACEOF
48654 #define RDEV_PREFIX "${RDEV_PREFIX}"
48655 _ACEOF
48656
48657
48658 case $mount in
48659     /dev/vg*)
48660         { echo "$as_me:$LINENO: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&5
48661 echo "$as_me: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&2;}
48662         ;;
48663 esac
48664
48665 echo "$as_me:$LINENO: checking whether posix fcntl locking works" >&5
48666 echo $ECHO_N "checking whether posix fcntl locking works... $ECHO_C" >&6
48667 if test "${amanda_cv_posix_filelocking+set}" = set; then
48668   echo $ECHO_N "(cached) $ECHO_C" >&6
48669 else
48670
48671         if test "$cross_compiling" = yes; then
48672
48673         amanda_cv_posix_filelocking="no (cannot run test)"
48674
48675 else
48676   cat >conftest.$ac_ext <<_ACEOF
48677 /* confdefs.h.  */
48678 _ACEOF
48679 cat confdefs.h >>conftest.$ac_ext
48680 cat >>conftest.$ac_ext <<_ACEOF
48681 /* end confdefs.h.  */
48682
48683 #undef  ASSERTIONS
48684 #define CONFIGURE_TEST
48685 #define USE_POSIX_FCNTL
48686 #include "${srcdir-.}/common-src/amflock.c"
48687
48688 _ACEOF
48689 rm -f conftest$ac_exeext
48690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48691   (eval $ac_link) 2>&5
48692   ac_status=$?
48693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48696   (eval $ac_try) 2>&5
48697   ac_status=$?
48698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48699   (exit $ac_status); }; }; then
48700
48701         amanda_cv_posix_filelocking=yes
48702
48703 else
48704   echo "$as_me: program exited with status $ac_status" >&5
48705 echo "$as_me: failed program was:" >&5
48706 sed 's/^/| /' conftest.$ac_ext >&5
48707
48708 ( exit $ac_status )
48709
48710         amanda_cv_posix_filelocking="no"
48711
48712 fi
48713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48714 fi
48715     rm -f /tmp/conftest.lock
48716
48717 fi
48718 echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
48719 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6
48720 if test "$amanda_cv_posix_filelocking" = yes; then
48721
48722 cat >>confdefs.h <<\_ACEOF
48723 #define USE_POSIX_FCNTL 1
48724 _ACEOF
48725
48726     HAS_WORKING_FILE_LOCK=1
48727 fi
48728
48729 if test -z "$HAS_WORKING_FILE_LOCK"; then
48730     echo "$as_me:$LINENO: checking whether flock locking works" >&5
48731 echo $ECHO_N "checking whether flock locking works... $ECHO_C" >&6
48732 if test "${amanda_cv_flock_filelocking+set}" = set; then
48733   echo $ECHO_N "(cached) $ECHO_C" >&6
48734 else
48735
48736             if test "$cross_compiling" = yes; then
48737
48738                     amanda_cv_flock_filelocking="no (cannot run test)"
48739
48740 else
48741   cat >conftest.$ac_ext <<_ACEOF
48742 /* confdefs.h.  */
48743 _ACEOF
48744 cat confdefs.h >>conftest.$ac_ext
48745 cat >>conftest.$ac_ext <<_ACEOF
48746 /* end confdefs.h.  */
48747
48748 #undef  ASSERTIONS
48749 #define CONFIGURE_TEST
48750 #define USE_FLOCK
48751 #include "${srcdir-.}/common-src/amflock.c"
48752
48753 _ACEOF
48754 rm -f conftest$ac_exeext
48755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48756   (eval $ac_link) 2>&5
48757   ac_status=$?
48758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48759   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48761   (eval $ac_try) 2>&5
48762   ac_status=$?
48763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48764   (exit $ac_status); }; }; then
48765
48766                     amanda_cv_flock_filelocking="yes"
48767
48768 else
48769   echo "$as_me: program exited with status $ac_status" >&5
48770 echo "$as_me: failed program was:" >&5
48771 sed 's/^/| /' conftest.$ac_ext >&5
48772
48773 ( exit $ac_status )
48774
48775                     amanda_cv_flock_filelocking="no"
48776
48777 fi
48778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48779 fi
48780         rm -f /tmp/conftest.lock
48781
48782 fi
48783 echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
48784 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6
48785     if test "$amanda_cv_flock_filelocking" = yes; then
48786
48787 cat >>confdefs.h <<\_ACEOF
48788 #define USE_FLOCK 1
48789 _ACEOF
48790
48791         HAS_WORKING_FILE_LOCK=1
48792     fi
48793 fi
48794
48795 if test -z "$HAS_WORKING_FILE_LOCK"; then
48796     echo "$as_me:$LINENO: checking whether lockf locking works" >&5
48797 echo $ECHO_N "checking whether lockf locking works... $ECHO_C" >&6
48798 if test "${amanda_cv_lockf_filelocking+set}" = set; then
48799   echo $ECHO_N "(cached) $ECHO_C" >&6
48800 else
48801
48802             if test "$cross_compiling" = yes; then
48803
48804                     amanda_cv_lockf_filelocking="no (cannot run test)"
48805
48806 else
48807   cat >conftest.$ac_ext <<_ACEOF
48808 /* confdefs.h.  */
48809 _ACEOF
48810 cat confdefs.h >>conftest.$ac_ext
48811 cat >>conftest.$ac_ext <<_ACEOF
48812 /* end confdefs.h.  */
48813
48814 #undef  ASSERTIONS
48815 #define CONFIGURE_TEST
48816 #define USE_LOCKF
48817 #include "${srcdir-.}/common-src/amflock.c"
48818
48819 _ACEOF
48820 rm -f conftest$ac_exeext
48821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48822   (eval $ac_link) 2>&5
48823   ac_status=$?
48824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48825   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48827   (eval $ac_try) 2>&5
48828   ac_status=$?
48829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48830   (exit $ac_status); }; }; then
48831
48832                     amanda_cv_lockf_filelocking="yes"
48833
48834 else
48835   echo "$as_me: program exited with status $ac_status" >&5
48836 echo "$as_me: failed program was:" >&5
48837 sed 's/^/| /' conftest.$ac_ext >&5
48838
48839 ( exit $ac_status )
48840
48841                     amanda_cv_lockf_filelocking="no"
48842
48843 fi
48844 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48845 fi
48846         rm -f /tmp/conftest.lock
48847
48848 fi
48849 echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
48850 echo "${ECHO_T}$amanda_cv_lockf_filelocking" >&6
48851     if test "$amanda_cv_lockf_filelocking" = yes; then
48852
48853 cat >>confdefs.h <<\_ACEOF
48854 #define USE_LOCKF 1
48855 _ACEOF
48856
48857         HAS_WORKING_FILE_LOCK=1
48858     fi
48859 fi
48860
48861 if test -z "$HAS_WORKING_FILE_LOCK"; then
48862     echo "$as_me:$LINENO: checking whether lnlock locking works" >&5
48863 echo $ECHO_N "checking whether lnlock locking works... $ECHO_C" >&6
48864 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
48865   echo $ECHO_N "(cached) $ECHO_C" >&6
48866 else
48867
48868             if test "$cross_compiling" = yes; then
48869
48870                     amanda_cv_lnlock_filelocking="no (cannot run test)"
48871
48872 else
48873   cat >conftest.$ac_ext <<_ACEOF
48874 /* confdefs.h.  */
48875 _ACEOF
48876 cat confdefs.h >>conftest.$ac_ext
48877 cat >>conftest.$ac_ext <<_ACEOF
48878 /* end confdefs.h.  */
48879
48880 #undef  ASSERTIONS
48881 #define CONFIGURE_TEST
48882 #define USE_LNLOCK
48883 #include "${srcdir-.}/common-src/amflock.c"
48884 #include "${srcdir-.}/common-src/alloc.c"
48885 #include "${srcdir-.}/common-src/error.c"
48886 #include "${srcdir-.}/common-src/snprintf.c"
48887
48888 _ACEOF
48889 rm -f conftest$ac_exeext
48890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48891   (eval $ac_link) 2>&5
48892   ac_status=$?
48893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48894   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48896   (eval $ac_try) 2>&5
48897   ac_status=$?
48898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48899   (exit $ac_status); }; }; then
48900
48901                     amanda_cv_lnlock_filelocking="yes"
48902
48903 else
48904   echo "$as_me: program exited with status $ac_status" >&5
48905 echo "$as_me: failed program was:" >&5
48906 sed 's/^/| /' conftest.$ac_ext >&5
48907
48908 ( exit $ac_status )
48909
48910                     amanda_cv_lnlock_filelocking="no"
48911
48912 fi
48913 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48914 fi
48915         rm -f /tmp/conftest.lock
48916
48917 fi
48918 echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
48919 echo "${ECHO_T}$amanda_cv_lnlock_filelocking" >&6
48920     if test "$amanda_cv_lnlock_filelocking" = yes; then
48921
48922 cat >>confdefs.h <<\_ACEOF
48923 #define USE_LNLOCK 1
48924 _ACEOF
48925
48926         HAS_WORKING_FILE_LOCK=1
48927     fi
48928 fi
48929
48930 if test -z "$HAS_WORKING_FILE_LOCK"; then
48931     { echo "$as_me:$LINENO: WARNING: *** No working file locking capability found!" >&5
48932 echo "$as_me: WARNING: *** No working file locking capability found!" >&2;}
48933     { echo "$as_me:$LINENO: WARNING: *** Be VERY VERY careful." >&5
48934 echo "$as_me: WARNING: *** Be VERY VERY careful." >&2;}
48935 fi
48936
48937
48938
48939
48940
48941
48942
48943
48944
48945 if test x"$NO_CLIENT_MODE" != x"true"; then
48946   WANT_CLIENT_TRUE=
48947   WANT_CLIENT_FALSE='#'
48948 else
48949   WANT_CLIENT_TRUE='#'
48950   WANT_CLIENT_FALSE=
48951 fi
48952
48953
48954
48955 if test ! -z "$SAMBA_CLIENT"; then
48956   WANT_SAMBA_TRUE=
48957   WANT_SAMBA_FALSE='#'
48958 else
48959   WANT_SAMBA_TRUE='#'
48960   WANT_SAMBA_FALSE=
48961 fi
48962
48963
48964
48965 if test x"$NO_RESTORE_MODE" != x"true"; then
48966   WANT_RESTORE_TRUE=
48967   WANT_RESTORE_FALSE='#'
48968 else
48969   WANT_RESTORE_TRUE='#'
48970   WANT_RESTORE_FALSE=
48971 fi
48972
48973
48974
48975 if test x"$NO_SERVER_MODE" != x"true"; then
48976   WANT_SERVER_TRUE=
48977   WANT_SERVER_FALSE='#'
48978 else
48979   WANT_SERVER_TRUE='#'
48980   WANT_SERVER_FALSE=
48981 fi
48982
48983
48984
48985 if test x"$NO_RECOVER_MODE" != x"true" && test x"$NO_CLIENT_MODE" != x"true"; then
48986   WANT_RECOVER_TRUE=
48987   WANT_RECOVER_FALSE='#'
48988 else
48989   WANT_RECOVER_TRUE='#'
48990   WANT_RECOVER_FALSE=
48991 fi
48992
48993
48994
48995 if test x"$NO_SERVER_MODE" != x"true" || test x"$NO_RESTORE_MODE" != x"true"; then
48996   WANT_TAPE_TRUE=
48997   WANT_TAPE_FALSE='#'
48998 else
48999   WANT_TAPE_TRUE='#'
49000   WANT_TAPE_FALSE=
49001 fi
49002
49003
49004
49005 if test x"$NO_AMPLOT_MODE" != x"true"; then
49006   WANT_AMPLOT_TRUE=
49007   WANT_AMPLOT_FALSE='#'
49008 else
49009   WANT_AMPLOT_TRUE='#'
49010   WANT_AMPLOT_FALSE=
49011 fi
49012
49013
49014
49015 if test x"$NO_SCSI_CHANGER_MODE" != x"true"; then
49016   WANT_CHG_SCSI_TRUE=
49017   WANT_CHG_SCSI_FALSE='#'
49018 else
49019   WANT_CHG_SCSI_TRUE='#'
49020   WANT_CHG_SCSI_FALSE=
49021 fi
49022
49023
49024
49025 if test x"$NO_CHIO_CHANGER_MODE" != x"true"; then
49026   WANT_CHIO_SCSI_TRUE=
49027   WANT_CHIO_SCSI_FALSE='#'
49028 else
49029   WANT_CHIO_SCSI_TRUE='#'
49030   WANT_CHIO_SCSI_FALSE=
49031 fi
49032
49033
49034
49035 if test x"$NEED_RUNTIME_PSEUDO_RELOC" = x"true"; then
49036   WANT_RUNTIME_PSEUDO_RELOC_TRUE=
49037   WANT_RUNTIME_PSEUDO_RELOC_FALSE='#'
49038 else
49039   WANT_RUNTIME_PSEUDO_RELOC_TRUE='#'
49040   WANT_RUNTIME_PSEUDO_RELOC_FALSE=
49041 fi
49042
49043
49044
49045 if test x"$NEED_SETUID_CLIENT" != x"false"; then
49046   WANT_SETUID_CLIENT_TRUE=
49047   WANT_SETUID_CLIENT_FALSE='#'
49048 else
49049   WANT_SETUID_CLIENT_TRUE='#'
49050   WANT_SETUID_CLIENT_FALSE=
49051 fi
49052
49053
49054 case "${FORCE_USE_RUNDUMP-${USE_RUNDUMP}}" in
49055 y |  ye | yes)
49056 cat >>confdefs.h <<\_ACEOF
49057 #define USE_RUNDUMP 1
49058 _ACEOF
49059 ;;
49060 esac
49061
49062 # This is necessary so that .o files in LIBOBJS are also built via
49063 # the ANSI2KNR-filtering rules.
49064 LIBOBJS=`echo "$LIBOBJS" |
49065              sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
49066 LTLIBOBJS=`echo "$LIBOBJS" |
49067            sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
49068
49069
49070 LTALLOCA=`echo "$ALLOCA" | sed 's/\.'"${ac_objext}"'/\.lo/g'`
49071
49072
49073                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files amplot/amcat.awk amplot/amplot.sh amplot/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 common-src/versuff.c common-src/Makefile example/amanda.conf example/Makefile example/amanda.conf.chg-scsi example/chg-scsi-linux.conf example/chg-scsi-solaris.conf example/chg-scsi-hpux.conf example/chg-mcutil.conf man/amadmin.8 man/amanda.8 man/amcheck.8 man/amcheckdb.8 man/amcleanup.8 man/amdump.8 man/amflush.8 man/amlabel.8 man/amoverview.8 man/amrecover.8 man/amrmtape.8 man/amtoc.8 man/amverify.8 man/Makefile man/amstatus.8 man/amreport.8 man/amgetconf.8 man/amverifyrun.8 man/amtapetype.8 docs/Makefile recover-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 tape-src/Makefile config/Makefile Makefile"
49074
49075 cat >confcache <<\_ACEOF
49076 # This file is a shell script that caches the results of configure
49077 # tests run on this system so they can be shared between configure
49078 # scripts and configure runs, see configure's option --config-cache.
49079 # It is not useful on other systems.  If it contains results you don't
49080 # want to keep, you may remove or edit it.
49081 #
49082 # config.status only pays attention to the cache file if you give it
49083 # the --recheck option to rerun configure.
49084 #
49085 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49086 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49087 # following values.
49088
49089 _ACEOF
49090
49091 # The following way of writing the cache mishandles newlines in values,
49092 # but we know of no workaround that is simple, portable, and efficient.
49093 # So, don't put newlines in cache variables' values.
49094 # Ultrix sh set writes to stderr and can't be redirected directly,
49095 # and sets the high bit in the cache file unless we assign to the vars.
49096 {
49097   (set) 2>&1 |
49098     case `(ac_space=' '; set | grep ac_space) 2>&1` in
49099     *ac_space=\ *)
49100       # `set' does not quote correctly, so add quotes (double-quote
49101       # substitution turns \\\\ into \\, and sed turns \\ into \).
49102       sed -n \
49103         "s/'/'\\\\''/g;
49104           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49105       ;;
49106     *)
49107       # `set' quotes correctly as required by POSIX, so do not add quotes.
49108       sed -n \
49109         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
49110       ;;
49111     esac;
49112 } |
49113   sed '
49114      t clear
49115      : clear
49116      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49117      t end
49118      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49119      : end' >>confcache
49120 if diff $cache_file confcache >/dev/null 2>&1; then :; else
49121   if test -w $cache_file; then
49122     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49123     cat confcache >$cache_file
49124   else
49125     echo "not updating unwritable cache $cache_file"
49126   fi
49127 fi
49128 rm -f confcache
49129
49130 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49131 # Let make expand exec_prefix.
49132 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49133
49134 # VPATH may cause trouble with some makes, so we remove $(srcdir),
49135 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49136 # trailing colons and then remove the whole line if VPATH becomes empty
49137 # (actually we leave an empty line to preserve line numbers).
49138 if test "x$srcdir" = x.; then
49139   ac_vpsub='/^[  ]*VPATH[        ]*=/{
49140 s/:*\$(srcdir):*/:/;
49141 s/:*\${srcdir}:*/:/;
49142 s/:*@srcdir@:*/:/;
49143 s/^\([^=]*=[     ]*\):*/\1/;
49144 s/:*$//;
49145 s/^[^=]*=[       ]*$//;
49146 }'
49147 fi
49148
49149 DEFS=-DHAVE_CONFIG_H
49150
49151 ac_libobjs=
49152 ac_ltlibobjs=
49153 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49154   # 1. Remove the extension, and $U if already installed.
49155   ac_i=`echo "$ac_i" |
49156          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
49157   # 2. Add them.
49158   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49159   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49160 done
49161 LIBOBJS=$ac_libobjs
49162
49163 LTLIBOBJS=$ac_ltlibobjs
49164
49165
49166 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
49167   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
49168 Usually this means the macro was only invoked conditionally." >&5
49169 echo "$as_me: error: conditional \"AMDEP\" was never defined.
49170 Usually this means the macro was only invoked conditionally." >&2;}
49171    { (exit 1); exit 1; }; }
49172 fi
49173 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
49174   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
49175 Usually this means the macro was only invoked conditionally." >&5
49176 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
49177 Usually this means the macro was only invoked conditionally." >&2;}
49178    { (exit 1); exit 1; }; }
49179 fi
49180 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
49181   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
49182 Usually this means the macro was only invoked conditionally." >&5
49183 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
49184 Usually this means the macro was only invoked conditionally." >&2;}
49185    { (exit 1); exit 1; }; }
49186 fi
49187 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
49188   { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
49189 Usually this means the macro was only invoked conditionally." >&5
49190 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
49191 Usually this means the macro was only invoked conditionally." >&2;}
49192    { (exit 1); exit 1; }; }
49193 fi
49194 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
49195   { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
49196 Usually this means the macro was only invoked conditionally." >&5
49197 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
49198 Usually this means the macro was only invoked conditionally." >&2;}
49199    { (exit 1); exit 1; }; }
49200 fi
49201 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
49202   { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
49203 Usually this means the macro was only invoked conditionally." >&5
49204 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
49205 Usually this means the macro was only invoked conditionally." >&2;}
49206    { (exit 1); exit 1; }; }
49207 fi
49208 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
49209   { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
49210 Usually this means the macro was only invoked conditionally." >&5
49211 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
49212 Usually this means the macro was only invoked conditionally." >&2;}
49213    { (exit 1); exit 1; }; }
49214 fi
49215 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
49216   { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
49217 Usually this means the macro was only invoked conditionally." >&5
49218 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
49219 Usually this means the macro was only invoked conditionally." >&2;}
49220    { (exit 1); exit 1; }; }
49221 fi
49222 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
49223   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
49224 Usually this means the macro was only invoked conditionally." >&5
49225 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
49226 Usually this means the macro was only invoked conditionally." >&2;}
49227    { (exit 1); exit 1; }; }
49228 fi
49229 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
49230   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
49231 Usually this means the macro was only invoked conditionally." >&5
49232 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
49233 Usually this means the macro was only invoked conditionally." >&2;}
49234    { (exit 1); exit 1; }; }
49235 fi
49236 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
49237   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
49238 Usually this means the macro was only invoked conditionally." >&5
49239 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
49240 Usually this means the macro was only invoked conditionally." >&2;}
49241    { (exit 1); exit 1; }; }
49242 fi
49243 if test -z "${WANT_CHIO_SCSI_TRUE}" && test -z "${WANT_CHIO_SCSI_FALSE}"; then
49244   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHIO_SCSI\" was never defined.
49245 Usually this means the macro was only invoked conditionally." >&5
49246 echo "$as_me: error: conditional \"WANT_CHIO_SCSI\" was never defined.
49247 Usually this means the macro was only invoked conditionally." >&2;}
49248    { (exit 1); exit 1; }; }
49249 fi
49250 if test -z "${WANT_RUNTIME_PSEUDO_RELOC_TRUE}" && test -z "${WANT_RUNTIME_PSEUDO_RELOC_FALSE}"; then
49251   { { echo "$as_me:$LINENO: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
49252 Usually this means the macro was only invoked conditionally." >&5
49253 echo "$as_me: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
49254 Usually this means the macro was only invoked conditionally." >&2;}
49255    { (exit 1); exit 1; }; }
49256 fi
49257 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
49258   { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
49259 Usually this means the macro was only invoked conditionally." >&5
49260 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
49261 Usually this means the macro was only invoked conditionally." >&2;}
49262    { (exit 1); exit 1; }; }
49263 fi
49264
49265 : ${CONFIG_STATUS=./config.status}
49266 ac_clean_files_save=$ac_clean_files
49267 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49268 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49269 echo "$as_me: creating $CONFIG_STATUS" >&6;}
49270 cat >$CONFIG_STATUS <<_ACEOF
49271 #! $SHELL
49272 # Generated by $as_me.
49273 # Run this file to recreate the current configuration.
49274 # Compiler output produced by configure, useful for debugging
49275 # configure, is in config.log if it exists.
49276
49277 debug=false
49278 ac_cs_recheck=false
49279 ac_cs_silent=false
49280 SHELL=\${CONFIG_SHELL-$SHELL}
49281 _ACEOF
49282
49283 cat >>$CONFIG_STATUS <<\_ACEOF
49284 ## --------------------- ##
49285 ## M4sh Initialization.  ##
49286 ## --------------------- ##
49287
49288 # Be Bourne compatible
49289 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49290   emulate sh
49291   NULLCMD=:
49292   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49293   # is contrary to our usage.  Disable this feature.
49294   alias -g '${1+"$@"}'='"$@"'
49295 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49296   set -o posix
49297 fi
49298 DUALCASE=1; export DUALCASE # for MKS sh
49299
49300 # Support unset when possible.
49301 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
49302   as_unset=unset
49303 else
49304   as_unset=false
49305 fi
49306
49307
49308 # Work around bugs in pre-3.0 UWIN ksh.
49309 $as_unset ENV MAIL MAILPATH
49310 PS1='$ '
49311 PS2='> '
49312 PS4='+ '
49313
49314 # NLS nuisances.
49315 for as_var in \
49316   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49317   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49318   LC_TELEPHONE LC_TIME
49319 do
49320   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49321     eval $as_var=C; export $as_var
49322   else
49323     $as_unset $as_var
49324   fi
49325 done
49326
49327 # Required to use basename.
49328 if expr a : '\(a\)' >/dev/null 2>&1; then
49329   as_expr=expr
49330 else
49331   as_expr=false
49332 fi
49333
49334 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49335   as_basename=basename
49336 else
49337   as_basename=false
49338 fi
49339
49340
49341 # Name of the executable.
49342 as_me=`$as_basename "$0" ||
49343 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49344          X"$0" : 'X\(//\)$' \| \
49345          X"$0" : 'X\(/\)$' \| \
49346          .     : '\(.\)' 2>/dev/null ||
49347 echo X/"$0" |
49348     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49349           /^X\/\(\/\/\)$/{ s//\1/; q; }
49350           /^X\/\(\/\).*/{ s//\1/; q; }
49351           s/.*/./; q'`
49352
49353
49354 # PATH needs CR, and LINENO needs CR and PATH.
49355 # Avoid depending upon Character Ranges.
49356 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49357 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49358 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49359 as_cr_digits='0123456789'
49360 as_cr_alnum=$as_cr_Letters$as_cr_digits
49361
49362 # The user is always right.
49363 if test "${PATH_SEPARATOR+set}" != set; then
49364   echo "#! /bin/sh" >conf$$.sh
49365   echo  "exit 0"   >>conf$$.sh
49366   chmod +x conf$$.sh
49367   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49368     PATH_SEPARATOR=';'
49369   else
49370     PATH_SEPARATOR=:
49371   fi
49372   rm -f conf$$.sh
49373 fi
49374
49375
49376   as_lineno_1=$LINENO
49377   as_lineno_2=$LINENO
49378   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49379   test "x$as_lineno_1" != "x$as_lineno_2" &&
49380   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
49381   # Find who we are.  Look in the path if we contain no path at all
49382   # relative or not.
49383   case $0 in
49384     *[\\/]* ) as_myself=$0 ;;
49385     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49386 for as_dir in $PATH
49387 do
49388   IFS=$as_save_IFS
49389   test -z "$as_dir" && as_dir=.
49390   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49391 done
49392
49393        ;;
49394   esac
49395   # We did not find ourselves, most probably we were run as `sh COMMAND'
49396   # in which case we are not to be found in the path.
49397   if test "x$as_myself" = x; then
49398     as_myself=$0
49399   fi
49400   if test ! -f "$as_myself"; then
49401     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49402 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49403    { (exit 1); exit 1; }; }
49404   fi
49405   case $CONFIG_SHELL in
49406   '')
49407     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49408 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49409 do
49410   IFS=$as_save_IFS
49411   test -z "$as_dir" && as_dir=.
49412   for as_base in sh bash ksh sh5; do
49413          case $as_dir in
49414          /*)
49415            if ("$as_dir/$as_base" -c '
49416   as_lineno_1=$LINENO
49417   as_lineno_2=$LINENO
49418   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49419   test "x$as_lineno_1" != "x$as_lineno_2" &&
49420   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
49421              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49422              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49423              CONFIG_SHELL=$as_dir/$as_base
49424              export CONFIG_SHELL
49425              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49426            fi;;
49427          esac
49428        done
49429 done
49430 ;;
49431   esac
49432
49433   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49434   # uniformly replaced by the line number.  The first 'sed' inserts a
49435   # line-number line before each line; the second 'sed' does the real
49436   # work.  The second script uses 'N' to pair each line-number line
49437   # with the numbered line, and appends trailing '-' during
49438   # substitution so that $LINENO is not a special case at line end.
49439   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49440   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
49441   sed '=' <$as_myself |
49442     sed '
49443       N
49444       s,$,-,
49445       : loop
49446       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49447       t loop
49448       s,-$,,
49449       s,^['$as_cr_digits']*\n,,
49450     ' >$as_me.lineno &&
49451   chmod +x $as_me.lineno ||
49452     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49453 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49454    { (exit 1); exit 1; }; }
49455
49456   # Don't try to exec as it changes $[0], causing all sort of problems
49457   # (the dirname of $[0] is not the place where we might find the
49458   # original and so on.  Autoconf is especially sensible to this).
49459   . ./$as_me.lineno
49460   # Exit status is that of the last command.
49461   exit
49462 }
49463
49464
49465 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49466   *c*,-n*) ECHO_N= ECHO_C='
49467 ' ECHO_T='      ' ;;
49468   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49469   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
49470 esac
49471
49472 if expr a : '\(a\)' >/dev/null 2>&1; then
49473   as_expr=expr
49474 else
49475   as_expr=false
49476 fi
49477
49478 rm -f conf$$ conf$$.exe conf$$.file
49479 echo >conf$$.file
49480 if ln -s conf$$.file conf$$ 2>/dev/null; then
49481   # We could just check for DJGPP; but this test a) works b) is more generic
49482   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49483   if test -f conf$$.exe; then
49484     # Don't use ln at all; we don't have any links
49485     as_ln_s='cp -p'
49486   else
49487     as_ln_s='ln -s'
49488   fi
49489 elif ln conf$$.file conf$$ 2>/dev/null; then
49490   as_ln_s=ln
49491 else
49492   as_ln_s='cp -p'
49493 fi
49494 rm -f conf$$ conf$$.exe conf$$.file
49495
49496 if mkdir -p . 2>/dev/null; then
49497   as_mkdir_p=:
49498 else
49499   test -d ./-p && rmdir ./-p
49500   as_mkdir_p=false
49501 fi
49502
49503 as_executable_p="test -f"
49504
49505 # Sed expression to map a string onto a valid CPP name.
49506 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
49507
49508 # Sed expression to map a string onto a valid variable name.
49509 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
49510
49511
49512 # IFS
49513 # We need space, tab and new line, in precisely that order.
49514 as_nl='
49515 '
49516 IFS="   $as_nl"
49517
49518 # CDPATH.
49519 $as_unset CDPATH
49520
49521 exec 6>&1
49522
49523 # Open the log real soon, to keep \$[0] and so on meaningful, and to
49524 # report actual input values of CONFIG_FILES etc. instead of their
49525 # values after options handling.  Logging --version etc. is OK.
49526 exec 5>>config.log
49527 {
49528   echo
49529   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49530 ## Running $as_me. ##
49531 _ASBOX
49532 } >&5
49533 cat >&5 <<_CSEOF
49534
49535 This file was extended by $as_me, which was
49536 generated by GNU Autoconf 2.59.  Invocation command line was
49537
49538   CONFIG_FILES    = $CONFIG_FILES
49539   CONFIG_HEADERS  = $CONFIG_HEADERS
49540   CONFIG_LINKS    = $CONFIG_LINKS
49541   CONFIG_COMMANDS = $CONFIG_COMMANDS
49542   $ $0 $@
49543
49544 _CSEOF
49545 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49546 echo >&5
49547 _ACEOF
49548
49549 # Files that config.status was made for.
49550 if test -n "$ac_config_files"; then
49551   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49552 fi
49553
49554 if test -n "$ac_config_headers"; then
49555   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49556 fi
49557
49558 if test -n "$ac_config_links"; then
49559   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49560 fi
49561
49562 if test -n "$ac_config_commands"; then
49563   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49564 fi
49565
49566 cat >>$CONFIG_STATUS <<\_ACEOF
49567
49568 ac_cs_usage="\
49569 \`$as_me' instantiates files from templates according to the
49570 current configuration.
49571
49572 Usage: $0 [OPTIONS] [FILE]...
49573
49574   -h, --help       print this help, then exit
49575   -V, --version    print version number, then exit
49576   -q, --quiet      do not print progress messages
49577   -d, --debug      don't remove temporary files
49578       --recheck    update $as_me by reconfiguring in the same conditions
49579   --file=FILE[:TEMPLATE]
49580                    instantiate the configuration file FILE
49581   --header=FILE[:TEMPLATE]
49582                    instantiate the configuration header FILE
49583
49584 Configuration files:
49585 $config_files
49586
49587 Configuration headers:
49588 $config_headers
49589
49590 Configuration commands:
49591 $config_commands
49592
49593 Report bugs to <bug-autoconf@gnu.org>."
49594 _ACEOF
49595
49596 cat >>$CONFIG_STATUS <<_ACEOF
49597 ac_cs_version="\\
49598 config.status
49599 configured by $0, generated by GNU Autoconf 2.59,
49600   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49601
49602 Copyright (C) 2003 Free Software Foundation, Inc.
49603 This config.status script is free software; the Free Software Foundation
49604 gives unlimited permission to copy, distribute and modify it."
49605 srcdir=$srcdir
49606 INSTALL="$INSTALL"
49607 _ACEOF
49608
49609 cat >>$CONFIG_STATUS <<\_ACEOF
49610 # If no file are specified by the user, then we need to provide default
49611 # value.  By we need to know if files were specified by the user.
49612 ac_need_defaults=:
49613 while test $# != 0
49614 do
49615   case $1 in
49616   --*=*)
49617     ac_option=`expr "x$1" : 'x\([^=]*\)='`
49618     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49619     ac_shift=:
49620     ;;
49621   -*)
49622     ac_option=$1
49623     ac_optarg=$2
49624     ac_shift=shift
49625     ;;
49626   *) # This is not an option, so the user has probably given explicit
49627      # arguments.
49628      ac_option=$1
49629      ac_need_defaults=false;;
49630   esac
49631
49632   case $ac_option in
49633   # Handling of the options.
49634 _ACEOF
49635 cat >>$CONFIG_STATUS <<\_ACEOF
49636   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49637     ac_cs_recheck=: ;;
49638   --version | --vers* | -V )
49639     echo "$ac_cs_version"; exit 0 ;;
49640   --he | --h)
49641     # Conflict between --help and --header
49642     { { echo "$as_me:$LINENO: error: ambiguous option: $1
49643 Try \`$0 --help' for more information." >&5
49644 echo "$as_me: error: ambiguous option: $1
49645 Try \`$0 --help' for more information." >&2;}
49646    { (exit 1); exit 1; }; };;
49647   --help | --hel | -h )
49648     echo "$ac_cs_usage"; exit 0 ;;
49649   --debug | --d* | -d )
49650     debug=: ;;
49651   --file | --fil | --fi | --f )
49652     $ac_shift
49653     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49654     ac_need_defaults=false;;
49655   --header | --heade | --head | --hea )
49656     $ac_shift
49657     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49658     ac_need_defaults=false;;
49659   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49660   | -silent | --silent | --silen | --sile | --sil | --si | --s)
49661     ac_cs_silent=: ;;
49662
49663   # This is an error.
49664   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49665 Try \`$0 --help' for more information." >&5
49666 echo "$as_me: error: unrecognized option: $1
49667 Try \`$0 --help' for more information." >&2;}
49668    { (exit 1); exit 1; }; } ;;
49669
49670   *) ac_config_targets="$ac_config_targets $1" ;;
49671
49672   esac
49673   shift
49674 done
49675
49676 ac_configure_extra_args=
49677
49678 if $ac_cs_silent; then
49679   exec 6>/dev/null
49680   ac_configure_extra_args="$ac_configure_extra_args --silent"
49681 fi
49682
49683 _ACEOF
49684 cat >>$CONFIG_STATUS <<_ACEOF
49685 if \$ac_cs_recheck; then
49686   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49687   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49688 fi
49689
49690 _ACEOF
49691
49692 cat >>$CONFIG_STATUS <<_ACEOF
49693 #
49694 # INIT-COMMANDS section.
49695 #
49696
49697 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
49698 # variables for create stdint.h replacement
49699 PACKAGE="$PACKAGE"
49700 VERSION="$VERSION"
49701 ac_stdint_h="$ac_stdint_h"
49702 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
49703 ac_cv_stdint_message="$ac_cv_stdint_message"
49704 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
49705 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
49706 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
49707 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
49708 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
49709 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
49710 ac_cv_stdint_char_model="$ac_cv_stdint_char_model"
49711 ac_cv_stdint_long_model="$ac_cv_stdint_long_model"
49712 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
49713 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
49714 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
49715
49716
49717 _ACEOF
49718
49719
49720
49721 cat >>$CONFIG_STATUS <<\_ACEOF
49722 for ac_config_target in $ac_config_targets
49723 do
49724   case "$ac_config_target" in
49725   # Handling of arguments.
49726   "amplot/amcat.awk" ) CONFIG_FILES="$CONFIG_FILES amplot/amcat.awk" ;;
49727   "amplot/amplot.sh" ) CONFIG_FILES="$CONFIG_FILES amplot/amplot.sh" ;;
49728   "amplot/Makefile" ) CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
49729   "changer-src/chg-manual.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-manual.sh" ;;
49730   "changer-src/chg-multi.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-multi.sh" ;;
49731   "changer-src/chg-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mtx.sh" ;;
49732   "changer-src/chg-chs.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chs.sh" ;;
49733   "changer-src/chg-rth.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rth.pl" ;;
49734   "changer-src/chg-chio.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chio.pl" ;;
49735   "changer-src/chg-zd-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-zd-mtx.sh" ;;
49736   "changer-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
49737   "changer-src/chg-juke.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-juke.sh" ;;
49738   "changer-src/chg-rait.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rait.sh" ;;
49739   "changer-src/chg-null.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-null.sh" ;;
49740   "changer-src/chg-mcutil.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mcutil.sh" ;;
49741   "changer-src/chg-disk.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-disk.sh" ;;
49742   "changer-src/chg-iomega.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-iomega.pl" ;;
49743   "client-src/patch-system.sh" ) CONFIG_FILES="$CONFIG_FILES client-src/patch-system.sh" ;;
49744   "client-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
49745   "common-src/versuff.c" ) CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
49746   "common-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
49747   "example/amanda.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
49748   "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
49749   "example/amanda.conf.chg-scsi" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf.chg-scsi" ;;
49750   "example/chg-scsi-linux.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-linux.conf" ;;
49751   "example/chg-scsi-solaris.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-solaris.conf" ;;
49752   "example/chg-scsi-hpux.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-hpux.conf" ;;
49753   "example/chg-mcutil.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
49754   "man/amadmin.8" ) CONFIG_FILES="$CONFIG_FILES man/amadmin.8" ;;
49755   "man/amanda.8" ) CONFIG_FILES="$CONFIG_FILES man/amanda.8" ;;
49756   "man/amcheck.8" ) CONFIG_FILES="$CONFIG_FILES man/amcheck.8" ;;
49757   "man/amcheckdb.8" ) CONFIG_FILES="$CONFIG_FILES man/amcheckdb.8" ;;
49758   "man/amcleanup.8" ) CONFIG_FILES="$CONFIG_FILES man/amcleanup.8" ;;
49759   "man/amdump.8" ) CONFIG_FILES="$CONFIG_FILES man/amdump.8" ;;
49760   "man/amflush.8" ) CONFIG_FILES="$CONFIG_FILES man/amflush.8" ;;
49761   "man/amlabel.8" ) CONFIG_FILES="$CONFIG_FILES man/amlabel.8" ;;
49762   "man/amoverview.8" ) CONFIG_FILES="$CONFIG_FILES man/amoverview.8" ;;
49763   "man/amrecover.8" ) CONFIG_FILES="$CONFIG_FILES man/amrecover.8" ;;
49764   "man/amrmtape.8" ) CONFIG_FILES="$CONFIG_FILES man/amrmtape.8" ;;
49765   "man/amtoc.8" ) CONFIG_FILES="$CONFIG_FILES man/amtoc.8" ;;
49766   "man/amverify.8" ) CONFIG_FILES="$CONFIG_FILES man/amverify.8" ;;
49767   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
49768   "man/amstatus.8" ) CONFIG_FILES="$CONFIG_FILES man/amstatus.8" ;;
49769   "man/amreport.8" ) CONFIG_FILES="$CONFIG_FILES man/amreport.8" ;;
49770   "man/amgetconf.8" ) CONFIG_FILES="$CONFIG_FILES man/amgetconf.8" ;;
49771   "man/amverifyrun.8" ) CONFIG_FILES="$CONFIG_FILES man/amverifyrun.8" ;;
49772   "man/amtapetype.8" ) CONFIG_FILES="$CONFIG_FILES man/amtapetype.8" ;;
49773   "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
49774   "recover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
49775   "restore-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
49776   "server-src/amcheckdb.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcheckdb.sh" ;;
49777   "server-src/amcleanup.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcleanup.sh" ;;
49778   "server-src/amdump.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amdump.sh" ;;
49779   "server-src/amfreetapes.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amfreetapes.sh" ;;
49780   "server-src/amoverview.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amoverview.pl" ;;
49781   "server-src/amrmtape.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amrmtape.sh" ;;
49782   "server-src/amtoc.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amtoc.pl" ;;
49783   "server-src/amverify.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverify.sh" ;;
49784   "server-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
49785   "server-src/amstatus.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amstatus.pl" ;;
49786   "server-src/amverifyrun.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverifyrun.sh" ;;
49787   "tape-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
49788   "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
49789   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49790   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
49791   "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
49792   "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
49793   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49794 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49795    { (exit 1); exit 1; }; };;
49796   esac
49797 done
49798
49799 # If the user did not use the arguments to specify the items to instantiate,
49800 # then the envvar interface is used.  Set only those that are not.
49801 # We use the long form for the default assignment because of an extremely
49802 # bizarre bug on SunOS 4.1.3.
49803 if $ac_need_defaults; then
49804   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49805   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49806   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49807 fi
49808
49809 # Have a temporary directory for convenience.  Make it in the build tree
49810 # simply because there is no reason to put it here, and in addition,
49811 # creating and moving files from /tmp can sometimes cause problems.
49812 # Create a temporary directory, and hook for its removal unless debugging.
49813 $debug ||
49814 {
49815   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49816   trap '{ (exit 1); exit 1; }' 1 2 13 15
49817 }
49818
49819 # Create a (secure) tmp directory for tmp files.
49820
49821 {
49822   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49823   test -n "$tmp" && test -d "$tmp"
49824 }  ||
49825 {
49826   tmp=./confstat$$-$RANDOM
49827   (umask 077 && mkdir $tmp)
49828 } ||
49829 {
49830    echo "$me: cannot create a temporary directory in ." >&2
49831    { (exit 1); exit 1; }
49832 }
49833
49834 _ACEOF
49835
49836 cat >>$CONFIG_STATUS <<_ACEOF
49837
49838 #
49839 # CONFIG_FILES section.
49840 #
49841
49842 # No need to generate the scripts if there are no CONFIG_FILES.
49843 # This happens for instance when ./config.status config.h
49844 if test -n "\$CONFIG_FILES"; then
49845   # Protect against being on the right side of a sed subst in config.status.
49846   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49847    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49848 s,@SHELL@,$SHELL,;t t
49849 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49850 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49851 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49852 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49853 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49854 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49855 s,@exec_prefix@,$exec_prefix,;t t
49856 s,@prefix@,$prefix,;t t
49857 s,@program_transform_name@,$program_transform_name,;t t
49858 s,@bindir@,$bindir,;t t
49859 s,@sbindir@,$sbindir,;t t
49860 s,@libexecdir@,$libexecdir,;t t
49861 s,@datadir@,$datadir,;t t
49862 s,@sysconfdir@,$sysconfdir,;t t
49863 s,@sharedstatedir@,$sharedstatedir,;t t
49864 s,@localstatedir@,$localstatedir,;t t
49865 s,@libdir@,$libdir,;t t
49866 s,@includedir@,$includedir,;t t
49867 s,@oldincludedir@,$oldincludedir,;t t
49868 s,@infodir@,$infodir,;t t
49869 s,@mandir@,$mandir,;t t
49870 s,@build_alias@,$build_alias,;t t
49871 s,@host_alias@,$host_alias,;t t
49872 s,@target_alias@,$target_alias,;t t
49873 s,@DEFS@,$DEFS,;t t
49874 s,@ECHO_C@,$ECHO_C,;t t
49875 s,@ECHO_N@,$ECHO_N,;t t
49876 s,@ECHO_T@,$ECHO_T,;t t
49877 s,@LIBS@,$LIBS,;t t
49878 s,@build@,$build,;t t
49879 s,@build_cpu@,$build_cpu,;t t
49880 s,@build_vendor@,$build_vendor,;t t
49881 s,@build_os@,$build_os,;t t
49882 s,@host@,$host,;t t
49883 s,@host_cpu@,$host_cpu,;t t
49884 s,@host_vendor@,$host_vendor,;t t
49885 s,@host_os@,$host_os,;t t
49886 s,@target@,$target,;t t
49887 s,@target_cpu@,$target_cpu,;t t
49888 s,@target_vendor@,$target_vendor,;t t
49889 s,@target_os@,$target_os,;t t
49890 s,@CONFIGURE_COMMAND@,$CONFIGURE_COMMAND,;t t
49891 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49892 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49893 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49894 s,@CYGPATH_W@,$CYGPATH_W,;t t
49895 s,@PACKAGE@,$PACKAGE,;t t
49896 s,@VERSION@,$VERSION,;t t
49897 s,@ACLOCAL@,$ACLOCAL,;t t
49898 s,@AUTOCONF@,$AUTOCONF,;t t
49899 s,@AUTOMAKE@,$AUTOMAKE,;t t
49900 s,@AUTOHEADER@,$AUTOHEADER,;t t
49901 s,@MAKEINFO@,$MAKEINFO,;t t
49902 s,@AMTAR@,$AMTAR,;t t
49903 s,@install_sh@,$install_sh,;t t
49904 s,@STRIP@,$STRIP,;t t
49905 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
49906 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
49907 s,@mkdir_p@,$mkdir_p,;t t
49908 s,@AWK@,$AWK,;t t
49909 s,@SET_MAKE@,$SET_MAKE,;t t
49910 s,@am__leading_dot@,$am__leading_dot,;t t
49911 s,@SNAPSHOT_STAMP@,$SNAPSHOT_STAMP,;t t
49912 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
49913 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
49914 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
49915 s,@VERSION_COMMENT@,$VERSION_COMMENT,;t t
49916 s,@VERSION_SUFFIX@,$VERSION_SUFFIX,;t t
49917 s,@CONFIG_DIR@,$CONFIG_DIR,;t t
49918 s,@USE_VERSION_SUFFIXES@,$USE_VERSION_SUFFIXES,;t t
49919 s,@CLIENT_SCRIPTS_OPT@,$CLIENT_SCRIPTS_OPT,;t t
49920 s,@DEFAULT_SERVER@,$DEFAULT_SERVER,;t t
49921 s,@CLIENT_LOGIN@,$CLIENT_LOGIN,;t t
49922 s,@SETUID_GROUP@,$SETUID_GROUP,;t t
49923 s,@BINARY_OWNER@,$BINARY_OWNER,;t t
49924 s,@DEFAULT_CONFIG@,$DEFAULT_CONFIG,;t t
49925 s,@DEFAULT_TAPE_SERVER@,$DEFAULT_TAPE_SERVER,;t t
49926 s,@DEFAULT_TAPE_DEVICE@,$DEFAULT_TAPE_DEVICE,;t t
49927 s,@DEFAULT_RAW_TAPE_DEVICE@,$DEFAULT_RAW_TAPE_DEVICE,;t t
49928 s,@DEFAULT_CHANGER_DEVICE@,$DEFAULT_CHANGER_DEVICE,;t t
49929 s,@GNUTAR_LISTED_INCREMENTAL_DIRX@,$GNUTAR_LISTED_INCREMENTAL_DIRX,;t t
49930 s,@MAXTAPEBLOCKSIZE@,$MAXTAPEBLOCKSIZE,;t t
49931 s,@AMANDA_TMPDIR@,$AMANDA_TMPDIR,;t t
49932 s,@AMANDA_DBGDIR@,$AMANDA_DBGDIR,;t t
49933 s,@AMANDA_DEBUG_DAYS@,$AMANDA_DEBUG_DAYS,;t t
49934 s,@SERVICE_SUFFIX@,$SERVICE_SUFFIX,;t t
49935 s,@CC@,$CC,;t t
49936 s,@CFLAGS@,$CFLAGS,;t t
49937 s,@LDFLAGS@,$LDFLAGS,;t t
49938 s,@CPPFLAGS@,$CPPFLAGS,;t t
49939 s,@ac_ct_CC@,$ac_ct_CC,;t t
49940 s,@EXEEXT@,$EXEEXT,;t t
49941 s,@OBJEXT@,$OBJEXT,;t t
49942 s,@DEPDIR@,$DEPDIR,;t t
49943 s,@am__include@,$am__include,;t t
49944 s,@am__quote@,$am__quote,;t t
49945 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
49946 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
49947 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
49948 s,@CCDEPMODE@,$CCDEPMODE,;t t
49949 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
49950 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
49951 s,@MT_FILE_FLAG@,$MT_FILE_FLAG,;t t
49952 s,@CPP@,$CPP,;t t
49953 s,@EGREP@,$EGREP,;t t
49954 s,@AR@,$AR,;t t
49955 s,@AWK_VAR_ASSIGNMENT_OPT@,$AWK_VAR_ASSIGNMENT_OPT,;t t
49956 s,@YACC@,$YACC,;t t
49957 s,@CAT@,$CAT,;t t
49958 s,@COMPRESS@,$COMPRESS,;t t
49959 s,@DD@,$DD,;t t
49960 s,@GETCONF@,$GETCONF,;t t
49961 s,@GNUPLOT@,$GNUPLOT,;t t
49962 s,@GREP@,$GREP,;t t
49963 s,@GNUTAR@,$GNUTAR,;t t
49964 s,@SAMBA_CLIENT@,$SAMBA_CLIENT,;t t
49965 s,@GZIP@,$GZIP,;t t
49966 s,@MAILER@,$MAILER,;t t
49967 s,@MT@,$MT,;t t
49968 s,@CHIO@,$CHIO,;t t
49969 s,@CHS@,$CHS,;t t
49970 s,@MTX@,$MTX,;t t
49971 s,@MCUTIL@,$MCUTIL,;t t
49972 s,@PRINT@,$PRINT,;t t
49973 s,@PCAT@,$PCAT,;t t
49974 s,@PERL@,$PERL,;t t
49975 s,@DUMP@,$DUMP,;t t
49976 s,@RESTORE@,$RESTORE,;t t
49977 s,@XFSDUMP@,$XFSDUMP,;t t
49978 s,@XFSRESTORE@,$XFSRESTORE,;t t
49979 s,@VXDUMP@,$VXDUMP,;t t
49980 s,@VXRESTORE@,$VXRESTORE,;t t
49981 s,@VDUMP@,$VDUMP,;t t
49982 s,@VRESTORE@,$VRESTORE,;t t
49983 s,@AMPLOT_COMPRESS@,$AMPLOT_COMPRESS,;t t
49984 s,@AMPLOT_CAT_GZIP@,$AMPLOT_CAT_GZIP,;t t
49985 s,@AMPLOT_CAT_COMPRESS@,$AMPLOT_CAT_COMPRESS,;t t
49986 s,@AMPLOT_CAT_PACK@,$AMPLOT_CAT_PACK,;t t
49987 s,@LN_S@,$LN_S,;t t
49988 s,@ECHO@,$ECHO,;t t
49989 s,@ac_ct_AR@,$ac_ct_AR,;t t
49990 s,@RANLIB@,$RANLIB,;t t
49991 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49992 s,@CXX@,$CXX,;t t
49993 s,@CXXFLAGS@,$CXXFLAGS,;t t
49994 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49995 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
49996 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
49997 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
49998 s,@CXXCPP@,$CXXCPP,;t t
49999 s,@F77@,$F77,;t t
50000 s,@FFLAGS@,$FFLAGS,;t t
50001 s,@ac_ct_F77@,$ac_ct_F77,;t t
50002 s,@LIBTOOL@,$LIBTOOL,;t t
50003 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
50004 s,@LEX@,$LEX,;t t
50005 s,@LEXLIB@,$LEXLIB,;t t
50006 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
50007 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
50008 s,@DB_EXT@,$DB_EXT,;t t
50009 s,@ALLOCA@,$ALLOCA,;t t
50010 s,@LIBOBJS@,$LIBOBJS,;t t
50011 s,@ac_n@,$ac_n,;t t
50012 s,@ac_c@,$ac_c,;t t
50013 s,@WANT_CLIENT_TRUE@,$WANT_CLIENT_TRUE,;t t
50014 s,@WANT_CLIENT_FALSE@,$WANT_CLIENT_FALSE,;t t
50015 s,@WANT_SAMBA_TRUE@,$WANT_SAMBA_TRUE,;t t
50016 s,@WANT_SAMBA_FALSE@,$WANT_SAMBA_FALSE,;t t
50017 s,@WANT_RESTORE_TRUE@,$WANT_RESTORE_TRUE,;t t
50018 s,@WANT_RESTORE_FALSE@,$WANT_RESTORE_FALSE,;t t
50019 s,@WANT_SERVER_TRUE@,$WANT_SERVER_TRUE,;t t
50020 s,@WANT_SERVER_FALSE@,$WANT_SERVER_FALSE,;t t
50021 s,@WANT_RECOVER_TRUE@,$WANT_RECOVER_TRUE,;t t
50022 s,@WANT_RECOVER_FALSE@,$WANT_RECOVER_FALSE,;t t
50023 s,@WANT_TAPE_TRUE@,$WANT_TAPE_TRUE,;t t
50024 s,@WANT_TAPE_FALSE@,$WANT_TAPE_FALSE,;t t
50025 s,@WANT_AMPLOT_TRUE@,$WANT_AMPLOT_TRUE,;t t
50026 s,@WANT_AMPLOT_FALSE@,$WANT_AMPLOT_FALSE,;t t
50027 s,@WANT_CHG_SCSI_TRUE@,$WANT_CHG_SCSI_TRUE,;t t
50028 s,@WANT_CHG_SCSI_FALSE@,$WANT_CHG_SCSI_FALSE,;t t
50029 s,@WANT_CHIO_SCSI_TRUE@,$WANT_CHIO_SCSI_TRUE,;t t
50030 s,@WANT_CHIO_SCSI_FALSE@,$WANT_CHIO_SCSI_FALSE,;t t
50031 s,@WANT_RUNTIME_PSEUDO_RELOC_TRUE@,$WANT_RUNTIME_PSEUDO_RELOC_TRUE,;t t
50032 s,@WANT_RUNTIME_PSEUDO_RELOC_FALSE@,$WANT_RUNTIME_PSEUDO_RELOC_FALSE,;t t
50033 s,@WANT_SETUID_CLIENT_TRUE@,$WANT_SETUID_CLIENT_TRUE,;t t
50034 s,@WANT_SETUID_CLIENT_FALSE@,$WANT_SETUID_CLIENT_FALSE,;t t
50035 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50036 s,@LTALLOCA@,$LTALLOCA,;t t
50037 CEOF
50038
50039 _ACEOF
50040
50041   cat >>$CONFIG_STATUS <<\_ACEOF
50042   # Split the substitutions into bite-sized pieces for seds with
50043   # small command number limits, like on Digital OSF/1 and HP-UX.
50044   ac_max_sed_lines=48
50045   ac_sed_frag=1 # Number of current file.
50046   ac_beg=1 # First line for current file.
50047   ac_end=$ac_max_sed_lines # Line after last line for current file.
50048   ac_more_lines=:
50049   ac_sed_cmds=
50050   while $ac_more_lines; do
50051     if test $ac_beg -gt 1; then
50052       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50053     else
50054       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50055     fi
50056     if test ! -s $tmp/subs.frag; then
50057       ac_more_lines=false
50058     else
50059       # The purpose of the label and of the branching condition is to
50060       # speed up the sed processing (if there are no `@' at all, there
50061       # is no need to browse any of the substitutions).
50062       # These are the two extra sed commands mentioned above.
50063       (echo ':t
50064   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50065       if test -z "$ac_sed_cmds"; then
50066         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
50067       else
50068         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
50069       fi
50070       ac_sed_frag=`expr $ac_sed_frag + 1`
50071       ac_beg=$ac_end
50072       ac_end=`expr $ac_end + $ac_max_sed_lines`
50073     fi
50074   done
50075   if test -z "$ac_sed_cmds"; then
50076     ac_sed_cmds=cat
50077   fi
50078 fi # test -n "$CONFIG_FILES"
50079
50080 _ACEOF
50081 cat >>$CONFIG_STATUS <<\_ACEOF
50082 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50083   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50084   case $ac_file in
50085   - | *:- | *:-:* ) # input from stdin
50086         cat >$tmp/stdin
50087         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50088         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50089   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50090         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50091   * )   ac_file_in=$ac_file.in ;;
50092   esac
50093
50094   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50095   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50097          X"$ac_file" : 'X\(//\)[^/]' \| \
50098          X"$ac_file" : 'X\(//\)$' \| \
50099          X"$ac_file" : 'X\(/\)' \| \
50100          .     : '\(.\)' 2>/dev/null ||
50101 echo X"$ac_file" |
50102     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50103           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50104           /^X\(\/\/\)$/{ s//\1/; q; }
50105           /^X\(\/\).*/{ s//\1/; q; }
50106           s/.*/./; q'`
50107   { if $as_mkdir_p; then
50108     mkdir -p "$ac_dir"
50109   else
50110     as_dir="$ac_dir"
50111     as_dirs=
50112     while test ! -d "$as_dir"; do
50113       as_dirs="$as_dir $as_dirs"
50114       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50116          X"$as_dir" : 'X\(//\)[^/]' \| \
50117          X"$as_dir" : 'X\(//\)$' \| \
50118          X"$as_dir" : 'X\(/\)' \| \
50119          .     : '\(.\)' 2>/dev/null ||
50120 echo X"$as_dir" |
50121     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50122           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50123           /^X\(\/\/\)$/{ s//\1/; q; }
50124           /^X\(\/\).*/{ s//\1/; q; }
50125           s/.*/./; q'`
50126     done
50127     test ! -n "$as_dirs" || mkdir $as_dirs
50128   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50129 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50130    { (exit 1); exit 1; }; }; }
50131
50132   ac_builddir=.
50133
50134 if test "$ac_dir" != .; then
50135   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50136   # A "../" for each directory in $ac_dir_suffix.
50137   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50138 else
50139   ac_dir_suffix= ac_top_builddir=
50140 fi
50141
50142 case $srcdir in
50143   .)  # No --srcdir option.  We are building in place.
50144     ac_srcdir=.
50145     if test -z "$ac_top_builddir"; then
50146        ac_top_srcdir=.
50147     else
50148        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50149     fi ;;
50150   [\\/]* | ?:[\\/]* )  # Absolute path.
50151     ac_srcdir=$srcdir$ac_dir_suffix;
50152     ac_top_srcdir=$srcdir ;;
50153   *) # Relative path.
50154     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50155     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50156 esac
50157
50158 # Do not use `cd foo && pwd` to compute absolute paths, because
50159 # the directories may not exist.
50160 case `pwd` in
50161 .) ac_abs_builddir="$ac_dir";;
50162 *)
50163   case "$ac_dir" in
50164   .) ac_abs_builddir=`pwd`;;
50165   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50166   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50167   esac;;
50168 esac
50169 case $ac_abs_builddir in
50170 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50171 *)
50172   case ${ac_top_builddir}. in
50173   .) ac_abs_top_builddir=$ac_abs_builddir;;
50174   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50175   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50176   esac;;
50177 esac
50178 case $ac_abs_builddir in
50179 .) ac_abs_srcdir=$ac_srcdir;;
50180 *)
50181   case $ac_srcdir in
50182   .) ac_abs_srcdir=$ac_abs_builddir;;
50183   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50184   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50185   esac;;
50186 esac
50187 case $ac_abs_builddir in
50188 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50189 *)
50190   case $ac_top_srcdir in
50191   .) ac_abs_top_srcdir=$ac_abs_builddir;;
50192   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50193   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50194   esac;;
50195 esac
50196
50197
50198   case $INSTALL in
50199   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50200   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50201   esac
50202
50203   if test x"$ac_file" != x-; then
50204     { echo "$as_me:$LINENO: creating $ac_file" >&5
50205 echo "$as_me: creating $ac_file" >&6;}
50206     rm -f "$ac_file"
50207   fi
50208   # Let's still pretend it is `configure' which instantiates (i.e., don't
50209   # use $as_me), people would be surprised to read:
50210   #    /* config.h.  Generated by config.status.  */
50211   if test x"$ac_file" = x-; then
50212     configure_input=
50213   else
50214     configure_input="$ac_file.  "
50215   fi
50216   configure_input=$configure_input"Generated from `echo $ac_file_in |
50217                                      sed 's,.*/,,'` by configure."
50218
50219   # First look for the input files in the build tree, otherwise in the
50220   # src tree.
50221   ac_file_inputs=`IFS=:
50222     for f in $ac_file_in; do
50223       case $f in
50224       -) echo $tmp/stdin ;;
50225       [\\/$]*)
50226          # Absolute (can't be DOS-style, as IFS=:)
50227          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50228 echo "$as_me: error: cannot find input file: $f" >&2;}
50229    { (exit 1); exit 1; }; }
50230          echo "$f";;
50231       *) # Relative
50232          if test -f "$f"; then
50233            # Build tree
50234            echo "$f"
50235          elif test -f "$srcdir/$f"; then
50236            # Source tree
50237            echo "$srcdir/$f"
50238          else
50239            # /dev/null tree
50240            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50241 echo "$as_me: error: cannot find input file: $f" >&2;}
50242    { (exit 1); exit 1; }; }
50243          fi;;
50244       esac
50245     done` || { (exit 1); exit 1; }
50246 _ACEOF
50247 cat >>$CONFIG_STATUS <<_ACEOF
50248   sed "$ac_vpsub
50249 $extrasub
50250 _ACEOF
50251 cat >>$CONFIG_STATUS <<\_ACEOF
50252 :t
50253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50254 s,@configure_input@,$configure_input,;t t
50255 s,@srcdir@,$ac_srcdir,;t t
50256 s,@abs_srcdir@,$ac_abs_srcdir,;t t
50257 s,@top_srcdir@,$ac_top_srcdir,;t t
50258 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50259 s,@builddir@,$ac_builddir,;t t
50260 s,@abs_builddir@,$ac_abs_builddir,;t t
50261 s,@top_builddir@,$ac_top_builddir,;t t
50262 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50263 s,@INSTALL@,$ac_INSTALL,;t t
50264 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50265   rm -f $tmp/stdin
50266   if test x"$ac_file" != x-; then
50267     mv $tmp/out $ac_file
50268   else
50269     cat $tmp/out
50270     rm -f $tmp/out
50271   fi
50272
50273 done
50274 _ACEOF
50275 cat >>$CONFIG_STATUS <<\_ACEOF
50276
50277 #
50278 # CONFIG_HEADER section.
50279 #
50280
50281 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50282 # NAME is the cpp macro being defined and VALUE is the value it is being given.
50283 #
50284 # ac_d sets the value in "#define NAME VALUE" lines.
50285 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
50286 ac_dB='[         ].*$,\1#\2'
50287 ac_dC=' '
50288 ac_dD=',;t'
50289 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
50290 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
50291 ac_uB='$,\1#\2define\3'
50292 ac_uC=' '
50293 ac_uD=',;t'
50294
50295 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50296   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50297   case $ac_file in
50298   - | *:- | *:-:* ) # input from stdin
50299         cat >$tmp/stdin
50300         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50301         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50302   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50303         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50304   * )   ac_file_in=$ac_file.in ;;
50305   esac
50306
50307   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50308 echo "$as_me: creating $ac_file" >&6;}
50309
50310   # First look for the input files in the build tree, otherwise in the
50311   # src tree.
50312   ac_file_inputs=`IFS=:
50313     for f in $ac_file_in; do
50314       case $f in
50315       -) echo $tmp/stdin ;;
50316       [\\/$]*)
50317          # Absolute (can't be DOS-style, as IFS=:)
50318          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50319 echo "$as_me: error: cannot find input file: $f" >&2;}
50320    { (exit 1); exit 1; }; }
50321          # Do quote $f, to prevent DOS paths from being IFS'd.
50322          echo "$f";;
50323       *) # Relative
50324          if test -f "$f"; then
50325            # Build tree
50326            echo "$f"
50327          elif test -f "$srcdir/$f"; then
50328            # Source tree
50329            echo "$srcdir/$f"
50330          else
50331            # /dev/null tree
50332            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50333 echo "$as_me: error: cannot find input file: $f" >&2;}
50334    { (exit 1); exit 1; }; }
50335          fi;;
50336       esac
50337     done` || { (exit 1); exit 1; }
50338   # Remove the trailing spaces.
50339   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
50340
50341 _ACEOF
50342
50343 # Transform confdefs.h into two sed scripts, `conftest.defines' and
50344 # `conftest.undefs', that substitutes the proper values into
50345 # config.h.in to produce config.h.  The first handles `#define'
50346 # templates, and the second `#undef' templates.
50347 # And first: Protect against being on the right side of a sed subst in
50348 # config.status.  Protect against being in an unquoted here document
50349 # in config.status.
50350 rm -f conftest.defines conftest.undefs
50351 # Using a here document instead of a string reduces the quoting nightmare.
50352 # Putting comments in sed scripts is not portable.
50353 #
50354 # `end' is used to avoid that the second main sed command (meant for
50355 # 0-ary CPP macros) applies to n-ary macro definitions.
50356 # See the Autoconf documentation for `clear'.
50357 cat >confdef2sed.sed <<\_ACEOF
50358 s/[\\&,]/\\&/g
50359 s,[\\$`],\\&,g
50360 t clear
50361 : clear
50362 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
50363 t end
50364 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
50365 : end
50366 _ACEOF
50367 # If some macros were called several times there might be several times
50368 # the same #defines, which is useless.  Nevertheless, we may not want to
50369 # sort them, since we want the *last* AC-DEFINE to be honored.
50370 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50371 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50372 rm -f confdef2sed.sed
50373
50374 # This sed command replaces #undef with comments.  This is necessary, for
50375 # example, in the case of _POSIX_SOURCE, which is predefined and required
50376 # on some systems where configure will not decide to define it.
50377 cat >>conftest.undefs <<\_ACEOF
50378 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
50379 _ACEOF
50380
50381 # Break up conftest.defines because some shells have a limit on the size
50382 # of here documents, and old seds have small limits too (100 cmds).
50383 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
50384 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
50385 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50386 echo '  :' >>$CONFIG_STATUS
50387 rm -f conftest.tail
50388 while grep . conftest.defines >/dev/null
50389 do
50390   # Write a limited-size here document to $tmp/defines.sed.
50391   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50392   # Speed up: don't consider the non `#define' lines.
50393   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
50394   # Work around the forget-to-reset-the-flag bug.
50395   echo 't clr' >>$CONFIG_STATUS
50396   echo ': clr' >>$CONFIG_STATUS
50397   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50398   echo 'CEOF
50399   sed -f $tmp/defines.sed $tmp/in >$tmp/out
50400   rm -f $tmp/in
50401   mv $tmp/out $tmp/in
50402 ' >>$CONFIG_STATUS
50403   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50404   rm -f conftest.defines
50405   mv conftest.tail conftest.defines
50406 done
50407 rm -f conftest.defines
50408 echo '  fi # grep' >>$CONFIG_STATUS
50409 echo >>$CONFIG_STATUS
50410
50411 # Break up conftest.undefs because some shells have a limit on the size
50412 # of here documents, and old seds have small limits too (100 cmds).
50413 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
50414 rm -f conftest.tail
50415 while grep . conftest.undefs >/dev/null
50416 do
50417   # Write a limited-size here document to $tmp/undefs.sed.
50418   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50419   # Speed up: don't consider the non `#undef'
50420   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
50421   # Work around the forget-to-reset-the-flag bug.
50422   echo 't clr' >>$CONFIG_STATUS
50423   echo ': clr' >>$CONFIG_STATUS
50424   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50425   echo 'CEOF
50426   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50427   rm -f $tmp/in
50428   mv $tmp/out $tmp/in
50429 ' >>$CONFIG_STATUS
50430   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50431   rm -f conftest.undefs
50432   mv conftest.tail conftest.undefs
50433 done
50434 rm -f conftest.undefs
50435
50436 cat >>$CONFIG_STATUS <<\_ACEOF
50437   # Let's still pretend it is `configure' which instantiates (i.e., don't
50438   # use $as_me), people would be surprised to read:
50439   #    /* config.h.  Generated by config.status.  */
50440   if test x"$ac_file" = x-; then
50441     echo "/* Generated by configure.  */" >$tmp/config.h
50442   else
50443     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
50444   fi
50445   cat $tmp/in >>$tmp/config.h
50446   rm -f $tmp/in
50447   if test x"$ac_file" != x-; then
50448     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50449       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50450 echo "$as_me: $ac_file is unchanged" >&6;}
50451     else
50452       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50453 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50454          X"$ac_file" : 'X\(//\)[^/]' \| \
50455          X"$ac_file" : 'X\(//\)$' \| \
50456          X"$ac_file" : 'X\(/\)' \| \
50457          .     : '\(.\)' 2>/dev/null ||
50458 echo X"$ac_file" |
50459     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50460           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50461           /^X\(\/\/\)$/{ s//\1/; q; }
50462           /^X\(\/\).*/{ s//\1/; q; }
50463           s/.*/./; q'`
50464       { if $as_mkdir_p; then
50465     mkdir -p "$ac_dir"
50466   else
50467     as_dir="$ac_dir"
50468     as_dirs=
50469     while test ! -d "$as_dir"; do
50470       as_dirs="$as_dir $as_dirs"
50471       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50473          X"$as_dir" : 'X\(//\)[^/]' \| \
50474          X"$as_dir" : 'X\(//\)$' \| \
50475          X"$as_dir" : 'X\(/\)' \| \
50476          .     : '\(.\)' 2>/dev/null ||
50477 echo X"$as_dir" |
50478     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50479           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50480           /^X\(\/\/\)$/{ s//\1/; q; }
50481           /^X\(\/\).*/{ s//\1/; q; }
50482           s/.*/./; q'`
50483     done
50484     test ! -n "$as_dirs" || mkdir $as_dirs
50485   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50486 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50487    { (exit 1); exit 1; }; }; }
50488
50489       rm -f $ac_file
50490       mv $tmp/config.h $ac_file
50491     fi
50492   else
50493     cat $tmp/config.h
50494     rm -f $tmp/config.h
50495   fi
50496 # Compute $ac_file's index in $config_headers.
50497 _am_stamp_count=1
50498 for _am_header in $config_headers :; do
50499   case $_am_header in
50500     $ac_file | $ac_file:* )
50501       break ;;
50502     * )
50503       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
50504   esac
50505 done
50506 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
50507 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50508          X$ac_file : 'X\(//\)[^/]' \| \
50509          X$ac_file : 'X\(//\)$' \| \
50510          X$ac_file : 'X\(/\)' \| \
50511          .     : '\(.\)' 2>/dev/null ||
50512 echo X$ac_file |
50513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50514           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50515           /^X\(\/\/\)$/{ s//\1/; q; }
50516           /^X\(\/\).*/{ s//\1/; q; }
50517           s/.*/./; q'`/stamp-h$_am_stamp_count
50518 done
50519 _ACEOF
50520 cat >>$CONFIG_STATUS <<\_ACEOF
50521
50522 #
50523 # CONFIG_COMMANDS section.
50524 #
50525 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50526   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50527   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50528   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50529 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50530          X"$ac_dest" : 'X\(//\)[^/]' \| \
50531          X"$ac_dest" : 'X\(//\)$' \| \
50532          X"$ac_dest" : 'X\(/\)' \| \
50533          .     : '\(.\)' 2>/dev/null ||
50534 echo X"$ac_dest" |
50535     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50536           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50537           /^X\(\/\/\)$/{ s//\1/; q; }
50538           /^X\(\/\).*/{ s//\1/; q; }
50539           s/.*/./; q'`
50540   { if $as_mkdir_p; then
50541     mkdir -p "$ac_dir"
50542   else
50543     as_dir="$ac_dir"
50544     as_dirs=
50545     while test ! -d "$as_dir"; do
50546       as_dirs="$as_dir $as_dirs"
50547       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50548 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50549          X"$as_dir" : 'X\(//\)[^/]' \| \
50550          X"$as_dir" : 'X\(//\)$' \| \
50551          X"$as_dir" : 'X\(/\)' \| \
50552          .     : '\(.\)' 2>/dev/null ||
50553 echo X"$as_dir" |
50554     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50555           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50556           /^X\(\/\/\)$/{ s//\1/; q; }
50557           /^X\(\/\).*/{ s//\1/; q; }
50558           s/.*/./; q'`
50559     done
50560     test ! -n "$as_dirs" || mkdir $as_dirs
50561   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50562 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50563    { (exit 1); exit 1; }; }; }
50564
50565   ac_builddir=.
50566
50567 if test "$ac_dir" != .; then
50568   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50569   # A "../" for each directory in $ac_dir_suffix.
50570   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50571 else
50572   ac_dir_suffix= ac_top_builddir=
50573 fi
50574
50575 case $srcdir in
50576   .)  # No --srcdir option.  We are building in place.
50577     ac_srcdir=.
50578     if test -z "$ac_top_builddir"; then
50579        ac_top_srcdir=.
50580     else
50581        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50582     fi ;;
50583   [\\/]* | ?:[\\/]* )  # Absolute path.
50584     ac_srcdir=$srcdir$ac_dir_suffix;
50585     ac_top_srcdir=$srcdir ;;
50586   *) # Relative path.
50587     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50588     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50589 esac
50590
50591 # Do not use `cd foo && pwd` to compute absolute paths, because
50592 # the directories may not exist.
50593 case `pwd` in
50594 .) ac_abs_builddir="$ac_dir";;
50595 *)
50596   case "$ac_dir" in
50597   .) ac_abs_builddir=`pwd`;;
50598   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50599   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50600   esac;;
50601 esac
50602 case $ac_abs_builddir in
50603 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50604 *)
50605   case ${ac_top_builddir}. in
50606   .) ac_abs_top_builddir=$ac_abs_builddir;;
50607   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50608   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50609   esac;;
50610 esac
50611 case $ac_abs_builddir in
50612 .) ac_abs_srcdir=$ac_srcdir;;
50613 *)
50614   case $ac_srcdir in
50615   .) ac_abs_srcdir=$ac_abs_builddir;;
50616   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50617   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50618   esac;;
50619 esac
50620 case $ac_abs_builddir in
50621 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50622 *)
50623   case $ac_top_srcdir in
50624   .) ac_abs_top_srcdir=$ac_abs_builddir;;
50625   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50626   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50627   esac;;
50628 esac
50629
50630
50631   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50632 echo "$as_me: executing $ac_dest commands" >&6;}
50633   case $ac_dest in
50634     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
50635   # Strip MF so we end up with the name of the file.
50636   mf=`echo "$mf" | sed -e 's/:.*$//'`
50637   # Check whether this is an Automake generated Makefile or not.
50638   # We used to match only the files named `Makefile.in', but
50639   # some people rename them; so instead we look at the file content.
50640   # Grep'ing the first line is not enough: some people post-process
50641   # each Makefile.in and add a new line on top of each file to say so.
50642   # So let's grep whole file.
50643   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
50644     dirpart=`(dirname "$mf") 2>/dev/null ||
50645 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50646          X"$mf" : 'X\(//\)[^/]' \| \
50647          X"$mf" : 'X\(//\)$' \| \
50648          X"$mf" : 'X\(/\)' \| \
50649          .     : '\(.\)' 2>/dev/null ||
50650 echo X"$mf" |
50651     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50652           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50653           /^X\(\/\/\)$/{ s//\1/; q; }
50654           /^X\(\/\).*/{ s//\1/; q; }
50655           s/.*/./; q'`
50656   else
50657     continue
50658   fi
50659   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
50660   # Extract the definition of DEP_FILES from the Makefile without
50661   # running `make'.
50662   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
50663   test -z "$DEPDIR" && continue
50664   # When using ansi2knr, U may be empty or an underscore; expand it
50665   U=`sed -n 's/^U = //p' < "$mf"`
50666   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
50667   # We invoke sed twice because it is the simplest approach to
50668   # changing $(DEPDIR) to its actual value in the expansion.
50669   for file in `sed -n '
50670     /^DEP_FILES = .*\\\\$/ {
50671       s/^DEP_FILES = //
50672       :loop
50673         s/\\\\$//
50674         p
50675         n
50676         /\\\\$/ b loop
50677       p
50678     }
50679     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
50680        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
50681     # Make sure the directory exists.
50682     test -f "$dirpart/$file" && continue
50683     fdir=`(dirname "$file") 2>/dev/null ||
50684 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50685          X"$file" : 'X\(//\)[^/]' \| \
50686          X"$file" : 'X\(//\)$' \| \
50687          X"$file" : 'X\(/\)' \| \
50688          .     : '\(.\)' 2>/dev/null ||
50689 echo X"$file" |
50690     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50691           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50692           /^X\(\/\/\)$/{ s//\1/; q; }
50693           /^X\(\/\).*/{ s//\1/; q; }
50694           s/.*/./; q'`
50695     { if $as_mkdir_p; then
50696     mkdir -p $dirpart/$fdir
50697   else
50698     as_dir=$dirpart/$fdir
50699     as_dirs=
50700     while test ! -d "$as_dir"; do
50701       as_dirs="$as_dir $as_dirs"
50702       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50703 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50704          X"$as_dir" : 'X\(//\)[^/]' \| \
50705          X"$as_dir" : 'X\(//\)$' \| \
50706          X"$as_dir" : 'X\(/\)' \| \
50707          .     : '\(.\)' 2>/dev/null ||
50708 echo X"$as_dir" |
50709     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50710           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50711           /^X\(\/\/\)$/{ s//\1/; q; }
50712           /^X\(\/\).*/{ s//\1/; q; }
50713           s/.*/./; q'`
50714     done
50715     test ! -n "$as_dirs" || mkdir $as_dirs
50716   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
50717 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
50718    { (exit 1); exit 1; }; }; }
50719
50720     # echo "creating $dirpart/$file"
50721     echo '# dummy' > "$dirpart/$file"
50722   done
50723 done
50724  ;;
50725     $ac_stdint_h )
50726 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
50727 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
50728 ac_stdint=$tmp/_stdint.h
50729
50730 echo "#ifndef" $_ac_stdint_h >$ac_stdint
50731 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
50732 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
50733 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
50734 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
50735 if test "_$ac_cv_header_stdint_t" != "_" ; then
50736 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
50737 fi
50738
50739 cat >>$ac_stdint <<STDINT_EOF
50740
50741 /* ................... shortcircuit part ........................... */
50742
50743 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
50744 #include <stdint.h>
50745 #else
50746 #include <stddef.h>
50747
50748 /* .................... configured part ............................ */
50749
50750 STDINT_EOF
50751
50752 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
50753 if test "_$ac_cv_header_stdint_x" != "_" ; then
50754   ac_header="$ac_cv_header_stdint_x"
50755   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
50756 else
50757   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
50758 fi
50759
50760 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
50761 if  test "_$ac_cv_header_stdint_o" != "_" ; then
50762   ac_header="$ac_cv_header_stdint_o"
50763   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
50764 else
50765   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
50766 fi
50767
50768 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
50769 if  test "_$ac_cv_header_stdint_u" != "_" ; then
50770   ac_header="$ac_cv_header_stdint_u"
50771   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
50772 else
50773   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
50774 fi
50775
50776 echo "" >>$ac_stdint
50777
50778 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
50779   echo "#include <$ac_header>" >>$ac_stdint
50780   echo "" >>$ac_stdint
50781 fi fi
50782
50783 echo "/* which 64bit typedef has been found */" >>$ac_stdint
50784 if test "$ac_cv_type_uint64_t" = "yes" ; then
50785 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
50786 else
50787 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
50788 fi
50789 if test "$ac_cv_type_u_int64_t" = "yes" ; then
50790 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
50791 else
50792 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
50793 fi
50794 echo "" >>$ac_stdint
50795
50796 echo "/* which type model has been detected */" >>$ac_stdint
50797 if test "_$ac_cv_stdint_char_model" != "_" ; then
50798 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_stdint_char_model" >>$ac_stdint
50799 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_stdint_long_model" >>$ac_stdint
50800 else
50801 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
50802 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
50803 fi
50804 echo "" >>$ac_stdint
50805
50806 echo "/* whether int_least types were detected */" >>$ac_stdint
50807 if test "$ac_cv_type_int_least32_t" = "yes"; then
50808 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
50809 else
50810 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
50811 fi
50812 echo "/* whether int_fast types were detected */" >>$ac_stdint
50813 if test "$ac_cv_type_int_fast32_t" = "yes"; then
50814 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
50815 else
50816 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
50817 fi
50818 echo "/* whether intmax_t type was detected */" >>$ac_stdint
50819 if test "$ac_cv_type_intmax_t" = "yes"; then
50820 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
50821 else
50822 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
50823 fi
50824 echo "" >>$ac_stdint
50825
50826   cat >>$ac_stdint <<STDINT_EOF
50827 /* .................... detections part ............................ */
50828
50829 /* whether we need to define bitspecific types from compiler base types */
50830 #ifndef _STDINT_HEADER_INTPTR
50831 #ifndef _STDINT_HEADER_UINT32
50832 #ifndef _STDINT_HEADER_U_INT32
50833 #define _STDINT_NEED_INT_MODEL_T
50834 #else
50835 #define _STDINT_HAVE_U_INT_TYPES
50836 #endif
50837 #endif
50838 #endif
50839
50840 #ifdef _STDINT_HAVE_U_INT_TYPES
50841 #undef _STDINT_NEED_INT_MODEL_T
50842 #endif
50843
50844 #ifdef  _STDINT_CHAR_MODEL
50845 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
50846 #ifndef _STDINT_BYTE_MODEL
50847 #define _STDINT_BYTE_MODEL 12
50848 #endif
50849 #endif
50850 #endif
50851
50852 #ifndef _STDINT_HAVE_INT_LEAST32_T
50853 #define _STDINT_NEED_INT_LEAST_T
50854 #endif
50855
50856 #ifndef _STDINT_HAVE_INT_FAST32_T
50857 #define _STDINT_NEED_INT_FAST_T
50858 #endif
50859
50860 #ifndef _STDINT_HEADER_INTPTR
50861 #define _STDINT_NEED_INTPTR_T
50862 #ifndef _STDINT_HAVE_INTMAX_T
50863 #define _STDINT_NEED_INTMAX_T
50864 #endif
50865 #endif
50866
50867
50868 /* .................... definition part ............................ */
50869
50870 /* some system headers have good uint64_t */
50871 #ifndef _HAVE_UINT64_T
50872 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
50873 #define _HAVE_UINT64_T
50874 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
50875 #define _HAVE_UINT64_T
50876 typedef u_int64_t uint64_t;
50877 #endif
50878 #endif
50879
50880 #ifndef _HAVE_UINT64_T
50881 /* .. here are some common heuristics using compiler runtime specifics */
50882 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
50883 #define _HAVE_UINT64_T
50884 typedef long long int64_t;
50885 typedef unsigned long long uint64_t;
50886
50887 #elif !defined __STRICT_ANSI__
50888 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
50889 #define _HAVE_UINT64_T
50890 typedef __int64 int64_t;
50891 typedef unsigned __int64 uint64_t;
50892
50893 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
50894 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
50895 #if !defined _NO_LONGLONG
50896 #define _HAVE_UINT64_T
50897 typedef long long int64_t;
50898 typedef unsigned long long uint64_t;
50899 #endif
50900
50901 #elif defined __alpha || (defined __mips && defined _ABIN32)
50902 #if !defined _NO_LONGLONG
50903 typedef long int64_t;
50904 typedef unsigned long uint64_t;
50905 #endif
50906   /* compiler/cpu type to define int64_t */
50907 #endif
50908 #endif
50909 #endif
50910
50911 #if defined _STDINT_HAVE_U_INT_TYPES
50912 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
50913 typedef u_int8_t uint8_t;
50914 typedef u_int16_t uint16_t;
50915 typedef u_int32_t uint32_t;
50916
50917 /* glibc compatibility */
50918 #ifndef __int8_t_defined
50919 #define __int8_t_defined
50920 #endif
50921 #endif
50922
50923 #ifdef _STDINT_NEED_INT_MODEL_T
50924 /* we must guess all the basic types. Apart from byte-adressable system, */
50925 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
50926 /* (btw, those nibble-addressable systems are way off, or so we assume) */
50927
50928
50929 #if defined _STDINT_BYTE_MODEL
50930 #if _STDINT_LONG_MODEL+0 == 242
50931 /* 2:4:2 =  IP16 = a normal 16-bit system                */
50932 typedef unsigned char   uint8_t;
50933 typedef unsigned short  uint16_t;
50934 typedef unsigned long   uint32_t;
50935 #ifndef __int8_t_defined
50936 #define __int8_t_defined
50937 typedef          char    int8_t;
50938 typedef          short   int16_t;
50939 typedef          long    int32_t;
50940 #endif
50941 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
50942 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
50943 /* 4:4:4 = ILP32 = a normal 32-bit system                */
50944 typedef unsigned char   uint8_t;
50945 typedef unsigned short  uint16_t;
50946 typedef unsigned int    uint32_t;
50947 #ifndef __int8_t_defined
50948 #define __int8_t_defined
50949 typedef          char    int8_t;
50950 typedef          short   int16_t;
50951 typedef          int     int32_t;
50952 #endif
50953 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
50954 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
50955 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
50956 typedef unsigned char   uint8_t;
50957 typedef unsigned short  uint16_t;
50958 typedef unsigned int    uint32_t;
50959 #ifndef __int8_t_defined
50960 #define __int8_t_defined
50961 typedef          char    int8_t;
50962 typedef          short   int16_t;
50963 typedef          int     int32_t;
50964 #endif
50965 /* this system has a "long" of 64bit */
50966 #ifndef _HAVE_UINT64_T
50967 #define _HAVE_UINT64_T
50968 typedef unsigned long   uint64_t;
50969 typedef          long    int64_t;
50970 #endif
50971 #elif _STDINT_LONG_MODEL+0 == 448
50972 /*      LLP64   a 64-bit system derived from a 32-bit system */
50973 typedef unsigned char   uint8_t;
50974 typedef unsigned short  uint16_t;
50975 typedef unsigned int    uint32_t;
50976 #ifndef __int8_t_defined
50977 #define __int8_t_defined
50978 typedef          char    int8_t;
50979 typedef          short   int16_t;
50980 typedef          int     int32_t;
50981 #endif
50982 /* assuming the system has a "long long" */
50983 #ifndef _HAVE_UINT64_T
50984 #define _HAVE_UINT64_T
50985 typedef unsigned long long uint64_t;
50986 typedef          long long  int64_t;
50987 #endif
50988 #else
50989 #define _STDINT_NO_INT32_T
50990 #endif
50991 #else
50992 #define _STDINT_NO_INT8_T
50993 #define _STDINT_NO_INT32_T
50994 #endif
50995 #endif
50996
50997 /*
50998  * quote from SunOS-5.8 sys/inttypes.h:
50999  * Use at your own risk.  As of February 1996, the committee is squarely
51000  * behind the fixed sized types; the "least" and "fast" types are still being
51001  * discussed.  The probability that the "fast" types may be removed before
51002  * the standard is finalized is high enough that they are not currently
51003  * implemented.
51004  */
51005
51006 #if defined _STDINT_NEED_INT_LEAST_T
51007 typedef  int8_t    int_least8_t;
51008 typedef  int16_t   int_least16_t;
51009 typedef  int32_t   int_least32_t;
51010 #ifdef _HAVE_UINT64_T
51011 typedef  int64_t   int_least64_t;
51012 #endif
51013
51014 typedef uint8_t   uint_least8_t;
51015 typedef uint16_t  uint_least16_t;
51016 typedef uint32_t  uint_least32_t;
51017 #ifdef _HAVE_UINT64_T
51018 typedef uint64_t  uint_least64_t;
51019 #endif
51020   /* least types */
51021 #endif
51022
51023 #if defined _STDINT_NEED_INT_FAST_T
51024 typedef  int8_t    int_fast8_t;
51025 typedef  int       int_fast16_t;
51026 typedef  int32_t   int_fast32_t;
51027 #ifdef _HAVE_UINT64_T
51028 typedef  int64_t   int_fast64_t;
51029 #endif
51030
51031 typedef uint8_t   uint_fast8_t;
51032 typedef unsigned  uint_fast16_t;
51033 typedef uint32_t  uint_fast32_t;
51034 #ifdef _HAVE_UINT64_T
51035 typedef uint64_t  uint_fast64_t;
51036 #endif
51037   /* fast types */
51038 #endif
51039
51040 #ifdef _STDINT_NEED_INTMAX_T
51041 #ifdef _HAVE_UINT64_T
51042 typedef  int64_t       intmax_t;
51043 typedef uint64_t      uintmax_t;
51044 #else
51045 typedef          long  intmax_t;
51046 typedef unsigned long uintmax_t;
51047 #endif
51048 #endif
51049
51050 #ifdef _STDINT_NEED_INTPTR_T
51051 #ifndef __intptr_t_defined
51052 #define __intptr_t_defined
51053 /* we encourage using "long" to store pointer values, never use "int" ! */
51054 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
51055 typedef  unsinged int   uintptr_t;
51056 typedef           int    intptr_t;
51057 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
51058 typedef  unsigned long  uintptr_t;
51059 typedef           long   intptr_t;
51060 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
51061 typedef        uint64_t uintptr_t;
51062 typedef         int64_t  intptr_t;
51063 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
51064 typedef  unsigned long  uintptr_t;
51065 typedef           long   intptr_t;
51066 #endif
51067 #endif
51068 #endif
51069
51070   /* shortcircuit*/
51071 #endif
51072   /* once */
51073 #endif
51074 #endif
51075 STDINT_EOF
51076     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
51077       { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
51078 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
51079     else
51080       ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
51081 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51082          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
51083          X"$ac_stdint_h" : 'X\(//\)$' \| \
51084          X"$ac_stdint_h" : 'X\(/\)' \| \
51085          .     : '\(.\)' 2>/dev/null ||
51086 echo X"$ac_stdint_h" |
51087     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51088           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51089           /^X\(\/\/\)$/{ s//\1/; q; }
51090           /^X\(\/\).*/{ s//\1/; q; }
51091           s/.*/./; q'`
51092       { if $as_mkdir_p; then
51093     mkdir -p "$ac_dir"
51094   else
51095     as_dir="$ac_dir"
51096     as_dirs=
51097     while test ! -d "$as_dir"; do
51098       as_dirs="$as_dir $as_dirs"
51099       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51100 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51101          X"$as_dir" : 'X\(//\)[^/]' \| \
51102          X"$as_dir" : 'X\(//\)$' \| \
51103          X"$as_dir" : 'X\(/\)' \| \
51104          .     : '\(.\)' 2>/dev/null ||
51105 echo X"$as_dir" |
51106     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51107           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51108           /^X\(\/\/\)$/{ s//\1/; q; }
51109           /^X\(\/\).*/{ s//\1/; q; }
51110           s/.*/./; q'`
51111     done
51112     test ! -n "$as_dirs" || mkdir $as_dirs
51113   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51114 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51115    { (exit 1); exit 1; }; }; }
51116
51117       rm -f $ac_stdint_h
51118       mv $ac_stdint $ac_stdint_h
51119     fi
51120  ;;
51121   esac
51122 done
51123 _ACEOF
51124
51125 cat >>$CONFIG_STATUS <<\_ACEOF
51126
51127 { (exit 0); exit 0; }
51128 _ACEOF
51129 chmod +x $CONFIG_STATUS
51130 ac_clean_files=$ac_clean_files_save
51131
51132
51133 # configure is writing to config.log, and then calls config.status.
51134 # config.status does its own redirection, appending to config.log.
51135 # Unfortunately, on DOS this fails, as config.log is still kept open
51136 # by configure, so config.status won't be able to write to it; its
51137 # output is simply discarded.  So we exec the FD to /dev/null,
51138 # effectively closing config.log, so it can be properly (re)opened and
51139 # appended to by config.status.  When coming back to configure, we
51140 # need to make the FD available again.
51141 if test "$no_create" != yes; then
51142   ac_cs_success=:
51143   ac_config_status_args=
51144   test "$silent" = yes &&
51145     ac_config_status_args="$ac_config_status_args --quiet"
51146   exec 5>/dev/null
51147   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51148   exec 5>>config.log
51149   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51150   # would make configure fail if this is the last instruction.
51151   $ac_cs_success || { (exit 1); exit 1; }
51152 fi
51153