Imported Upstream version 2.4.5
[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.5
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
27422
27423
27424
27425 for ac_header in sys/wait.h wait.h
27426 do
27427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27429   echo "$as_me:$LINENO: checking for $ac_header" >&5
27430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27432   echo $ECHO_N "(cached) $ECHO_C" >&6
27433 fi
27434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27436 else
27437   # Is the header compilable?
27438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27440 cat >conftest.$ac_ext <<_ACEOF
27441 /* confdefs.h.  */
27442 _ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h.  */
27446 $ac_includes_default
27447 #include <$ac_header>
27448 _ACEOF
27449 rm -f conftest.$ac_objext
27450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27451   (eval $ac_compile) 2>conftest.er1
27452   ac_status=$?
27453   grep -v '^ *+' conftest.er1 >conftest.err
27454   rm -f conftest.er1
27455   cat conftest.err >&5
27456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457   (exit $ac_status); } &&
27458          { ac_try='test -z "$ac_c_werror_flag"
27459                          || test ! -s conftest.err'
27460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27461   (eval $ac_try) 2>&5
27462   ac_status=$?
27463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464   (exit $ac_status); }; } &&
27465          { ac_try='test -s conftest.$ac_objext'
27466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467   (eval $ac_try) 2>&5
27468   ac_status=$?
27469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470   (exit $ac_status); }; }; then
27471   ac_header_compiler=yes
27472 else
27473   echo "$as_me: failed program was:" >&5
27474 sed 's/^/| /' conftest.$ac_ext >&5
27475
27476 ac_header_compiler=no
27477 fi
27478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27480 echo "${ECHO_T}$ac_header_compiler" >&6
27481
27482 # Is the header present?
27483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27485 cat >conftest.$ac_ext <<_ACEOF
27486 /* confdefs.h.  */
27487 _ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h.  */
27491 #include <$ac_header>
27492 _ACEOF
27493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27494   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27495   ac_status=$?
27496   grep -v '^ *+' conftest.er1 >conftest.err
27497   rm -f conftest.er1
27498   cat conftest.err >&5
27499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500   (exit $ac_status); } >/dev/null; then
27501   if test -s conftest.err; then
27502     ac_cpp_err=$ac_c_preproc_warn_flag
27503     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27504   else
27505     ac_cpp_err=
27506   fi
27507 else
27508   ac_cpp_err=yes
27509 fi
27510 if test -z "$ac_cpp_err"; then
27511   ac_header_preproc=yes
27512 else
27513   echo "$as_me: failed program was:" >&5
27514 sed 's/^/| /' conftest.$ac_ext >&5
27515
27516   ac_header_preproc=no
27517 fi
27518 rm -f conftest.err conftest.$ac_ext
27519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27520 echo "${ECHO_T}$ac_header_preproc" >&6
27521
27522 # So?  What about this header?
27523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27524   yes:no: )
27525     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27529     ac_header_preproc=yes
27530     ;;
27531   no:yes:* )
27532     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27534     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27535 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27536     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27538     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27539 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27542     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27544     (
27545       cat <<\_ASBOX
27546 ## ------------------------------------------ ##
27547 ## Report this to the AC_PACKAGE_NAME lists.  ##
27548 ## ------------------------------------------ ##
27549 _ASBOX
27550     ) |
27551       sed "s/^/$as_me: WARNING:     /" >&2
27552     ;;
27553 esac
27554 echo "$as_me:$LINENO: checking for $ac_header" >&5
27555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27557   echo $ECHO_N "(cached) $ECHO_C" >&6
27558 else
27559   eval "$as_ac_Header=\$ac_header_preproc"
27560 fi
27561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27563
27564 fi
27565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27566   cat >>confdefs.h <<_ACEOF
27567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27568 _ACEOF
27569
27570 fi
27571
27572 done
27573
27574 echo "$as_me:$LINENO: checking whether wait uses int" >&5
27575 echo $ECHO_N "checking whether wait uses int... $ECHO_C" >&6
27576 if test "${cf_cv_arg_int+set}" = set; then
27577   echo $ECHO_N "(cached) $ECHO_C" >&6
27578 else
27579   cat >conftest.$ac_ext <<_ACEOF
27580 /* confdefs.h.  */
27581 _ACEOF
27582 cat confdefs.h >>conftest.$ac_ext
27583 cat >>conftest.$ac_ext <<_ACEOF
27584 /* end confdefs.h.  */
27585
27586 #include <sys/types.h>
27587
27588 #if HAVE_SYS_WAIT_H
27589 # include <sys/wait.h>
27590 #else
27591 # if HAVE_WAIT_H
27592 #  include <wait.h>
27593 # endif
27594 #endif
27595
27596 #ifdef __STDC__
27597 pid_t wait(int *);
27598 #endif
27599
27600 int
27601 main ()
27602 {
27603
27604   int x; int i;
27605   wait(&x); i = WIFEXITED(x)
27606
27607   ;
27608   return 0;
27609 }
27610 _ACEOF
27611 rm -f conftest.$ac_objext
27612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27613   (eval $ac_compile) 2>conftest.er1
27614   ac_status=$?
27615   grep -v '^ *+' conftest.er1 >conftest.err
27616   rm -f conftest.er1
27617   cat conftest.err >&5
27618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619   (exit $ac_status); } &&
27620          { ac_try='test -z "$ac_c_werror_flag"
27621                          || test ! -s conftest.err'
27622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27623   (eval $ac_try) 2>&5
27624   ac_status=$?
27625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626   (exit $ac_status); }; } &&
27627          { ac_try='test -s conftest.$ac_objext'
27628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27629   (eval $ac_try) 2>&5
27630   ac_status=$?
27631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632   (exit $ac_status); }; }; then
27633   cf_cv_arg_int=yes
27634 else
27635   echo "$as_me: failed program was:" >&5
27636 sed 's/^/| /' conftest.$ac_ext >&5
27637
27638 cf_cv_arg_int=no
27639 fi
27640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27641 fi
27642 echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
27643 echo "${ECHO_T}$cf_cv_arg_int" >&6
27644 if test $cf_cv_arg_int = yes; then
27645
27646 cat >>confdefs.h <<\_ACEOF
27647 #define WAIT_USES_INT 1
27648 _ACEOF
27649
27650 fi
27651
27652 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27653 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
27654 if test "${ac_cv_header_time+set}" = set; then
27655   echo $ECHO_N "(cached) $ECHO_C" >&6
27656 else
27657   cat >conftest.$ac_ext <<_ACEOF
27658 /* confdefs.h.  */
27659 _ACEOF
27660 cat confdefs.h >>conftest.$ac_ext
27661 cat >>conftest.$ac_ext <<_ACEOF
27662 /* end confdefs.h.  */
27663 #include <sys/types.h>
27664 #include <sys/time.h>
27665 #include <time.h>
27666
27667 int
27668 main ()
27669 {
27670 if ((struct tm *) 0)
27671 return 0;
27672   ;
27673   return 0;
27674 }
27675 _ACEOF
27676 rm -f conftest.$ac_objext
27677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27678   (eval $ac_compile) 2>conftest.er1
27679   ac_status=$?
27680   grep -v '^ *+' conftest.er1 >conftest.err
27681   rm -f conftest.er1
27682   cat conftest.err >&5
27683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684   (exit $ac_status); } &&
27685          { ac_try='test -z "$ac_c_werror_flag"
27686                          || test ! -s conftest.err'
27687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27688   (eval $ac_try) 2>&5
27689   ac_status=$?
27690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691   (exit $ac_status); }; } &&
27692          { ac_try='test -s conftest.$ac_objext'
27693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27694   (eval $ac_try) 2>&5
27695   ac_status=$?
27696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697   (exit $ac_status); }; }; then
27698   ac_cv_header_time=yes
27699 else
27700   echo "$as_me: failed program was:" >&5
27701 sed 's/^/| /' conftest.$ac_ext >&5
27702
27703 ac_cv_header_time=no
27704 fi
27705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27706 fi
27707 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27708 echo "${ECHO_T}$ac_cv_header_time" >&6
27709 if test $ac_cv_header_time = yes; then
27710
27711 cat >>confdefs.h <<\_ACEOF
27712 #define TIME_WITH_SYS_TIME 1
27713 _ACEOF
27714
27715 fi
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774 for ac_header in \
27775         arpa/inet.h \
27776         camlib.h \
27777         cam/cam.h \
27778         cam/scsi/scsi_message.h \
27779         chio.h \
27780         db.h \
27781         dbm.h \
27782         fcntl.h \
27783         fnmatch.h \
27784         fstab.h \
27785         grp.h \
27786         history.h \
27787         libc.h \
27788         limits.h \
27789         linux/zftape.h \
27790         mntent.h \
27791         mnttab.h \
27792         ndbm.h \
27793         netdb.h \
27794         netinet/in_systm.h \
27795         readline.h \
27796         readline/history.h \
27797         readline/readline.h \
27798         scsi/sg.h \
27799         scsi/scsi_ioctl.h \
27800         stdlib.h \
27801         string.h \
27802         strings.h \
27803         sys/chio.h \
27804         sys/dsreq.h \
27805         sys/fcntl.h \
27806         sys/file.h \
27807         sys/ioctl.h \
27808         sys/ipc.h \
27809         sys/mman.h \
27810         sys/mntent.h \
27811         sys/mtio.h \
27812         sys/param.h \
27813         sys/scarray.h \
27814         sys/gscdds.h \
27815         sys/scsiio.h \
27816         sys/scsi.h \
27817         sys/scsi/impl/uscsi.h \
27818         sys/scsi/scsi/ioctl.h \
27819         sys/select.h \
27820         sys/shm.h \
27821         sys/stat.h \
27822         sys/statfs.h \
27823         sys/statvfs.h \
27824         sys/tape.h \
27825         sys/time.h \
27826         sys/types.h \
27827         sys/vfs.h \
27828         sys/vfstab.h \
27829         syslog.h \
27830         unistd.h \
27831         vtblc.h \
27832
27833 do
27834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27836   echo "$as_me:$LINENO: checking for $ac_header" >&5
27837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27839   echo $ECHO_N "(cached) $ECHO_C" >&6
27840 fi
27841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27843 else
27844   # Is the header compilable?
27845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27847 cat >conftest.$ac_ext <<_ACEOF
27848 /* confdefs.h.  */
27849 _ACEOF
27850 cat confdefs.h >>conftest.$ac_ext
27851 cat >>conftest.$ac_ext <<_ACEOF
27852 /* end confdefs.h.  */
27853 $ac_includes_default
27854 #include <$ac_header>
27855 _ACEOF
27856 rm -f conftest.$ac_objext
27857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27858   (eval $ac_compile) 2>conftest.er1
27859   ac_status=$?
27860   grep -v '^ *+' conftest.er1 >conftest.err
27861   rm -f conftest.er1
27862   cat conftest.err >&5
27863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864   (exit $ac_status); } &&
27865          { ac_try='test -z "$ac_c_werror_flag"
27866                          || test ! -s conftest.err'
27867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27868   (eval $ac_try) 2>&5
27869   ac_status=$?
27870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871   (exit $ac_status); }; } &&
27872          { ac_try='test -s conftest.$ac_objext'
27873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27874   (eval $ac_try) 2>&5
27875   ac_status=$?
27876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877   (exit $ac_status); }; }; then
27878   ac_header_compiler=yes
27879 else
27880   echo "$as_me: failed program was:" >&5
27881 sed 's/^/| /' conftest.$ac_ext >&5
27882
27883 ac_header_compiler=no
27884 fi
27885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27887 echo "${ECHO_T}$ac_header_compiler" >&6
27888
27889 # Is the header present?
27890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27892 cat >conftest.$ac_ext <<_ACEOF
27893 /* confdefs.h.  */
27894 _ACEOF
27895 cat confdefs.h >>conftest.$ac_ext
27896 cat >>conftest.$ac_ext <<_ACEOF
27897 /* end confdefs.h.  */
27898 #include <$ac_header>
27899 _ACEOF
27900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27902   ac_status=$?
27903   grep -v '^ *+' conftest.er1 >conftest.err
27904   rm -f conftest.er1
27905   cat conftest.err >&5
27906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907   (exit $ac_status); } >/dev/null; then
27908   if test -s conftest.err; then
27909     ac_cpp_err=$ac_c_preproc_warn_flag
27910     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27911   else
27912     ac_cpp_err=
27913   fi
27914 else
27915   ac_cpp_err=yes
27916 fi
27917 if test -z "$ac_cpp_err"; then
27918   ac_header_preproc=yes
27919 else
27920   echo "$as_me: failed program was:" >&5
27921 sed 's/^/| /' conftest.$ac_ext >&5
27922
27923   ac_header_preproc=no
27924 fi
27925 rm -f conftest.err conftest.$ac_ext
27926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27927 echo "${ECHO_T}$ac_header_preproc" >&6
27928
27929 # So?  What about this header?
27930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27931   yes:no: )
27932     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27936     ac_header_preproc=yes
27937     ;;
27938   no:yes:* )
27939     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27941     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27942 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27943     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27945     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27946 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27949     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27951     (
27952       cat <<\_ASBOX
27953 ## ------------------------------------------ ##
27954 ## Report this to the AC_PACKAGE_NAME lists.  ##
27955 ## ------------------------------------------ ##
27956 _ASBOX
27957     ) |
27958       sed "s/^/$as_me: WARNING:     /" >&2
27959     ;;
27960 esac
27961 echo "$as_me:$LINENO: checking for $ac_header" >&5
27962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27964   echo $ECHO_N "(cached) $ECHO_C" >&6
27965 else
27966   eval "$as_ac_Header=\$ac_header_preproc"
27967 fi
27968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27970
27971 fi
27972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27973   cat >>confdefs.h <<_ACEOF
27974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27975 _ACEOF
27976
27977 fi
27978
27979 done
27980
27981
27982
27983 for ac_header in netinet/ip.h
27984 do
27985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27986 echo "$as_me:$LINENO: checking for $ac_header" >&5
27987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27989   echo $ECHO_N "(cached) $ECHO_C" >&6
27990 else
27991   cat >conftest.$ac_ext <<_ACEOF
27992 /* confdefs.h.  */
27993 _ACEOF
27994 cat confdefs.h >>conftest.$ac_ext
27995 cat >>conftest.$ac_ext <<_ACEOF
27996 /* end confdefs.h.  */
27997 #include <sys/socket.h>
27998 #if HAVE_SYS_TYPES_H
27999 #include <sys/types.h>
28000 #endif
28001 #ifdef HAVE_NETINET_IN_SYSTM_H
28002 #include <netinet/in_systm.h>
28003 #endif
28004 #include <netinet/in.h>
28005
28006
28007 #include <$ac_header>
28008 _ACEOF
28009 rm -f conftest.$ac_objext
28010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28011   (eval $ac_compile) 2>conftest.er1
28012   ac_status=$?
28013   grep -v '^ *+' conftest.er1 >conftest.err
28014   rm -f conftest.er1
28015   cat conftest.err >&5
28016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017   (exit $ac_status); } &&
28018          { ac_try='test -z "$ac_c_werror_flag"
28019                          || test ! -s conftest.err'
28020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28021   (eval $ac_try) 2>&5
28022   ac_status=$?
28023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024   (exit $ac_status); }; } &&
28025          { ac_try='test -s conftest.$ac_objext'
28026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28027   (eval $ac_try) 2>&5
28028   ac_status=$?
28029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030   (exit $ac_status); }; }; then
28031   eval "$as_ac_Header=yes"
28032 else
28033   echo "$as_me: failed program was:" >&5
28034 sed 's/^/| /' conftest.$ac_ext >&5
28035
28036 eval "$as_ac_Header=no"
28037 fi
28038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28039 fi
28040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28043   cat >>confdefs.h <<_ACEOF
28044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28045 _ACEOF
28046
28047 fi
28048
28049 done
28050
28051
28052
28053 for ac_header in sys/mount.h
28054 do
28055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28056 echo "$as_me:$LINENO: checking for $ac_header" >&5
28057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28059   echo $ECHO_N "(cached) $ECHO_C" >&6
28060 else
28061   cat >conftest.$ac_ext <<_ACEOF
28062 /* confdefs.h.  */
28063 _ACEOF
28064 cat confdefs.h >>conftest.$ac_ext
28065 cat >>conftest.$ac_ext <<_ACEOF
28066 /* end confdefs.h.  */
28067 #ifdef HAVE_SYS_PARAM_H
28068 #include <sys/param.h>
28069 #endif
28070
28071
28072 #include <$ac_header>
28073 _ACEOF
28074 rm -f conftest.$ac_objext
28075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28076   (eval $ac_compile) 2>conftest.er1
28077   ac_status=$?
28078   grep -v '^ *+' conftest.er1 >conftest.err
28079   rm -f conftest.er1
28080   cat conftest.err >&5
28081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082   (exit $ac_status); } &&
28083          { ac_try='test -z "$ac_c_werror_flag"
28084                          || test ! -s conftest.err'
28085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28086   (eval $ac_try) 2>&5
28087   ac_status=$?
28088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089   (exit $ac_status); }; } &&
28090          { ac_try='test -s conftest.$ac_objext'
28091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28092   (eval $ac_try) 2>&5
28093   ac_status=$?
28094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095   (exit $ac_status); }; }; then
28096   eval "$as_ac_Header=yes"
28097 else
28098   echo "$as_me: failed program was:" >&5
28099 sed 's/^/| /' conftest.$ac_ext >&5
28100
28101 eval "$as_ac_Header=no"
28102 fi
28103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28104 fi
28105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28108   cat >>confdefs.h <<_ACEOF
28109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28110 _ACEOF
28111
28112 fi
28113
28114 done
28115
28116
28117 NO_SCSI_CHANGER_MODE=true
28118 NO_CHIO_CHANGER_MODE=true
28119
28120 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28121 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
28122 if test "${ac_cv_c_bigendian+set}" = set; then
28123   echo $ECHO_N "(cached) $ECHO_C" >&6
28124 else
28125   # See if sys/param.h defines the BYTE_ORDER macro.
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 #include <sys/types.h>
28133 #include <sys/param.h>
28134
28135 int
28136 main ()
28137 {
28138 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
28139  bogus endian macros
28140 #endif
28141
28142   ;
28143   return 0;
28144 }
28145 _ACEOF
28146 rm -f conftest.$ac_objext
28147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28148   (eval $ac_compile) 2>conftest.er1
28149   ac_status=$?
28150   grep -v '^ *+' conftest.er1 >conftest.err
28151   rm -f conftest.er1
28152   cat conftest.err >&5
28153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154   (exit $ac_status); } &&
28155          { ac_try='test -z "$ac_c_werror_flag"
28156                          || test ! -s conftest.err'
28157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28158   (eval $ac_try) 2>&5
28159   ac_status=$?
28160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161   (exit $ac_status); }; } &&
28162          { ac_try='test -s conftest.$ac_objext'
28163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28164   (eval $ac_try) 2>&5
28165   ac_status=$?
28166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167   (exit $ac_status); }; }; then
28168   # It does; now see whether it defined to BIG_ENDIAN or not.
28169 cat >conftest.$ac_ext <<_ACEOF
28170 /* confdefs.h.  */
28171 _ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h.  */
28175 #include <sys/types.h>
28176 #include <sys/param.h>
28177
28178 int
28179 main ()
28180 {
28181 #if BYTE_ORDER != BIG_ENDIAN
28182  not big endian
28183 #endif
28184
28185   ;
28186   return 0;
28187 }
28188 _ACEOF
28189 rm -f conftest.$ac_objext
28190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28191   (eval $ac_compile) 2>conftest.er1
28192   ac_status=$?
28193   grep -v '^ *+' conftest.er1 >conftest.err
28194   rm -f conftest.er1
28195   cat conftest.err >&5
28196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197   (exit $ac_status); } &&
28198          { ac_try='test -z "$ac_c_werror_flag"
28199                          || test ! -s conftest.err'
28200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28201   (eval $ac_try) 2>&5
28202   ac_status=$?
28203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204   (exit $ac_status); }; } &&
28205          { ac_try='test -s conftest.$ac_objext'
28206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28207   (eval $ac_try) 2>&5
28208   ac_status=$?
28209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210   (exit $ac_status); }; }; then
28211   ac_cv_c_bigendian=yes
28212 else
28213   echo "$as_me: failed program was:" >&5
28214 sed 's/^/| /' conftest.$ac_ext >&5
28215
28216 ac_cv_c_bigendian=no
28217 fi
28218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28219 else
28220   echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28222
28223 # It does not; compile a test program.
28224 if test "$cross_compiling" = yes; then
28225   # try to guess the endianness by grepping values into an object file
28226   ac_cv_c_bigendian=unknown
28227   cat >conftest.$ac_ext <<_ACEOF
28228 /* confdefs.h.  */
28229 _ACEOF
28230 cat confdefs.h >>conftest.$ac_ext
28231 cat >>conftest.$ac_ext <<_ACEOF
28232 /* end confdefs.h.  */
28233 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28234 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28235 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
28236 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28237 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28238 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
28239 int
28240 main ()
28241 {
28242  _ascii (); _ebcdic ();
28243   ;
28244   return 0;
28245 }
28246 _ACEOF
28247 rm -f conftest.$ac_objext
28248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28249   (eval $ac_compile) 2>conftest.er1
28250   ac_status=$?
28251   grep -v '^ *+' conftest.er1 >conftest.err
28252   rm -f conftest.er1
28253   cat conftest.err >&5
28254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255   (exit $ac_status); } &&
28256          { ac_try='test -z "$ac_c_werror_flag"
28257                          || test ! -s conftest.err'
28258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28259   (eval $ac_try) 2>&5
28260   ac_status=$?
28261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262   (exit $ac_status); }; } &&
28263          { ac_try='test -s conftest.$ac_objext'
28264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28265   (eval $ac_try) 2>&5
28266   ac_status=$?
28267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268   (exit $ac_status); }; }; then
28269   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
28270   ac_cv_c_bigendian=yes
28271 fi
28272 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28273   if test "$ac_cv_c_bigendian" = unknown; then
28274     ac_cv_c_bigendian=no
28275   else
28276     # finding both strings is unlikely to happen, but who knows?
28277     ac_cv_c_bigendian=unknown
28278   fi
28279 fi
28280 else
28281   echo "$as_me: failed program was:" >&5
28282 sed 's/^/| /' conftest.$ac_ext >&5
28283
28284 fi
28285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28286 else
28287   cat >conftest.$ac_ext <<_ACEOF
28288 /* confdefs.h.  */
28289 _ACEOF
28290 cat confdefs.h >>conftest.$ac_ext
28291 cat >>conftest.$ac_ext <<_ACEOF
28292 /* end confdefs.h.  */
28293 int
28294 main ()
28295 {
28296   /* Are we little or big endian?  From Harbison&Steele.  */
28297   union
28298   {
28299     long l;
28300     char c[sizeof (long)];
28301   } u;
28302   u.l = 1;
28303   exit (u.c[sizeof (long) - 1] == 1);
28304 }
28305 _ACEOF
28306 rm -f conftest$ac_exeext
28307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28308   (eval $ac_link) 2>&5
28309   ac_status=$?
28310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28313   (eval $ac_try) 2>&5
28314   ac_status=$?
28315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316   (exit $ac_status); }; }; then
28317   ac_cv_c_bigendian=no
28318 else
28319   echo "$as_me: program exited with status $ac_status" >&5
28320 echo "$as_me: failed program was:" >&5
28321 sed 's/^/| /' conftest.$ac_ext >&5
28322
28323 ( exit $ac_status )
28324 ac_cv_c_bigendian=yes
28325 fi
28326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28327 fi
28328 fi
28329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28330 fi
28331 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28332 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
28333 case $ac_cv_c_bigendian in
28334   yes)
28335
28336 cat >>confdefs.h <<\_ACEOF
28337 #define WORDS_BIGENDIAN 1
28338 _ACEOF
28339  ;;
28340   no)
28341      ;;
28342   *)
28343     { { echo "$as_me:$LINENO: error: unknown endianness
28344 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
28345 echo "$as_me: error: unknown endianness
28346 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
28347    { (exit 1); exit 1; }; } ;;
28348 esac
28349
28350
28351 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
28352     echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
28353 echo $ECHO_N "checking for HP/UX-like scsi changer support... $ECHO_C" >&6
28354 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
28355   echo $ECHO_N "(cached) $ECHO_C" >&6
28356 else
28357   cat >conftest.$ac_ext <<_ACEOF
28358 /* confdefs.h.  */
28359 _ACEOF
28360 cat confdefs.h >>conftest.$ac_ext
28361 cat >>conftest.$ac_ext <<_ACEOF
28362 /* end confdefs.h.  */
28363
28364 #include <sys/scsi.h>
28365
28366 int
28367 main ()
28368 {
28369
28370         static struct element_addresses changer_info;
28371         int i = SIOC_ELEMENT_ADDRESSES;
28372         int j = SIOC_ELEMENT_STATUS;
28373         int k = SIOC_MOVE_MEDIUM;
28374
28375   ;
28376   return 0;
28377 }
28378 _ACEOF
28379 rm -f conftest.$ac_objext
28380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28381   (eval $ac_compile) 2>conftest.er1
28382   ac_status=$?
28383   grep -v '^ *+' conftest.er1 >conftest.err
28384   rm -f conftest.er1
28385   cat conftest.err >&5
28386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387   (exit $ac_status); } &&
28388          { ac_try='test -z "$ac_c_werror_flag"
28389                          || test ! -s conftest.err'
28390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28391   (eval $ac_try) 2>&5
28392   ac_status=$?
28393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394   (exit $ac_status); }; } &&
28395          { ac_try='test -s conftest.$ac_objext'
28396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28397   (eval $ac_try) 2>&5
28398   ac_status=$?
28399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400   (exit $ac_status); }; }; then
28401   amanda_cv_hpux_scsi_chio=yes
28402 else
28403   echo "$as_me: failed program was:" >&5
28404 sed 's/^/| /' conftest.$ac_ext >&5
28405
28406 amanda_cv_hpux_scsi_chio=no
28407 fi
28408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28409 fi
28410 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
28411 echo "${ECHO_T}$amanda_cv_hpux_scsi_chio" >&6
28412     if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
28413
28414 cat >>confdefs.h <<\_ACEOF
28415 #define HAVE_HPUX_SCSI_CHIO 1
28416 _ACEOF
28417
28418         NO_SCSI_CHANGER_MODE=false
28419     fi
28420 fi
28421
28422 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28423    test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
28424         echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
28425 echo $ECHO_N "checking for Linux like scsi support (ioctl)... $ECHO_C" >&6
28426 if test "${amanda_cv_linux_scsi+set}" = set; then
28427   echo $ECHO_N "(cached) $ECHO_C" >&6
28428 else
28429   cat >conftest.$ac_ext <<_ACEOF
28430 /* confdefs.h.  */
28431 _ACEOF
28432 cat confdefs.h >>conftest.$ac_ext
28433 cat >>conftest.$ac_ext <<_ACEOF
28434 /* end confdefs.h.  */
28435
28436 #include <scsi/scsi_ioctl.h>
28437 #include <sys/mtio.h>
28438
28439 int
28440 main ()
28441 {
28442
28443         int device;
28444         char *Command;
28445         ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
28446
28447   ;
28448   return 0;
28449 }
28450 _ACEOF
28451 rm -f conftest.$ac_objext
28452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28453   (eval $ac_compile) 2>conftest.er1
28454   ac_status=$?
28455   grep -v '^ *+' conftest.er1 >conftest.err
28456   rm -f conftest.er1
28457   cat conftest.err >&5
28458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459   (exit $ac_status); } &&
28460          { ac_try='test -z "$ac_c_werror_flag"
28461                          || test ! -s conftest.err'
28462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28463   (eval $ac_try) 2>&5
28464   ac_status=$?
28465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466   (exit $ac_status); }; } &&
28467          { ac_try='test -s conftest.$ac_objext'
28468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28469   (eval $ac_try) 2>&5
28470   ac_status=$?
28471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472   (exit $ac_status); }; }; then
28473   amanda_cv_linux_scsi=yes
28474 else
28475   echo "$as_me: failed program was:" >&5
28476 sed 's/^/| /' conftest.$ac_ext >&5
28477
28478 amanda_cv_linux_scsi=no
28479 fi
28480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28481 fi
28482 echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
28483 echo "${ECHO_T}$amanda_cv_linux_scsi" >&6
28484 fi
28485
28486 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28487    test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
28488         echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
28489 echo $ECHO_N "checking for Linux like scsi support (sg)... $ECHO_C" >&6
28490 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
28491   echo $ECHO_N "(cached) $ECHO_C" >&6
28492 else
28493   cat >conftest.$ac_ext <<_ACEOF
28494 /* confdefs.h.  */
28495 _ACEOF
28496 cat confdefs.h >>conftest.$ac_ext
28497 cat >>conftest.$ac_ext <<_ACEOF
28498 /* end confdefs.h.  */
28499
28500 #include <scsi/sg.h>
28501 #include <sys/mtio.h>
28502
28503 int
28504 main ()
28505 {
28506
28507         int device;
28508         struct sg_header *psg_header;
28509         char *buffer;
28510         write(device, buffer, 1);
28511
28512   ;
28513   return 0;
28514 }
28515 _ACEOF
28516 rm -f conftest.$ac_objext
28517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28518   (eval $ac_compile) 2>conftest.er1
28519   ac_status=$?
28520   grep -v '^ *+' conftest.er1 >conftest.err
28521   rm -f conftest.er1
28522   cat conftest.err >&5
28523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524   (exit $ac_status); } &&
28525          { ac_try='test -z "$ac_c_werror_flag"
28526                          || test ! -s conftest.err'
28527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28528   (eval $ac_try) 2>&5
28529   ac_status=$?
28530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531   (exit $ac_status); }; } &&
28532          { ac_try='test -s conftest.$ac_objext'
28533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28534   (eval $ac_try) 2>&5
28535   ac_status=$?
28536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537   (exit $ac_status); }; }; then
28538   amanda_cv_linux_sg_scsi=yes
28539 else
28540   echo "$as_me: failed program was:" >&5
28541 sed 's/^/| /' conftest.$ac_ext >&5
28542
28543 amanda_cv_linux_sg_scsi=no
28544 fi
28545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28546 fi
28547 echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
28548 echo "${ECHO_T}$amanda_cv_linux_sg_scsi" >&6
28549 fi
28550
28551 if test x"$amanda_cv_linux_scsi" = x"yes" ||
28552  test x"$amanda_cv_linux_sg_scsi" = x"yes";then
28553
28554 cat >>confdefs.h <<\_ACEOF
28555 #define HAVE_LINUX_LIKE_SCSI 1
28556 _ACEOF
28557
28558         NO_SCSI_CHANGER_MODE=false
28559 fi
28560
28561 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28562    test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
28563         echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
28564 echo $ECHO_N "checking for HP-UX like scsi support... $ECHO_C" >&6
28565 if test "${amanda_cv_hpux_scsi+set}" = set; then
28566   echo $ECHO_N "(cached) $ECHO_C" >&6
28567 else
28568   cat >conftest.$ac_ext <<_ACEOF
28569 /* confdefs.h.  */
28570 _ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h.  */
28574
28575 #include <stdio.h>
28576 #include <sys/ioctl.h>
28577 #include <sys/scsi.h>
28578 #include <sys/mtio.h>
28579
28580 int
28581 main ()
28582 {
28583
28584         int device;
28585         char *Command;
28586         ioctl(device, SIOC_IO, Command);
28587
28588   ;
28589   return 0;
28590 }
28591 _ACEOF
28592 rm -f conftest.$ac_objext
28593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28594   (eval $ac_compile) 2>conftest.er1
28595   ac_status=$?
28596   grep -v '^ *+' conftest.er1 >conftest.err
28597   rm -f conftest.er1
28598   cat conftest.err >&5
28599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600   (exit $ac_status); } &&
28601          { ac_try='test -z "$ac_c_werror_flag"
28602                          || test ! -s conftest.err'
28603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28604   (eval $ac_try) 2>&5
28605   ac_status=$?
28606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607   (exit $ac_status); }; } &&
28608          { ac_try='test -s conftest.$ac_objext'
28609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28610   (eval $ac_try) 2>&5
28611   ac_status=$?
28612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613   (exit $ac_status); }; }; then
28614   amanda_cv_hpux_scsi=yes
28615 else
28616   echo "$as_me: failed program was:" >&5
28617 sed 's/^/| /' conftest.$ac_ext >&5
28618
28619 amanda_cv_hpux_scsi=no
28620 fi
28621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28622 fi
28623 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
28624 echo "${ECHO_T}$amanda_cv_hpux_scsi" >&6
28625         if test x"$amanda_cv_hpux_scsi" = x"yes";then
28626
28627 cat >>confdefs.h <<\_ACEOF
28628 #define HAVE_HPUX_LIKE_SCSI 1
28629 _ACEOF
28630
28631                 NO_SCSI_CHANGER_MODE=false
28632                 NO_CHIO_CHANGER_MODE=false
28633         fi
28634 fi
28635
28636 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28637    test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
28638         echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
28639 echo $ECHO_N "checking for Irix like scsi support... $ECHO_C" >&6
28640 if test "${amanda_cv_irix_scsi+set}" = set; then
28641   echo $ECHO_N "(cached) $ECHO_C" >&6
28642 else
28643   cat >conftest.$ac_ext <<_ACEOF
28644 /* confdefs.h.  */
28645 _ACEOF
28646 cat confdefs.h >>conftest.$ac_ext
28647 cat >>conftest.$ac_ext <<_ACEOF
28648 /* end confdefs.h.  */
28649
28650 #include <sys/types.h>
28651 #include <sys/dsreq.h>
28652 #include <sys/mtio.h>
28653
28654 int
28655 main ()
28656 {
28657
28658         int device=1;
28659         char Command;
28660         ioctl(device, DS_ENTER, &Command);
28661
28662   ;
28663   return 0;
28664 }
28665 _ACEOF
28666 rm -f conftest.$ac_objext
28667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28668   (eval $ac_compile) 2>conftest.er1
28669   ac_status=$?
28670   grep -v '^ *+' conftest.er1 >conftest.err
28671   rm -f conftest.er1
28672   cat conftest.err >&5
28673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674   (exit $ac_status); } &&
28675          { ac_try='test -z "$ac_c_werror_flag"
28676                          || test ! -s conftest.err'
28677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28678   (eval $ac_try) 2>&5
28679   ac_status=$?
28680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681   (exit $ac_status); }; } &&
28682          { ac_try='test -s conftest.$ac_objext'
28683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28684   (eval $ac_try) 2>&5
28685   ac_status=$?
28686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687   (exit $ac_status); }; }; then
28688   amanda_cv_irix_scsi=yes
28689 else
28690   echo "$as_me: failed program was:" >&5
28691 sed 's/^/| /' conftest.$ac_ext >&5
28692
28693 amanda_cv_irix_scsi=no
28694 fi
28695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28696 fi
28697 echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
28698 echo "${ECHO_T}$amanda_cv_irix_scsi" >&6
28699         if test x"$amanda_cv_irix_scsi" = x"yes";then
28700
28701 cat >>confdefs.h <<\_ACEOF
28702 #define HAVE_IRIX_LIKE_SCSI 1
28703 _ACEOF
28704
28705                 NO_SCSI_CHANGER_MODE=false
28706         fi
28707 fi
28708
28709 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
28710    test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
28711         echo "$as_me:$LINENO: checking for Solaris like scsi support" >&5
28712 echo $ECHO_N "checking for Solaris like scsi support... $ECHO_C" >&6
28713 if test "${amanda_cv_solaris_scsi+set}" = set; then
28714   echo $ECHO_N "(cached) $ECHO_C" >&6
28715 else
28716   cat >conftest.$ac_ext <<_ACEOF
28717 /* confdefs.h.  */
28718 _ACEOF
28719 cat confdefs.h >>conftest.$ac_ext
28720 cat >>conftest.$ac_ext <<_ACEOF
28721 /* end confdefs.h.  */
28722
28723 #include <sys/types.h>
28724 #include <sys/scsi/impl/uscsi.h>
28725 #include <sys/mtio.h>
28726
28727 int
28728 main ()
28729 {
28730
28731         int device;
28732         char *Command;
28733         ioctl(device, USCSICMD, Command);
28734
28735   ;
28736   return 0;
28737 }
28738 _ACEOF
28739 rm -f conftest.$ac_objext
28740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28741   (eval $ac_compile) 2>conftest.er1
28742   ac_status=$?
28743   grep -v '^ *+' conftest.er1 >conftest.err
28744   rm -f conftest.er1
28745   cat conftest.err >&5
28746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747   (exit $ac_status); } &&
28748          { ac_try='test -z "$ac_c_werror_flag"
28749                          || test ! -s conftest.err'
28750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28751   (eval $ac_try) 2>&5
28752   ac_status=$?
28753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754   (exit $ac_status); }; } &&
28755          { ac_try='test -s conftest.$ac_objext'
28756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28757   (eval $ac_try) 2>&5
28758   ac_status=$?
28759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760   (exit $ac_status); }; }; then
28761   amanda_cv_solaris_scsi=yes
28762 else
28763   echo "$as_me: failed program was:" >&5
28764 sed 's/^/| /' conftest.$ac_ext >&5
28765
28766 amanda_cv_solaris_scsi=no
28767 fi
28768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28769 fi
28770 echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
28771 echo "${ECHO_T}$amanda_cv_solaris_scsi" >&6
28772         if test x"$amanda_cv_solaris_scsi" = x"yes";then
28773
28774 cat >>confdefs.h <<\_ACEOF
28775 #define HAVE_SOLARIS_LIKE_SCSI 1
28776 _ACEOF
28777
28778                 NO_SCSI_CHANGER_MODE=false
28779         fi
28780 fi
28781
28782 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
28783    test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
28784    test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
28785         echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
28786 echo $ECHO_N "checking for AIX like scsi support... $ECHO_C" >&6
28787 if test "${amanda_cv_aix_scsi+set}" = set; then
28788   echo $ECHO_N "(cached) $ECHO_C" >&6
28789 else
28790   cat >conftest.$ac_ext <<_ACEOF
28791 /* confdefs.h.  */
28792 _ACEOF
28793 cat confdefs.h >>conftest.$ac_ext
28794 cat >>conftest.$ac_ext <<_ACEOF
28795 /* end confdefs.h.  */
28796
28797 #include <sys/types.h>
28798 #include <sys/scarray.h>
28799 #include <sys/tape.h>
28800
28801 int
28802 main ()
28803 {
28804
28805         int device;
28806         char *Command;
28807         ioctl(device, STIOCMD, Command);
28808
28809   ;
28810   return 0;
28811 }
28812 _ACEOF
28813 rm -f conftest.$ac_objext
28814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28815   (eval $ac_compile) 2>conftest.er1
28816   ac_status=$?
28817   grep -v '^ *+' conftest.er1 >conftest.err
28818   rm -f conftest.er1
28819   cat conftest.err >&5
28820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821   (exit $ac_status); } &&
28822          { ac_try='test -z "$ac_c_werror_flag"
28823                          || test ! -s conftest.err'
28824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28825   (eval $ac_try) 2>&5
28826   ac_status=$?
28827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828   (exit $ac_status); }; } &&
28829          { ac_try='test -s conftest.$ac_objext'
28830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831   (eval $ac_try) 2>&5
28832   ac_status=$?
28833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834   (exit $ac_status); }; }; then
28835   amanda_cv_aix_scsi=yes
28836 else
28837   echo "$as_me: failed program was:" >&5
28838 sed 's/^/| /' conftest.$ac_ext >&5
28839
28840 amanda_cv_aix_scsi=no
28841 fi
28842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28843 fi
28844 echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
28845 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6
28846         if test x"$amanda_cv_aix_scsi" = x"yes";then
28847
28848 cat >>confdefs.h <<\_ACEOF
28849 #define HAVE_AIX_LIKE_SCSI 1
28850 _ACEOF
28851
28852                 NO_SCSI_CHANGER_MODE=false
28853         fi
28854 fi
28855 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
28856         echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
28857 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6
28858 if test "${amanda_cv_cam_scsi+set}" = set; then
28859   echo $ECHO_N "(cached) $ECHO_C" >&6
28860 else
28861   cat >conftest.$ac_ext <<_ACEOF
28862 /* confdefs.h.  */
28863 _ACEOF
28864 cat confdefs.h >>conftest.$ac_ext
28865 cat >>conftest.$ac_ext <<_ACEOF
28866 /* end confdefs.h.  */
28867
28868 #include <stdio.h>
28869 # include <fcntl.h>
28870 # include <cam/cam.h>
28871 # include <cam/cam_ccb.h>
28872 # include <cam/scsi/scsi_message.h>
28873 # include <cam/scsi/scsi_pass.h>
28874 # include <camlib.h>
28875
28876 int
28877 main ()
28878 {
28879
28880         struct cam_device *curdev;
28881
28882         curdev = cam_open_pass("", O_RDWR, NULL);
28883
28884   ;
28885   return 0;
28886 }
28887 _ACEOF
28888 rm -f conftest.$ac_objext
28889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28890   (eval $ac_compile) 2>conftest.er1
28891   ac_status=$?
28892   grep -v '^ *+' conftest.er1 >conftest.err
28893   rm -f conftest.er1
28894   cat conftest.err >&5
28895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896   (exit $ac_status); } &&
28897          { ac_try='test -z "$ac_c_werror_flag"
28898                          || test ! -s conftest.err'
28899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28900   (eval $ac_try) 2>&5
28901   ac_status=$?
28902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903   (exit $ac_status); }; } &&
28904          { ac_try='test -s conftest.$ac_objext'
28905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906   (eval $ac_try) 2>&5
28907   ac_status=$?
28908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909   (exit $ac_status); }; }; then
28910   amanda_cv_cam_scsi=yes
28911 else
28912   echo "$as_me: failed program was:" >&5
28913 sed 's/^/| /' conftest.$ac_ext >&5
28914
28915 amanda_cv_cam_scsi=no
28916 fi
28917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28918 fi
28919 echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
28920 echo "${ECHO_T}$amanda_cv_cam_scsi" >&6
28921         if test x"$amanda_cv_cam_scsi" = x"yes";then
28922
28923 cat >>confdefs.h <<\_ACEOF
28924 #define HAVE_CAM_LIKE_SCSI 1
28925 _ACEOF
28926
28927                 NO_SCSI_CHANGER_MODE=false
28928
28929 echo "$as_me:$LINENO: checking for main in -lcam" >&5
28930 echo $ECHO_N "checking for main in -lcam... $ECHO_C" >&6
28931 if test "${ac_cv_lib_cam_main+set}" = set; then
28932   echo $ECHO_N "(cached) $ECHO_C" >&6
28933 else
28934   ac_check_lib_save_LIBS=$LIBS
28935 LIBS="-lcam  $LIBS"
28936 cat >conftest.$ac_ext <<_ACEOF
28937 /* confdefs.h.  */
28938 _ACEOF
28939 cat confdefs.h >>conftest.$ac_ext
28940 cat >>conftest.$ac_ext <<_ACEOF
28941 /* end confdefs.h.  */
28942
28943
28944 int
28945 main ()
28946 {
28947 main ();
28948   ;
28949   return 0;
28950 }
28951 _ACEOF
28952 rm -f conftest.$ac_objext conftest$ac_exeext
28953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28954   (eval $ac_link) 2>conftest.er1
28955   ac_status=$?
28956   grep -v '^ *+' conftest.er1 >conftest.err
28957   rm -f conftest.er1
28958   cat conftest.err >&5
28959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960   (exit $ac_status); } &&
28961          { ac_try='test -z "$ac_c_werror_flag"
28962                          || test ! -s conftest.err'
28963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28964   (eval $ac_try) 2>&5
28965   ac_status=$?
28966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967   (exit $ac_status); }; } &&
28968          { ac_try='test -s conftest$ac_exeext'
28969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28970   (eval $ac_try) 2>&5
28971   ac_status=$?
28972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973   (exit $ac_status); }; }; then
28974   ac_cv_lib_cam_main=yes
28975 else
28976   echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28978
28979 ac_cv_lib_cam_main=no
28980 fi
28981 rm -f conftest.err conftest.$ac_objext \
28982       conftest$ac_exeext conftest.$ac_ext
28983 LIBS=$ac_check_lib_save_LIBS
28984 fi
28985 echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
28986 echo "${ECHO_T}$ac_cv_lib_cam_main" >&6
28987 if test $ac_cv_lib_cam_main = yes; then
28988   cat >>confdefs.h <<_ACEOF
28989 #define HAVE_LIBCAM 1
28990 _ACEOF
28991
28992   LIBS="-lcam $LIBS"
28993
28994 fi
28995
28996         fi
28997 fi
28998
28999 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29000    test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
29001     echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
29002 echo $ECHO_N "checking for BSD like scsi support... $ECHO_C" >&6
29003 if test "${amanda_cv_bsd_scsi+set}" = set; then
29004   echo $ECHO_N "(cached) $ECHO_C" >&6
29005 else
29006   cat >conftest.$ac_ext <<_ACEOF
29007 /* confdefs.h.  */
29008 _ACEOF
29009 cat confdefs.h >>conftest.$ac_ext
29010 cat >>conftest.$ac_ext <<_ACEOF
29011 /* end confdefs.h.  */
29012
29013 #include <sys/types.h>
29014 #include <sys/scsiio.h>
29015 #include <sys/mtio.h>
29016
29017 int
29018 main ()
29019 {
29020
29021     int device=1;
29022     char Command;
29023     ioctl(device, SCIOCCOMMAND, &Command);
29024
29025   ;
29026   return 0;
29027 }
29028 _ACEOF
29029 rm -f conftest.$ac_objext
29030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29031   (eval $ac_compile) 2>conftest.er1
29032   ac_status=$?
29033   grep -v '^ *+' conftest.er1 >conftest.err
29034   rm -f conftest.er1
29035   cat conftest.err >&5
29036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037   (exit $ac_status); } &&
29038          { ac_try='test -z "$ac_c_werror_flag"
29039                          || test ! -s conftest.err'
29040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29041   (eval $ac_try) 2>&5
29042   ac_status=$?
29043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044   (exit $ac_status); }; } &&
29045          { ac_try='test -s conftest.$ac_objext'
29046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29047   (eval $ac_try) 2>&5
29048   ac_status=$?
29049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050   (exit $ac_status); }; }; then
29051   amanda_cv_bsd_scsi=yes
29052 else
29053   echo "$as_me: failed program was:" >&5
29054 sed 's/^/| /' conftest.$ac_ext >&5
29055
29056 amanda_cv_bsd_scsi=no
29057 fi
29058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29059 fi
29060 echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
29061 echo "${ECHO_T}$amanda_cv_bsd_scsi" >&6
29062     if test x"$amanda_cv_bsd_scsi" = x"yes";then
29063
29064 cat >>confdefs.h <<\_ACEOF
29065 #define HAVE_BSD_LIKE_SCSI 1
29066 _ACEOF
29067
29068        NO_SCSI_CHANGER_MODE=false
29069     fi
29070 fi
29071
29072 if test x"$ac_cv_header_chio_h" = x"yes" ||
29073    test x"$ac_cv_header_sys_chio_h" = x"yes"; then
29074          if test x"$ac_cv_header_camlib_h" != x"yes"; then
29075      if $NO_SCSI_CHANGER_MODE; then
29076        NO_SCSI_CHANGER_MODE=false
29077      else
29078        NO_CHIO_CHANGER_MODE=false
29079      fi
29080    fi
29081 fi
29082
29083
29084 echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
29085 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6
29086 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
29087   echo $ECHO_N "(cached) $ECHO_C" >&6
29088 else
29089   ac_check_lib_save_LIBS=$LIBS
29090 LIBS="-lcur_colr  $LIBS"
29091 cat >conftest.$ac_ext <<_ACEOF
29092 /* confdefs.h.  */
29093 _ACEOF
29094 cat confdefs.h >>conftest.$ac_ext
29095 cat >>conftest.$ac_ext <<_ACEOF
29096 /* end confdefs.h.  */
29097
29098
29099 int
29100 main ()
29101 {
29102 main ();
29103   ;
29104   return 0;
29105 }
29106 _ACEOF
29107 rm -f conftest.$ac_objext conftest$ac_exeext
29108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29109   (eval $ac_link) 2>conftest.er1
29110   ac_status=$?
29111   grep -v '^ *+' conftest.er1 >conftest.err
29112   rm -f conftest.er1
29113   cat conftest.err >&5
29114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115   (exit $ac_status); } &&
29116          { ac_try='test -z "$ac_c_werror_flag"
29117                          || test ! -s conftest.err'
29118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29119   (eval $ac_try) 2>&5
29120   ac_status=$?
29121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122   (exit $ac_status); }; } &&
29123          { ac_try='test -s conftest$ac_exeext'
29124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29125   (eval $ac_try) 2>&5
29126   ac_status=$?
29127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128   (exit $ac_status); }; }; then
29129   ac_cv_lib_cur_colr_main=yes
29130 else
29131   echo "$as_me: failed program was:" >&5
29132 sed 's/^/| /' conftest.$ac_ext >&5
29133
29134 ac_cv_lib_cur_colr_main=no
29135 fi
29136 rm -f conftest.err conftest.$ac_objext \
29137       conftest$ac_exeext conftest.$ac_ext
29138 LIBS=$ac_check_lib_save_LIBS
29139 fi
29140 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
29141 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6
29142 if test $ac_cv_lib_cur_colr_main = yes; then
29143   cat >>confdefs.h <<_ACEOF
29144 #define HAVE_LIBCUR_COLR 1
29145 _ACEOF
29146
29147   LIBS="-lcur_colr $LIBS"
29148
29149 fi
29150
29151
29152
29153 echo "$as_me:$LINENO: checking for main in -lintl" >&5
29154 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
29155 if test "${ac_cv_lib_intl_main+set}" = set; then
29156   echo $ECHO_N "(cached) $ECHO_C" >&6
29157 else
29158   ac_check_lib_save_LIBS=$LIBS
29159 LIBS="-lintl  $LIBS"
29160 cat >conftest.$ac_ext <<_ACEOF
29161 /* confdefs.h.  */
29162 _ACEOF
29163 cat confdefs.h >>conftest.$ac_ext
29164 cat >>conftest.$ac_ext <<_ACEOF
29165 /* end confdefs.h.  */
29166
29167
29168 int
29169 main ()
29170 {
29171 main ();
29172   ;
29173   return 0;
29174 }
29175 _ACEOF
29176 rm -f conftest.$ac_objext conftest$ac_exeext
29177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29178   (eval $ac_link) 2>conftest.er1
29179   ac_status=$?
29180   grep -v '^ *+' conftest.er1 >conftest.err
29181   rm -f conftest.er1
29182   cat conftest.err >&5
29183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184   (exit $ac_status); } &&
29185          { ac_try='test -z "$ac_c_werror_flag"
29186                          || test ! -s conftest.err'
29187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29188   (eval $ac_try) 2>&5
29189   ac_status=$?
29190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191   (exit $ac_status); }; } &&
29192          { ac_try='test -s conftest$ac_exeext'
29193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29194   (eval $ac_try) 2>&5
29195   ac_status=$?
29196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29197   (exit $ac_status); }; }; then
29198   ac_cv_lib_intl_main=yes
29199 else
29200   echo "$as_me: failed program was:" >&5
29201 sed 's/^/| /' conftest.$ac_ext >&5
29202
29203 ac_cv_lib_intl_main=no
29204 fi
29205 rm -f conftest.err conftest.$ac_objext \
29206       conftest$ac_exeext conftest.$ac_ext
29207 LIBS=$ac_check_lib_save_LIBS
29208 fi
29209 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
29210 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
29211 if test $ac_cv_lib_intl_main = yes; then
29212   cat >>confdefs.h <<_ACEOF
29213 #define HAVE_LIBINTL 1
29214 _ACEOF
29215
29216   LIBS="-lintl $LIBS"
29217
29218 fi
29219
29220
29221 case "$target" in
29222     *sgi-irix*)
29223
29224 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
29225 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
29226 if test "${ac_cv_lib_socket_main+set}" = set; then
29227   echo $ECHO_N "(cached) $ECHO_C" >&6
29228 else
29229   ac_check_lib_save_LIBS=$LIBS
29230 LIBS="-lsocket  $LIBS"
29231 cat >conftest.$ac_ext <<_ACEOF
29232 /* confdefs.h.  */
29233 _ACEOF
29234 cat confdefs.h >>conftest.$ac_ext
29235 cat >>conftest.$ac_ext <<_ACEOF
29236 /* end confdefs.h.  */
29237
29238
29239 int
29240 main ()
29241 {
29242 main ();
29243   ;
29244   return 0;
29245 }
29246 _ACEOF
29247 rm -f conftest.$ac_objext conftest$ac_exeext
29248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29249   (eval $ac_link) 2>conftest.er1
29250   ac_status=$?
29251   grep -v '^ *+' conftest.er1 >conftest.err
29252   rm -f conftest.er1
29253   cat conftest.err >&5
29254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255   (exit $ac_status); } &&
29256          { ac_try='test -z "$ac_c_werror_flag"
29257                          || test ! -s conftest.err'
29258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29259   (eval $ac_try) 2>&5
29260   ac_status=$?
29261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262   (exit $ac_status); }; } &&
29263          { ac_try='test -s conftest$ac_exeext'
29264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29265   (eval $ac_try) 2>&5
29266   ac_status=$?
29267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268   (exit $ac_status); }; }; then
29269   ac_cv_lib_socket_main=yes
29270 else
29271   echo "$as_me: failed program was:" >&5
29272 sed 's/^/| /' conftest.$ac_ext >&5
29273
29274 ac_cv_lib_socket_main=no
29275 fi
29276 rm -f conftest.err conftest.$ac_objext \
29277       conftest$ac_exeext conftest.$ac_ext
29278 LIBS=$ac_check_lib_save_LIBS
29279 fi
29280 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
29281 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
29282 if test $ac_cv_lib_socket_main = yes; then
29283   cat >>confdefs.h <<_ACEOF
29284 #define HAVE_LIBSOCKET 1
29285 _ACEOF
29286
29287   LIBS="-lsocket $LIBS"
29288
29289 fi
29290
29291                         ;;
29292     *)
29293
29294 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
29295 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
29296 if test "${ac_cv_lib_nsl_main+set}" = set; then
29297   echo $ECHO_N "(cached) $ECHO_C" >&6
29298 else
29299   ac_check_lib_save_LIBS=$LIBS
29300 LIBS="-lnsl  $LIBS"
29301 cat >conftest.$ac_ext <<_ACEOF
29302 /* confdefs.h.  */
29303 _ACEOF
29304 cat confdefs.h >>conftest.$ac_ext
29305 cat >>conftest.$ac_ext <<_ACEOF
29306 /* end confdefs.h.  */
29307
29308
29309 int
29310 main ()
29311 {
29312 main ();
29313   ;
29314   return 0;
29315 }
29316 _ACEOF
29317 rm -f conftest.$ac_objext conftest$ac_exeext
29318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29319   (eval $ac_link) 2>conftest.er1
29320   ac_status=$?
29321   grep -v '^ *+' conftest.er1 >conftest.err
29322   rm -f conftest.er1
29323   cat conftest.err >&5
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); } &&
29326          { ac_try='test -z "$ac_c_werror_flag"
29327                          || test ! -s conftest.err'
29328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329   (eval $ac_try) 2>&5
29330   ac_status=$?
29331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332   (exit $ac_status); }; } &&
29333          { ac_try='test -s conftest$ac_exeext'
29334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335   (eval $ac_try) 2>&5
29336   ac_status=$?
29337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338   (exit $ac_status); }; }; then
29339   ac_cv_lib_nsl_main=yes
29340 else
29341   echo "$as_me: failed program was:" >&5
29342 sed 's/^/| /' conftest.$ac_ext >&5
29343
29344 ac_cv_lib_nsl_main=no
29345 fi
29346 rm -f conftest.err conftest.$ac_objext \
29347       conftest$ac_exeext conftest.$ac_ext
29348 LIBS=$ac_check_lib_save_LIBS
29349 fi
29350 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
29351 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
29352 if test $ac_cv_lib_nsl_main = yes; then
29353   cat >>confdefs.h <<_ACEOF
29354 #define HAVE_LIBNSL 1
29355 _ACEOF
29356
29357   LIBS="-lnsl $LIBS"
29358
29359 fi
29360
29361
29362 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
29363 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
29364 if test "${ac_cv_lib_socket_main+set}" = set; then
29365   echo $ECHO_N "(cached) $ECHO_C" >&6
29366 else
29367   ac_check_lib_save_LIBS=$LIBS
29368 LIBS="-lsocket  $LIBS"
29369 cat >conftest.$ac_ext <<_ACEOF
29370 /* confdefs.h.  */
29371 _ACEOF
29372 cat confdefs.h >>conftest.$ac_ext
29373 cat >>conftest.$ac_ext <<_ACEOF
29374 /* end confdefs.h.  */
29375
29376
29377 int
29378 main ()
29379 {
29380 main ();
29381   ;
29382   return 0;
29383 }
29384 _ACEOF
29385 rm -f conftest.$ac_objext conftest$ac_exeext
29386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29387   (eval $ac_link) 2>conftest.er1
29388   ac_status=$?
29389   grep -v '^ *+' conftest.er1 >conftest.err
29390   rm -f conftest.er1
29391   cat conftest.err >&5
29392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393   (exit $ac_status); } &&
29394          { ac_try='test -z "$ac_c_werror_flag"
29395                          || test ! -s conftest.err'
29396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397   (eval $ac_try) 2>&5
29398   ac_status=$?
29399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400   (exit $ac_status); }; } &&
29401          { ac_try='test -s conftest$ac_exeext'
29402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403   (eval $ac_try) 2>&5
29404   ac_status=$?
29405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406   (exit $ac_status); }; }; then
29407   ac_cv_lib_socket_main=yes
29408 else
29409   echo "$as_me: failed program was:" >&5
29410 sed 's/^/| /' conftest.$ac_ext >&5
29411
29412 ac_cv_lib_socket_main=no
29413 fi
29414 rm -f conftest.err conftest.$ac_objext \
29415       conftest$ac_exeext conftest.$ac_ext
29416 LIBS=$ac_check_lib_save_LIBS
29417 fi
29418 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
29419 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
29420 if test $ac_cv_lib_socket_main = yes; then
29421   cat >>confdefs.h <<_ACEOF
29422 #define HAVE_LIBSOCKET 1
29423 _ACEOF
29424
29425   LIBS="-lsocket $LIBS"
29426
29427 fi
29428
29429
29430 echo "$as_me:$LINENO: checking for main in -lsun" >&5
29431 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6
29432 if test "${ac_cv_lib_sun_main+set}" = set; then
29433   echo $ECHO_N "(cached) $ECHO_C" >&6
29434 else
29435   ac_check_lib_save_LIBS=$LIBS
29436 LIBS="-lsun  $LIBS"
29437 cat >conftest.$ac_ext <<_ACEOF
29438 /* confdefs.h.  */
29439 _ACEOF
29440 cat confdefs.h >>conftest.$ac_ext
29441 cat >>conftest.$ac_ext <<_ACEOF
29442 /* end confdefs.h.  */
29443
29444
29445 int
29446 main ()
29447 {
29448 main ();
29449   ;
29450   return 0;
29451 }
29452 _ACEOF
29453 rm -f conftest.$ac_objext conftest$ac_exeext
29454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29455   (eval $ac_link) 2>conftest.er1
29456   ac_status=$?
29457   grep -v '^ *+' conftest.er1 >conftest.err
29458   rm -f conftest.er1
29459   cat conftest.err >&5
29460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461   (exit $ac_status); } &&
29462          { ac_try='test -z "$ac_c_werror_flag"
29463                          || test ! -s conftest.err'
29464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29465   (eval $ac_try) 2>&5
29466   ac_status=$?
29467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468   (exit $ac_status); }; } &&
29469          { ac_try='test -s conftest$ac_exeext'
29470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29471   (eval $ac_try) 2>&5
29472   ac_status=$?
29473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474   (exit $ac_status); }; }; then
29475   ac_cv_lib_sun_main=yes
29476 else
29477   echo "$as_me: failed program was:" >&5
29478 sed 's/^/| /' conftest.$ac_ext >&5
29479
29480 ac_cv_lib_sun_main=no
29481 fi
29482 rm -f conftest.err conftest.$ac_objext \
29483       conftest$ac_exeext conftest.$ac_ext
29484 LIBS=$ac_check_lib_save_LIBS
29485 fi
29486 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
29487 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6
29488 if test $ac_cv_lib_sun_main = yes; then
29489   cat >>confdefs.h <<_ACEOF
29490 #define HAVE_LIBSUN 1
29491 _ACEOF
29492
29493   LIBS="-lsun $LIBS"
29494
29495 fi
29496
29497                         ;;
29498 esac
29499
29500
29501 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
29502 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
29503 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
29504   echo $ECHO_N "(cached) $ECHO_C" >&6
29505 else
29506   ac_check_lib_save_LIBS=$LIBS
29507 LIBS="-ltermcap  $LIBS"
29508 cat >conftest.$ac_ext <<_ACEOF
29509 /* confdefs.h.  */
29510 _ACEOF
29511 cat confdefs.h >>conftest.$ac_ext
29512 cat >>conftest.$ac_ext <<_ACEOF
29513 /* end confdefs.h.  */
29514
29515 /* Override any gcc2 internal prototype to avoid an error.  */
29516 #ifdef __cplusplus
29517 extern "C"
29518 #endif
29519 /* We use char because int might match the return type of a gcc2
29520    builtin and then its argument prototype would still apply.  */
29521 char tgetent ();
29522 int
29523 main ()
29524 {
29525 tgetent ();
29526   ;
29527   return 0;
29528 }
29529 _ACEOF
29530 rm -f conftest.$ac_objext conftest$ac_exeext
29531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29532   (eval $ac_link) 2>conftest.er1
29533   ac_status=$?
29534   grep -v '^ *+' conftest.er1 >conftest.err
29535   rm -f conftest.er1
29536   cat conftest.err >&5
29537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538   (exit $ac_status); } &&
29539          { ac_try='test -z "$ac_c_werror_flag"
29540                          || test ! -s conftest.err'
29541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29542   (eval $ac_try) 2>&5
29543   ac_status=$?
29544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545   (exit $ac_status); }; } &&
29546          { ac_try='test -s conftest$ac_exeext'
29547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29548   (eval $ac_try) 2>&5
29549   ac_status=$?
29550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551   (exit $ac_status); }; }; then
29552   ac_cv_lib_termcap_tgetent=yes
29553 else
29554   echo "$as_me: failed program was:" >&5
29555 sed 's/^/| /' conftest.$ac_ext >&5
29556
29557 ac_cv_lib_termcap_tgetent=no
29558 fi
29559 rm -f conftest.err conftest.$ac_objext \
29560       conftest$ac_exeext conftest.$ac_ext
29561 LIBS=$ac_check_lib_save_LIBS
29562 fi
29563 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
29564 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
29565 if test $ac_cv_lib_termcap_tgetent = yes; then
29566   cat >>confdefs.h <<_ACEOF
29567 #define HAVE_LIBTERMCAP 1
29568 _ACEOF
29569
29570   LIBS="-ltermcap $LIBS"
29571
29572 fi
29573
29574 if test "$ac_cv_lib_termcap_tgetent" != yes; then
29575
29576 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
29577 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
29578 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
29579   echo $ECHO_N "(cached) $ECHO_C" >&6
29580 else
29581   ac_check_lib_save_LIBS=$LIBS
29582 LIBS="-lcurses  $LIBS"
29583 cat >conftest.$ac_ext <<_ACEOF
29584 /* confdefs.h.  */
29585 _ACEOF
29586 cat confdefs.h >>conftest.$ac_ext
29587 cat >>conftest.$ac_ext <<_ACEOF
29588 /* end confdefs.h.  */
29589
29590 /* Override any gcc2 internal prototype to avoid an error.  */
29591 #ifdef __cplusplus
29592 extern "C"
29593 #endif
29594 /* We use char because int might match the return type of a gcc2
29595    builtin and then its argument prototype would still apply.  */
29596 char tgetent ();
29597 int
29598 main ()
29599 {
29600 tgetent ();
29601   ;
29602   return 0;
29603 }
29604 _ACEOF
29605 rm -f conftest.$ac_objext conftest$ac_exeext
29606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29607   (eval $ac_link) 2>conftest.er1
29608   ac_status=$?
29609   grep -v '^ *+' conftest.er1 >conftest.err
29610   rm -f conftest.er1
29611   cat conftest.err >&5
29612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29613   (exit $ac_status); } &&
29614          { ac_try='test -z "$ac_c_werror_flag"
29615                          || test ! -s conftest.err'
29616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29617   (eval $ac_try) 2>&5
29618   ac_status=$?
29619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620   (exit $ac_status); }; } &&
29621          { ac_try='test -s conftest$ac_exeext'
29622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29623   (eval $ac_try) 2>&5
29624   ac_status=$?
29625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626   (exit $ac_status); }; }; then
29627   ac_cv_lib_curses_tgetent=yes
29628 else
29629   echo "$as_me: failed program was:" >&5
29630 sed 's/^/| /' conftest.$ac_ext >&5
29631
29632 ac_cv_lib_curses_tgetent=no
29633 fi
29634 rm -f conftest.err conftest.$ac_objext \
29635       conftest$ac_exeext conftest.$ac_ext
29636 LIBS=$ac_check_lib_save_LIBS
29637 fi
29638 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
29639 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
29640 if test $ac_cv_lib_curses_tgetent = yes; then
29641   cat >>confdefs.h <<_ACEOF
29642 #define HAVE_LIBCURSES 1
29643 _ACEOF
29644
29645   LIBS="-lcurses $LIBS"
29646
29647 fi
29648
29649     if test "$ac_cv_lib_curses_tgetent" != yes; then
29650
29651 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
29652 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
29653 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
29654   echo $ECHO_N "(cached) $ECHO_C" >&6
29655 else
29656   ac_check_lib_save_LIBS=$LIBS
29657 LIBS="-lncurses  $LIBS"
29658 cat >conftest.$ac_ext <<_ACEOF
29659 /* confdefs.h.  */
29660 _ACEOF
29661 cat confdefs.h >>conftest.$ac_ext
29662 cat >>conftest.$ac_ext <<_ACEOF
29663 /* end confdefs.h.  */
29664
29665 /* Override any gcc2 internal prototype to avoid an error.  */
29666 #ifdef __cplusplus
29667 extern "C"
29668 #endif
29669 /* We use char because int might match the return type of a gcc2
29670    builtin and then its argument prototype would still apply.  */
29671 char tgetent ();
29672 int
29673 main ()
29674 {
29675 tgetent ();
29676   ;
29677   return 0;
29678 }
29679 _ACEOF
29680 rm -f conftest.$ac_objext conftest$ac_exeext
29681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29682   (eval $ac_link) 2>conftest.er1
29683   ac_status=$?
29684   grep -v '^ *+' conftest.er1 >conftest.err
29685   rm -f conftest.er1
29686   cat conftest.err >&5
29687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688   (exit $ac_status); } &&
29689          { ac_try='test -z "$ac_c_werror_flag"
29690                          || test ! -s conftest.err'
29691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29692   (eval $ac_try) 2>&5
29693   ac_status=$?
29694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695   (exit $ac_status); }; } &&
29696          { ac_try='test -s conftest$ac_exeext'
29697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29698   (eval $ac_try) 2>&5
29699   ac_status=$?
29700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701   (exit $ac_status); }; }; then
29702   ac_cv_lib_ncurses_tgetent=yes
29703 else
29704   echo "$as_me: failed program was:" >&5
29705 sed 's/^/| /' conftest.$ac_ext >&5
29706
29707 ac_cv_lib_ncurses_tgetent=no
29708 fi
29709 rm -f conftest.err conftest.$ac_objext \
29710       conftest$ac_exeext conftest.$ac_ext
29711 LIBS=$ac_check_lib_save_LIBS
29712 fi
29713 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
29714 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
29715 if test $ac_cv_lib_ncurses_tgetent = yes; then
29716   cat >>confdefs.h <<_ACEOF
29717 #define HAVE_LIBNCURSES 1
29718 _ACEOF
29719
29720   LIBS="-lncurses $LIBS"
29721
29722 fi
29723
29724     fi
29725 fi
29726 if test "$ac_cv_lib_termcap_tgetent" = yes ||
29727    test "$ac_cv_lib_curses_tgetent" = yes ||
29728    test "$ac_cv_lib_ncurses_tgetent" = yes; then
29729
29730 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
29731 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
29732 if test "${ac_cv_lib_readline_readline+set}" = set; then
29733   echo $ECHO_N "(cached) $ECHO_C" >&6
29734 else
29735   ac_check_lib_save_LIBS=$LIBS
29736 LIBS="-lreadline  $LIBS"
29737 cat >conftest.$ac_ext <<_ACEOF
29738 /* confdefs.h.  */
29739 _ACEOF
29740 cat confdefs.h >>conftest.$ac_ext
29741 cat >>conftest.$ac_ext <<_ACEOF
29742 /* end confdefs.h.  */
29743
29744 /* Override any gcc2 internal prototype to avoid an error.  */
29745 #ifdef __cplusplus
29746 extern "C"
29747 #endif
29748 /* We use char because int might match the return type of a gcc2
29749    builtin and then its argument prototype would still apply.  */
29750 char readline ();
29751 int
29752 main ()
29753 {
29754 readline ();
29755   ;
29756   return 0;
29757 }
29758 _ACEOF
29759 rm -f conftest.$ac_objext conftest$ac_exeext
29760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29761   (eval $ac_link) 2>conftest.er1
29762   ac_status=$?
29763   grep -v '^ *+' conftest.er1 >conftest.err
29764   rm -f conftest.er1
29765   cat conftest.err >&5
29766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767   (exit $ac_status); } &&
29768          { ac_try='test -z "$ac_c_werror_flag"
29769                          || test ! -s conftest.err'
29770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29771   (eval $ac_try) 2>&5
29772   ac_status=$?
29773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774   (exit $ac_status); }; } &&
29775          { ac_try='test -s conftest$ac_exeext'
29776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29777   (eval $ac_try) 2>&5
29778   ac_status=$?
29779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780   (exit $ac_status); }; }; then
29781   ac_cv_lib_readline_readline=yes
29782 else
29783   echo "$as_me: failed program was:" >&5
29784 sed 's/^/| /' conftest.$ac_ext >&5
29785
29786 ac_cv_lib_readline_readline=no
29787 fi
29788 rm -f conftest.err conftest.$ac_objext \
29789       conftest$ac_exeext conftest.$ac_ext
29790 LIBS=$ac_check_lib_save_LIBS
29791 fi
29792 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
29793 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
29794 if test $ac_cv_lib_readline_readline = yes; then
29795   cat >>confdefs.h <<_ACEOF
29796 #define HAVE_LIBREADLINE 1
29797 _ACEOF
29798
29799   LIBS="-lreadline $LIBS"
29800
29801 fi
29802
29803     if test "$ac_cv_lib_readline_readline" != yes; then
29804         { echo "$as_me:$LINENO: WARNING: *** No readline library, no history and command line editing in amrecover!" >&5
29805 echo "$as_me: WARNING: *** No readline library, no history and command line editing in amrecover!" >&2;}
29806     fi
29807 else
29808     { echo "$as_me:$LINENO: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&5
29809 echo "$as_me: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&2;}
29810 fi
29811
29812 if test "$ac_cv_lib_readline_readline" = yes; then
29813     READLINE_LIBS=-lreadline
29814     LIBS=`echo $LIBS | sed s/-lreadline//`
29815
29816 fi
29817
29818 if test "$ac_cv_header_linux_zftape_h" = yes; then
29819     if test "$ac_cv_header_vtblc_h" = yes; then
29820
29821 echo "$as_me:$LINENO: checking for main in -lvtblc" >&5
29822 echo $ECHO_N "checking for main in -lvtblc... $ECHO_C" >&6
29823 if test "${ac_cv_lib_vtblc_main+set}" = set; then
29824   echo $ECHO_N "(cached) $ECHO_C" >&6
29825 else
29826   ac_check_lib_save_LIBS=$LIBS
29827 LIBS="-lvtblc  $LIBS"
29828 cat >conftest.$ac_ext <<_ACEOF
29829 /* confdefs.h.  */
29830 _ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h.  */
29834
29835
29836 int
29837 main ()
29838 {
29839 main ();
29840   ;
29841   return 0;
29842 }
29843 _ACEOF
29844 rm -f conftest.$ac_objext conftest$ac_exeext
29845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29846   (eval $ac_link) 2>conftest.er1
29847   ac_status=$?
29848   grep -v '^ *+' conftest.er1 >conftest.err
29849   rm -f conftest.er1
29850   cat conftest.err >&5
29851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852   (exit $ac_status); } &&
29853          { ac_try='test -z "$ac_c_werror_flag"
29854                          || test ! -s conftest.err'
29855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856   (eval $ac_try) 2>&5
29857   ac_status=$?
29858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859   (exit $ac_status); }; } &&
29860          { ac_try='test -s conftest$ac_exeext'
29861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29862   (eval $ac_try) 2>&5
29863   ac_status=$?
29864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865   (exit $ac_status); }; }; then
29866   ac_cv_lib_vtblc_main=yes
29867 else
29868   echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29870
29871 ac_cv_lib_vtblc_main=no
29872 fi
29873 rm -f conftest.err conftest.$ac_objext \
29874       conftest$ac_exeext conftest.$ac_ext
29875 LIBS=$ac_check_lib_save_LIBS
29876 fi
29877 echo "$as_me:$LINENO: result: $ac_cv_lib_vtblc_main" >&5
29878 echo "${ECHO_T}$ac_cv_lib_vtblc_main" >&6
29879 if test $ac_cv_lib_vtblc_main = yes; then
29880   cat >>confdefs.h <<_ACEOF
29881 #define HAVE_LIBVTBLC 1
29882 _ACEOF
29883
29884   LIBS="-lvtblc $LIBS"
29885
29886 fi
29887
29888         if test "$ac_cv_lib_vtblc_main" != yes; then
29889             { echo "$as_me:$LINENO: WARNING: *** vtblc library not found - no QIC volume table support!" >&5
29890 echo "$as_me: WARNING: *** vtblc library not found - no QIC volume table support!" >&2;}
29891         fi
29892     else
29893         { echo "$as_me:$LINENO: WARNING: *** vtblc headers not found - no QIC volume table support!" >&5
29894 echo "$as_me: WARNING: *** vtblc headers not found - no QIC volume table support!" >&2;}
29895     fi
29896 fi
29897
29898
29899 echo "$as_me:$LINENO: checking for modf in -lm" >&5
29900 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6
29901 if test "${ac_cv_lib_m_modf+set}" = set; then
29902   echo $ECHO_N "(cached) $ECHO_C" >&6
29903 else
29904   ac_check_lib_save_LIBS=$LIBS
29905 LIBS="-lm  $LIBS"
29906 cat >conftest.$ac_ext <<_ACEOF
29907 /* confdefs.h.  */
29908 _ACEOF
29909 cat confdefs.h >>conftest.$ac_ext
29910 cat >>conftest.$ac_ext <<_ACEOF
29911 /* end confdefs.h.  */
29912
29913 /* Override any gcc2 internal prototype to avoid an error.  */
29914 #ifdef __cplusplus
29915 extern "C"
29916 #endif
29917 /* We use char because int might match the return type of a gcc2
29918    builtin and then its argument prototype would still apply.  */
29919 char modf ();
29920 int
29921 main ()
29922 {
29923 modf ();
29924   ;
29925   return 0;
29926 }
29927 _ACEOF
29928 rm -f conftest.$ac_objext conftest$ac_exeext
29929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29930   (eval $ac_link) 2>conftest.er1
29931   ac_status=$?
29932   grep -v '^ *+' conftest.er1 >conftest.err
29933   rm -f conftest.er1
29934   cat conftest.err >&5
29935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936   (exit $ac_status); } &&
29937          { ac_try='test -z "$ac_c_werror_flag"
29938                          || test ! -s conftest.err'
29939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29940   (eval $ac_try) 2>&5
29941   ac_status=$?
29942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943   (exit $ac_status); }; } &&
29944          { ac_try='test -s conftest$ac_exeext'
29945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29946   (eval $ac_try) 2>&5
29947   ac_status=$?
29948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949   (exit $ac_status); }; }; then
29950   ac_cv_lib_m_modf=yes
29951 else
29952   echo "$as_me: failed program was:" >&5
29953 sed 's/^/| /' conftest.$ac_ext >&5
29954
29955 ac_cv_lib_m_modf=no
29956 fi
29957 rm -f conftest.err conftest.$ac_objext \
29958       conftest$ac_exeext conftest.$ac_ext
29959 LIBS=$ac_check_lib_save_LIBS
29960 fi
29961 echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
29962 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6
29963 if test $ac_cv_lib_m_modf = yes; then
29964   cat >>confdefs.h <<_ACEOF
29965 #define HAVE_LIBM 1
29966 _ACEOF
29967
29968   LIBS="-lm $LIBS"
29969
29970 fi
29971
29972
29973
29974 echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
29975 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6
29976 mt_flags_result="found"
29977 cat >conftest.$ac_ext <<_ACEOF
29978 /* confdefs.h.  */
29979 _ACEOF
29980 cat confdefs.h >>conftest.$ac_ext
29981 cat >>conftest.$ac_ext <<_ACEOF
29982 /* end confdefs.h.  */
29983
29984 #include <stdio.h>
29985 #include <sys/types.h>
29986 #include <sys/mtio.h>
29987
29988 int
29989 main ()
29990 {
29991
29992     struct mtget buf;
29993     long ds;
29994
29995     ds = buf.mt_flags;
29996
29997   ;
29998   return 0;
29999 }
30000 _ACEOF
30001 rm -f conftest.$ac_objext
30002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30003   (eval $ac_compile) 2>conftest.er1
30004   ac_status=$?
30005   grep -v '^ *+' conftest.er1 >conftest.err
30006   rm -f conftest.er1
30007   cat conftest.err >&5
30008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009   (exit $ac_status); } &&
30010          { ac_try='test -z "$ac_c_werror_flag"
30011                          || test ! -s conftest.err'
30012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30013   (eval $ac_try) 2>&5
30014   ac_status=$?
30015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016   (exit $ac_status); }; } &&
30017          { ac_try='test -s conftest.$ac_objext'
30018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30019   (eval $ac_try) 2>&5
30020   ac_status=$?
30021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022   (exit $ac_status); }; }; then
30023
30024 cat >>confdefs.h <<\_ACEOF
30025 #define HAVE_MT_FLAGS 1
30026 _ACEOF
30027
30028 else
30029   echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30031
30032 mt_flags_result="not found"
30033 fi
30034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30035 echo "$as_me:$LINENO: result: $mt_flags_result" >&5
30036 echo "${ECHO_T}$mt_flags_result" >&6
30037
30038 echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
30039 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6
30040 mt_fileno_result="found"
30041 cat >conftest.$ac_ext <<_ACEOF
30042 /* confdefs.h.  */
30043 _ACEOF
30044 cat confdefs.h >>conftest.$ac_ext
30045 cat >>conftest.$ac_ext <<_ACEOF
30046 /* end confdefs.h.  */
30047
30048 #include <stdio.h>
30049 #include <sys/types.h>
30050 #include <sys/mtio.h>
30051
30052 int
30053 main ()
30054 {
30055
30056     struct mtget buf;
30057     long ds;
30058
30059     ds = buf.mt_fileno;
30060
30061   ;
30062   return 0;
30063 }
30064 _ACEOF
30065 rm -f conftest.$ac_objext
30066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30067   (eval $ac_compile) 2>conftest.er1
30068   ac_status=$?
30069   grep -v '^ *+' conftest.er1 >conftest.err
30070   rm -f conftest.er1
30071   cat conftest.err >&5
30072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073   (exit $ac_status); } &&
30074          { ac_try='test -z "$ac_c_werror_flag"
30075                          || test ! -s conftest.err'
30076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30077   (eval $ac_try) 2>&5
30078   ac_status=$?
30079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080   (exit $ac_status); }; } &&
30081          { ac_try='test -s conftest.$ac_objext'
30082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30083   (eval $ac_try) 2>&5
30084   ac_status=$?
30085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086   (exit $ac_status); }; }; then
30087
30088 cat >>confdefs.h <<\_ACEOF
30089 #define HAVE_MT_FILENO 1
30090 _ACEOF
30091
30092 else
30093   echo "$as_me: failed program was:" >&5
30094 sed 's/^/| /' conftest.$ac_ext >&5
30095
30096 mt_fileno_result="not found"
30097 fi
30098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30099 echo "$as_me:$LINENO: result: $mt_fileno_result" >&5
30100 echo "${ECHO_T}$mt_fileno_result" >&6
30101
30102 echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
30103 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6
30104 mt_blkno_result="found"
30105 cat >conftest.$ac_ext <<_ACEOF
30106 /* confdefs.h.  */
30107 _ACEOF
30108 cat confdefs.h >>conftest.$ac_ext
30109 cat >>conftest.$ac_ext <<_ACEOF
30110 /* end confdefs.h.  */
30111
30112 #include <stdio.h>
30113 #include <sys/types.h>
30114 #include <sys/mtio.h>
30115
30116 int
30117 main ()
30118 {
30119
30120     struct mtget buf;
30121     long ds;
30122
30123     ds = buf.mt_blkno;
30124
30125   ;
30126   return 0;
30127 }
30128 _ACEOF
30129 rm -f conftest.$ac_objext
30130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30131   (eval $ac_compile) 2>conftest.er1
30132   ac_status=$?
30133   grep -v '^ *+' conftest.er1 >conftest.err
30134   rm -f conftest.er1
30135   cat conftest.err >&5
30136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137   (exit $ac_status); } &&
30138          { ac_try='test -z "$ac_c_werror_flag"
30139                          || test ! -s conftest.err'
30140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30141   (eval $ac_try) 2>&5
30142   ac_status=$?
30143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144   (exit $ac_status); }; } &&
30145          { ac_try='test -s conftest.$ac_objext'
30146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30147   (eval $ac_try) 2>&5
30148   ac_status=$?
30149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30150   (exit $ac_status); }; }; then
30151
30152 cat >>confdefs.h <<\_ACEOF
30153 #define HAVE_MT_BLKNO 1
30154 _ACEOF
30155
30156 else
30157   echo "$as_me: failed program was:" >&5
30158 sed 's/^/| /' conftest.$ac_ext >&5
30159
30160 mt_blkno_result="not found"
30161 fi
30162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30163 echo "$as_me:$LINENO: result: $mt_blkno_result" >&5
30164 echo "${ECHO_T}$mt_blkno_result" >&6
30165
30166 echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
30167 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6
30168 mt_dsreg_result="found"
30169 cat >conftest.$ac_ext <<_ACEOF
30170 /* confdefs.h.  */
30171 _ACEOF
30172 cat confdefs.h >>conftest.$ac_ext
30173 cat >>conftest.$ac_ext <<_ACEOF
30174 /* end confdefs.h.  */
30175
30176 #include <stdio.h>
30177 #include <sys/types.h>
30178 #include <sys/mtio.h>
30179
30180 int
30181 main ()
30182 {
30183
30184     struct mtget buf;
30185     long ds;
30186
30187     ds = buf.mt_dsreg;
30188
30189   ;
30190   return 0;
30191 }
30192 _ACEOF
30193 rm -f conftest.$ac_objext
30194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30195   (eval $ac_compile) 2>conftest.er1
30196   ac_status=$?
30197   grep -v '^ *+' conftest.er1 >conftest.err
30198   rm -f conftest.er1
30199   cat conftest.err >&5
30200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201   (exit $ac_status); } &&
30202          { ac_try='test -z "$ac_c_werror_flag"
30203                          || test ! -s conftest.err'
30204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30205   (eval $ac_try) 2>&5
30206   ac_status=$?
30207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208   (exit $ac_status); }; } &&
30209          { ac_try='test -s conftest.$ac_objext'
30210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30211   (eval $ac_try) 2>&5
30212   ac_status=$?
30213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214   (exit $ac_status); }; }; then
30215
30216 cat >>confdefs.h <<\_ACEOF
30217 #define HAVE_MT_DSREG 1
30218 _ACEOF
30219
30220 else
30221   echo "$as_me: failed program was:" >&5
30222 sed 's/^/| /' conftest.$ac_ext >&5
30223
30224 mt_dsreg_result="not found"
30225 fi
30226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30227 echo "$as_me:$LINENO: result: $mt_dsreg_result" >&5
30228 echo "${ECHO_T}$mt_dsreg_result" >&6
30229
30230 echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
30231 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6
30232 mt_erreg_result="found"
30233 cat >conftest.$ac_ext <<_ACEOF
30234 /* confdefs.h.  */
30235 _ACEOF
30236 cat confdefs.h >>conftest.$ac_ext
30237 cat >>conftest.$ac_ext <<_ACEOF
30238 /* end confdefs.h.  */
30239
30240 #include <stdio.h>
30241 #include <sys/types.h>
30242 #include <sys/mtio.h>
30243
30244 int
30245 main ()
30246 {
30247
30248     struct mtget buf;
30249     long ds;
30250
30251     ds = buf.mt_erreg;
30252
30253   ;
30254   return 0;
30255 }
30256 _ACEOF
30257 rm -f conftest.$ac_objext
30258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30259   (eval $ac_compile) 2>conftest.er1
30260   ac_status=$?
30261   grep -v '^ *+' conftest.er1 >conftest.err
30262   rm -f conftest.er1
30263   cat conftest.err >&5
30264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265   (exit $ac_status); } &&
30266          { ac_try='test -z "$ac_c_werror_flag"
30267                          || test ! -s conftest.err'
30268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30269   (eval $ac_try) 2>&5
30270   ac_status=$?
30271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272   (exit $ac_status); }; } &&
30273          { ac_try='test -s conftest.$ac_objext'
30274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275   (eval $ac_try) 2>&5
30276   ac_status=$?
30277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278   (exit $ac_status); }; }; then
30279
30280 cat >>confdefs.h <<\_ACEOF
30281 #define HAVE_MT_ERREG 1
30282 _ACEOF
30283
30284 else
30285   echo "$as_me: failed program was:" >&5
30286 sed 's/^/| /' conftest.$ac_ext >&5
30287
30288 mt_erreg_result="not found"
30289 fi
30290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30291 echo "$as_me:$LINENO: result: $mt_erreg_result" >&5
30292 echo "${ECHO_T}$mt_erreg_result" >&6
30293
30294
30295 DB_HEADER=
30296 DB_LIB=
30297
30298 save_LIBS="$LIBS"
30299
30300 echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
30301 echo $ECHO_N "checking for dbm_open in -lc... $ECHO_C" >&6
30302 if test "${ac_cv_lib_c_dbm_open+set}" = set; then
30303   echo $ECHO_N "(cached) $ECHO_C" >&6
30304 else
30305   ac_check_lib_save_LIBS=$LIBS
30306 LIBS="-lc  $LIBS"
30307 cat >conftest.$ac_ext <<_ACEOF
30308 /* confdefs.h.  */
30309 _ACEOF
30310 cat confdefs.h >>conftest.$ac_ext
30311 cat >>conftest.$ac_ext <<_ACEOF
30312 /* end confdefs.h.  */
30313
30314 /* Override any gcc2 internal prototype to avoid an error.  */
30315 #ifdef __cplusplus
30316 extern "C"
30317 #endif
30318 /* We use char because int might match the return type of a gcc2
30319    builtin and then its argument prototype would still apply.  */
30320 char dbm_open ();
30321 int
30322 main ()
30323 {
30324 dbm_open ();
30325   ;
30326   return 0;
30327 }
30328 _ACEOF
30329 rm -f conftest.$ac_objext conftest$ac_exeext
30330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30331   (eval $ac_link) 2>conftest.er1
30332   ac_status=$?
30333   grep -v '^ *+' conftest.er1 >conftest.err
30334   rm -f conftest.er1
30335   cat conftest.err >&5
30336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337   (exit $ac_status); } &&
30338          { ac_try='test -z "$ac_c_werror_flag"
30339                          || test ! -s conftest.err'
30340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30341   (eval $ac_try) 2>&5
30342   ac_status=$?
30343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344   (exit $ac_status); }; } &&
30345          { ac_try='test -s conftest$ac_exeext'
30346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30347   (eval $ac_try) 2>&5
30348   ac_status=$?
30349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350   (exit $ac_status); }; }; then
30351   ac_cv_lib_c_dbm_open=yes
30352 else
30353   echo "$as_me: failed program was:" >&5
30354 sed 's/^/| /' conftest.$ac_ext >&5
30355
30356 ac_cv_lib_c_dbm_open=no
30357 fi
30358 rm -f conftest.err conftest.$ac_objext \
30359       conftest$ac_exeext conftest.$ac_ext
30360 LIBS=$ac_check_lib_save_LIBS
30361 fi
30362 echo "$as_me:$LINENO: result: $ac_cv_lib_c_dbm_open" >&5
30363 echo "${ECHO_T}$ac_cv_lib_c_dbm_open" >&6
30364 if test $ac_cv_lib_c_dbm_open = yes; then
30365   cat >>confdefs.h <<_ACEOF
30366 #define HAVE_LIBC 1
30367 _ACEOF
30368
30369   LIBS="-lc $LIBS"
30370
30371 fi
30372
30373 LIBS="$save_LIBS"
30374
30375 case "$DB_STYLE" in
30376     db)
30377         if test "$ac_cv_header_db_h" = yes; then
30378
30379 echo "$as_me:$LINENO: checking for main in -ldb" >&5
30380 echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
30381 if test "${ac_cv_lib_db_main+set}" = set; then
30382   echo $ECHO_N "(cached) $ECHO_C" >&6
30383 else
30384   ac_check_lib_save_LIBS=$LIBS
30385 LIBS="-ldb  $LIBS"
30386 cat >conftest.$ac_ext <<_ACEOF
30387 /* confdefs.h.  */
30388 _ACEOF
30389 cat confdefs.h >>conftest.$ac_ext
30390 cat >>conftest.$ac_ext <<_ACEOF
30391 /* end confdefs.h.  */
30392
30393
30394 int
30395 main ()
30396 {
30397 main ();
30398   ;
30399   return 0;
30400 }
30401 _ACEOF
30402 rm -f conftest.$ac_objext conftest$ac_exeext
30403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30404   (eval $ac_link) 2>conftest.er1
30405   ac_status=$?
30406   grep -v '^ *+' conftest.er1 >conftest.err
30407   rm -f conftest.er1
30408   cat conftest.err >&5
30409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410   (exit $ac_status); } &&
30411          { ac_try='test -z "$ac_c_werror_flag"
30412                          || test ! -s conftest.err'
30413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30414   (eval $ac_try) 2>&5
30415   ac_status=$?
30416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417   (exit $ac_status); }; } &&
30418          { ac_try='test -s conftest$ac_exeext'
30419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30420   (eval $ac_try) 2>&5
30421   ac_status=$?
30422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423   (exit $ac_status); }; }; then
30424   ac_cv_lib_db_main=yes
30425 else
30426   echo "$as_me: failed program was:" >&5
30427 sed 's/^/| /' conftest.$ac_ext >&5
30428
30429 ac_cv_lib_db_main=no
30430 fi
30431 rm -f conftest.err conftest.$ac_objext \
30432       conftest$ac_exeext conftest.$ac_ext
30433 LIBS=$ac_check_lib_save_LIBS
30434 fi
30435 echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
30436 echo "${ECHO_T}$ac_cv_lib_db_main" >&6
30437 if test $ac_cv_lib_db_main = yes; then
30438   cat >>confdefs.h <<_ACEOF
30439 #define HAVE_LIBDB 1
30440 _ACEOF
30441
30442   LIBS="-ldb $LIBS"
30443
30444 fi
30445
30446             if test "$ac_cv_lib_db_main" = yes; then
30447
30448 echo "$as_me:$LINENO: checking for dbm_open in -ldb" >&5
30449 echo $ECHO_N "checking for dbm_open in -ldb... $ECHO_C" >&6
30450 if test "${ac_cv_lib_db_dbm_open+set}" = set; then
30451   echo $ECHO_N "(cached) $ECHO_C" >&6
30452 else
30453   ac_check_lib_save_LIBS=$LIBS
30454 LIBS="-ldb  $LIBS"
30455 cat >conftest.$ac_ext <<_ACEOF
30456 /* confdefs.h.  */
30457 _ACEOF
30458 cat confdefs.h >>conftest.$ac_ext
30459 cat >>conftest.$ac_ext <<_ACEOF
30460 /* end confdefs.h.  */
30461
30462 /* Override any gcc2 internal prototype to avoid an error.  */
30463 #ifdef __cplusplus
30464 extern "C"
30465 #endif
30466 /* We use char because int might match the return type of a gcc2
30467    builtin and then its argument prototype would still apply.  */
30468 char dbm_open ();
30469 int
30470 main ()
30471 {
30472 dbm_open ();
30473   ;
30474   return 0;
30475 }
30476 _ACEOF
30477 rm -f conftest.$ac_objext conftest$ac_exeext
30478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30479   (eval $ac_link) 2>conftest.er1
30480   ac_status=$?
30481   grep -v '^ *+' conftest.er1 >conftest.err
30482   rm -f conftest.er1
30483   cat conftest.err >&5
30484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485   (exit $ac_status); } &&
30486          { ac_try='test -z "$ac_c_werror_flag"
30487                          || test ! -s conftest.err'
30488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30489   (eval $ac_try) 2>&5
30490   ac_status=$?
30491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492   (exit $ac_status); }; } &&
30493          { ac_try='test -s conftest$ac_exeext'
30494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30495   (eval $ac_try) 2>&5
30496   ac_status=$?
30497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498   (exit $ac_status); }; }; then
30499   ac_cv_lib_db_dbm_open=yes
30500 else
30501   echo "$as_me: failed program was:" >&5
30502 sed 's/^/| /' conftest.$ac_ext >&5
30503
30504 ac_cv_lib_db_dbm_open=no
30505 fi
30506 rm -f conftest.err conftest.$ac_objext \
30507       conftest$ac_exeext conftest.$ac_ext
30508 LIBS=$ac_check_lib_save_LIBS
30509 fi
30510 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_open" >&5
30511 echo "${ECHO_T}$ac_cv_lib_db_dbm_open" >&6
30512 if test $ac_cv_lib_db_dbm_open = yes; then
30513   cat >>confdefs.h <<_ACEOF
30514 #define HAVE_LIBDB 1
30515 _ACEOF
30516
30517   LIBS="-ldb $LIBS"
30518
30519 fi
30520
30521                 if test "$ac_cv_lib_db_dbm_open" = yes; then
30522                     DB_HEADER=db.h
30523                     DB_LIB=db
30524                 else
30525                     DB_STYLE=
30526                     { echo "$as_me:$LINENO: WARNING: *** db database library requested but dbm_open not found in -ldb." >&5
30527 echo "$as_me: WARNING: *** db database library requested but dbm_open not found in -ldb." >&2;}
30528                 fi
30529             else
30530                 if test "$ac_cv_lib_c_dbm_open" = yes; then
30531                     DB_HEADER=db.h
30532                     DB_LIB=c
30533                 else
30534                     DB_STYLE=
30535                     { echo "$as_me:$LINENO: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&5
30536 echo "$as_me: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&2;}
30537                 fi
30538             fi
30539         else
30540             DB_STYLE=
30541             { echo "$as_me:$LINENO: WARNING: *** db database library requested but db.h not found." >&5
30542 echo "$as_me: WARNING: *** db database library requested but db.h not found." >&2;}
30543         fi
30544         ;;
30545
30546     dbm)
30547         if test "$ac_cv_header_dbm_h" = yes; then
30548
30549 echo "$as_me:$LINENO: checking for main in -ldbm" >&5
30550 echo $ECHO_N "checking for main in -ldbm... $ECHO_C" >&6
30551 if test "${ac_cv_lib_dbm_main+set}" = set; then
30552   echo $ECHO_N "(cached) $ECHO_C" >&6
30553 else
30554   ac_check_lib_save_LIBS=$LIBS
30555 LIBS="-ldbm  $LIBS"
30556 cat >conftest.$ac_ext <<_ACEOF
30557 /* confdefs.h.  */
30558 _ACEOF
30559 cat confdefs.h >>conftest.$ac_ext
30560 cat >>conftest.$ac_ext <<_ACEOF
30561 /* end confdefs.h.  */
30562
30563
30564 int
30565 main ()
30566 {
30567 main ();
30568   ;
30569   return 0;
30570 }
30571 _ACEOF
30572 rm -f conftest.$ac_objext conftest$ac_exeext
30573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30574   (eval $ac_link) 2>conftest.er1
30575   ac_status=$?
30576   grep -v '^ *+' conftest.er1 >conftest.err
30577   rm -f conftest.er1
30578   cat conftest.err >&5
30579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580   (exit $ac_status); } &&
30581          { ac_try='test -z "$ac_c_werror_flag"
30582                          || test ! -s conftest.err'
30583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584   (eval $ac_try) 2>&5
30585   ac_status=$?
30586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587   (exit $ac_status); }; } &&
30588          { ac_try='test -s conftest$ac_exeext'
30589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30590   (eval $ac_try) 2>&5
30591   ac_status=$?
30592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593   (exit $ac_status); }; }; then
30594   ac_cv_lib_dbm_main=yes
30595 else
30596   echo "$as_me: failed program was:" >&5
30597 sed 's/^/| /' conftest.$ac_ext >&5
30598
30599 ac_cv_lib_dbm_main=no
30600 fi
30601 rm -f conftest.err conftest.$ac_objext \
30602       conftest$ac_exeext conftest.$ac_ext
30603 LIBS=$ac_check_lib_save_LIBS
30604 fi
30605 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_main" >&5
30606 echo "${ECHO_T}$ac_cv_lib_dbm_main" >&6
30607 if test $ac_cv_lib_dbm_main = yes; then
30608   cat >>confdefs.h <<_ACEOF
30609 #define HAVE_LIBDBM 1
30610 _ACEOF
30611
30612   LIBS="-ldbm $LIBS"
30613
30614 fi
30615
30616             if test "$ac_cv_lib_dbm_main" = yes; then
30617
30618 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
30619 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
30620 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
30621   echo $ECHO_N "(cached) $ECHO_C" >&6
30622 else
30623   ac_check_lib_save_LIBS=$LIBS
30624 LIBS="-ldbm  $LIBS"
30625 cat >conftest.$ac_ext <<_ACEOF
30626 /* confdefs.h.  */
30627 _ACEOF
30628 cat confdefs.h >>conftest.$ac_ext
30629 cat >>conftest.$ac_ext <<_ACEOF
30630 /* end confdefs.h.  */
30631
30632 /* Override any gcc2 internal prototype to avoid an error.  */
30633 #ifdef __cplusplus
30634 extern "C"
30635 #endif
30636 /* We use char because int might match the return type of a gcc2
30637    builtin and then its argument prototype would still apply.  */
30638 char dbm_open ();
30639 int
30640 main ()
30641 {
30642 dbm_open ();
30643   ;
30644   return 0;
30645 }
30646 _ACEOF
30647 rm -f conftest.$ac_objext conftest$ac_exeext
30648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30649   (eval $ac_link) 2>conftest.er1
30650   ac_status=$?
30651   grep -v '^ *+' conftest.er1 >conftest.err
30652   rm -f conftest.er1
30653   cat conftest.err >&5
30654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655   (exit $ac_status); } &&
30656          { ac_try='test -z "$ac_c_werror_flag"
30657                          || test ! -s conftest.err'
30658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30659   (eval $ac_try) 2>&5
30660   ac_status=$?
30661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662   (exit $ac_status); }; } &&
30663          { ac_try='test -s conftest$ac_exeext'
30664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30665   (eval $ac_try) 2>&5
30666   ac_status=$?
30667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668   (exit $ac_status); }; }; then
30669   ac_cv_lib_dbm_dbm_open=yes
30670 else
30671   echo "$as_me: failed program was:" >&5
30672 sed 's/^/| /' conftest.$ac_ext >&5
30673
30674 ac_cv_lib_dbm_dbm_open=no
30675 fi
30676 rm -f conftest.err conftest.$ac_objext \
30677       conftest$ac_exeext conftest.$ac_ext
30678 LIBS=$ac_check_lib_save_LIBS
30679 fi
30680 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
30681 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
30682 if test $ac_cv_lib_dbm_dbm_open = yes; then
30683   cat >>confdefs.h <<_ACEOF
30684 #define HAVE_LIBDBM 1
30685 _ACEOF
30686
30687   LIBS="-ldbm $LIBS"
30688
30689 fi
30690
30691                 if test "$ac_cv_lib_dbm_dbm_open" = yes; then
30692                     DB_HEADER=dbm.h
30693                     DB_LIB=dbm
30694                 else
30695                     DB_STYLE=
30696                     { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&5
30697 echo "$as_me: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&2;}
30698                 fi
30699             else
30700                 if test "$ac_cv_lib_c_dbm_open" = yes; then
30701                     DB_HEADER=dbm.h
30702                     DB_LIB=c
30703                 else
30704                     DB_STYLE=
30705                     { echo "$as_me:$LINENO: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&5
30706 echo "$as_me: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&2;}
30707                 fi
30708             fi
30709         else
30710             DB_STYLE=
30711             { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm.h not found." >&5
30712 echo "$as_me: WARNING: *** dbm database library requested but dbm.h not found." >&2;}
30713         fi
30714         ;;
30715
30716     gdbm)
30717         if test "$ac_cv_header_ndbm_h" = yes; then
30718
30719 echo "$as_me:$LINENO: checking for main in -lgdbm" >&5
30720 echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
30721 if test "${ac_cv_lib_gdbm_main+set}" = set; then
30722   echo $ECHO_N "(cached) $ECHO_C" >&6
30723 else
30724   ac_check_lib_save_LIBS=$LIBS
30725 LIBS="-lgdbm  $LIBS"
30726 cat >conftest.$ac_ext <<_ACEOF
30727 /* confdefs.h.  */
30728 _ACEOF
30729 cat confdefs.h >>conftest.$ac_ext
30730 cat >>conftest.$ac_ext <<_ACEOF
30731 /* end confdefs.h.  */
30732
30733
30734 int
30735 main ()
30736 {
30737 main ();
30738   ;
30739   return 0;
30740 }
30741 _ACEOF
30742 rm -f conftest.$ac_objext conftest$ac_exeext
30743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30744   (eval $ac_link) 2>conftest.er1
30745   ac_status=$?
30746   grep -v '^ *+' conftest.er1 >conftest.err
30747   rm -f conftest.er1
30748   cat conftest.err >&5
30749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750   (exit $ac_status); } &&
30751          { ac_try='test -z "$ac_c_werror_flag"
30752                          || test ! -s conftest.err'
30753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30754   (eval $ac_try) 2>&5
30755   ac_status=$?
30756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757   (exit $ac_status); }; } &&
30758          { ac_try='test -s conftest$ac_exeext'
30759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30760   (eval $ac_try) 2>&5
30761   ac_status=$?
30762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763   (exit $ac_status); }; }; then
30764   ac_cv_lib_gdbm_main=yes
30765 else
30766   echo "$as_me: failed program was:" >&5
30767 sed 's/^/| /' conftest.$ac_ext >&5
30768
30769 ac_cv_lib_gdbm_main=no
30770 fi
30771 rm -f conftest.err conftest.$ac_objext \
30772       conftest$ac_exeext conftest.$ac_ext
30773 LIBS=$ac_check_lib_save_LIBS
30774 fi
30775 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_main" >&5
30776 echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
30777 if test $ac_cv_lib_gdbm_main = yes; then
30778   cat >>confdefs.h <<_ACEOF
30779 #define HAVE_LIBGDBM 1
30780 _ACEOF
30781
30782   LIBS="-lgdbm $LIBS"
30783
30784 fi
30785
30786             if test "$ac_cv_lib_gdbm_main" = yes; then
30787
30788 echo "$as_me:$LINENO: checking for dbm_open in -lgdbm" >&5
30789 echo $ECHO_N "checking for dbm_open in -lgdbm... $ECHO_C" >&6
30790 if test "${ac_cv_lib_gdbm_dbm_open+set}" = set; then
30791   echo $ECHO_N "(cached) $ECHO_C" >&6
30792 else
30793   ac_check_lib_save_LIBS=$LIBS
30794 LIBS="-lgdbm  $LIBS"
30795 cat >conftest.$ac_ext <<_ACEOF
30796 /* confdefs.h.  */
30797 _ACEOF
30798 cat confdefs.h >>conftest.$ac_ext
30799 cat >>conftest.$ac_ext <<_ACEOF
30800 /* end confdefs.h.  */
30801
30802 /* Override any gcc2 internal prototype to avoid an error.  */
30803 #ifdef __cplusplus
30804 extern "C"
30805 #endif
30806 /* We use char because int might match the return type of a gcc2
30807    builtin and then its argument prototype would still apply.  */
30808 char dbm_open ();
30809 int
30810 main ()
30811 {
30812 dbm_open ();
30813   ;
30814   return 0;
30815 }
30816 _ACEOF
30817 rm -f conftest.$ac_objext conftest$ac_exeext
30818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30819   (eval $ac_link) 2>conftest.er1
30820   ac_status=$?
30821   grep -v '^ *+' conftest.er1 >conftest.err
30822   rm -f conftest.er1
30823   cat conftest.err >&5
30824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825   (exit $ac_status); } &&
30826          { ac_try='test -z "$ac_c_werror_flag"
30827                          || test ! -s conftest.err'
30828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30829   (eval $ac_try) 2>&5
30830   ac_status=$?
30831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832   (exit $ac_status); }; } &&
30833          { ac_try='test -s conftest$ac_exeext'
30834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30835   (eval $ac_try) 2>&5
30836   ac_status=$?
30837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838   (exit $ac_status); }; }; then
30839   ac_cv_lib_gdbm_dbm_open=yes
30840 else
30841   echo "$as_me: failed program was:" >&5
30842 sed 's/^/| /' conftest.$ac_ext >&5
30843
30844 ac_cv_lib_gdbm_dbm_open=no
30845 fi
30846 rm -f conftest.err conftest.$ac_objext \
30847       conftest$ac_exeext conftest.$ac_ext
30848 LIBS=$ac_check_lib_save_LIBS
30849 fi
30850 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_dbm_open" >&5
30851 echo "${ECHO_T}$ac_cv_lib_gdbm_dbm_open" >&6
30852 if test $ac_cv_lib_gdbm_dbm_open = yes; then
30853   cat >>confdefs.h <<_ACEOF
30854 #define HAVE_LIBGDBM 1
30855 _ACEOF
30856
30857   LIBS="-lgdbm $LIBS"
30858
30859 fi
30860
30861                 if test "$ac_cv_lib_gdbm_dbm_open" = yes; then
30862                     DB_HEADER=ndbm.h
30863                     DB_LIB=gdbm
30864                 else
30865                     DB_STYLE=
30866                     { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but -lgdbm not found." >&5
30867 echo "$as_me: WARNING: *** gdbm database library requested but -lgdbm not found." >&2;}
30868                 fi
30869             else
30870                 if test "$ac_cv_lib_c_dbm_open" = yes; then
30871                     DB_HEADER=ndbm.h
30872                     DB_LIB=c
30873                 else
30874                     DB_STYLE=
30875                     { echo "$as_me:$LINENO: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&5
30876 echo "$as_me: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&2;}
30877                 fi
30878             fi
30879         else
30880             DB_STYLE=
30881             { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but ndbm.h not found." >&5
30882 echo "$as_me: WARNING: *** gdbm database library requested but ndbm.h not found." >&2;}
30883         fi
30884         ;;
30885
30886     ndbm)
30887         if test "$ac_cv_header_ndbm_h" = yes; then
30888
30889 echo "$as_me:$LINENO: checking for main in -lndbm" >&5
30890 echo $ECHO_N "checking for main in -lndbm... $ECHO_C" >&6
30891 if test "${ac_cv_lib_ndbm_main+set}" = set; then
30892   echo $ECHO_N "(cached) $ECHO_C" >&6
30893 else
30894   ac_check_lib_save_LIBS=$LIBS
30895 LIBS="-lndbm  $LIBS"
30896 cat >conftest.$ac_ext <<_ACEOF
30897 /* confdefs.h.  */
30898 _ACEOF
30899 cat confdefs.h >>conftest.$ac_ext
30900 cat >>conftest.$ac_ext <<_ACEOF
30901 /* end confdefs.h.  */
30902
30903
30904 int
30905 main ()
30906 {
30907 main ();
30908   ;
30909   return 0;
30910 }
30911 _ACEOF
30912 rm -f conftest.$ac_objext conftest$ac_exeext
30913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30914   (eval $ac_link) 2>conftest.er1
30915   ac_status=$?
30916   grep -v '^ *+' conftest.er1 >conftest.err
30917   rm -f conftest.er1
30918   cat conftest.err >&5
30919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30920   (exit $ac_status); } &&
30921          { ac_try='test -z "$ac_c_werror_flag"
30922                          || test ! -s conftest.err'
30923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30924   (eval $ac_try) 2>&5
30925   ac_status=$?
30926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927   (exit $ac_status); }; } &&
30928          { ac_try='test -s conftest$ac_exeext'
30929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30930   (eval $ac_try) 2>&5
30931   ac_status=$?
30932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933   (exit $ac_status); }; }; then
30934   ac_cv_lib_ndbm_main=yes
30935 else
30936   echo "$as_me: failed program was:" >&5
30937 sed 's/^/| /' conftest.$ac_ext >&5
30938
30939 ac_cv_lib_ndbm_main=no
30940 fi
30941 rm -f conftest.err conftest.$ac_objext \
30942       conftest$ac_exeext conftest.$ac_ext
30943 LIBS=$ac_check_lib_save_LIBS
30944 fi
30945 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_main" >&5
30946 echo "${ECHO_T}$ac_cv_lib_ndbm_main" >&6
30947 if test $ac_cv_lib_ndbm_main = yes; then
30948   cat >>confdefs.h <<_ACEOF
30949 #define HAVE_LIBNDBM 1
30950 _ACEOF
30951
30952   LIBS="-lndbm $LIBS"
30953
30954 fi
30955
30956             if test "$ac_cv_lib_ndbm_main" = yes; then
30957
30958 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
30959 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
30960 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
30961   echo $ECHO_N "(cached) $ECHO_C" >&6
30962 else
30963   ac_check_lib_save_LIBS=$LIBS
30964 LIBS="-lndbm  $LIBS"
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 /* Override any gcc2 internal prototype to avoid an error.  */
30973 #ifdef __cplusplus
30974 extern "C"
30975 #endif
30976 /* We use char because int might match the return type of a gcc2
30977    builtin and then its argument prototype would still apply.  */
30978 char dbm_open ();
30979 int
30980 main ()
30981 {
30982 dbm_open ();
30983   ;
30984   return 0;
30985 }
30986 _ACEOF
30987 rm -f conftest.$ac_objext conftest$ac_exeext
30988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30989   (eval $ac_link) 2>conftest.er1
30990   ac_status=$?
30991   grep -v '^ *+' conftest.er1 >conftest.err
30992   rm -f conftest.er1
30993   cat conftest.err >&5
30994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995   (exit $ac_status); } &&
30996          { ac_try='test -z "$ac_c_werror_flag"
30997                          || test ! -s conftest.err'
30998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30999   (eval $ac_try) 2>&5
31000   ac_status=$?
31001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002   (exit $ac_status); }; } &&
31003          { ac_try='test -s conftest$ac_exeext'
31004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31005   (eval $ac_try) 2>&5
31006   ac_status=$?
31007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31008   (exit $ac_status); }; }; then
31009   ac_cv_lib_ndbm_dbm_open=yes
31010 else
31011   echo "$as_me: failed program was:" >&5
31012 sed 's/^/| /' conftest.$ac_ext >&5
31013
31014 ac_cv_lib_ndbm_dbm_open=no
31015 fi
31016 rm -f conftest.err conftest.$ac_objext \
31017       conftest$ac_exeext conftest.$ac_ext
31018 LIBS=$ac_check_lib_save_LIBS
31019 fi
31020 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
31021 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
31022 if test $ac_cv_lib_ndbm_dbm_open = yes; then
31023   cat >>confdefs.h <<_ACEOF
31024 #define HAVE_LIBNDBM 1
31025 _ACEOF
31026
31027   LIBS="-lndbm $LIBS"
31028
31029 fi
31030
31031                 if test "$ac_cv_lib_ndbm_dbm_open" = yes; then
31032                     DB_HEADER=ndbm.h
31033                     DB_LIB=ndbm
31034                 else
31035                     DB_STYLE=
31036                     { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but -lndbm not found." >&5
31037 echo "$as_me: WARNING: *** ndbm database library requested but -lndbm not found." >&2;}
31038                 fi
31039             else
31040                 if test "$ac_cv_lib_c_dbm_open" = yes; then
31041                     DB_HEADER=ndbm.h
31042                     DB_LIB=c
31043                 else
31044                     DB_STYLE=
31045                     { echo "$as_me:$LINENO: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&5
31046 echo "$as_me: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&2;}
31047                 fi
31048             fi
31049         else
31050             DB_STYLE=
31051             { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but ndbm.h not found." >&5
31052 echo "$as_me: WARNING: *** ndbm database library requested but ndbm.h not found." >&2;}
31053         fi
31054         ;;
31055     text)
31056         DB_HEADER=
31057         DB_LIB=
31058         ;;
31059 esac
31060
31061
31062 if test -z "$DB_STYLE"; then
31063     DB_STYLE=text
31064     DB_HEADER=
31065     DB_LIB=
31066 fi
31067
31068
31069 if test "$DB_STYLE" = text; then
31070
31071 cat >>confdefs.h <<\_ACEOF
31072 #define TEXTDB 1
31073 _ACEOF
31074
31075 else
31076     echo "$as_me:$LINENO: checking for database" >&5
31077 echo $ECHO_N "checking for database... $ECHO_C" >&6
31078     echo "$as_me:$LINENO: result: header is $DB_HEADER, linking against -l$DB_LIB" >&5
31079 echo "${ECHO_T}header is $DB_HEADER, linking against -l$DB_LIB" >&6
31080     case "$DB_STYLE" in
31081         db)
31082 cat >>confdefs.h <<\_ACEOF
31083 #define USE_DB_H 1
31084 _ACEOF
31085    ;;
31086         dbm)
31087 cat >>confdefs.h <<\_ACEOF
31088 #define USE_DBM_H 1
31089 _ACEOF
31090   ;;
31091         gdbm)
31092 cat >>confdefs.h <<\_ACEOF
31093 #define USE_GDBM_H 1
31094 _ACEOF
31095  ;;
31096         ndbm)
31097 cat >>confdefs.h <<\_ACEOF
31098 #define USE_NDBM_H 1
31099 _ACEOF
31100  ;;
31101     esac
31102
31103     echo "$as_me:$LINENO: checking for struct datum declared in header files" >&5
31104 echo $ECHO_N "checking for struct datum declared in header files... $ECHO_C" >&6
31105 if test "${amanda_cv_struct_datum+set}" = set; then
31106   echo $ECHO_N "(cached) $ECHO_C" >&6
31107 else
31108
31109             cat >conftest.$ac_ext <<_ACEOF
31110 /* confdefs.h.  */
31111 _ACEOF
31112 cat confdefs.h >>conftest.$ac_ext
31113 cat >>conftest.$ac_ext <<_ACEOF
31114 /* end confdefs.h.  */
31115
31116 #if defined(USE_DB_H)
31117 #  include <db.h>
31118 #else
31119 #  if defined(USE_DBM_H)
31120 #    include <dbm.h>
31121 #  else
31122 #    if defined(USE_NDBM_H)
31123 #      include <ndbm.h>
31124 #    endif
31125 #  endif
31126 #endif
31127
31128 int
31129 main ()
31130 {
31131
31132                     datum a;
31133
31134   ;
31135   return 0;
31136 }
31137 _ACEOF
31138 rm -f conftest.$ac_objext
31139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31140   (eval $ac_compile) 2>conftest.er1
31141   ac_status=$?
31142   grep -v '^ *+' conftest.er1 >conftest.err
31143   rm -f conftest.er1
31144   cat conftest.err >&5
31145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146   (exit $ac_status); } &&
31147          { ac_try='test -z "$ac_c_werror_flag"
31148                          || test ! -s conftest.err'
31149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31150   (eval $ac_try) 2>&5
31151   ac_status=$?
31152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153   (exit $ac_status); }; } &&
31154          { ac_try='test -s conftest.$ac_objext'
31155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31156   (eval $ac_try) 2>&5
31157   ac_status=$?
31158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159   (exit $ac_status); }; }; then
31160   amanda_cv_struct_datum=yes
31161 else
31162   echo "$as_me: failed program was:" >&5
31163 sed 's/^/| /' conftest.$ac_ext >&5
31164
31165 amanda_cv_struct_datum=no
31166
31167 fi
31168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31169
31170 fi
31171 echo "$as_me:$LINENO: result: $amanda_cv_struct_datum" >&5
31172 echo "${ECHO_T}$amanda_cv_struct_datum" >&6
31173     if test "$amanda_cv_struct_datum" = yes; then
31174
31175 cat >>confdefs.h <<\_ACEOF
31176 #define HAVE_STRUCT_DATUM 1
31177 _ACEOF
31178
31179     fi
31180 fi
31181
31182 case "$DB_STYLE" in
31183     db) DB_EXT=.db;;
31184     gdbm) DB_EXT='""';;
31185     dbm | ndbm) DB_EXT=".dir .pag";;
31186     text) DB_EXT='""';;
31187     *) DB_EXT=;;
31188 esac
31189
31190
31191 echo "$as_me:$LINENO: checking whether _POSIX2_RE_DUP_MAX is defined" >&5
31192 echo $ECHO_N "checking whether _POSIX2_RE_DUP_MAX is defined... $ECHO_C" >&6
31193 if test "${amanda_cv_have__posix2_re_dup_max+set}" = set; then
31194   echo $ECHO_N "(cached) $ECHO_C" >&6
31195 else
31196   cat >conftest.$ac_ext <<_ACEOF
31197 /* confdefs.h.  */
31198 _ACEOF
31199 cat confdefs.h >>conftest.$ac_ext
31200 cat >>conftest.$ac_ext <<_ACEOF
31201 /* end confdefs.h.  */
31202
31203 #include <limits.h>
31204 #ifdef _POSIX2_RE_DUP_MAX
31205   yes
31206 #endif
31207
31208 _ACEOF
31209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31210   $EGREP "yes" >/dev/null 2>&1; then
31211   amanda_cv_have__posix2_re_dup_max=yes
31212 else
31213   amanda_cv_have__posix2_re_dup_max=no
31214 fi
31215 rm -f conftest*
31216
31217 fi
31218 echo "$as_me:$LINENO: result: $amanda_cv_have__posix2_re_dup_max" >&5
31219 echo "${ECHO_T}$amanda_cv_have__posix2_re_dup_max" >&6
31220 if test "$amanda_cv_have__posix2_re_dup_max" = yes; then
31221
31222 cat >>confdefs.h <<\_ACEOF
31223 #define HAVE__POSIX2_RE_DUP_MAX 1
31224 _ACEOF
31225
31226 fi
31227
31228 echo "$as_me:$LINENO: checking whether CHAR_MIN is defined" >&5
31229 echo $ECHO_N "checking whether CHAR_MIN is defined... $ECHO_C" >&6
31230 if test "${amanda_cv_have_char_min+set}" = set; then
31231   echo $ECHO_N "(cached) $ECHO_C" >&6
31232 else
31233   cat >conftest.$ac_ext <<_ACEOF
31234 /* confdefs.h.  */
31235 _ACEOF
31236 cat confdefs.h >>conftest.$ac_ext
31237 cat >>conftest.$ac_ext <<_ACEOF
31238 /* end confdefs.h.  */
31239
31240 #include <limits.h>
31241 #ifdef CHAR_MIN
31242   yes
31243 #endif
31244
31245 _ACEOF
31246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31247   $EGREP "yes" >/dev/null 2>&1; then
31248   amanda_cv_have_char_min=yes
31249 else
31250   amanda_cv_have_char_min=no
31251 fi
31252 rm -f conftest*
31253
31254 fi
31255 echo "$as_me:$LINENO: result: $amanda_cv_have_char_min" >&5
31256 echo "${ECHO_T}$amanda_cv_have_char_min" >&6
31257 if test "$amanda_cv_have_char_min" = yes; then
31258
31259 cat >>confdefs.h <<\_ACEOF
31260 #define HAVE_CHAR_MIN 1
31261 _ACEOF
31262
31263 fi
31264
31265 echo "$as_me:$LINENO: checking whether CHAR_MAX is defined" >&5
31266 echo $ECHO_N "checking whether CHAR_MAX is defined... $ECHO_C" >&6
31267 if test "${amanda_cv_have_char_max+set}" = set; then
31268   echo $ECHO_N "(cached) $ECHO_C" >&6
31269 else
31270   cat >conftest.$ac_ext <<_ACEOF
31271 /* confdefs.h.  */
31272 _ACEOF
31273 cat confdefs.h >>conftest.$ac_ext
31274 cat >>conftest.$ac_ext <<_ACEOF
31275 /* end confdefs.h.  */
31276
31277 #include <limits.h>
31278 #ifdef CHAR_MAX
31279   yes
31280 #endif
31281
31282 _ACEOF
31283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31284   $EGREP "yes" >/dev/null 2>&1; then
31285   amanda_cv_have_char_max=yes
31286 else
31287   amanda_cv_have_char_max=no
31288 fi
31289 rm -f conftest*
31290
31291 fi
31292 echo "$as_me:$LINENO: result: $amanda_cv_have_char_max" >&5
31293 echo "${ECHO_T}$amanda_cv_have_char_max" >&6
31294 if test "$amanda_cv_have_char_max" = yes; then
31295
31296 cat >>confdefs.h <<\_ACEOF
31297 #define HAVE_CHAR_MAX 1
31298 _ACEOF
31299
31300 fi
31301
31302 echo "$as_me:$LINENO: checking whether CHAR_BIT is defined" >&5
31303 echo $ECHO_N "checking whether CHAR_BIT is defined... $ECHO_C" >&6
31304 if test "${amanda_cv_have_char_bit+set}" = set; then
31305   echo $ECHO_N "(cached) $ECHO_C" >&6
31306 else
31307   cat >conftest.$ac_ext <<_ACEOF
31308 /* confdefs.h.  */
31309 _ACEOF
31310 cat confdefs.h >>conftest.$ac_ext
31311 cat >>conftest.$ac_ext <<_ACEOF
31312 /* end confdefs.h.  */
31313
31314 #include <limits.h>
31315 #ifdef CHAR_BIT
31316   yes
31317 #endif
31318
31319 _ACEOF
31320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31321   $EGREP "yes" >/dev/null 2>&1; then
31322   amanda_cv_have_char_bit=yes
31323 else
31324   amanda_cv_have_char_bit=no
31325 fi
31326 rm -f conftest*
31327
31328 fi
31329 echo "$as_me:$LINENO: result: $amanda_cv_have_char_bit" >&5
31330 echo "${ECHO_T}$amanda_cv_have_char_bit" >&6
31331 if test "$amanda_cv_have_char_bit" = yes; then
31332
31333 cat >>confdefs.h <<\_ACEOF
31334 #define HAVE_CHAR_BIT 1
31335 _ACEOF
31336
31337 fi
31338
31339
31340 ice_have_accept=no
31341
31342 for ac_func in accept
31343 do
31344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31345 echo "$as_me:$LINENO: checking for $ac_func" >&5
31346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31347 if eval "test \"\${$as_ac_var+set}\" = set"; then
31348   echo $ECHO_N "(cached) $ECHO_C" >&6
31349 else
31350   cat >conftest.$ac_ext <<_ACEOF
31351 /* confdefs.h.  */
31352 _ACEOF
31353 cat confdefs.h >>conftest.$ac_ext
31354 cat >>conftest.$ac_ext <<_ACEOF
31355 /* end confdefs.h.  */
31356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31358 #define $ac_func innocuous_$ac_func
31359
31360 /* System header to define __stub macros and hopefully few prototypes,
31361     which can conflict with char $ac_func (); below.
31362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31363     <limits.h> exists even on freestanding compilers.  */
31364
31365 #ifdef __STDC__
31366 # include <limits.h>
31367 #else
31368 # include <assert.h>
31369 #endif
31370
31371 #undef $ac_func
31372
31373 /* Override any gcc2 internal prototype to avoid an error.  */
31374 #ifdef __cplusplus
31375 extern "C"
31376 {
31377 #endif
31378 /* We use char because int might match the return type of a gcc2
31379    builtin and then its argument prototype would still apply.  */
31380 char $ac_func ();
31381 /* The GNU C library defines this for functions which it implements
31382     to always fail with ENOSYS.  Some functions are actually named
31383     something starting with __ and the normal name is an alias.  */
31384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31385 choke me
31386 #else
31387 char (*f) () = $ac_func;
31388 #endif
31389 #ifdef __cplusplus
31390 }
31391 #endif
31392
31393 int
31394 main ()
31395 {
31396 return f != $ac_func;
31397   ;
31398   return 0;
31399 }
31400 _ACEOF
31401 rm -f conftest.$ac_objext conftest$ac_exeext
31402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31403   (eval $ac_link) 2>conftest.er1
31404   ac_status=$?
31405   grep -v '^ *+' conftest.er1 >conftest.err
31406   rm -f conftest.er1
31407   cat conftest.err >&5
31408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409   (exit $ac_status); } &&
31410          { ac_try='test -z "$ac_c_werror_flag"
31411                          || test ! -s conftest.err'
31412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31413   (eval $ac_try) 2>&5
31414   ac_status=$?
31415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31416   (exit $ac_status); }; } &&
31417          { ac_try='test -s conftest$ac_exeext'
31418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31419   (eval $ac_try) 2>&5
31420   ac_status=$?
31421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422   (exit $ac_status); }; }; then
31423   eval "$as_ac_var=yes"
31424 else
31425   echo "$as_me: failed program was:" >&5
31426 sed 's/^/| /' conftest.$ac_ext >&5
31427
31428 eval "$as_ac_var=no"
31429 fi
31430 rm -f conftest.err conftest.$ac_objext \
31431       conftest$ac_exeext conftest.$ac_ext
31432 fi
31433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31435 if test `eval echo '${'$as_ac_var'}'` = yes; then
31436   cat >>confdefs.h <<_ACEOF
31437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31438 _ACEOF
31439  ice_have_accept=yes
31440 fi
31441 done
31442
31443 if test "${ice_have_accept}" = yes; then
31444 echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
31445 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
31446 if test "${ice_cv_have_accept_decl+set}" = set; then
31447   echo $ECHO_N "(cached) $ECHO_C" >&6
31448 else
31449
31450 ice_cv_have_accept_decl=no
31451 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
31452 ice_re_word='(^|[^a-zA-Z0-9_])'
31453 for header in sys/types.h sys/socket.h; do
31454 # Check for ordinary declaration
31455 cat >conftest.$ac_ext <<_ACEOF
31456 /* confdefs.h.  */
31457 _ACEOF
31458 cat confdefs.h >>conftest.$ac_ext
31459 cat >>conftest.$ac_ext <<_ACEOF
31460 /* end confdefs.h.  */
31461 #include <$header>
31462
31463 _ACEOF
31464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31465   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
31466   ice_cv_have_accept_decl=yes
31467 fi
31468 rm -f conftest*
31469
31470 if test "$ice_cv_have_accept_decl" = yes; then
31471         break
31472 fi
31473 # Check for "fixed" declaration like "getpid _PARAMS((int))"
31474 cat >conftest.$ac_ext <<_ACEOF
31475 /* confdefs.h.  */
31476 _ACEOF
31477 cat confdefs.h >>conftest.$ac_ext
31478 cat >>conftest.$ac_ext <<_ACEOF
31479 /* end confdefs.h.  */
31480 #include <$header>
31481
31482 _ACEOF
31483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31484   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
31485   ice_cv_have_accept_decl=yes
31486 fi
31487 rm -f conftest*
31488
31489 if test "$ice_cv_have_accept_decl" = yes; then
31490         break
31491 fi
31492 done
31493
31494 fi
31495
31496 echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
31497 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6
31498 if test "$ice_cv_have_accept_decl" = yes; then
31499
31500 cat >>confdefs.h <<_ACEOF
31501 #define HAVE_ACCEPT_DECL 1
31502 _ACEOF
31503
31504 fi
31505 fi
31506
31507 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31508 # for constant arguments.  Useless!
31509 echo "$as_me:$LINENO: checking for working alloca.h" >&5
31510 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
31511 if test "${ac_cv_working_alloca_h+set}" = set; then
31512   echo $ECHO_N "(cached) $ECHO_C" >&6
31513 else
31514   cat >conftest.$ac_ext <<_ACEOF
31515 /* confdefs.h.  */
31516 _ACEOF
31517 cat confdefs.h >>conftest.$ac_ext
31518 cat >>conftest.$ac_ext <<_ACEOF
31519 /* end confdefs.h.  */
31520 #include <alloca.h>
31521 int
31522 main ()
31523 {
31524 char *p = (char *) alloca (2 * sizeof (int));
31525   ;
31526   return 0;
31527 }
31528 _ACEOF
31529 rm -f conftest.$ac_objext conftest$ac_exeext
31530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31531   (eval $ac_link) 2>conftest.er1
31532   ac_status=$?
31533   grep -v '^ *+' conftest.er1 >conftest.err
31534   rm -f conftest.er1
31535   cat conftest.err >&5
31536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537   (exit $ac_status); } &&
31538          { ac_try='test -z "$ac_c_werror_flag"
31539                          || test ! -s conftest.err'
31540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31541   (eval $ac_try) 2>&5
31542   ac_status=$?
31543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544   (exit $ac_status); }; } &&
31545          { ac_try='test -s conftest$ac_exeext'
31546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31547   (eval $ac_try) 2>&5
31548   ac_status=$?
31549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550   (exit $ac_status); }; }; then
31551   ac_cv_working_alloca_h=yes
31552 else
31553   echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.$ac_ext >&5
31555
31556 ac_cv_working_alloca_h=no
31557 fi
31558 rm -f conftest.err conftest.$ac_objext \
31559       conftest$ac_exeext conftest.$ac_ext
31560 fi
31561 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31562 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
31563 if test $ac_cv_working_alloca_h = yes; then
31564
31565 cat >>confdefs.h <<\_ACEOF
31566 #define HAVE_ALLOCA_H 1
31567 _ACEOF
31568
31569 fi
31570
31571 echo "$as_me:$LINENO: checking for alloca" >&5
31572 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
31573 if test "${ac_cv_func_alloca_works+set}" = set; then
31574   echo $ECHO_N "(cached) $ECHO_C" >&6
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 #ifdef __GNUC__
31583 # define alloca __builtin_alloca
31584 #else
31585 # ifdef _MSC_VER
31586 #  include <malloc.h>
31587 #  define alloca _alloca
31588 # else
31589 #  if HAVE_ALLOCA_H
31590 #   include <alloca.h>
31591 #  else
31592 #   ifdef _AIX
31593  #pragma alloca
31594 #   else
31595 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31596 char *alloca ();
31597 #    endif
31598 #   endif
31599 #  endif
31600 # endif
31601 #endif
31602
31603 int
31604 main ()
31605 {
31606 char *p = (char *) alloca (1);
31607   ;
31608   return 0;
31609 }
31610 _ACEOF
31611 rm -f conftest.$ac_objext conftest$ac_exeext
31612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31613   (eval $ac_link) 2>conftest.er1
31614   ac_status=$?
31615   grep -v '^ *+' conftest.er1 >conftest.err
31616   rm -f conftest.er1
31617   cat conftest.err >&5
31618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619   (exit $ac_status); } &&
31620          { ac_try='test -z "$ac_c_werror_flag"
31621                          || test ! -s conftest.err'
31622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31623   (eval $ac_try) 2>&5
31624   ac_status=$?
31625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626   (exit $ac_status); }; } &&
31627          { ac_try='test -s conftest$ac_exeext'
31628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31629   (eval $ac_try) 2>&5
31630   ac_status=$?
31631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632   (exit $ac_status); }; }; then
31633   ac_cv_func_alloca_works=yes
31634 else
31635   echo "$as_me: failed program was:" >&5
31636 sed 's/^/| /' conftest.$ac_ext >&5
31637
31638 ac_cv_func_alloca_works=no
31639 fi
31640 rm -f conftest.err conftest.$ac_objext \
31641       conftest$ac_exeext conftest.$ac_ext
31642 fi
31643 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31644 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
31645
31646 if test $ac_cv_func_alloca_works = yes; then
31647
31648 cat >>confdefs.h <<\_ACEOF
31649 #define HAVE_ALLOCA 1
31650 _ACEOF
31651
31652 else
31653   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31654 # that cause trouble.  Some versions do not even contain alloca or
31655 # contain a buggy version.  If you still want to use their alloca,
31656 # use ar to extract alloca.o from them instead of compiling alloca.c.
31657
31658 ALLOCA=alloca.$ac_objext
31659
31660 cat >>confdefs.h <<\_ACEOF
31661 #define C_ALLOCA 1
31662 _ACEOF
31663
31664
31665 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31666 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
31667 if test "${ac_cv_os_cray+set}" = set; then
31668   echo $ECHO_N "(cached) $ECHO_C" >&6
31669 else
31670   cat >conftest.$ac_ext <<_ACEOF
31671 /* confdefs.h.  */
31672 _ACEOF
31673 cat confdefs.h >>conftest.$ac_ext
31674 cat >>conftest.$ac_ext <<_ACEOF
31675 /* end confdefs.h.  */
31676 #if defined(CRAY) && ! defined(CRAY2)
31677 webecray
31678 #else
31679 wenotbecray
31680 #endif
31681
31682 _ACEOF
31683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31684   $EGREP "webecray" >/dev/null 2>&1; then
31685   ac_cv_os_cray=yes
31686 else
31687   ac_cv_os_cray=no
31688 fi
31689 rm -f conftest*
31690
31691 fi
31692 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31693 echo "${ECHO_T}$ac_cv_os_cray" >&6
31694 if test $ac_cv_os_cray = yes; then
31695   for ac_func in _getb67 GETB67 getb67; do
31696     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31697 echo "$as_me:$LINENO: checking for $ac_func" >&5
31698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31699 if eval "test \"\${$as_ac_var+set}\" = set"; then
31700   echo $ECHO_N "(cached) $ECHO_C" >&6
31701 else
31702   cat >conftest.$ac_ext <<_ACEOF
31703 /* confdefs.h.  */
31704 _ACEOF
31705 cat confdefs.h >>conftest.$ac_ext
31706 cat >>conftest.$ac_ext <<_ACEOF
31707 /* end confdefs.h.  */
31708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31710 #define $ac_func innocuous_$ac_func
31711
31712 /* System header to define __stub macros and hopefully few prototypes,
31713     which can conflict with char $ac_func (); below.
31714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31715     <limits.h> exists even on freestanding compilers.  */
31716
31717 #ifdef __STDC__
31718 # include <limits.h>
31719 #else
31720 # include <assert.h>
31721 #endif
31722
31723 #undef $ac_func
31724
31725 /* Override any gcc2 internal prototype to avoid an error.  */
31726 #ifdef __cplusplus
31727 extern "C"
31728 {
31729 #endif
31730 /* We use char because int might match the return type of a gcc2
31731    builtin and then its argument prototype would still apply.  */
31732 char $ac_func ();
31733 /* The GNU C library defines this for functions which it implements
31734     to always fail with ENOSYS.  Some functions are actually named
31735     something starting with __ and the normal name is an alias.  */
31736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31737 choke me
31738 #else
31739 char (*f) () = $ac_func;
31740 #endif
31741 #ifdef __cplusplus
31742 }
31743 #endif
31744
31745 int
31746 main ()
31747 {
31748 return f != $ac_func;
31749   ;
31750   return 0;
31751 }
31752 _ACEOF
31753 rm -f conftest.$ac_objext conftest$ac_exeext
31754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31755   (eval $ac_link) 2>conftest.er1
31756   ac_status=$?
31757   grep -v '^ *+' conftest.er1 >conftest.err
31758   rm -f conftest.er1
31759   cat conftest.err >&5
31760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761   (exit $ac_status); } &&
31762          { ac_try='test -z "$ac_c_werror_flag"
31763                          || test ! -s conftest.err'
31764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31765   (eval $ac_try) 2>&5
31766   ac_status=$?
31767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768   (exit $ac_status); }; } &&
31769          { ac_try='test -s conftest$ac_exeext'
31770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31771   (eval $ac_try) 2>&5
31772   ac_status=$?
31773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774   (exit $ac_status); }; }; then
31775   eval "$as_ac_var=yes"
31776 else
31777   echo "$as_me: failed program was:" >&5
31778 sed 's/^/| /' conftest.$ac_ext >&5
31779
31780 eval "$as_ac_var=no"
31781 fi
31782 rm -f conftest.err conftest.$ac_objext \
31783       conftest$ac_exeext conftest.$ac_ext
31784 fi
31785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31787 if test `eval echo '${'$as_ac_var'}'` = yes; then
31788
31789 cat >>confdefs.h <<_ACEOF
31790 #define CRAY_STACKSEG_END $ac_func
31791 _ACEOF
31792
31793     break
31794 fi
31795
31796   done
31797 fi
31798
31799 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31800 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
31801 if test "${ac_cv_c_stack_direction+set}" = set; then
31802   echo $ECHO_N "(cached) $ECHO_C" >&6
31803 else
31804   if test "$cross_compiling" = yes; then
31805   ac_cv_c_stack_direction=0
31806 else
31807   cat >conftest.$ac_ext <<_ACEOF
31808 /* confdefs.h.  */
31809 _ACEOF
31810 cat confdefs.h >>conftest.$ac_ext
31811 cat >>conftest.$ac_ext <<_ACEOF
31812 /* end confdefs.h.  */
31813 int
31814 find_stack_direction ()
31815 {
31816   static char *addr = 0;
31817   auto char dummy;
31818   if (addr == 0)
31819     {
31820       addr = &dummy;
31821       return find_stack_direction ();
31822     }
31823   else
31824     return (&dummy > addr) ? 1 : -1;
31825 }
31826
31827 int
31828 main ()
31829 {
31830   exit (find_stack_direction () < 0);
31831 }
31832 _ACEOF
31833 rm -f conftest$ac_exeext
31834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31835   (eval $ac_link) 2>&5
31836   ac_status=$?
31837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31840   (eval $ac_try) 2>&5
31841   ac_status=$?
31842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843   (exit $ac_status); }; }; then
31844   ac_cv_c_stack_direction=1
31845 else
31846   echo "$as_me: program exited with status $ac_status" >&5
31847 echo "$as_me: failed program was:" >&5
31848 sed 's/^/| /' conftest.$ac_ext >&5
31849
31850 ( exit $ac_status )
31851 ac_cv_c_stack_direction=-1
31852 fi
31853 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31854 fi
31855 fi
31856 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31857 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
31858
31859 cat >>confdefs.h <<_ACEOF
31860 #define STACK_DIRECTION $ac_cv_c_stack_direction
31861 _ACEOF
31862
31863
31864 fi
31865
31866
31867 for ac_func in atexit
31868 do
31869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31870 echo "$as_me:$LINENO: checking for $ac_func" >&5
31871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31872 if eval "test \"\${$as_ac_var+set}\" = set"; then
31873   echo $ECHO_N "(cached) $ECHO_C" >&6
31874 else
31875   cat >conftest.$ac_ext <<_ACEOF
31876 /* confdefs.h.  */
31877 _ACEOF
31878 cat confdefs.h >>conftest.$ac_ext
31879 cat >>conftest.$ac_ext <<_ACEOF
31880 /* end confdefs.h.  */
31881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31883 #define $ac_func innocuous_$ac_func
31884
31885 /* System header to define __stub macros and hopefully few prototypes,
31886     which can conflict with char $ac_func (); below.
31887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31888     <limits.h> exists even on freestanding compilers.  */
31889
31890 #ifdef __STDC__
31891 # include <limits.h>
31892 #else
31893 # include <assert.h>
31894 #endif
31895
31896 #undef $ac_func
31897
31898 /* Override any gcc2 internal prototype to avoid an error.  */
31899 #ifdef __cplusplus
31900 extern "C"
31901 {
31902 #endif
31903 /* We use char because int might match the return type of a gcc2
31904    builtin and then its argument prototype would still apply.  */
31905 char $ac_func ();
31906 /* The GNU C library defines this for functions which it implements
31907     to always fail with ENOSYS.  Some functions are actually named
31908     something starting with __ and the normal name is an alias.  */
31909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31910 choke me
31911 #else
31912 char (*f) () = $ac_func;
31913 #endif
31914 #ifdef __cplusplus
31915 }
31916 #endif
31917
31918 int
31919 main ()
31920 {
31921 return f != $ac_func;
31922   ;
31923   return 0;
31924 }
31925 _ACEOF
31926 rm -f conftest.$ac_objext conftest$ac_exeext
31927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31928   (eval $ac_link) 2>conftest.er1
31929   ac_status=$?
31930   grep -v '^ *+' conftest.er1 >conftest.err
31931   rm -f conftest.er1
31932   cat conftest.err >&5
31933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934   (exit $ac_status); } &&
31935          { ac_try='test -z "$ac_c_werror_flag"
31936                          || test ! -s conftest.err'
31937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31938   (eval $ac_try) 2>&5
31939   ac_status=$?
31940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941   (exit $ac_status); }; } &&
31942          { ac_try='test -s conftest$ac_exeext'
31943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31944   (eval $ac_try) 2>&5
31945   ac_status=$?
31946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947   (exit $ac_status); }; }; then
31948   eval "$as_ac_var=yes"
31949 else
31950   echo "$as_me: failed program was:" >&5
31951 sed 's/^/| /' conftest.$ac_ext >&5
31952
31953 eval "$as_ac_var=no"
31954 fi
31955 rm -f conftest.err conftest.$ac_objext \
31956       conftest$ac_exeext conftest.$ac_ext
31957 fi
31958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31960 if test `eval echo '${'$as_ac_var'}'` = yes; then
31961   cat >>confdefs.h <<_ACEOF
31962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31963 _ACEOF
31964
31965 fi
31966 done
31967
31968
31969 ice_have_atof=no
31970
31971 for ac_func in atof
31972 do
31973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31974 echo "$as_me:$LINENO: checking for $ac_func" >&5
31975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31976 if eval "test \"\${$as_ac_var+set}\" = set"; then
31977   echo $ECHO_N "(cached) $ECHO_C" >&6
31978 else
31979   cat >conftest.$ac_ext <<_ACEOF
31980 /* confdefs.h.  */
31981 _ACEOF
31982 cat confdefs.h >>conftest.$ac_ext
31983 cat >>conftest.$ac_ext <<_ACEOF
31984 /* end confdefs.h.  */
31985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31987 #define $ac_func innocuous_$ac_func
31988
31989 /* System header to define __stub macros and hopefully few prototypes,
31990     which can conflict with char $ac_func (); below.
31991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31992     <limits.h> exists even on freestanding compilers.  */
31993
31994 #ifdef __STDC__
31995 # include <limits.h>
31996 #else
31997 # include <assert.h>
31998 #endif
31999
32000 #undef $ac_func
32001
32002 /* Override any gcc2 internal prototype to avoid an error.  */
32003 #ifdef __cplusplus
32004 extern "C"
32005 {
32006 #endif
32007 /* We use char because int might match the return type of a gcc2
32008    builtin and then its argument prototype would still apply.  */
32009 char $ac_func ();
32010 /* The GNU C library defines this for functions which it implements
32011     to always fail with ENOSYS.  Some functions are actually named
32012     something starting with __ and the normal name is an alias.  */
32013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32014 choke me
32015 #else
32016 char (*f) () = $ac_func;
32017 #endif
32018 #ifdef __cplusplus
32019 }
32020 #endif
32021
32022 int
32023 main ()
32024 {
32025 return f != $ac_func;
32026   ;
32027   return 0;
32028 }
32029 _ACEOF
32030 rm -f conftest.$ac_objext conftest$ac_exeext
32031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32032   (eval $ac_link) 2>conftest.er1
32033   ac_status=$?
32034   grep -v '^ *+' conftest.er1 >conftest.err
32035   rm -f conftest.er1
32036   cat conftest.err >&5
32037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038   (exit $ac_status); } &&
32039          { ac_try='test -z "$ac_c_werror_flag"
32040                          || test ! -s conftest.err'
32041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32042   (eval $ac_try) 2>&5
32043   ac_status=$?
32044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045   (exit $ac_status); }; } &&
32046          { ac_try='test -s conftest$ac_exeext'
32047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32048   (eval $ac_try) 2>&5
32049   ac_status=$?
32050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051   (exit $ac_status); }; }; then
32052   eval "$as_ac_var=yes"
32053 else
32054   echo "$as_me: failed program was:" >&5
32055 sed 's/^/| /' conftest.$ac_ext >&5
32056
32057 eval "$as_ac_var=no"
32058 fi
32059 rm -f conftest.err conftest.$ac_objext \
32060       conftest$ac_exeext conftest.$ac_ext
32061 fi
32062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32064 if test `eval echo '${'$as_ac_var'}'` = yes; then
32065   cat >>confdefs.h <<_ACEOF
32066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32067 _ACEOF
32068  ice_have_atof=yes
32069 fi
32070 done
32071
32072 if test "${ice_have_atof}" = yes; then
32073 echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
32074 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6
32075 if test "${ice_cv_have_atof_decl+set}" = set; then
32076   echo $ECHO_N "(cached) $ECHO_C" >&6
32077 else
32078
32079 ice_cv_have_atof_decl=no
32080 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32081 ice_re_word='(^|[^a-zA-Z0-9_])'
32082 for header in stdlib.h; do
32083 # Check for ordinary declaration
32084 cat >conftest.$ac_ext <<_ACEOF
32085 /* confdefs.h.  */
32086 _ACEOF
32087 cat confdefs.h >>conftest.$ac_ext
32088 cat >>conftest.$ac_ext <<_ACEOF
32089 /* end confdefs.h.  */
32090 #include <$header>
32091
32092 _ACEOF
32093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32094   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
32095   ice_cv_have_atof_decl=yes
32096 fi
32097 rm -f conftest*
32098
32099 if test "$ice_cv_have_atof_decl" = yes; then
32100         break
32101 fi
32102 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32103 cat >conftest.$ac_ext <<_ACEOF
32104 /* confdefs.h.  */
32105 _ACEOF
32106 cat confdefs.h >>conftest.$ac_ext
32107 cat >>conftest.$ac_ext <<_ACEOF
32108 /* end confdefs.h.  */
32109 #include <$header>
32110
32111 _ACEOF
32112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32113   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32114   ice_cv_have_atof_decl=yes
32115 fi
32116 rm -f conftest*
32117
32118 if test "$ice_cv_have_atof_decl" = yes; then
32119         break
32120 fi
32121 done
32122
32123 fi
32124
32125 echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
32126 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6
32127 if test "$ice_cv_have_atof_decl" = yes; then
32128
32129 cat >>confdefs.h <<_ACEOF
32130 #define HAVE_ATOF_DECL 1
32131 _ACEOF
32132
32133 fi
32134 fi
32135
32136
32137 for ac_func in basename
32138 do
32139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32140 echo "$as_me:$LINENO: checking for $ac_func" >&5
32141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32142 if eval "test \"\${$as_ac_var+set}\" = set"; then
32143   echo $ECHO_N "(cached) $ECHO_C" >&6
32144 else
32145   cat >conftest.$ac_ext <<_ACEOF
32146 /* confdefs.h.  */
32147 _ACEOF
32148 cat confdefs.h >>conftest.$ac_ext
32149 cat >>conftest.$ac_ext <<_ACEOF
32150 /* end confdefs.h.  */
32151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32153 #define $ac_func innocuous_$ac_func
32154
32155 /* System header to define __stub macros and hopefully few prototypes,
32156     which can conflict with char $ac_func (); below.
32157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32158     <limits.h> exists even on freestanding compilers.  */
32159
32160 #ifdef __STDC__
32161 # include <limits.h>
32162 #else
32163 # include <assert.h>
32164 #endif
32165
32166 #undef $ac_func
32167
32168 /* Override any gcc2 internal prototype to avoid an error.  */
32169 #ifdef __cplusplus
32170 extern "C"
32171 {
32172 #endif
32173 /* We use char because int might match the return type of a gcc2
32174    builtin and then its argument prototype would still apply.  */
32175 char $ac_func ();
32176 /* The GNU C library defines this for functions which it implements
32177     to always fail with ENOSYS.  Some functions are actually named
32178     something starting with __ and the normal name is an alias.  */
32179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32180 choke me
32181 #else
32182 char (*f) () = $ac_func;
32183 #endif
32184 #ifdef __cplusplus
32185 }
32186 #endif
32187
32188 int
32189 main ()
32190 {
32191 return f != $ac_func;
32192   ;
32193   return 0;
32194 }
32195 _ACEOF
32196 rm -f conftest.$ac_objext conftest$ac_exeext
32197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32198   (eval $ac_link) 2>conftest.er1
32199   ac_status=$?
32200   grep -v '^ *+' conftest.er1 >conftest.err
32201   rm -f conftest.er1
32202   cat conftest.err >&5
32203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204   (exit $ac_status); } &&
32205          { ac_try='test -z "$ac_c_werror_flag"
32206                          || test ! -s conftest.err'
32207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32208   (eval $ac_try) 2>&5
32209   ac_status=$?
32210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211   (exit $ac_status); }; } &&
32212          { ac_try='test -s conftest$ac_exeext'
32213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32214   (eval $ac_try) 2>&5
32215   ac_status=$?
32216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217   (exit $ac_status); }; }; then
32218   eval "$as_ac_var=yes"
32219 else
32220   echo "$as_me: failed program was:" >&5
32221 sed 's/^/| /' conftest.$ac_ext >&5
32222
32223 eval "$as_ac_var=no"
32224 fi
32225 rm -f conftest.err conftest.$ac_objext \
32226       conftest$ac_exeext conftest.$ac_ext
32227 fi
32228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32230 if test `eval echo '${'$as_ac_var'}'` = yes; then
32231   cat >>confdefs.h <<_ACEOF
32232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32233 _ACEOF
32234
32235 fi
32236 done
32237
32238
32239 ice_have_bind=no
32240
32241 for ac_func in bind
32242 do
32243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32244 echo "$as_me:$LINENO: checking for $ac_func" >&5
32245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32246 if eval "test \"\${$as_ac_var+set}\" = set"; then
32247   echo $ECHO_N "(cached) $ECHO_C" >&6
32248 else
32249   cat >conftest.$ac_ext <<_ACEOF
32250 /* confdefs.h.  */
32251 _ACEOF
32252 cat confdefs.h >>conftest.$ac_ext
32253 cat >>conftest.$ac_ext <<_ACEOF
32254 /* end confdefs.h.  */
32255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32257 #define $ac_func innocuous_$ac_func
32258
32259 /* System header to define __stub macros and hopefully few prototypes,
32260     which can conflict with char $ac_func (); below.
32261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32262     <limits.h> exists even on freestanding compilers.  */
32263
32264 #ifdef __STDC__
32265 # include <limits.h>
32266 #else
32267 # include <assert.h>
32268 #endif
32269
32270 #undef $ac_func
32271
32272 /* Override any gcc2 internal prototype to avoid an error.  */
32273 #ifdef __cplusplus
32274 extern "C"
32275 {
32276 #endif
32277 /* We use char because int might match the return type of a gcc2
32278    builtin and then its argument prototype would still apply.  */
32279 char $ac_func ();
32280 /* The GNU C library defines this for functions which it implements
32281     to always fail with ENOSYS.  Some functions are actually named
32282     something starting with __ and the normal name is an alias.  */
32283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32284 choke me
32285 #else
32286 char (*f) () = $ac_func;
32287 #endif
32288 #ifdef __cplusplus
32289 }
32290 #endif
32291
32292 int
32293 main ()
32294 {
32295 return f != $ac_func;
32296   ;
32297   return 0;
32298 }
32299 _ACEOF
32300 rm -f conftest.$ac_objext conftest$ac_exeext
32301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32302   (eval $ac_link) 2>conftest.er1
32303   ac_status=$?
32304   grep -v '^ *+' conftest.er1 >conftest.err
32305   rm -f conftest.er1
32306   cat conftest.err >&5
32307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32308   (exit $ac_status); } &&
32309          { ac_try='test -z "$ac_c_werror_flag"
32310                          || test ! -s conftest.err'
32311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32312   (eval $ac_try) 2>&5
32313   ac_status=$?
32314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315   (exit $ac_status); }; } &&
32316          { ac_try='test -s conftest$ac_exeext'
32317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32318   (eval $ac_try) 2>&5
32319   ac_status=$?
32320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321   (exit $ac_status); }; }; then
32322   eval "$as_ac_var=yes"
32323 else
32324   echo "$as_me: failed program was:" >&5
32325 sed 's/^/| /' conftest.$ac_ext >&5
32326
32327 eval "$as_ac_var=no"
32328 fi
32329 rm -f conftest.err conftest.$ac_objext \
32330       conftest$ac_exeext conftest.$ac_ext
32331 fi
32332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32333 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32334 if test `eval echo '${'$as_ac_var'}'` = yes; then
32335   cat >>confdefs.h <<_ACEOF
32336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32337 _ACEOF
32338  ice_have_bind=yes
32339 fi
32340 done
32341
32342 if test "${ice_have_bind}" = yes; then
32343 echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
32344 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
32345 if test "${ice_cv_have_bind_decl+set}" = set; then
32346   echo $ECHO_N "(cached) $ECHO_C" >&6
32347 else
32348
32349 ice_cv_have_bind_decl=no
32350 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32351 ice_re_word='(^|[^a-zA-Z0-9_])'
32352 for header in sys/types.h sys/socket.h; do
32353 # Check for ordinary declaration
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 #include <$header>
32361
32362 _ACEOF
32363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32364   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
32365   ice_cv_have_bind_decl=yes
32366 fi
32367 rm -f conftest*
32368
32369 if test "$ice_cv_have_bind_decl" = yes; then
32370         break
32371 fi
32372 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32373 cat >conftest.$ac_ext <<_ACEOF
32374 /* confdefs.h.  */
32375 _ACEOF
32376 cat confdefs.h >>conftest.$ac_ext
32377 cat >>conftest.$ac_ext <<_ACEOF
32378 /* end confdefs.h.  */
32379 #include <$header>
32380
32381 _ACEOF
32382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32383   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32384   ice_cv_have_bind_decl=yes
32385 fi
32386 rm -f conftest*
32387
32388 if test "$ice_cv_have_bind_decl" = yes; then
32389         break
32390 fi
32391 done
32392
32393 fi
32394
32395 echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
32396 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6
32397 if test "$ice_cv_have_bind_decl" = yes; then
32398
32399 cat >>confdefs.h <<_ACEOF
32400 #define HAVE_BIND_DECL 1
32401 _ACEOF
32402
32403 fi
32404 fi
32405
32406
32407 ice_have_bcopy=no
32408
32409 for ac_func in bcopy
32410 do
32411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32412 echo "$as_me:$LINENO: checking for $ac_func" >&5
32413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32414 if eval "test \"\${$as_ac_var+set}\" = set"; then
32415   echo $ECHO_N "(cached) $ECHO_C" >&6
32416 else
32417   cat >conftest.$ac_ext <<_ACEOF
32418 /* confdefs.h.  */
32419 _ACEOF
32420 cat confdefs.h >>conftest.$ac_ext
32421 cat >>conftest.$ac_ext <<_ACEOF
32422 /* end confdefs.h.  */
32423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32425 #define $ac_func innocuous_$ac_func
32426
32427 /* System header to define __stub macros and hopefully few prototypes,
32428     which can conflict with char $ac_func (); below.
32429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32430     <limits.h> exists even on freestanding compilers.  */
32431
32432 #ifdef __STDC__
32433 # include <limits.h>
32434 #else
32435 # include <assert.h>
32436 #endif
32437
32438 #undef $ac_func
32439
32440 /* Override any gcc2 internal prototype to avoid an error.  */
32441 #ifdef __cplusplus
32442 extern "C"
32443 {
32444 #endif
32445 /* We use char because int might match the return type of a gcc2
32446    builtin and then its argument prototype would still apply.  */
32447 char $ac_func ();
32448 /* The GNU C library defines this for functions which it implements
32449     to always fail with ENOSYS.  Some functions are actually named
32450     something starting with __ and the normal name is an alias.  */
32451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32452 choke me
32453 #else
32454 char (*f) () = $ac_func;
32455 #endif
32456 #ifdef __cplusplus
32457 }
32458 #endif
32459
32460 int
32461 main ()
32462 {
32463 return f != $ac_func;
32464   ;
32465   return 0;
32466 }
32467 _ACEOF
32468 rm -f conftest.$ac_objext conftest$ac_exeext
32469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32470   (eval $ac_link) 2>conftest.er1
32471   ac_status=$?
32472   grep -v '^ *+' conftest.er1 >conftest.err
32473   rm -f conftest.er1
32474   cat conftest.err >&5
32475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476   (exit $ac_status); } &&
32477          { ac_try='test -z "$ac_c_werror_flag"
32478                          || test ! -s conftest.err'
32479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32480   (eval $ac_try) 2>&5
32481   ac_status=$?
32482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483   (exit $ac_status); }; } &&
32484          { ac_try='test -s conftest$ac_exeext'
32485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32486   (eval $ac_try) 2>&5
32487   ac_status=$?
32488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489   (exit $ac_status); }; }; then
32490   eval "$as_ac_var=yes"
32491 else
32492   echo "$as_me: failed program was:" >&5
32493 sed 's/^/| /' conftest.$ac_ext >&5
32494
32495 eval "$as_ac_var=no"
32496 fi
32497 rm -f conftest.err conftest.$ac_objext \
32498       conftest$ac_exeext conftest.$ac_ext
32499 fi
32500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32502 if test `eval echo '${'$as_ac_var'}'` = yes; then
32503   cat >>confdefs.h <<_ACEOF
32504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32505 _ACEOF
32506  ice_have_bcopy=yes
32507 fi
32508 done
32509
32510 if test "${ice_have_bcopy}" = yes; then
32511 echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
32512 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
32513 if test "${ice_cv_have_bcopy_decl+set}" = set; then
32514   echo $ECHO_N "(cached) $ECHO_C" >&6
32515 else
32516
32517 ice_cv_have_bcopy_decl=no
32518 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32519 ice_re_word='(^|[^a-zA-Z0-9_])'
32520 for header in string.h strings.h stdlib.h; do
32521 # Check for ordinary declaration
32522 cat >conftest.$ac_ext <<_ACEOF
32523 /* confdefs.h.  */
32524 _ACEOF
32525 cat confdefs.h >>conftest.$ac_ext
32526 cat >>conftest.$ac_ext <<_ACEOF
32527 /* end confdefs.h.  */
32528 #include <$header>
32529
32530 _ACEOF
32531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32532   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
32533   ice_cv_have_bcopy_decl=yes
32534 fi
32535 rm -f conftest*
32536
32537 if test "$ice_cv_have_bcopy_decl" = yes; then
32538         break
32539 fi
32540 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32541 cat >conftest.$ac_ext <<_ACEOF
32542 /* confdefs.h.  */
32543 _ACEOF
32544 cat confdefs.h >>conftest.$ac_ext
32545 cat >>conftest.$ac_ext <<_ACEOF
32546 /* end confdefs.h.  */
32547 #include <$header>
32548
32549 _ACEOF
32550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32551   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32552   ice_cv_have_bcopy_decl=yes
32553 fi
32554 rm -f conftest*
32555
32556 if test "$ice_cv_have_bcopy_decl" = yes; then
32557         break
32558 fi
32559 done
32560
32561 fi
32562
32563 echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
32564 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6
32565 if test "$ice_cv_have_bcopy_decl" = yes; then
32566
32567 cat >>confdefs.h <<_ACEOF
32568 #define HAVE_BCOPY_DECL 1
32569 _ACEOF
32570
32571 fi
32572 fi
32573
32574
32575 ice_have_bzero=no
32576
32577 for ac_func in bzero
32578 do
32579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32580 echo "$as_me:$LINENO: checking for $ac_func" >&5
32581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32582 if eval "test \"\${$as_ac_var+set}\" = set"; then
32583   echo $ECHO_N "(cached) $ECHO_C" >&6
32584 else
32585   cat >conftest.$ac_ext <<_ACEOF
32586 /* confdefs.h.  */
32587 _ACEOF
32588 cat confdefs.h >>conftest.$ac_ext
32589 cat >>conftest.$ac_ext <<_ACEOF
32590 /* end confdefs.h.  */
32591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32593 #define $ac_func innocuous_$ac_func
32594
32595 /* System header to define __stub macros and hopefully few prototypes,
32596     which can conflict with char $ac_func (); below.
32597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32598     <limits.h> exists even on freestanding compilers.  */
32599
32600 #ifdef __STDC__
32601 # include <limits.h>
32602 #else
32603 # include <assert.h>
32604 #endif
32605
32606 #undef $ac_func
32607
32608 /* Override any gcc2 internal prototype to avoid an error.  */
32609 #ifdef __cplusplus
32610 extern "C"
32611 {
32612 #endif
32613 /* We use char because int might match the return type of a gcc2
32614    builtin and then its argument prototype would still apply.  */
32615 char $ac_func ();
32616 /* The GNU C library defines this for functions which it implements
32617     to always fail with ENOSYS.  Some functions are actually named
32618     something starting with __ and the normal name is an alias.  */
32619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32620 choke me
32621 #else
32622 char (*f) () = $ac_func;
32623 #endif
32624 #ifdef __cplusplus
32625 }
32626 #endif
32627
32628 int
32629 main ()
32630 {
32631 return f != $ac_func;
32632   ;
32633   return 0;
32634 }
32635 _ACEOF
32636 rm -f conftest.$ac_objext conftest$ac_exeext
32637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32638   (eval $ac_link) 2>conftest.er1
32639   ac_status=$?
32640   grep -v '^ *+' conftest.er1 >conftest.err
32641   rm -f conftest.er1
32642   cat conftest.err >&5
32643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644   (exit $ac_status); } &&
32645          { ac_try='test -z "$ac_c_werror_flag"
32646                          || test ! -s conftest.err'
32647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32648   (eval $ac_try) 2>&5
32649   ac_status=$?
32650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651   (exit $ac_status); }; } &&
32652          { ac_try='test -s conftest$ac_exeext'
32653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32654   (eval $ac_try) 2>&5
32655   ac_status=$?
32656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657   (exit $ac_status); }; }; then
32658   eval "$as_ac_var=yes"
32659 else
32660   echo "$as_me: failed program was:" >&5
32661 sed 's/^/| /' conftest.$ac_ext >&5
32662
32663 eval "$as_ac_var=no"
32664 fi
32665 rm -f conftest.err conftest.$ac_objext \
32666       conftest$ac_exeext conftest.$ac_ext
32667 fi
32668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32670 if test `eval echo '${'$as_ac_var'}'` = yes; then
32671   cat >>confdefs.h <<_ACEOF
32672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32673 _ACEOF
32674  ice_have_bzero=yes
32675 fi
32676 done
32677
32678 if test "${ice_have_bzero}" = yes; then
32679 echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
32680 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
32681 if test "${ice_cv_have_bzero_decl+set}" = set; then
32682   echo $ECHO_N "(cached) $ECHO_C" >&6
32683 else
32684
32685 ice_cv_have_bzero_decl=no
32686 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32687 ice_re_word='(^|[^a-zA-Z0-9_])'
32688 for header in string.h strings.h stdlib.h; do
32689 # Check for ordinary declaration
32690 cat >conftest.$ac_ext <<_ACEOF
32691 /* confdefs.h.  */
32692 _ACEOF
32693 cat confdefs.h >>conftest.$ac_ext
32694 cat >>conftest.$ac_ext <<_ACEOF
32695 /* end confdefs.h.  */
32696 #include <$header>
32697
32698 _ACEOF
32699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32700   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
32701   ice_cv_have_bzero_decl=yes
32702 fi
32703 rm -f conftest*
32704
32705 if test "$ice_cv_have_bzero_decl" = yes; then
32706         break
32707 fi
32708 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32709 cat >conftest.$ac_ext <<_ACEOF
32710 /* confdefs.h.  */
32711 _ACEOF
32712 cat confdefs.h >>conftest.$ac_ext
32713 cat >>conftest.$ac_ext <<_ACEOF
32714 /* end confdefs.h.  */
32715 #include <$header>
32716
32717 _ACEOF
32718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32719   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32720   ice_cv_have_bzero_decl=yes
32721 fi
32722 rm -f conftest*
32723
32724 if test "$ice_cv_have_bzero_decl" = yes; then
32725         break
32726 fi
32727 done
32728
32729 fi
32730
32731 echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
32732 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6
32733 if test "$ice_cv_have_bzero_decl" = yes; then
32734
32735 cat >>confdefs.h <<_ACEOF
32736 #define HAVE_BZERO_DECL 1
32737 _ACEOF
32738
32739 fi
32740 fi
32741
32742 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32743 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
32744 if test "${ac_cv_func_closedir_void+set}" = set; then
32745   echo $ECHO_N "(cached) $ECHO_C" >&6
32746 else
32747   if test "$cross_compiling" = yes; then
32748   ac_cv_func_closedir_void=yes
32749 else
32750   cat >conftest.$ac_ext <<_ACEOF
32751 /* confdefs.h.  */
32752 _ACEOF
32753 cat confdefs.h >>conftest.$ac_ext
32754 cat >>conftest.$ac_ext <<_ACEOF
32755 /* end confdefs.h.  */
32756 $ac_includes_default
32757 #include <$ac_header_dirent>
32758 #ifndef __cplusplus
32759 int closedir ();
32760 #endif
32761
32762 int
32763 main ()
32764 {
32765 exit (closedir (opendir (".")) != 0);
32766   ;
32767   return 0;
32768 }
32769 _ACEOF
32770 rm -f conftest$ac_exeext
32771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32772   (eval $ac_link) 2>&5
32773   ac_status=$?
32774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32777   (eval $ac_try) 2>&5
32778   ac_status=$?
32779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780   (exit $ac_status); }; }; then
32781   ac_cv_func_closedir_void=no
32782 else
32783   echo "$as_me: program exited with status $ac_status" >&5
32784 echo "$as_me: failed program was:" >&5
32785 sed 's/^/| /' conftest.$ac_ext >&5
32786
32787 ( exit $ac_status )
32788 ac_cv_func_closedir_void=yes
32789 fi
32790 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32791 fi
32792 fi
32793 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32794 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
32795 if test $ac_cv_func_closedir_void = yes; then
32796
32797 cat >>confdefs.h <<\_ACEOF
32798 #define CLOSEDIR_VOID 1
32799 _ACEOF
32800
32801 fi
32802
32803
32804 ice_have_closelog=no
32805
32806 for ac_func in closelog
32807 do
32808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32809 echo "$as_me:$LINENO: checking for $ac_func" >&5
32810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32811 if eval "test \"\${$as_ac_var+set}\" = set"; then
32812   echo $ECHO_N "(cached) $ECHO_C" >&6
32813 else
32814   cat >conftest.$ac_ext <<_ACEOF
32815 /* confdefs.h.  */
32816 _ACEOF
32817 cat confdefs.h >>conftest.$ac_ext
32818 cat >>conftest.$ac_ext <<_ACEOF
32819 /* end confdefs.h.  */
32820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32822 #define $ac_func innocuous_$ac_func
32823
32824 /* System header to define __stub macros and hopefully few prototypes,
32825     which can conflict with char $ac_func (); below.
32826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32827     <limits.h> exists even on freestanding compilers.  */
32828
32829 #ifdef __STDC__
32830 # include <limits.h>
32831 #else
32832 # include <assert.h>
32833 #endif
32834
32835 #undef $ac_func
32836
32837 /* Override any gcc2 internal prototype to avoid an error.  */
32838 #ifdef __cplusplus
32839 extern "C"
32840 {
32841 #endif
32842 /* We use char because int might match the return type of a gcc2
32843    builtin and then its argument prototype would still apply.  */
32844 char $ac_func ();
32845 /* The GNU C library defines this for functions which it implements
32846     to always fail with ENOSYS.  Some functions are actually named
32847     something starting with __ and the normal name is an alias.  */
32848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32849 choke me
32850 #else
32851 char (*f) () = $ac_func;
32852 #endif
32853 #ifdef __cplusplus
32854 }
32855 #endif
32856
32857 int
32858 main ()
32859 {
32860 return f != $ac_func;
32861   ;
32862   return 0;
32863 }
32864 _ACEOF
32865 rm -f conftest.$ac_objext conftest$ac_exeext
32866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32867   (eval $ac_link) 2>conftest.er1
32868   ac_status=$?
32869   grep -v '^ *+' conftest.er1 >conftest.err
32870   rm -f conftest.er1
32871   cat conftest.err >&5
32872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873   (exit $ac_status); } &&
32874          { ac_try='test -z "$ac_c_werror_flag"
32875                          || test ! -s conftest.err'
32876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32877   (eval $ac_try) 2>&5
32878   ac_status=$?
32879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32880   (exit $ac_status); }; } &&
32881          { ac_try='test -s conftest$ac_exeext'
32882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32883   (eval $ac_try) 2>&5
32884   ac_status=$?
32885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886   (exit $ac_status); }; }; then
32887   eval "$as_ac_var=yes"
32888 else
32889   echo "$as_me: failed program was:" >&5
32890 sed 's/^/| /' conftest.$ac_ext >&5
32891
32892 eval "$as_ac_var=no"
32893 fi
32894 rm -f conftest.err conftest.$ac_objext \
32895       conftest$ac_exeext conftest.$ac_ext
32896 fi
32897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32899 if test `eval echo '${'$as_ac_var'}'` = yes; then
32900   cat >>confdefs.h <<_ACEOF
32901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32902 _ACEOF
32903  ice_have_closelog=yes
32904 fi
32905 done
32906
32907 if test "${ice_have_closelog}" = yes; then
32908 echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
32909 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6
32910 if test "${ice_cv_have_closelog_decl+set}" = set; then
32911   echo $ECHO_N "(cached) $ECHO_C" >&6
32912 else
32913
32914 ice_cv_have_closelog_decl=no
32915 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32916 ice_re_word='(^|[^a-zA-Z0-9_])'
32917 for header in syslog.h; do
32918 # Check for ordinary declaration
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 #include <$header>
32926
32927 _ACEOF
32928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32929   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
32930   ice_cv_have_closelog_decl=yes
32931 fi
32932 rm -f conftest*
32933
32934 if test "$ice_cv_have_closelog_decl" = yes; then
32935         break
32936 fi
32937 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32938 cat >conftest.$ac_ext <<_ACEOF
32939 /* confdefs.h.  */
32940 _ACEOF
32941 cat confdefs.h >>conftest.$ac_ext
32942 cat >>conftest.$ac_ext <<_ACEOF
32943 /* end confdefs.h.  */
32944 #include <$header>
32945
32946 _ACEOF
32947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32948   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32949   ice_cv_have_closelog_decl=yes
32950 fi
32951 rm -f conftest*
32952
32953 if test "$ice_cv_have_closelog_decl" = yes; then
32954         break
32955 fi
32956 done
32957
32958 fi
32959
32960 echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
32961 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6
32962 if test "$ice_cv_have_closelog_decl" = yes; then
32963
32964 cat >>confdefs.h <<_ACEOF
32965 #define HAVE_CLOSELOG_DECL 1
32966 _ACEOF
32967
32968 fi
32969 fi
32970
32971
32972 ice_have_connect=no
32973
32974 for ac_func in connect
32975 do
32976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32977 echo "$as_me:$LINENO: checking for $ac_func" >&5
32978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32979 if eval "test \"\${$as_ac_var+set}\" = set"; then
32980   echo $ECHO_N "(cached) $ECHO_C" >&6
32981 else
32982   cat >conftest.$ac_ext <<_ACEOF
32983 /* confdefs.h.  */
32984 _ACEOF
32985 cat confdefs.h >>conftest.$ac_ext
32986 cat >>conftest.$ac_ext <<_ACEOF
32987 /* end confdefs.h.  */
32988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32990 #define $ac_func innocuous_$ac_func
32991
32992 /* System header to define __stub macros and hopefully few prototypes,
32993     which can conflict with char $ac_func (); below.
32994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32995     <limits.h> exists even on freestanding compilers.  */
32996
32997 #ifdef __STDC__
32998 # include <limits.h>
32999 #else
33000 # include <assert.h>
33001 #endif
33002
33003 #undef $ac_func
33004
33005 /* Override any gcc2 internal prototype to avoid an error.  */
33006 #ifdef __cplusplus
33007 extern "C"
33008 {
33009 #endif
33010 /* We use char because int might match the return type of a gcc2
33011    builtin and then its argument prototype would still apply.  */
33012 char $ac_func ();
33013 /* The GNU C library defines this for functions which it implements
33014     to always fail with ENOSYS.  Some functions are actually named
33015     something starting with __ and the normal name is an alias.  */
33016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33017 choke me
33018 #else
33019 char (*f) () = $ac_func;
33020 #endif
33021 #ifdef __cplusplus
33022 }
33023 #endif
33024
33025 int
33026 main ()
33027 {
33028 return f != $ac_func;
33029   ;
33030   return 0;
33031 }
33032 _ACEOF
33033 rm -f conftest.$ac_objext conftest$ac_exeext
33034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33035   (eval $ac_link) 2>conftest.er1
33036   ac_status=$?
33037   grep -v '^ *+' conftest.er1 >conftest.err
33038   rm -f conftest.er1
33039   cat conftest.err >&5
33040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33041   (exit $ac_status); } &&
33042          { ac_try='test -z "$ac_c_werror_flag"
33043                          || test ! -s conftest.err'
33044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33045   (eval $ac_try) 2>&5
33046   ac_status=$?
33047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048   (exit $ac_status); }; } &&
33049          { ac_try='test -s conftest$ac_exeext'
33050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33051   (eval $ac_try) 2>&5
33052   ac_status=$?
33053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054   (exit $ac_status); }; }; then
33055   eval "$as_ac_var=yes"
33056 else
33057   echo "$as_me: failed program was:" >&5
33058 sed 's/^/| /' conftest.$ac_ext >&5
33059
33060 eval "$as_ac_var=no"
33061 fi
33062 rm -f conftest.err conftest.$ac_objext \
33063       conftest$ac_exeext conftest.$ac_ext
33064 fi
33065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33067 if test `eval echo '${'$as_ac_var'}'` = yes; then
33068   cat >>confdefs.h <<_ACEOF
33069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33070 _ACEOF
33071  ice_have_connect=yes
33072 fi
33073 done
33074
33075 if test "${ice_have_connect}" = yes; then
33076 echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
33077 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
33078 if test "${ice_cv_have_connect_decl+set}" = set; then
33079   echo $ECHO_N "(cached) $ECHO_C" >&6
33080 else
33081
33082 ice_cv_have_connect_decl=no
33083 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33084 ice_re_word='(^|[^a-zA-Z0-9_])'
33085 for header in sys/types.h sys/socket.h; do
33086 # Check for ordinary declaration
33087 cat >conftest.$ac_ext <<_ACEOF
33088 /* confdefs.h.  */
33089 _ACEOF
33090 cat confdefs.h >>conftest.$ac_ext
33091 cat >>conftest.$ac_ext <<_ACEOF
33092 /* end confdefs.h.  */
33093 #include <$header>
33094
33095 _ACEOF
33096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33097   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
33098   ice_cv_have_connect_decl=yes
33099 fi
33100 rm -f conftest*
33101
33102 if test "$ice_cv_have_connect_decl" = yes; then
33103         break
33104 fi
33105 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33106 cat >conftest.$ac_ext <<_ACEOF
33107 /* confdefs.h.  */
33108 _ACEOF
33109 cat confdefs.h >>conftest.$ac_ext
33110 cat >>conftest.$ac_ext <<_ACEOF
33111 /* end confdefs.h.  */
33112 #include <$header>
33113
33114 _ACEOF
33115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33116   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33117   ice_cv_have_connect_decl=yes
33118 fi
33119 rm -f conftest*
33120
33121 if test "$ice_cv_have_connect_decl" = yes; then
33122         break
33123 fi
33124 done
33125
33126 fi
33127
33128 echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
33129 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6
33130 if test "$ice_cv_have_connect_decl" = yes; then
33131
33132 cat >>confdefs.h <<_ACEOF
33133 #define HAVE_CONNECT_DECL 1
33134 _ACEOF
33135
33136 fi
33137 fi
33138
33139
33140 ice_have_dbm_open=no
33141
33142 for ac_func in dbm_open
33143 do
33144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33145 echo "$as_me:$LINENO: checking for $ac_func" >&5
33146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33147 if eval "test \"\${$as_ac_var+set}\" = set"; then
33148   echo $ECHO_N "(cached) $ECHO_C" >&6
33149 else
33150   cat >conftest.$ac_ext <<_ACEOF
33151 /* confdefs.h.  */
33152 _ACEOF
33153 cat confdefs.h >>conftest.$ac_ext
33154 cat >>conftest.$ac_ext <<_ACEOF
33155 /* end confdefs.h.  */
33156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33158 #define $ac_func innocuous_$ac_func
33159
33160 /* System header to define __stub macros and hopefully few prototypes,
33161     which can conflict with char $ac_func (); below.
33162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33163     <limits.h> exists even on freestanding compilers.  */
33164
33165 #ifdef __STDC__
33166 # include <limits.h>
33167 #else
33168 # include <assert.h>
33169 #endif
33170
33171 #undef $ac_func
33172
33173 /* Override any gcc2 internal prototype to avoid an error.  */
33174 #ifdef __cplusplus
33175 extern "C"
33176 {
33177 #endif
33178 /* We use char because int might match the return type of a gcc2
33179    builtin and then its argument prototype would still apply.  */
33180 char $ac_func ();
33181 /* The GNU C library defines this for functions which it implements
33182     to always fail with ENOSYS.  Some functions are actually named
33183     something starting with __ and the normal name is an alias.  */
33184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33185 choke me
33186 #else
33187 char (*f) () = $ac_func;
33188 #endif
33189 #ifdef __cplusplus
33190 }
33191 #endif
33192
33193 int
33194 main ()
33195 {
33196 return f != $ac_func;
33197   ;
33198   return 0;
33199 }
33200 _ACEOF
33201 rm -f conftest.$ac_objext conftest$ac_exeext
33202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33203   (eval $ac_link) 2>conftest.er1
33204   ac_status=$?
33205   grep -v '^ *+' conftest.er1 >conftest.err
33206   rm -f conftest.er1
33207   cat conftest.err >&5
33208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209   (exit $ac_status); } &&
33210          { ac_try='test -z "$ac_c_werror_flag"
33211                          || test ! -s conftest.err'
33212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33213   (eval $ac_try) 2>&5
33214   ac_status=$?
33215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216   (exit $ac_status); }; } &&
33217          { ac_try='test -s conftest$ac_exeext'
33218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33219   (eval $ac_try) 2>&5
33220   ac_status=$?
33221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222   (exit $ac_status); }; }; then
33223   eval "$as_ac_var=yes"
33224 else
33225   echo "$as_me: failed program was:" >&5
33226 sed 's/^/| /' conftest.$ac_ext >&5
33227
33228 eval "$as_ac_var=no"
33229 fi
33230 rm -f conftest.err conftest.$ac_objext \
33231       conftest$ac_exeext conftest.$ac_ext
33232 fi
33233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33235 if test `eval echo '${'$as_ac_var'}'` = yes; then
33236   cat >>confdefs.h <<_ACEOF
33237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33238 _ACEOF
33239  ice_have_dbm_open=yes
33240 fi
33241 done
33242
33243 if test "${ice_have_dbm_open}" = yes; then
33244 echo "$as_me:$LINENO: checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}" >&5
33245 echo $ECHO_N "checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}... $ECHO_C" >&6
33246 if test "${ice_cv_have_dbm_open_decl+set}" = set; then
33247   echo $ECHO_N "(cached) $ECHO_C" >&6
33248 else
33249
33250 ice_cv_have_dbm_open_decl=no
33251 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33252 ice_re_word='(^|[^a-zA-Z0-9_])'
33253 for header in ${DB_HEADER-no/db/header/file}; do
33254 # Check for ordinary declaration
33255 cat >conftest.$ac_ext <<_ACEOF
33256 /* confdefs.h.  */
33257 _ACEOF
33258 cat confdefs.h >>conftest.$ac_ext
33259 cat >>conftest.$ac_ext <<_ACEOF
33260 /* end confdefs.h.  */
33261 #include <$header>
33262
33263 _ACEOF
33264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33265   $EGREP "${ice_re_word}dbm_open[       ]*\(" >/dev/null 2>&1; then
33266   ice_cv_have_dbm_open_decl=yes
33267 fi
33268 rm -f conftest*
33269
33270 if test "$ice_cv_have_dbm_open_decl" = yes; then
33271         break
33272 fi
33273 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33274 cat >conftest.$ac_ext <<_ACEOF
33275 /* confdefs.h.  */
33276 _ACEOF
33277 cat confdefs.h >>conftest.$ac_ext
33278 cat >>conftest.$ac_ext <<_ACEOF
33279 /* end confdefs.h.  */
33280 #include <$header>
33281
33282 _ACEOF
33283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33284   $EGREP "${ice_re_word}dbm_open[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33285   ice_cv_have_dbm_open_decl=yes
33286 fi
33287 rm -f conftest*
33288
33289 if test "$ice_cv_have_dbm_open_decl" = yes; then
33290         break
33291 fi
33292 done
33293
33294 fi
33295
33296 echo "$as_me:$LINENO: result: $ice_cv_have_dbm_open_decl" >&5
33297 echo "${ECHO_T}$ice_cv_have_dbm_open_decl" >&6
33298 if test "$ice_cv_have_dbm_open_decl" = yes; then
33299
33300 cat >>confdefs.h <<_ACEOF
33301 #define HAVE_DBM_OPEN_DECL 1
33302 _ACEOF
33303
33304 fi
33305 fi
33306
33307
33308 for ac_func in endmntent
33309 do
33310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33311 echo "$as_me:$LINENO: checking for $ac_func" >&5
33312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33313 if eval "test \"\${$as_ac_var+set}\" = set"; then
33314   echo $ECHO_N "(cached) $ECHO_C" >&6
33315 else
33316   cat >conftest.$ac_ext <<_ACEOF
33317 /* confdefs.h.  */
33318 _ACEOF
33319 cat confdefs.h >>conftest.$ac_ext
33320 cat >>conftest.$ac_ext <<_ACEOF
33321 /* end confdefs.h.  */
33322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33324 #define $ac_func innocuous_$ac_func
33325
33326 /* System header to define __stub macros and hopefully few prototypes,
33327     which can conflict with char $ac_func (); below.
33328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33329     <limits.h> exists even on freestanding compilers.  */
33330
33331 #ifdef __STDC__
33332 # include <limits.h>
33333 #else
33334 # include <assert.h>
33335 #endif
33336
33337 #undef $ac_func
33338
33339 /* Override any gcc2 internal prototype to avoid an error.  */
33340 #ifdef __cplusplus
33341 extern "C"
33342 {
33343 #endif
33344 /* We use char because int might match the return type of a gcc2
33345    builtin and then its argument prototype would still apply.  */
33346 char $ac_func ();
33347 /* The GNU C library defines this for functions which it implements
33348     to always fail with ENOSYS.  Some functions are actually named
33349     something starting with __ and the normal name is an alias.  */
33350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33351 choke me
33352 #else
33353 char (*f) () = $ac_func;
33354 #endif
33355 #ifdef __cplusplus
33356 }
33357 #endif
33358
33359 int
33360 main ()
33361 {
33362 return f != $ac_func;
33363   ;
33364   return 0;
33365 }
33366 _ACEOF
33367 rm -f conftest.$ac_objext conftest$ac_exeext
33368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33369   (eval $ac_link) 2>conftest.er1
33370   ac_status=$?
33371   grep -v '^ *+' conftest.er1 >conftest.err
33372   rm -f conftest.er1
33373   cat conftest.err >&5
33374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375   (exit $ac_status); } &&
33376          { ac_try='test -z "$ac_c_werror_flag"
33377                          || test ! -s conftest.err'
33378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33379   (eval $ac_try) 2>&5
33380   ac_status=$?
33381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382   (exit $ac_status); }; } &&
33383          { ac_try='test -s conftest$ac_exeext'
33384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33385   (eval $ac_try) 2>&5
33386   ac_status=$?
33387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33388   (exit $ac_status); }; }; then
33389   eval "$as_ac_var=yes"
33390 else
33391   echo "$as_me: failed program was:" >&5
33392 sed 's/^/| /' conftest.$ac_ext >&5
33393
33394 eval "$as_ac_var=no"
33395 fi
33396 rm -f conftest.err conftest.$ac_objext \
33397       conftest$ac_exeext conftest.$ac_ext
33398 fi
33399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33401 if test `eval echo '${'$as_ac_var'}'` = yes; then
33402   cat >>confdefs.h <<_ACEOF
33403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33404 _ACEOF
33405
33406 fi
33407 done
33408
33409
33410 ice_have_fclose=no
33411
33412 for ac_func in fclose
33413 do
33414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33415 echo "$as_me:$LINENO: checking for $ac_func" >&5
33416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33417 if eval "test \"\${$as_ac_var+set}\" = set"; then
33418   echo $ECHO_N "(cached) $ECHO_C" >&6
33419 else
33420   cat >conftest.$ac_ext <<_ACEOF
33421 /* confdefs.h.  */
33422 _ACEOF
33423 cat confdefs.h >>conftest.$ac_ext
33424 cat >>conftest.$ac_ext <<_ACEOF
33425 /* end confdefs.h.  */
33426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33428 #define $ac_func innocuous_$ac_func
33429
33430 /* System header to define __stub macros and hopefully few prototypes,
33431     which can conflict with char $ac_func (); below.
33432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33433     <limits.h> exists even on freestanding compilers.  */
33434
33435 #ifdef __STDC__
33436 # include <limits.h>
33437 #else
33438 # include <assert.h>
33439 #endif
33440
33441 #undef $ac_func
33442
33443 /* Override any gcc2 internal prototype to avoid an error.  */
33444 #ifdef __cplusplus
33445 extern "C"
33446 {
33447 #endif
33448 /* We use char because int might match the return type of a gcc2
33449    builtin and then its argument prototype would still apply.  */
33450 char $ac_func ();
33451 /* The GNU C library defines this for functions which it implements
33452     to always fail with ENOSYS.  Some functions are actually named
33453     something starting with __ and the normal name is an alias.  */
33454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33455 choke me
33456 #else
33457 char (*f) () = $ac_func;
33458 #endif
33459 #ifdef __cplusplus
33460 }
33461 #endif
33462
33463 int
33464 main ()
33465 {
33466 return f != $ac_func;
33467   ;
33468   return 0;
33469 }
33470 _ACEOF
33471 rm -f conftest.$ac_objext conftest$ac_exeext
33472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33473   (eval $ac_link) 2>conftest.er1
33474   ac_status=$?
33475   grep -v '^ *+' conftest.er1 >conftest.err
33476   rm -f conftest.er1
33477   cat conftest.err >&5
33478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479   (exit $ac_status); } &&
33480          { ac_try='test -z "$ac_c_werror_flag"
33481                          || test ! -s conftest.err'
33482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33483   (eval $ac_try) 2>&5
33484   ac_status=$?
33485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486   (exit $ac_status); }; } &&
33487          { ac_try='test -s conftest$ac_exeext'
33488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33489   (eval $ac_try) 2>&5
33490   ac_status=$?
33491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492   (exit $ac_status); }; }; then
33493   eval "$as_ac_var=yes"
33494 else
33495   echo "$as_me: failed program was:" >&5
33496 sed 's/^/| /' conftest.$ac_ext >&5
33497
33498 eval "$as_ac_var=no"
33499 fi
33500 rm -f conftest.err conftest.$ac_objext \
33501       conftest$ac_exeext conftest.$ac_ext
33502 fi
33503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33505 if test `eval echo '${'$as_ac_var'}'` = yes; then
33506   cat >>confdefs.h <<_ACEOF
33507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33508 _ACEOF
33509  ice_have_fclose=yes
33510 fi
33511 done
33512
33513 if test "${ice_have_fclose}" = yes; then
33514 echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
33515 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6
33516 if test "${ice_cv_have_fclose_decl+set}" = set; then
33517   echo $ECHO_N "(cached) $ECHO_C" >&6
33518 else
33519
33520 ice_cv_have_fclose_decl=no
33521 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33522 ice_re_word='(^|[^a-zA-Z0-9_])'
33523 for header in stdio.h; do
33524 # Check for ordinary declaration
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 #include <$header>
33532
33533 _ACEOF
33534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33535   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
33536   ice_cv_have_fclose_decl=yes
33537 fi
33538 rm -f conftest*
33539
33540 if test "$ice_cv_have_fclose_decl" = yes; then
33541         break
33542 fi
33543 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33544 cat >conftest.$ac_ext <<_ACEOF
33545 /* confdefs.h.  */
33546 _ACEOF
33547 cat confdefs.h >>conftest.$ac_ext
33548 cat >>conftest.$ac_ext <<_ACEOF
33549 /* end confdefs.h.  */
33550 #include <$header>
33551
33552 _ACEOF
33553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33554   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33555   ice_cv_have_fclose_decl=yes
33556 fi
33557 rm -f conftest*
33558
33559 if test "$ice_cv_have_fclose_decl" = yes; then
33560         break
33561 fi
33562 done
33563
33564 fi
33565
33566 echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
33567 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6
33568 if test "$ice_cv_have_fclose_decl" = yes; then
33569
33570 cat >>confdefs.h <<_ACEOF
33571 #define HAVE_FCLOSE_DECL 1
33572 _ACEOF
33573
33574 fi
33575 fi
33576
33577
33578 ice_have_fflush=no
33579
33580 for ac_func in fflush
33581 do
33582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33583 echo "$as_me:$LINENO: checking for $ac_func" >&5
33584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33585 if eval "test \"\${$as_ac_var+set}\" = set"; then
33586   echo $ECHO_N "(cached) $ECHO_C" >&6
33587 else
33588   cat >conftest.$ac_ext <<_ACEOF
33589 /* confdefs.h.  */
33590 _ACEOF
33591 cat confdefs.h >>conftest.$ac_ext
33592 cat >>conftest.$ac_ext <<_ACEOF
33593 /* end confdefs.h.  */
33594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33596 #define $ac_func innocuous_$ac_func
33597
33598 /* System header to define __stub macros and hopefully few prototypes,
33599     which can conflict with char $ac_func (); below.
33600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33601     <limits.h> exists even on freestanding compilers.  */
33602
33603 #ifdef __STDC__
33604 # include <limits.h>
33605 #else
33606 # include <assert.h>
33607 #endif
33608
33609 #undef $ac_func
33610
33611 /* Override any gcc2 internal prototype to avoid an error.  */
33612 #ifdef __cplusplus
33613 extern "C"
33614 {
33615 #endif
33616 /* We use char because int might match the return type of a gcc2
33617    builtin and then its argument prototype would still apply.  */
33618 char $ac_func ();
33619 /* The GNU C library defines this for functions which it implements
33620     to always fail with ENOSYS.  Some functions are actually named
33621     something starting with __ and the normal name is an alias.  */
33622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33623 choke me
33624 #else
33625 char (*f) () = $ac_func;
33626 #endif
33627 #ifdef __cplusplus
33628 }
33629 #endif
33630
33631 int
33632 main ()
33633 {
33634 return f != $ac_func;
33635   ;
33636   return 0;
33637 }
33638 _ACEOF
33639 rm -f conftest.$ac_objext conftest$ac_exeext
33640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33641   (eval $ac_link) 2>conftest.er1
33642   ac_status=$?
33643   grep -v '^ *+' conftest.er1 >conftest.err
33644   rm -f conftest.er1
33645   cat conftest.err >&5
33646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647   (exit $ac_status); } &&
33648          { ac_try='test -z "$ac_c_werror_flag"
33649                          || test ! -s conftest.err'
33650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33651   (eval $ac_try) 2>&5
33652   ac_status=$?
33653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654   (exit $ac_status); }; } &&
33655          { ac_try='test -s conftest$ac_exeext'
33656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657   (eval $ac_try) 2>&5
33658   ac_status=$?
33659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660   (exit $ac_status); }; }; then
33661   eval "$as_ac_var=yes"
33662 else
33663   echo "$as_me: failed program was:" >&5
33664 sed 's/^/| /' conftest.$ac_ext >&5
33665
33666 eval "$as_ac_var=no"
33667 fi
33668 rm -f conftest.err conftest.$ac_objext \
33669       conftest$ac_exeext conftest.$ac_ext
33670 fi
33671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33673 if test `eval echo '${'$as_ac_var'}'` = yes; then
33674   cat >>confdefs.h <<_ACEOF
33675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33676 _ACEOF
33677  ice_have_fflush=yes
33678 fi
33679 done
33680
33681 if test "${ice_have_fflush}" = yes; then
33682 echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
33683 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6
33684 if test "${ice_cv_have_fflush_decl+set}" = set; then
33685   echo $ECHO_N "(cached) $ECHO_C" >&6
33686 else
33687
33688 ice_cv_have_fflush_decl=no
33689 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33690 ice_re_word='(^|[^a-zA-Z0-9_])'
33691 for header in stdio.h; do
33692 # Check for ordinary declaration
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 #include <$header>
33700
33701 _ACEOF
33702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33703   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then
33704   ice_cv_have_fflush_decl=yes
33705 fi
33706 rm -f conftest*
33707
33708 if test "$ice_cv_have_fflush_decl" = yes; then
33709         break
33710 fi
33711 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33712 cat >conftest.$ac_ext <<_ACEOF
33713 /* confdefs.h.  */
33714 _ACEOF
33715 cat confdefs.h >>conftest.$ac_ext
33716 cat >>conftest.$ac_ext <<_ACEOF
33717 /* end confdefs.h.  */
33718 #include <$header>
33719
33720 _ACEOF
33721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33722   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33723   ice_cv_have_fflush_decl=yes
33724 fi
33725 rm -f conftest*
33726
33727 if test "$ice_cv_have_fflush_decl" = yes; then
33728         break
33729 fi
33730 done
33731
33732 fi
33733
33734 echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
33735 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6
33736 if test "$ice_cv_have_fflush_decl" = yes; then
33737
33738 cat >>confdefs.h <<_ACEOF
33739 #define HAVE_FFLUSH_DECL 1
33740 _ACEOF
33741
33742 fi
33743 fi
33744
33745
33746 ice_have_flock=no
33747
33748 for ac_func in flock
33749 do
33750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33751 echo "$as_me:$LINENO: checking for $ac_func" >&5
33752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33753 if eval "test \"\${$as_ac_var+set}\" = set"; then
33754   echo $ECHO_N "(cached) $ECHO_C" >&6
33755 else
33756   cat >conftest.$ac_ext <<_ACEOF
33757 /* confdefs.h.  */
33758 _ACEOF
33759 cat confdefs.h >>conftest.$ac_ext
33760 cat >>conftest.$ac_ext <<_ACEOF
33761 /* end confdefs.h.  */
33762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33764 #define $ac_func innocuous_$ac_func
33765
33766 /* System header to define __stub macros and hopefully few prototypes,
33767     which can conflict with char $ac_func (); below.
33768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33769     <limits.h> exists even on freestanding compilers.  */
33770
33771 #ifdef __STDC__
33772 # include <limits.h>
33773 #else
33774 # include <assert.h>
33775 #endif
33776
33777 #undef $ac_func
33778
33779 /* Override any gcc2 internal prototype to avoid an error.  */
33780 #ifdef __cplusplus
33781 extern "C"
33782 {
33783 #endif
33784 /* We use char because int might match the return type of a gcc2
33785    builtin and then its argument prototype would still apply.  */
33786 char $ac_func ();
33787 /* The GNU C library defines this for functions which it implements
33788     to always fail with ENOSYS.  Some functions are actually named
33789     something starting with __ and the normal name is an alias.  */
33790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33791 choke me
33792 #else
33793 char (*f) () = $ac_func;
33794 #endif
33795 #ifdef __cplusplus
33796 }
33797 #endif
33798
33799 int
33800 main ()
33801 {
33802 return f != $ac_func;
33803   ;
33804   return 0;
33805 }
33806 _ACEOF
33807 rm -f conftest.$ac_objext conftest$ac_exeext
33808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33809   (eval $ac_link) 2>conftest.er1
33810   ac_status=$?
33811   grep -v '^ *+' conftest.er1 >conftest.err
33812   rm -f conftest.er1
33813   cat conftest.err >&5
33814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815   (exit $ac_status); } &&
33816          { ac_try='test -z "$ac_c_werror_flag"
33817                          || test ! -s conftest.err'
33818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33819   (eval $ac_try) 2>&5
33820   ac_status=$?
33821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33822   (exit $ac_status); }; } &&
33823          { ac_try='test -s conftest$ac_exeext'
33824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33825   (eval $ac_try) 2>&5
33826   ac_status=$?
33827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828   (exit $ac_status); }; }; then
33829   eval "$as_ac_var=yes"
33830 else
33831   echo "$as_me: failed program was:" >&5
33832 sed 's/^/| /' conftest.$ac_ext >&5
33833
33834 eval "$as_ac_var=no"
33835 fi
33836 rm -f conftest.err conftest.$ac_objext \
33837       conftest$ac_exeext conftest.$ac_ext
33838 fi
33839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33841 if test `eval echo '${'$as_ac_var'}'` = yes; then
33842   cat >>confdefs.h <<_ACEOF
33843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33844 _ACEOF
33845  ice_have_flock=yes
33846 fi
33847 done
33848
33849 if test "${ice_have_flock}" = yes; then
33850 echo "$as_me:$LINENO: checking for flock declaration in sys/file.h" >&5
33851 echo $ECHO_N "checking for flock declaration in sys/file.h... $ECHO_C" >&6
33852 if test "${ice_cv_have_flock_decl+set}" = set; then
33853   echo $ECHO_N "(cached) $ECHO_C" >&6
33854 else
33855
33856 ice_cv_have_flock_decl=no
33857 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33858 ice_re_word='(^|[^a-zA-Z0-9_])'
33859 for header in sys/file.h; do
33860 # Check for ordinary declaration
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 #include <$header>
33868
33869 _ACEOF
33870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33871   $EGREP "${ice_re_word}flock[  ]*\(" >/dev/null 2>&1; then
33872   ice_cv_have_flock_decl=yes
33873 fi
33874 rm -f conftest*
33875
33876 if test "$ice_cv_have_flock_decl" = yes; then
33877         break
33878 fi
33879 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33880 cat >conftest.$ac_ext <<_ACEOF
33881 /* confdefs.h.  */
33882 _ACEOF
33883 cat confdefs.h >>conftest.$ac_ext
33884 cat >>conftest.$ac_ext <<_ACEOF
33885 /* end confdefs.h.  */
33886 #include <$header>
33887
33888 _ACEOF
33889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33890   $EGREP "${ice_re_word}flock[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33891   ice_cv_have_flock_decl=yes
33892 fi
33893 rm -f conftest*
33894
33895 if test "$ice_cv_have_flock_decl" = yes; then
33896         break
33897 fi
33898 done
33899
33900 fi
33901
33902 echo "$as_me:$LINENO: result: $ice_cv_have_flock_decl" >&5
33903 echo "${ECHO_T}$ice_cv_have_flock_decl" >&6
33904 if test "$ice_cv_have_flock_decl" = yes; then
33905
33906 cat >>confdefs.h <<_ACEOF
33907 #define HAVE_FLOCK_DECL 1
33908 _ACEOF
33909
33910 fi
33911 fi
33912
33913
33914 ice_have_fprintf=no
33915
33916 for ac_func in fprintf
33917 do
33918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33919 echo "$as_me:$LINENO: checking for $ac_func" >&5
33920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33921 if eval "test \"\${$as_ac_var+set}\" = set"; then
33922   echo $ECHO_N "(cached) $ECHO_C" >&6
33923 else
33924   cat >conftest.$ac_ext <<_ACEOF
33925 /* confdefs.h.  */
33926 _ACEOF
33927 cat confdefs.h >>conftest.$ac_ext
33928 cat >>conftest.$ac_ext <<_ACEOF
33929 /* end confdefs.h.  */
33930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33932 #define $ac_func innocuous_$ac_func
33933
33934 /* System header to define __stub macros and hopefully few prototypes,
33935     which can conflict with char $ac_func (); below.
33936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33937     <limits.h> exists even on freestanding compilers.  */
33938
33939 #ifdef __STDC__
33940 # include <limits.h>
33941 #else
33942 # include <assert.h>
33943 #endif
33944
33945 #undef $ac_func
33946
33947 /* Override any gcc2 internal prototype to avoid an error.  */
33948 #ifdef __cplusplus
33949 extern "C"
33950 {
33951 #endif
33952 /* We use char because int might match the return type of a gcc2
33953    builtin and then its argument prototype would still apply.  */
33954 char $ac_func ();
33955 /* The GNU C library defines this for functions which it implements
33956     to always fail with ENOSYS.  Some functions are actually named
33957     something starting with __ and the normal name is an alias.  */
33958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33959 choke me
33960 #else
33961 char (*f) () = $ac_func;
33962 #endif
33963 #ifdef __cplusplus
33964 }
33965 #endif
33966
33967 int
33968 main ()
33969 {
33970 return f != $ac_func;
33971   ;
33972   return 0;
33973 }
33974 _ACEOF
33975 rm -f conftest.$ac_objext conftest$ac_exeext
33976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33977   (eval $ac_link) 2>conftest.er1
33978   ac_status=$?
33979   grep -v '^ *+' conftest.er1 >conftest.err
33980   rm -f conftest.er1
33981   cat conftest.err >&5
33982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33983   (exit $ac_status); } &&
33984          { ac_try='test -z "$ac_c_werror_flag"
33985                          || test ! -s conftest.err'
33986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33987   (eval $ac_try) 2>&5
33988   ac_status=$?
33989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33990   (exit $ac_status); }; } &&
33991          { ac_try='test -s conftest$ac_exeext'
33992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33993   (eval $ac_try) 2>&5
33994   ac_status=$?
33995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996   (exit $ac_status); }; }; then
33997   eval "$as_ac_var=yes"
33998 else
33999   echo "$as_me: failed program was:" >&5
34000 sed 's/^/| /' conftest.$ac_ext >&5
34001
34002 eval "$as_ac_var=no"
34003 fi
34004 rm -f conftest.err conftest.$ac_objext \
34005       conftest$ac_exeext conftest.$ac_ext
34006 fi
34007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34009 if test `eval echo '${'$as_ac_var'}'` = yes; then
34010   cat >>confdefs.h <<_ACEOF
34011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34012 _ACEOF
34013  ice_have_fprintf=yes
34014 fi
34015 done
34016
34017 if test "${ice_have_fprintf}" = yes; then
34018 echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
34019 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6
34020 if test "${ice_cv_have_fprintf_decl+set}" = set; then
34021   echo $ECHO_N "(cached) $ECHO_C" >&6
34022 else
34023
34024 ice_cv_have_fprintf_decl=no
34025 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34026 ice_re_word='(^|[^a-zA-Z0-9_])'
34027 for header in stdio.h; do
34028 # Check for ordinary declaration
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 #include <$header>
34036
34037 _ACEOF
34038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34039   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
34040   ice_cv_have_fprintf_decl=yes
34041 fi
34042 rm -f conftest*
34043
34044 if test "$ice_cv_have_fprintf_decl" = yes; then
34045         break
34046 fi
34047 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34048 cat >conftest.$ac_ext <<_ACEOF
34049 /* confdefs.h.  */
34050 _ACEOF
34051 cat confdefs.h >>conftest.$ac_ext
34052 cat >>conftest.$ac_ext <<_ACEOF
34053 /* end confdefs.h.  */
34054 #include <$header>
34055
34056 _ACEOF
34057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34058   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34059   ice_cv_have_fprintf_decl=yes
34060 fi
34061 rm -f conftest*
34062
34063 if test "$ice_cv_have_fprintf_decl" = yes; then
34064         break
34065 fi
34066 done
34067
34068 fi
34069
34070 echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
34071 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6
34072 if test "$ice_cv_have_fprintf_decl" = yes; then
34073
34074 cat >>confdefs.h <<_ACEOF
34075 #define HAVE_FPRINTF_DECL 1
34076 _ACEOF
34077
34078 fi
34079 fi
34080
34081
34082 ice_have_fputc=no
34083
34084 for ac_func in fputc
34085 do
34086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34087 echo "$as_me:$LINENO: checking for $ac_func" >&5
34088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34089 if eval "test \"\${$as_ac_var+set}\" = set"; then
34090   echo $ECHO_N "(cached) $ECHO_C" >&6
34091 else
34092   cat >conftest.$ac_ext <<_ACEOF
34093 /* confdefs.h.  */
34094 _ACEOF
34095 cat confdefs.h >>conftest.$ac_ext
34096 cat >>conftest.$ac_ext <<_ACEOF
34097 /* end confdefs.h.  */
34098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34100 #define $ac_func innocuous_$ac_func
34101
34102 /* System header to define __stub macros and hopefully few prototypes,
34103     which can conflict with char $ac_func (); below.
34104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34105     <limits.h> exists even on freestanding compilers.  */
34106
34107 #ifdef __STDC__
34108 # include <limits.h>
34109 #else
34110 # include <assert.h>
34111 #endif
34112
34113 #undef $ac_func
34114
34115 /* Override any gcc2 internal prototype to avoid an error.  */
34116 #ifdef __cplusplus
34117 extern "C"
34118 {
34119 #endif
34120 /* We use char because int might match the return type of a gcc2
34121    builtin and then its argument prototype would still apply.  */
34122 char $ac_func ();
34123 /* The GNU C library defines this for functions which it implements
34124     to always fail with ENOSYS.  Some functions are actually named
34125     something starting with __ and the normal name is an alias.  */
34126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34127 choke me
34128 #else
34129 char (*f) () = $ac_func;
34130 #endif
34131 #ifdef __cplusplus
34132 }
34133 #endif
34134
34135 int
34136 main ()
34137 {
34138 return f != $ac_func;
34139   ;
34140   return 0;
34141 }
34142 _ACEOF
34143 rm -f conftest.$ac_objext conftest$ac_exeext
34144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34145   (eval $ac_link) 2>conftest.er1
34146   ac_status=$?
34147   grep -v '^ *+' conftest.er1 >conftest.err
34148   rm -f conftest.er1
34149   cat conftest.err >&5
34150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151   (exit $ac_status); } &&
34152          { ac_try='test -z "$ac_c_werror_flag"
34153                          || test ! -s conftest.err'
34154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34155   (eval $ac_try) 2>&5
34156   ac_status=$?
34157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34158   (exit $ac_status); }; } &&
34159          { ac_try='test -s conftest$ac_exeext'
34160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34161   (eval $ac_try) 2>&5
34162   ac_status=$?
34163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34164   (exit $ac_status); }; }; then
34165   eval "$as_ac_var=yes"
34166 else
34167   echo "$as_me: failed program was:" >&5
34168 sed 's/^/| /' conftest.$ac_ext >&5
34169
34170 eval "$as_ac_var=no"
34171 fi
34172 rm -f conftest.err conftest.$ac_objext \
34173       conftest$ac_exeext conftest.$ac_ext
34174 fi
34175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34177 if test `eval echo '${'$as_ac_var'}'` = yes; then
34178   cat >>confdefs.h <<_ACEOF
34179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34180 _ACEOF
34181  ice_have_fputc=yes
34182 fi
34183 done
34184
34185 if test "${ice_have_fputc}" = yes; then
34186 echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
34187 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6
34188 if test "${ice_cv_have_fputc_decl+set}" = set; then
34189   echo $ECHO_N "(cached) $ECHO_C" >&6
34190 else
34191
34192 ice_cv_have_fputc_decl=no
34193 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34194 ice_re_word='(^|[^a-zA-Z0-9_])'
34195 for header in stdio.h; do
34196 # Check for ordinary declaration
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 #include <$header>
34204
34205 _ACEOF
34206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34207   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
34208   ice_cv_have_fputc_decl=yes
34209 fi
34210 rm -f conftest*
34211
34212 if test "$ice_cv_have_fputc_decl" = yes; then
34213         break
34214 fi
34215 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34216 cat >conftest.$ac_ext <<_ACEOF
34217 /* confdefs.h.  */
34218 _ACEOF
34219 cat confdefs.h >>conftest.$ac_ext
34220 cat >>conftest.$ac_ext <<_ACEOF
34221 /* end confdefs.h.  */
34222 #include <$header>
34223
34224 _ACEOF
34225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34226   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34227   ice_cv_have_fputc_decl=yes
34228 fi
34229 rm -f conftest*
34230
34231 if test "$ice_cv_have_fputc_decl" = yes; then
34232         break
34233 fi
34234 done
34235
34236 fi
34237
34238 echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
34239 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6
34240 if test "$ice_cv_have_fputc_decl" = yes; then
34241
34242 cat >>confdefs.h <<_ACEOF
34243 #define HAVE_FPUTC_DECL 1
34244 _ACEOF
34245
34246 fi
34247 fi
34248
34249
34250 ice_have_fputs=no
34251
34252 for ac_func in fputs
34253 do
34254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34255 echo "$as_me:$LINENO: checking for $ac_func" >&5
34256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34257 if eval "test \"\${$as_ac_var+set}\" = set"; then
34258   echo $ECHO_N "(cached) $ECHO_C" >&6
34259 else
34260   cat >conftest.$ac_ext <<_ACEOF
34261 /* confdefs.h.  */
34262 _ACEOF
34263 cat confdefs.h >>conftest.$ac_ext
34264 cat >>conftest.$ac_ext <<_ACEOF
34265 /* end confdefs.h.  */
34266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34268 #define $ac_func innocuous_$ac_func
34269
34270 /* System header to define __stub macros and hopefully few prototypes,
34271     which can conflict with char $ac_func (); below.
34272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34273     <limits.h> exists even on freestanding compilers.  */
34274
34275 #ifdef __STDC__
34276 # include <limits.h>
34277 #else
34278 # include <assert.h>
34279 #endif
34280
34281 #undef $ac_func
34282
34283 /* Override any gcc2 internal prototype to avoid an error.  */
34284 #ifdef __cplusplus
34285 extern "C"
34286 {
34287 #endif
34288 /* We use char because int might match the return type of a gcc2
34289    builtin and then its argument prototype would still apply.  */
34290 char $ac_func ();
34291 /* The GNU C library defines this for functions which it implements
34292     to always fail with ENOSYS.  Some functions are actually named
34293     something starting with __ and the normal name is an alias.  */
34294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34295 choke me
34296 #else
34297 char (*f) () = $ac_func;
34298 #endif
34299 #ifdef __cplusplus
34300 }
34301 #endif
34302
34303 int
34304 main ()
34305 {
34306 return f != $ac_func;
34307   ;
34308   return 0;
34309 }
34310 _ACEOF
34311 rm -f conftest.$ac_objext conftest$ac_exeext
34312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34313   (eval $ac_link) 2>conftest.er1
34314   ac_status=$?
34315   grep -v '^ *+' conftest.er1 >conftest.err
34316   rm -f conftest.er1
34317   cat conftest.err >&5
34318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34319   (exit $ac_status); } &&
34320          { ac_try='test -z "$ac_c_werror_flag"
34321                          || test ! -s conftest.err'
34322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34323   (eval $ac_try) 2>&5
34324   ac_status=$?
34325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326   (exit $ac_status); }; } &&
34327          { ac_try='test -s conftest$ac_exeext'
34328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34329   (eval $ac_try) 2>&5
34330   ac_status=$?
34331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34332   (exit $ac_status); }; }; then
34333   eval "$as_ac_var=yes"
34334 else
34335   echo "$as_me: failed program was:" >&5
34336 sed 's/^/| /' conftest.$ac_ext >&5
34337
34338 eval "$as_ac_var=no"
34339 fi
34340 rm -f conftest.err conftest.$ac_objext \
34341       conftest$ac_exeext conftest.$ac_ext
34342 fi
34343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34345 if test `eval echo '${'$as_ac_var'}'` = yes; then
34346   cat >>confdefs.h <<_ACEOF
34347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34348 _ACEOF
34349  ice_have_fputs=yes
34350 fi
34351 done
34352
34353 if test "${ice_have_fputs}" = yes; then
34354 echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
34355 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6
34356 if test "${ice_cv_have_fputs_decl+set}" = set; then
34357   echo $ECHO_N "(cached) $ECHO_C" >&6
34358 else
34359
34360 ice_cv_have_fputs_decl=no
34361 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34362 ice_re_word='(^|[^a-zA-Z0-9_])'
34363 for header in stdio.h; do
34364 # Check for ordinary declaration
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 #include <$header>
34372
34373 _ACEOF
34374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34375   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
34376   ice_cv_have_fputs_decl=yes
34377 fi
34378 rm -f conftest*
34379
34380 if test "$ice_cv_have_fputs_decl" = yes; then
34381         break
34382 fi
34383 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34384 cat >conftest.$ac_ext <<_ACEOF
34385 /* confdefs.h.  */
34386 _ACEOF
34387 cat confdefs.h >>conftest.$ac_ext
34388 cat >>conftest.$ac_ext <<_ACEOF
34389 /* end confdefs.h.  */
34390 #include <$header>
34391
34392 _ACEOF
34393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34394   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34395   ice_cv_have_fputs_decl=yes
34396 fi
34397 rm -f conftest*
34398
34399 if test "$ice_cv_have_fputs_decl" = yes; then
34400         break
34401 fi
34402 done
34403
34404 fi
34405
34406 echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
34407 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6
34408 if test "$ice_cv_have_fputs_decl" = yes; then
34409
34410 cat >>confdefs.h <<_ACEOF
34411 #define HAVE_FPUTS_DECL 1
34412 _ACEOF
34413
34414 fi
34415 fi
34416
34417
34418 ice_have_fread=no
34419
34420 for ac_func in fread
34421 do
34422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34423 echo "$as_me:$LINENO: checking for $ac_func" >&5
34424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34425 if eval "test \"\${$as_ac_var+set}\" = set"; then
34426   echo $ECHO_N "(cached) $ECHO_C" >&6
34427 else
34428   cat >conftest.$ac_ext <<_ACEOF
34429 /* confdefs.h.  */
34430 _ACEOF
34431 cat confdefs.h >>conftest.$ac_ext
34432 cat >>conftest.$ac_ext <<_ACEOF
34433 /* end confdefs.h.  */
34434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34436 #define $ac_func innocuous_$ac_func
34437
34438 /* System header to define __stub macros and hopefully few prototypes,
34439     which can conflict with char $ac_func (); below.
34440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34441     <limits.h> exists even on freestanding compilers.  */
34442
34443 #ifdef __STDC__
34444 # include <limits.h>
34445 #else
34446 # include <assert.h>
34447 #endif
34448
34449 #undef $ac_func
34450
34451 /* Override any gcc2 internal prototype to avoid an error.  */
34452 #ifdef __cplusplus
34453 extern "C"
34454 {
34455 #endif
34456 /* We use char because int might match the return type of a gcc2
34457    builtin and then its argument prototype would still apply.  */
34458 char $ac_func ();
34459 /* The GNU C library defines this for functions which it implements
34460     to always fail with ENOSYS.  Some functions are actually named
34461     something starting with __ and the normal name is an alias.  */
34462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34463 choke me
34464 #else
34465 char (*f) () = $ac_func;
34466 #endif
34467 #ifdef __cplusplus
34468 }
34469 #endif
34470
34471 int
34472 main ()
34473 {
34474 return f != $ac_func;
34475   ;
34476   return 0;
34477 }
34478 _ACEOF
34479 rm -f conftest.$ac_objext conftest$ac_exeext
34480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34481   (eval $ac_link) 2>conftest.er1
34482   ac_status=$?
34483   grep -v '^ *+' conftest.er1 >conftest.err
34484   rm -f conftest.er1
34485   cat conftest.err >&5
34486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487   (exit $ac_status); } &&
34488          { ac_try='test -z "$ac_c_werror_flag"
34489                          || test ! -s conftest.err'
34490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34491   (eval $ac_try) 2>&5
34492   ac_status=$?
34493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34494   (exit $ac_status); }; } &&
34495          { ac_try='test -s conftest$ac_exeext'
34496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34497   (eval $ac_try) 2>&5
34498   ac_status=$?
34499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500   (exit $ac_status); }; }; then
34501   eval "$as_ac_var=yes"
34502 else
34503   echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34505
34506 eval "$as_ac_var=no"
34507 fi
34508 rm -f conftest.err conftest.$ac_objext \
34509       conftest$ac_exeext conftest.$ac_ext
34510 fi
34511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34513 if test `eval echo '${'$as_ac_var'}'` = yes; then
34514   cat >>confdefs.h <<_ACEOF
34515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34516 _ACEOF
34517  ice_have_fread=yes
34518 fi
34519 done
34520
34521 if test "${ice_have_fread}" = yes; then
34522 echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
34523 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6
34524 if test "${ice_cv_have_fread_decl+set}" = set; then
34525   echo $ECHO_N "(cached) $ECHO_C" >&6
34526 else
34527
34528 ice_cv_have_fread_decl=no
34529 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34530 ice_re_word='(^|[^a-zA-Z0-9_])'
34531 for header in stdio.h stdlib.h; do
34532 # Check for ordinary declaration
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 #include <$header>
34540
34541 _ACEOF
34542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34543   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
34544   ice_cv_have_fread_decl=yes
34545 fi
34546 rm -f conftest*
34547
34548 if test "$ice_cv_have_fread_decl" = yes; then
34549         break
34550 fi
34551 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34552 cat >conftest.$ac_ext <<_ACEOF
34553 /* confdefs.h.  */
34554 _ACEOF
34555 cat confdefs.h >>conftest.$ac_ext
34556 cat >>conftest.$ac_ext <<_ACEOF
34557 /* end confdefs.h.  */
34558 #include <$header>
34559
34560 _ACEOF
34561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34562   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34563   ice_cv_have_fread_decl=yes
34564 fi
34565 rm -f conftest*
34566
34567 if test "$ice_cv_have_fread_decl" = yes; then
34568         break
34569 fi
34570 done
34571
34572 fi
34573
34574 echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
34575 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6
34576 if test "$ice_cv_have_fread_decl" = yes; then
34577
34578 cat >>confdefs.h <<_ACEOF
34579 #define HAVE_FREAD_DECL 1
34580 _ACEOF
34581
34582 fi
34583 fi
34584
34585
34586 ice_have_fseek=no
34587
34588 for ac_func in fseek
34589 do
34590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34591 echo "$as_me:$LINENO: checking for $ac_func" >&5
34592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34593 if eval "test \"\${$as_ac_var+set}\" = set"; then
34594   echo $ECHO_N "(cached) $ECHO_C" >&6
34595 else
34596   cat >conftest.$ac_ext <<_ACEOF
34597 /* confdefs.h.  */
34598 _ACEOF
34599 cat confdefs.h >>conftest.$ac_ext
34600 cat >>conftest.$ac_ext <<_ACEOF
34601 /* end confdefs.h.  */
34602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34604 #define $ac_func innocuous_$ac_func
34605
34606 /* System header to define __stub macros and hopefully few prototypes,
34607     which can conflict with char $ac_func (); below.
34608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34609     <limits.h> exists even on freestanding compilers.  */
34610
34611 #ifdef __STDC__
34612 # include <limits.h>
34613 #else
34614 # include <assert.h>
34615 #endif
34616
34617 #undef $ac_func
34618
34619 /* Override any gcc2 internal prototype to avoid an error.  */
34620 #ifdef __cplusplus
34621 extern "C"
34622 {
34623 #endif
34624 /* We use char because int might match the return type of a gcc2
34625    builtin and then its argument prototype would still apply.  */
34626 char $ac_func ();
34627 /* The GNU C library defines this for functions which it implements
34628     to always fail with ENOSYS.  Some functions are actually named
34629     something starting with __ and the normal name is an alias.  */
34630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34631 choke me
34632 #else
34633 char (*f) () = $ac_func;
34634 #endif
34635 #ifdef __cplusplus
34636 }
34637 #endif
34638
34639 int
34640 main ()
34641 {
34642 return f != $ac_func;
34643   ;
34644   return 0;
34645 }
34646 _ACEOF
34647 rm -f conftest.$ac_objext conftest$ac_exeext
34648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34649   (eval $ac_link) 2>conftest.er1
34650   ac_status=$?
34651   grep -v '^ *+' conftest.er1 >conftest.err
34652   rm -f conftest.er1
34653   cat conftest.err >&5
34654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34655   (exit $ac_status); } &&
34656          { ac_try='test -z "$ac_c_werror_flag"
34657                          || test ! -s conftest.err'
34658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34659   (eval $ac_try) 2>&5
34660   ac_status=$?
34661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662   (exit $ac_status); }; } &&
34663          { ac_try='test -s conftest$ac_exeext'
34664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34665   (eval $ac_try) 2>&5
34666   ac_status=$?
34667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668   (exit $ac_status); }; }; then
34669   eval "$as_ac_var=yes"
34670 else
34671   echo "$as_me: failed program was:" >&5
34672 sed 's/^/| /' conftest.$ac_ext >&5
34673
34674 eval "$as_ac_var=no"
34675 fi
34676 rm -f conftest.err conftest.$ac_objext \
34677       conftest$ac_exeext conftest.$ac_ext
34678 fi
34679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34681 if test `eval echo '${'$as_ac_var'}'` = yes; then
34682   cat >>confdefs.h <<_ACEOF
34683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34684 _ACEOF
34685  ice_have_fseek=yes
34686 fi
34687 done
34688
34689 if test "${ice_have_fseek}" = yes; then
34690 echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
34691 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6
34692 if test "${ice_cv_have_fseek_decl+set}" = set; then
34693   echo $ECHO_N "(cached) $ECHO_C" >&6
34694 else
34695
34696 ice_cv_have_fseek_decl=no
34697 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34698 ice_re_word='(^|[^a-zA-Z0-9_])'
34699 for header in stdio.h; do
34700 # Check for ordinary declaration
34701 cat >conftest.$ac_ext <<_ACEOF
34702 /* confdefs.h.  */
34703 _ACEOF
34704 cat confdefs.h >>conftest.$ac_ext
34705 cat >>conftest.$ac_ext <<_ACEOF
34706 /* end confdefs.h.  */
34707 #include <$header>
34708
34709 _ACEOF
34710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34711   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
34712   ice_cv_have_fseek_decl=yes
34713 fi
34714 rm -f conftest*
34715
34716 if test "$ice_cv_have_fseek_decl" = yes; then
34717         break
34718 fi
34719 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34720 cat >conftest.$ac_ext <<_ACEOF
34721 /* confdefs.h.  */
34722 _ACEOF
34723 cat confdefs.h >>conftest.$ac_ext
34724 cat >>conftest.$ac_ext <<_ACEOF
34725 /* end confdefs.h.  */
34726 #include <$header>
34727
34728 _ACEOF
34729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34730   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34731   ice_cv_have_fseek_decl=yes
34732 fi
34733 rm -f conftest*
34734
34735 if test "$ice_cv_have_fseek_decl" = yes; then
34736         break
34737 fi
34738 done
34739
34740 fi
34741
34742 echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
34743 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6
34744 if test "$ice_cv_have_fseek_decl" = yes; then
34745
34746 cat >>confdefs.h <<_ACEOF
34747 #define HAVE_FSEEK_DECL 1
34748 _ACEOF
34749
34750 fi
34751 fi
34752
34753
34754 ice_have_fwrite=no
34755
34756 for ac_func in fwrite
34757 do
34758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34759 echo "$as_me:$LINENO: checking for $ac_func" >&5
34760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34761 if eval "test \"\${$as_ac_var+set}\" = set"; then
34762   echo $ECHO_N "(cached) $ECHO_C" >&6
34763 else
34764   cat >conftest.$ac_ext <<_ACEOF
34765 /* confdefs.h.  */
34766 _ACEOF
34767 cat confdefs.h >>conftest.$ac_ext
34768 cat >>conftest.$ac_ext <<_ACEOF
34769 /* end confdefs.h.  */
34770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34772 #define $ac_func innocuous_$ac_func
34773
34774 /* System header to define __stub macros and hopefully few prototypes,
34775     which can conflict with char $ac_func (); below.
34776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34777     <limits.h> exists even on freestanding compilers.  */
34778
34779 #ifdef __STDC__
34780 # include <limits.h>
34781 #else
34782 # include <assert.h>
34783 #endif
34784
34785 #undef $ac_func
34786
34787 /* Override any gcc2 internal prototype to avoid an error.  */
34788 #ifdef __cplusplus
34789 extern "C"
34790 {
34791 #endif
34792 /* We use char because int might match the return type of a gcc2
34793    builtin and then its argument prototype would still apply.  */
34794 char $ac_func ();
34795 /* The GNU C library defines this for functions which it implements
34796     to always fail with ENOSYS.  Some functions are actually named
34797     something starting with __ and the normal name is an alias.  */
34798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34799 choke me
34800 #else
34801 char (*f) () = $ac_func;
34802 #endif
34803 #ifdef __cplusplus
34804 }
34805 #endif
34806
34807 int
34808 main ()
34809 {
34810 return f != $ac_func;
34811   ;
34812   return 0;
34813 }
34814 _ACEOF
34815 rm -f conftest.$ac_objext conftest$ac_exeext
34816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34817   (eval $ac_link) 2>conftest.er1
34818   ac_status=$?
34819   grep -v '^ *+' conftest.er1 >conftest.err
34820   rm -f conftest.er1
34821   cat conftest.err >&5
34822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34823   (exit $ac_status); } &&
34824          { ac_try='test -z "$ac_c_werror_flag"
34825                          || test ! -s conftest.err'
34826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34827   (eval $ac_try) 2>&5
34828   ac_status=$?
34829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34830   (exit $ac_status); }; } &&
34831          { ac_try='test -s conftest$ac_exeext'
34832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34833   (eval $ac_try) 2>&5
34834   ac_status=$?
34835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836   (exit $ac_status); }; }; then
34837   eval "$as_ac_var=yes"
34838 else
34839   echo "$as_me: failed program was:" >&5
34840 sed 's/^/| /' conftest.$ac_ext >&5
34841
34842 eval "$as_ac_var=no"
34843 fi
34844 rm -f conftest.err conftest.$ac_objext \
34845       conftest$ac_exeext conftest.$ac_ext
34846 fi
34847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34849 if test `eval echo '${'$as_ac_var'}'` = yes; then
34850   cat >>confdefs.h <<_ACEOF
34851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34852 _ACEOF
34853  ice_have_fwrite=yes
34854 fi
34855 done
34856
34857 if test "${ice_have_fwrite}" = yes; then
34858 echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
34859 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6
34860 if test "${ice_cv_have_fwrite_decl+set}" = set; then
34861   echo $ECHO_N "(cached) $ECHO_C" >&6
34862 else
34863
34864 ice_cv_have_fwrite_decl=no
34865 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34866 ice_re_word='(^|[^a-zA-Z0-9_])'
34867 for header in stdio.h stdlib.h; do
34868 # Check for ordinary declaration
34869 cat >conftest.$ac_ext <<_ACEOF
34870 /* confdefs.h.  */
34871 _ACEOF
34872 cat confdefs.h >>conftest.$ac_ext
34873 cat >>conftest.$ac_ext <<_ACEOF
34874 /* end confdefs.h.  */
34875 #include <$header>
34876
34877 _ACEOF
34878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34879   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
34880   ice_cv_have_fwrite_decl=yes
34881 fi
34882 rm -f conftest*
34883
34884 if test "$ice_cv_have_fwrite_decl" = yes; then
34885         break
34886 fi
34887 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34888 cat >conftest.$ac_ext <<_ACEOF
34889 /* confdefs.h.  */
34890 _ACEOF
34891 cat confdefs.h >>conftest.$ac_ext
34892 cat >>conftest.$ac_ext <<_ACEOF
34893 /* end confdefs.h.  */
34894 #include <$header>
34895
34896 _ACEOF
34897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34898   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34899   ice_cv_have_fwrite_decl=yes
34900 fi
34901 rm -f conftest*
34902
34903 if test "$ice_cv_have_fwrite_decl" = yes; then
34904         break
34905 fi
34906 done
34907
34908 fi
34909
34910 echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
34911 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6
34912 if test "$ice_cv_have_fwrite_decl" = yes; then
34913
34914 cat >>confdefs.h <<_ACEOF
34915 #define HAVE_FWRITE_DECL 1
34916 _ACEOF
34917
34918 fi
34919 fi
34920
34921
34922 for ac_func in getcwd
34923 do
34924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34925 echo "$as_me:$LINENO: checking for $ac_func" >&5
34926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34927 if eval "test \"\${$as_ac_var+set}\" = set"; then
34928   echo $ECHO_N "(cached) $ECHO_C" >&6
34929 else
34930   cat >conftest.$ac_ext <<_ACEOF
34931 /* confdefs.h.  */
34932 _ACEOF
34933 cat confdefs.h >>conftest.$ac_ext
34934 cat >>conftest.$ac_ext <<_ACEOF
34935 /* end confdefs.h.  */
34936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34938 #define $ac_func innocuous_$ac_func
34939
34940 /* System header to define __stub macros and hopefully few prototypes,
34941     which can conflict with char $ac_func (); below.
34942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34943     <limits.h> exists even on freestanding compilers.  */
34944
34945 #ifdef __STDC__
34946 # include <limits.h>
34947 #else
34948 # include <assert.h>
34949 #endif
34950
34951 #undef $ac_func
34952
34953 /* Override any gcc2 internal prototype to avoid an error.  */
34954 #ifdef __cplusplus
34955 extern "C"
34956 {
34957 #endif
34958 /* We use char because int might match the return type of a gcc2
34959    builtin and then its argument prototype would still apply.  */
34960 char $ac_func ();
34961 /* The GNU C library defines this for functions which it implements
34962     to always fail with ENOSYS.  Some functions are actually named
34963     something starting with __ and the normal name is an alias.  */
34964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34965 choke me
34966 #else
34967 char (*f) () = $ac_func;
34968 #endif
34969 #ifdef __cplusplus
34970 }
34971 #endif
34972
34973 int
34974 main ()
34975 {
34976 return f != $ac_func;
34977   ;
34978   return 0;
34979 }
34980 _ACEOF
34981 rm -f conftest.$ac_objext conftest$ac_exeext
34982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34983   (eval $ac_link) 2>conftest.er1
34984   ac_status=$?
34985   grep -v '^ *+' conftest.er1 >conftest.err
34986   rm -f conftest.er1
34987   cat conftest.err >&5
34988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34989   (exit $ac_status); } &&
34990          { ac_try='test -z "$ac_c_werror_flag"
34991                          || test ! -s conftest.err'
34992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34993   (eval $ac_try) 2>&5
34994   ac_status=$?
34995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996   (exit $ac_status); }; } &&
34997          { ac_try='test -s conftest$ac_exeext'
34998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34999   (eval $ac_try) 2>&5
35000   ac_status=$?
35001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002   (exit $ac_status); }; }; then
35003   eval "$as_ac_var=yes"
35004 else
35005   echo "$as_me: failed program was:" >&5
35006 sed 's/^/| /' conftest.$ac_ext >&5
35007
35008 eval "$as_ac_var=no"
35009 fi
35010 rm -f conftest.err conftest.$ac_objext \
35011       conftest$ac_exeext conftest.$ac_ext
35012 fi
35013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35015 if test `eval echo '${'$as_ac_var'}'` = yes; then
35016   cat >>confdefs.h <<_ACEOF
35017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35018 _ACEOF
35019
35020 else
35021   case $LIBOBJS in
35022     "$ac_func.$ac_objext"   | \
35023   *" $ac_func.$ac_objext"   | \
35024     "$ac_func.$ac_objext "* | \
35025   *" $ac_func.$ac_objext "* ) ;;
35026   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
35027 esac
35028
35029 fi
35030 done
35031
35032
35033
35034 for ac_func in getfsent
35035 do
35036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35037 echo "$as_me:$LINENO: checking for $ac_func" >&5
35038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35039 if eval "test \"\${$as_ac_var+set}\" = set"; then
35040   echo $ECHO_N "(cached) $ECHO_C" >&6
35041 else
35042   cat >conftest.$ac_ext <<_ACEOF
35043 /* confdefs.h.  */
35044 _ACEOF
35045 cat confdefs.h >>conftest.$ac_ext
35046 cat >>conftest.$ac_ext <<_ACEOF
35047 /* end confdefs.h.  */
35048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35050 #define $ac_func innocuous_$ac_func
35051
35052 /* System header to define __stub macros and hopefully few prototypes,
35053     which can conflict with char $ac_func (); below.
35054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35055     <limits.h> exists even on freestanding compilers.  */
35056
35057 #ifdef __STDC__
35058 # include <limits.h>
35059 #else
35060 # include <assert.h>
35061 #endif
35062
35063 #undef $ac_func
35064
35065 /* Override any gcc2 internal prototype to avoid an error.  */
35066 #ifdef __cplusplus
35067 extern "C"
35068 {
35069 #endif
35070 /* We use char because int might match the return type of a gcc2
35071    builtin and then its argument prototype would still apply.  */
35072 char $ac_func ();
35073 /* The GNU C library defines this for functions which it implements
35074     to always fail with ENOSYS.  Some functions are actually named
35075     something starting with __ and the normal name is an alias.  */
35076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35077 choke me
35078 #else
35079 char (*f) () = $ac_func;
35080 #endif
35081 #ifdef __cplusplus
35082 }
35083 #endif
35084
35085 int
35086 main ()
35087 {
35088 return f != $ac_func;
35089   ;
35090   return 0;
35091 }
35092 _ACEOF
35093 rm -f conftest.$ac_objext conftest$ac_exeext
35094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35095   (eval $ac_link) 2>conftest.er1
35096   ac_status=$?
35097   grep -v '^ *+' conftest.er1 >conftest.err
35098   rm -f conftest.er1
35099   cat conftest.err >&5
35100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101   (exit $ac_status); } &&
35102          { ac_try='test -z "$ac_c_werror_flag"
35103                          || test ! -s conftest.err'
35104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35105   (eval $ac_try) 2>&5
35106   ac_status=$?
35107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35108   (exit $ac_status); }; } &&
35109          { ac_try='test -s conftest$ac_exeext'
35110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35111   (eval $ac_try) 2>&5
35112   ac_status=$?
35113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35114   (exit $ac_status); }; }; then
35115   eval "$as_ac_var=yes"
35116 else
35117   echo "$as_me: failed program was:" >&5
35118 sed 's/^/| /' conftest.$ac_ext >&5
35119
35120 eval "$as_ac_var=no"
35121 fi
35122 rm -f conftest.err conftest.$ac_objext \
35123       conftest$ac_exeext conftest.$ac_ext
35124 fi
35125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35127 if test `eval echo '${'$as_ac_var'}'` = yes; then
35128   cat >>confdefs.h <<_ACEOF
35129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35130 _ACEOF
35131
35132 fi
35133 done
35134
35135
35136 ice_have_gethostname=no
35137
35138 for ac_func in gethostname
35139 do
35140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35141 echo "$as_me:$LINENO: checking for $ac_func" >&5
35142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35143 if eval "test \"\${$as_ac_var+set}\" = set"; then
35144   echo $ECHO_N "(cached) $ECHO_C" >&6
35145 else
35146   cat >conftest.$ac_ext <<_ACEOF
35147 /* confdefs.h.  */
35148 _ACEOF
35149 cat confdefs.h >>conftest.$ac_ext
35150 cat >>conftest.$ac_ext <<_ACEOF
35151 /* end confdefs.h.  */
35152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35154 #define $ac_func innocuous_$ac_func
35155
35156 /* System header to define __stub macros and hopefully few prototypes,
35157     which can conflict with char $ac_func (); below.
35158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35159     <limits.h> exists even on freestanding compilers.  */
35160
35161 #ifdef __STDC__
35162 # include <limits.h>
35163 #else
35164 # include <assert.h>
35165 #endif
35166
35167 #undef $ac_func
35168
35169 /* Override any gcc2 internal prototype to avoid an error.  */
35170 #ifdef __cplusplus
35171 extern "C"
35172 {
35173 #endif
35174 /* We use char because int might match the return type of a gcc2
35175    builtin and then its argument prototype would still apply.  */
35176 char $ac_func ();
35177 /* The GNU C library defines this for functions which it implements
35178     to always fail with ENOSYS.  Some functions are actually named
35179     something starting with __ and the normal name is an alias.  */
35180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35181 choke me
35182 #else
35183 char (*f) () = $ac_func;
35184 #endif
35185 #ifdef __cplusplus
35186 }
35187 #endif
35188
35189 int
35190 main ()
35191 {
35192 return f != $ac_func;
35193   ;
35194   return 0;
35195 }
35196 _ACEOF
35197 rm -f conftest.$ac_objext conftest$ac_exeext
35198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35199   (eval $ac_link) 2>conftest.er1
35200   ac_status=$?
35201   grep -v '^ *+' conftest.er1 >conftest.err
35202   rm -f conftest.er1
35203   cat conftest.err >&5
35204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205   (exit $ac_status); } &&
35206          { ac_try='test -z "$ac_c_werror_flag"
35207                          || test ! -s conftest.err'
35208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35209   (eval $ac_try) 2>&5
35210   ac_status=$?
35211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35212   (exit $ac_status); }; } &&
35213          { ac_try='test -s conftest$ac_exeext'
35214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35215   (eval $ac_try) 2>&5
35216   ac_status=$?
35217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35218   (exit $ac_status); }; }; then
35219   eval "$as_ac_var=yes"
35220 else
35221   echo "$as_me: failed program was:" >&5
35222 sed 's/^/| /' conftest.$ac_ext >&5
35223
35224 eval "$as_ac_var=no"
35225 fi
35226 rm -f conftest.err conftest.$ac_objext \
35227       conftest$ac_exeext conftest.$ac_ext
35228 fi
35229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35231 if test `eval echo '${'$as_ac_var'}'` = yes; then
35232   cat >>confdefs.h <<_ACEOF
35233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35234 _ACEOF
35235  ice_have_gethostname=yes
35236 fi
35237 done
35238
35239 if test "${ice_have_gethostname}" = yes; then
35240 echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
35241 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6
35242 if test "${ice_cv_have_gethostname_decl+set}" = set; then
35243   echo $ECHO_N "(cached) $ECHO_C" >&6
35244 else
35245
35246 ice_cv_have_gethostname_decl=no
35247 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35248 ice_re_word='(^|[^a-zA-Z0-9_])'
35249 for header in unistd.h; do
35250 # Check for ordinary declaration
35251 cat >conftest.$ac_ext <<_ACEOF
35252 /* confdefs.h.  */
35253 _ACEOF
35254 cat confdefs.h >>conftest.$ac_ext
35255 cat >>conftest.$ac_ext <<_ACEOF
35256 /* end confdefs.h.  */
35257 #include <$header>
35258
35259 _ACEOF
35260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35261   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
35262   ice_cv_have_gethostname_decl=yes
35263 fi
35264 rm -f conftest*
35265
35266 if test "$ice_cv_have_gethostname_decl" = yes; then
35267         break
35268 fi
35269 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35270 cat >conftest.$ac_ext <<_ACEOF
35271 /* confdefs.h.  */
35272 _ACEOF
35273 cat confdefs.h >>conftest.$ac_ext
35274 cat >>conftest.$ac_ext <<_ACEOF
35275 /* end confdefs.h.  */
35276 #include <$header>
35277
35278 _ACEOF
35279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35280   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35281   ice_cv_have_gethostname_decl=yes
35282 fi
35283 rm -f conftest*
35284
35285 if test "$ice_cv_have_gethostname_decl" = yes; then
35286         break
35287 fi
35288 done
35289
35290 fi
35291
35292 echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
35293 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6
35294 if test "$ice_cv_have_gethostname_decl" = yes; then
35295
35296 cat >>confdefs.h <<_ACEOF
35297 #define HAVE_GETHOSTNAME_DECL 1
35298 _ACEOF
35299
35300 fi
35301 fi
35302
35303 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
35304 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
35305 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
35306 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
35307   echo $ECHO_N "(cached) $ECHO_C" >&6
35308 else
35309   ac_check_lib_save_LIBS=$LIBS
35310 LIBS="-lsun  $LIBS"
35311 cat >conftest.$ac_ext <<_ACEOF
35312 /* confdefs.h.  */
35313 _ACEOF
35314 cat confdefs.h >>conftest.$ac_ext
35315 cat >>conftest.$ac_ext <<_ACEOF
35316 /* end confdefs.h.  */
35317
35318 /* Override any gcc2 internal prototype to avoid an error.  */
35319 #ifdef __cplusplus
35320 extern "C"
35321 #endif
35322 /* We use char because int might match the return type of a gcc2
35323    builtin and then its argument prototype would still apply.  */
35324 char getmntent ();
35325 int
35326 main ()
35327 {
35328 getmntent ();
35329   ;
35330   return 0;
35331 }
35332 _ACEOF
35333 rm -f conftest.$ac_objext conftest$ac_exeext
35334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35335   (eval $ac_link) 2>conftest.er1
35336   ac_status=$?
35337   grep -v '^ *+' conftest.er1 >conftest.err
35338   rm -f conftest.er1
35339   cat conftest.err >&5
35340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35341   (exit $ac_status); } &&
35342          { ac_try='test -z "$ac_c_werror_flag"
35343                          || test ! -s conftest.err'
35344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35345   (eval $ac_try) 2>&5
35346   ac_status=$?
35347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35348   (exit $ac_status); }; } &&
35349          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
35355   ac_cv_lib_sun_getmntent=yes
35356 else
35357   echo "$as_me: failed program was:" >&5
35358 sed 's/^/| /' conftest.$ac_ext >&5
35359
35360 ac_cv_lib_sun_getmntent=no
35361 fi
35362 rm -f conftest.err conftest.$ac_objext \
35363       conftest$ac_exeext conftest.$ac_ext
35364 LIBS=$ac_check_lib_save_LIBS
35365 fi
35366 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
35367 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
35368 if test $ac_cv_lib_sun_getmntent = yes; then
35369   LIBS="-lsun $LIBS"
35370 else
35371   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
35372 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
35373 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
35374   echo $ECHO_N "(cached) $ECHO_C" >&6
35375 else
35376   ac_check_lib_save_LIBS=$LIBS
35377 LIBS="-lseq  $LIBS"
35378 cat >conftest.$ac_ext <<_ACEOF
35379 /* confdefs.h.  */
35380 _ACEOF
35381 cat confdefs.h >>conftest.$ac_ext
35382 cat >>conftest.$ac_ext <<_ACEOF
35383 /* end confdefs.h.  */
35384
35385 /* Override any gcc2 internal prototype to avoid an error.  */
35386 #ifdef __cplusplus
35387 extern "C"
35388 #endif
35389 /* We use char because int might match the return type of a gcc2
35390    builtin and then its argument prototype would still apply.  */
35391 char getmntent ();
35392 int
35393 main ()
35394 {
35395 getmntent ();
35396   ;
35397   return 0;
35398 }
35399 _ACEOF
35400 rm -f conftest.$ac_objext conftest$ac_exeext
35401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35402   (eval $ac_link) 2>conftest.er1
35403   ac_status=$?
35404   grep -v '^ *+' conftest.er1 >conftest.err
35405   rm -f conftest.er1
35406   cat conftest.err >&5
35407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408   (exit $ac_status); } &&
35409          { ac_try='test -z "$ac_c_werror_flag"
35410                          || test ! -s conftest.err'
35411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35412   (eval $ac_try) 2>&5
35413   ac_status=$?
35414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35415   (exit $ac_status); }; } &&
35416          { ac_try='test -s conftest$ac_exeext'
35417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35418   (eval $ac_try) 2>&5
35419   ac_status=$?
35420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35421   (exit $ac_status); }; }; then
35422   ac_cv_lib_seq_getmntent=yes
35423 else
35424   echo "$as_me: failed program was:" >&5
35425 sed 's/^/| /' conftest.$ac_ext >&5
35426
35427 ac_cv_lib_seq_getmntent=no
35428 fi
35429 rm -f conftest.err conftest.$ac_objext \
35430       conftest$ac_exeext conftest.$ac_ext
35431 LIBS=$ac_check_lib_save_LIBS
35432 fi
35433 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
35434 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
35435 if test $ac_cv_lib_seq_getmntent = yes; then
35436   LIBS="-lseq $LIBS"
35437 else
35438   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
35439 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
35440 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
35441   echo $ECHO_N "(cached) $ECHO_C" >&6
35442 else
35443   ac_check_lib_save_LIBS=$LIBS
35444 LIBS="-lgen  $LIBS"
35445 cat >conftest.$ac_ext <<_ACEOF
35446 /* confdefs.h.  */
35447 _ACEOF
35448 cat confdefs.h >>conftest.$ac_ext
35449 cat >>conftest.$ac_ext <<_ACEOF
35450 /* end confdefs.h.  */
35451
35452 /* Override any gcc2 internal prototype to avoid an error.  */
35453 #ifdef __cplusplus
35454 extern "C"
35455 #endif
35456 /* We use char because int might match the return type of a gcc2
35457    builtin and then its argument prototype would still apply.  */
35458 char getmntent ();
35459 int
35460 main ()
35461 {
35462 getmntent ();
35463   ;
35464   return 0;
35465 }
35466 _ACEOF
35467 rm -f conftest.$ac_objext conftest$ac_exeext
35468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35469   (eval $ac_link) 2>conftest.er1
35470   ac_status=$?
35471   grep -v '^ *+' conftest.er1 >conftest.err
35472   rm -f conftest.er1
35473   cat conftest.err >&5
35474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475   (exit $ac_status); } &&
35476          { ac_try='test -z "$ac_c_werror_flag"
35477                          || test ! -s conftest.err'
35478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35479   (eval $ac_try) 2>&5
35480   ac_status=$?
35481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35482   (exit $ac_status); }; } &&
35483          { ac_try='test -s conftest$ac_exeext'
35484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35485   (eval $ac_try) 2>&5
35486   ac_status=$?
35487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35488   (exit $ac_status); }; }; then
35489   ac_cv_lib_gen_getmntent=yes
35490 else
35491   echo "$as_me: failed program was:" >&5
35492 sed 's/^/| /' conftest.$ac_ext >&5
35493
35494 ac_cv_lib_gen_getmntent=no
35495 fi
35496 rm -f conftest.err conftest.$ac_objext \
35497       conftest$ac_exeext conftest.$ac_ext
35498 LIBS=$ac_check_lib_save_LIBS
35499 fi
35500 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
35501 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
35502 if test $ac_cv_lib_gen_getmntent = yes; then
35503   LIBS="-lgen $LIBS"
35504 fi
35505
35506 fi
35507
35508 fi
35509
35510
35511 for ac_func in getmntent
35512 do
35513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35514 echo "$as_me:$LINENO: checking for $ac_func" >&5
35515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35516 if eval "test \"\${$as_ac_var+set}\" = set"; then
35517   echo $ECHO_N "(cached) $ECHO_C" >&6
35518 else
35519   cat >conftest.$ac_ext <<_ACEOF
35520 /* confdefs.h.  */
35521 _ACEOF
35522 cat confdefs.h >>conftest.$ac_ext
35523 cat >>conftest.$ac_ext <<_ACEOF
35524 /* end confdefs.h.  */
35525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35526    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35527 #define $ac_func innocuous_$ac_func
35528
35529 /* System header to define __stub macros and hopefully few prototypes,
35530     which can conflict with char $ac_func (); below.
35531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35532     <limits.h> exists even on freestanding compilers.  */
35533
35534 #ifdef __STDC__
35535 # include <limits.h>
35536 #else
35537 # include <assert.h>
35538 #endif
35539
35540 #undef $ac_func
35541
35542 /* Override any gcc2 internal prototype to avoid an error.  */
35543 #ifdef __cplusplus
35544 extern "C"
35545 {
35546 #endif
35547 /* We use char because int might match the return type of a gcc2
35548    builtin and then its argument prototype would still apply.  */
35549 char $ac_func ();
35550 /* The GNU C library defines this for functions which it implements
35551     to always fail with ENOSYS.  Some functions are actually named
35552     something starting with __ and the normal name is an alias.  */
35553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35554 choke me
35555 #else
35556 char (*f) () = $ac_func;
35557 #endif
35558 #ifdef __cplusplus
35559 }
35560 #endif
35561
35562 int
35563 main ()
35564 {
35565 return f != $ac_func;
35566   ;
35567   return 0;
35568 }
35569 _ACEOF
35570 rm -f conftest.$ac_objext conftest$ac_exeext
35571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35572   (eval $ac_link) 2>conftest.er1
35573   ac_status=$?
35574   grep -v '^ *+' conftest.er1 >conftest.err
35575   rm -f conftest.er1
35576   cat conftest.err >&5
35577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35578   (exit $ac_status); } &&
35579          { ac_try='test -z "$ac_c_werror_flag"
35580                          || test ! -s conftest.err'
35581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35582   (eval $ac_try) 2>&5
35583   ac_status=$?
35584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585   (exit $ac_status); }; } &&
35586          { ac_try='test -s conftest$ac_exeext'
35587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35588   (eval $ac_try) 2>&5
35589   ac_status=$?
35590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35591   (exit $ac_status); }; }; then
35592   eval "$as_ac_var=yes"
35593 else
35594   echo "$as_me: failed program was:" >&5
35595 sed 's/^/| /' conftest.$ac_ext >&5
35596
35597 eval "$as_ac_var=no"
35598 fi
35599 rm -f conftest.err conftest.$ac_objext \
35600       conftest$ac_exeext conftest.$ac_ext
35601 fi
35602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35604 if test `eval echo '${'$as_ac_var'}'` = yes; then
35605   cat >>confdefs.h <<_ACEOF
35606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35607 _ACEOF
35608
35609 fi
35610 done
35611
35612
35613
35614 ice_have_getopt=no
35615
35616 for ac_func in getopt
35617 do
35618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35619 echo "$as_me:$LINENO: checking for $ac_func" >&5
35620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35621 if eval "test \"\${$as_ac_var+set}\" = set"; then
35622   echo $ECHO_N "(cached) $ECHO_C" >&6
35623 else
35624   cat >conftest.$ac_ext <<_ACEOF
35625 /* confdefs.h.  */
35626 _ACEOF
35627 cat confdefs.h >>conftest.$ac_ext
35628 cat >>conftest.$ac_ext <<_ACEOF
35629 /* end confdefs.h.  */
35630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35632 #define $ac_func innocuous_$ac_func
35633
35634 /* System header to define __stub macros and hopefully few prototypes,
35635     which can conflict with char $ac_func (); below.
35636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35637     <limits.h> exists even on freestanding compilers.  */
35638
35639 #ifdef __STDC__
35640 # include <limits.h>
35641 #else
35642 # include <assert.h>
35643 #endif
35644
35645 #undef $ac_func
35646
35647 /* Override any gcc2 internal prototype to avoid an error.  */
35648 #ifdef __cplusplus
35649 extern "C"
35650 {
35651 #endif
35652 /* We use char because int might match the return type of a gcc2
35653    builtin and then its argument prototype would still apply.  */
35654 char $ac_func ();
35655 /* The GNU C library defines this for functions which it implements
35656     to always fail with ENOSYS.  Some functions are actually named
35657     something starting with __ and the normal name is an alias.  */
35658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35659 choke me
35660 #else
35661 char (*f) () = $ac_func;
35662 #endif
35663 #ifdef __cplusplus
35664 }
35665 #endif
35666
35667 int
35668 main ()
35669 {
35670 return f != $ac_func;
35671   ;
35672   return 0;
35673 }
35674 _ACEOF
35675 rm -f conftest.$ac_objext conftest$ac_exeext
35676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35677   (eval $ac_link) 2>conftest.er1
35678   ac_status=$?
35679   grep -v '^ *+' conftest.er1 >conftest.err
35680   rm -f conftest.er1
35681   cat conftest.err >&5
35682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35683   (exit $ac_status); } &&
35684          { ac_try='test -z "$ac_c_werror_flag"
35685                          || test ! -s conftest.err'
35686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35687   (eval $ac_try) 2>&5
35688   ac_status=$?
35689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690   (exit $ac_status); }; } &&
35691          { ac_try='test -s conftest$ac_exeext'
35692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35693   (eval $ac_try) 2>&5
35694   ac_status=$?
35695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696   (exit $ac_status); }; }; then
35697   eval "$as_ac_var=yes"
35698 else
35699   echo "$as_me: failed program was:" >&5
35700 sed 's/^/| /' conftest.$ac_ext >&5
35701
35702 eval "$as_ac_var=no"
35703 fi
35704 rm -f conftest.err conftest.$ac_objext \
35705       conftest$ac_exeext conftest.$ac_ext
35706 fi
35707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35709 if test `eval echo '${'$as_ac_var'}'` = yes; then
35710   cat >>confdefs.h <<_ACEOF
35711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35712 _ACEOF
35713  ice_have_getopt=yes
35714 fi
35715 done
35716
35717 if test "${ice_have_getopt}" = yes; then
35718 echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
35719 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6
35720 if test "${ice_cv_have_getopt_decl+set}" = set; then
35721   echo $ECHO_N "(cached) $ECHO_C" >&6
35722 else
35723
35724 ice_cv_have_getopt_decl=no
35725 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35726 ice_re_word='(^|[^a-zA-Z0-9_])'
35727 for header in stdlib.h unistd.h libc.h; do
35728 # Check for ordinary declaration
35729 cat >conftest.$ac_ext <<_ACEOF
35730 /* confdefs.h.  */
35731 _ACEOF
35732 cat confdefs.h >>conftest.$ac_ext
35733 cat >>conftest.$ac_ext <<_ACEOF
35734 /* end confdefs.h.  */
35735 #include <$header>
35736
35737 _ACEOF
35738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35739   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
35740   ice_cv_have_getopt_decl=yes
35741 fi
35742 rm -f conftest*
35743
35744 if test "$ice_cv_have_getopt_decl" = yes; then
35745         break
35746 fi
35747 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35748 cat >conftest.$ac_ext <<_ACEOF
35749 /* confdefs.h.  */
35750 _ACEOF
35751 cat confdefs.h >>conftest.$ac_ext
35752 cat >>conftest.$ac_ext <<_ACEOF
35753 /* end confdefs.h.  */
35754 #include <$header>
35755
35756 _ACEOF
35757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35758   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35759   ice_cv_have_getopt_decl=yes
35760 fi
35761 rm -f conftest*
35762
35763 if test "$ice_cv_have_getopt_decl" = yes; then
35764         break
35765 fi
35766 done
35767
35768 fi
35769
35770 echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
35771 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6
35772 if test "$ice_cv_have_getopt_decl" = yes; then
35773
35774 cat >>confdefs.h <<_ACEOF
35775 #define HAVE_GETOPT_DECL 1
35776 _ACEOF
35777
35778 fi
35779 fi
35780
35781
35782 ice_have_getpeername=no
35783
35784 for ac_func in getpeername
35785 do
35786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35787 echo "$as_me:$LINENO: checking for $ac_func" >&5
35788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35789 if eval "test \"\${$as_ac_var+set}\" = set"; then
35790   echo $ECHO_N "(cached) $ECHO_C" >&6
35791 else
35792   cat >conftest.$ac_ext <<_ACEOF
35793 /* confdefs.h.  */
35794 _ACEOF
35795 cat confdefs.h >>conftest.$ac_ext
35796 cat >>conftest.$ac_ext <<_ACEOF
35797 /* end confdefs.h.  */
35798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35800 #define $ac_func innocuous_$ac_func
35801
35802 /* System header to define __stub macros and hopefully few prototypes,
35803     which can conflict with char $ac_func (); below.
35804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35805     <limits.h> exists even on freestanding compilers.  */
35806
35807 #ifdef __STDC__
35808 # include <limits.h>
35809 #else
35810 # include <assert.h>
35811 #endif
35812
35813 #undef $ac_func
35814
35815 /* Override any gcc2 internal prototype to avoid an error.  */
35816 #ifdef __cplusplus
35817 extern "C"
35818 {
35819 #endif
35820 /* We use char because int might match the return type of a gcc2
35821    builtin and then its argument prototype would still apply.  */
35822 char $ac_func ();
35823 /* The GNU C library defines this for functions which it implements
35824     to always fail with ENOSYS.  Some functions are actually named
35825     something starting with __ and the normal name is an alias.  */
35826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35827 choke me
35828 #else
35829 char (*f) () = $ac_func;
35830 #endif
35831 #ifdef __cplusplus
35832 }
35833 #endif
35834
35835 int
35836 main ()
35837 {
35838 return f != $ac_func;
35839   ;
35840   return 0;
35841 }
35842 _ACEOF
35843 rm -f conftest.$ac_objext conftest$ac_exeext
35844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35845   (eval $ac_link) 2>conftest.er1
35846   ac_status=$?
35847   grep -v '^ *+' conftest.er1 >conftest.err
35848   rm -f conftest.er1
35849   cat conftest.err >&5
35850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35851   (exit $ac_status); } &&
35852          { ac_try='test -z "$ac_c_werror_flag"
35853                          || test ! -s conftest.err'
35854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35855   (eval $ac_try) 2>&5
35856   ac_status=$?
35857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35858   (exit $ac_status); }; } &&
35859          { ac_try='test -s conftest$ac_exeext'
35860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35861   (eval $ac_try) 2>&5
35862   ac_status=$?
35863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864   (exit $ac_status); }; }; then
35865   eval "$as_ac_var=yes"
35866 else
35867   echo "$as_me: failed program was:" >&5
35868 sed 's/^/| /' conftest.$ac_ext >&5
35869
35870 eval "$as_ac_var=no"
35871 fi
35872 rm -f conftest.err conftest.$ac_objext \
35873       conftest$ac_exeext conftest.$ac_ext
35874 fi
35875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35877 if test `eval echo '${'$as_ac_var'}'` = yes; then
35878   cat >>confdefs.h <<_ACEOF
35879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35880 _ACEOF
35881  ice_have_getpeername=yes
35882 fi
35883 done
35884
35885 if test "${ice_have_getpeername}" = yes; then
35886 echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
35887 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
35888 if test "${ice_cv_have_getpeername_decl+set}" = set; then
35889   echo $ECHO_N "(cached) $ECHO_C" >&6
35890 else
35891
35892 ice_cv_have_getpeername_decl=no
35893 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35894 ice_re_word='(^|[^a-zA-Z0-9_])'
35895 for header in sys/types.h sys/socket.h; do
35896 # Check for ordinary declaration
35897 cat >conftest.$ac_ext <<_ACEOF
35898 /* confdefs.h.  */
35899 _ACEOF
35900 cat confdefs.h >>conftest.$ac_ext
35901 cat >>conftest.$ac_ext <<_ACEOF
35902 /* end confdefs.h.  */
35903 #include <$header>
35904
35905 _ACEOF
35906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35907   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
35908   ice_cv_have_getpeername_decl=yes
35909 fi
35910 rm -f conftest*
35911
35912 if test "$ice_cv_have_getpeername_decl" = yes; then
35913         break
35914 fi
35915 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35916 cat >conftest.$ac_ext <<_ACEOF
35917 /* confdefs.h.  */
35918 _ACEOF
35919 cat confdefs.h >>conftest.$ac_ext
35920 cat >>conftest.$ac_ext <<_ACEOF
35921 /* end confdefs.h.  */
35922 #include <$header>
35923
35924 _ACEOF
35925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35926   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35927   ice_cv_have_getpeername_decl=yes
35928 fi
35929 rm -f conftest*
35930
35931 if test "$ice_cv_have_getpeername_decl" = yes; then
35932         break
35933 fi
35934 done
35935
35936 fi
35937
35938 echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
35939 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6
35940 if test "$ice_cv_have_getpeername_decl" = yes; then
35941
35942 cat >>confdefs.h <<_ACEOF
35943 #define HAVE_GETPEERNAME_DECL 1
35944 _ACEOF
35945
35946 fi
35947 fi
35948
35949
35950 for ac_func in getpgrp
35951 do
35952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35953 echo "$as_me:$LINENO: checking for $ac_func" >&5
35954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35955 if eval "test \"\${$as_ac_var+set}\" = set"; then
35956   echo $ECHO_N "(cached) $ECHO_C" >&6
35957 else
35958   cat >conftest.$ac_ext <<_ACEOF
35959 /* confdefs.h.  */
35960 _ACEOF
35961 cat confdefs.h >>conftest.$ac_ext
35962 cat >>conftest.$ac_ext <<_ACEOF
35963 /* end confdefs.h.  */
35964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35966 #define $ac_func innocuous_$ac_func
35967
35968 /* System header to define __stub macros and hopefully few prototypes,
35969     which can conflict with char $ac_func (); below.
35970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35971     <limits.h> exists even on freestanding compilers.  */
35972
35973 #ifdef __STDC__
35974 # include <limits.h>
35975 #else
35976 # include <assert.h>
35977 #endif
35978
35979 #undef $ac_func
35980
35981 /* Override any gcc2 internal prototype to avoid an error.  */
35982 #ifdef __cplusplus
35983 extern "C"
35984 {
35985 #endif
35986 /* We use char because int might match the return type of a gcc2
35987    builtin and then its argument prototype would still apply.  */
35988 char $ac_func ();
35989 /* The GNU C library defines this for functions which it implements
35990     to always fail with ENOSYS.  Some functions are actually named
35991     something starting with __ and the normal name is an alias.  */
35992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35993 choke me
35994 #else
35995 char (*f) () = $ac_func;
35996 #endif
35997 #ifdef __cplusplus
35998 }
35999 #endif
36000
36001 int
36002 main ()
36003 {
36004 return f != $ac_func;
36005   ;
36006   return 0;
36007 }
36008 _ACEOF
36009 rm -f conftest.$ac_objext conftest$ac_exeext
36010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36011   (eval $ac_link) 2>conftest.er1
36012   ac_status=$?
36013   grep -v '^ *+' conftest.er1 >conftest.err
36014   rm -f conftest.er1
36015   cat conftest.err >&5
36016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36017   (exit $ac_status); } &&
36018          { ac_try='test -z "$ac_c_werror_flag"
36019                          || test ! -s conftest.err'
36020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36021   (eval $ac_try) 2>&5
36022   ac_status=$?
36023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36024   (exit $ac_status); }; } &&
36025          { ac_try='test -s conftest$ac_exeext'
36026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36027   (eval $ac_try) 2>&5
36028   ac_status=$?
36029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36030   (exit $ac_status); }; }; then
36031   eval "$as_ac_var=yes"
36032 else
36033   echo "$as_me: failed program was:" >&5
36034 sed 's/^/| /' conftest.$ac_ext >&5
36035
36036 eval "$as_ac_var=no"
36037 fi
36038 rm -f conftest.err conftest.$ac_objext \
36039       conftest$ac_exeext conftest.$ac_ext
36040 fi
36041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36043 if test `eval echo '${'$as_ac_var'}'` = yes; then
36044   cat >>confdefs.h <<_ACEOF
36045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36046 _ACEOF
36047
36048 fi
36049 done
36050
36051 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
36052 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
36053 if test "${ac_cv_func_getpgrp_void+set}" = set; then
36054   echo $ECHO_N "(cached) $ECHO_C" >&6
36055 else
36056   # Use it with a single arg.
36057 cat >conftest.$ac_ext <<_ACEOF
36058 /* confdefs.h.  */
36059 _ACEOF
36060 cat confdefs.h >>conftest.$ac_ext
36061 cat >>conftest.$ac_ext <<_ACEOF
36062 /* end confdefs.h.  */
36063 $ac_includes_default
36064 int
36065 main ()
36066 {
36067 getpgrp (0);
36068   ;
36069   return 0;
36070 }
36071 _ACEOF
36072 rm -f conftest.$ac_objext
36073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36074   (eval $ac_compile) 2>conftest.er1
36075   ac_status=$?
36076   grep -v '^ *+' conftest.er1 >conftest.err
36077   rm -f conftest.er1
36078   cat conftest.err >&5
36079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36080   (exit $ac_status); } &&
36081          { ac_try='test -z "$ac_c_werror_flag"
36082                          || test ! -s conftest.err'
36083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36084   (eval $ac_try) 2>&5
36085   ac_status=$?
36086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36087   (exit $ac_status); }; } &&
36088          { ac_try='test -s conftest.$ac_objext'
36089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36090   (eval $ac_try) 2>&5
36091   ac_status=$?
36092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36093   (exit $ac_status); }; }; then
36094   ac_cv_func_getpgrp_void=no
36095 else
36096   echo "$as_me: failed program was:" >&5
36097 sed 's/^/| /' conftest.$ac_ext >&5
36098
36099 ac_cv_func_getpgrp_void=yes
36100 fi
36101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36102
36103 fi
36104 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
36105 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
36106 if test $ac_cv_func_getpgrp_void = yes; then
36107
36108 cat >>confdefs.h <<\_ACEOF
36109 #define GETPGRP_VOID 1
36110 _ACEOF
36111
36112 fi
36113
36114
36115 ice_have_getsockname=no
36116
36117 for ac_func in getsockname
36118 do
36119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36120 echo "$as_me:$LINENO: checking for $ac_func" >&5
36121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36122 if eval "test \"\${$as_ac_var+set}\" = set"; then
36123   echo $ECHO_N "(cached) $ECHO_C" >&6
36124 else
36125   cat >conftest.$ac_ext <<_ACEOF
36126 /* confdefs.h.  */
36127 _ACEOF
36128 cat confdefs.h >>conftest.$ac_ext
36129 cat >>conftest.$ac_ext <<_ACEOF
36130 /* end confdefs.h.  */
36131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36133 #define $ac_func innocuous_$ac_func
36134
36135 /* System header to define __stub macros and hopefully few prototypes,
36136     which can conflict with char $ac_func (); below.
36137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36138     <limits.h> exists even on freestanding compilers.  */
36139
36140 #ifdef __STDC__
36141 # include <limits.h>
36142 #else
36143 # include <assert.h>
36144 #endif
36145
36146 #undef $ac_func
36147
36148 /* Override any gcc2 internal prototype to avoid an error.  */
36149 #ifdef __cplusplus
36150 extern "C"
36151 {
36152 #endif
36153 /* We use char because int might match the return type of a gcc2
36154    builtin and then its argument prototype would still apply.  */
36155 char $ac_func ();
36156 /* The GNU C library defines this for functions which it implements
36157     to always fail with ENOSYS.  Some functions are actually named
36158     something starting with __ and the normal name is an alias.  */
36159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36160 choke me
36161 #else
36162 char (*f) () = $ac_func;
36163 #endif
36164 #ifdef __cplusplus
36165 }
36166 #endif
36167
36168 int
36169 main ()
36170 {
36171 return f != $ac_func;
36172   ;
36173   return 0;
36174 }
36175 _ACEOF
36176 rm -f conftest.$ac_objext conftest$ac_exeext
36177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36178   (eval $ac_link) 2>conftest.er1
36179   ac_status=$?
36180   grep -v '^ *+' conftest.er1 >conftest.err
36181   rm -f conftest.er1
36182   cat conftest.err >&5
36183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36184   (exit $ac_status); } &&
36185          { ac_try='test -z "$ac_c_werror_flag"
36186                          || test ! -s conftest.err'
36187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36188   (eval $ac_try) 2>&5
36189   ac_status=$?
36190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36191   (exit $ac_status); }; } &&
36192          { ac_try='test -s conftest$ac_exeext'
36193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36194   (eval $ac_try) 2>&5
36195   ac_status=$?
36196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36197   (exit $ac_status); }; }; then
36198   eval "$as_ac_var=yes"
36199 else
36200   echo "$as_me: failed program was:" >&5
36201 sed 's/^/| /' conftest.$ac_ext >&5
36202
36203 eval "$as_ac_var=no"
36204 fi
36205 rm -f conftest.err conftest.$ac_objext \
36206       conftest$ac_exeext conftest.$ac_ext
36207 fi
36208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36210 if test `eval echo '${'$as_ac_var'}'` = yes; then
36211   cat >>confdefs.h <<_ACEOF
36212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36213 _ACEOF
36214  ice_have_getsockname=yes
36215 fi
36216 done
36217
36218 if test "${ice_have_getsockname}" = yes; then
36219 echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
36220 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
36221 if test "${ice_cv_have_getsockname_decl+set}" = set; then
36222   echo $ECHO_N "(cached) $ECHO_C" >&6
36223 else
36224
36225 ice_cv_have_getsockname_decl=no
36226 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36227 ice_re_word='(^|[^a-zA-Z0-9_])'
36228 for header in sys/types.h sys/socket.h; do
36229 # Check for ordinary declaration
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 #include <$header>
36237
36238 _ACEOF
36239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36240   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
36241   ice_cv_have_getsockname_decl=yes
36242 fi
36243 rm -f conftest*
36244
36245 if test "$ice_cv_have_getsockname_decl" = yes; then
36246         break
36247 fi
36248 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36249 cat >conftest.$ac_ext <<_ACEOF
36250 /* confdefs.h.  */
36251 _ACEOF
36252 cat confdefs.h >>conftest.$ac_ext
36253 cat >>conftest.$ac_ext <<_ACEOF
36254 /* end confdefs.h.  */
36255 #include <$header>
36256
36257 _ACEOF
36258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36259   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36260   ice_cv_have_getsockname_decl=yes
36261 fi
36262 rm -f conftest*
36263
36264 if test "$ice_cv_have_getsockname_decl" = yes; then
36265         break
36266 fi
36267 done
36268
36269 fi
36270
36271 echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
36272 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6
36273 if test "$ice_cv_have_getsockname_decl" = yes; then
36274
36275 cat >>confdefs.h <<_ACEOF
36276 #define HAVE_GETSOCKNAME_DECL 1
36277 _ACEOF
36278
36279 fi
36280 fi
36281
36282
36283 ice_have_getsockopt=no
36284
36285 for ac_func in getsockopt
36286 do
36287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36288 echo "$as_me:$LINENO: checking for $ac_func" >&5
36289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36290 if eval "test \"\${$as_ac_var+set}\" = set"; then
36291   echo $ECHO_N "(cached) $ECHO_C" >&6
36292 else
36293   cat >conftest.$ac_ext <<_ACEOF
36294 /* confdefs.h.  */
36295 _ACEOF
36296 cat confdefs.h >>conftest.$ac_ext
36297 cat >>conftest.$ac_ext <<_ACEOF
36298 /* end confdefs.h.  */
36299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36300    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36301 #define $ac_func innocuous_$ac_func
36302
36303 /* System header to define __stub macros and hopefully few prototypes,
36304     which can conflict with char $ac_func (); below.
36305     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36306     <limits.h> exists even on freestanding compilers.  */
36307
36308 #ifdef __STDC__
36309 # include <limits.h>
36310 #else
36311 # include <assert.h>
36312 #endif
36313
36314 #undef $ac_func
36315
36316 /* Override any gcc2 internal prototype to avoid an error.  */
36317 #ifdef __cplusplus
36318 extern "C"
36319 {
36320 #endif
36321 /* We use char because int might match the return type of a gcc2
36322    builtin and then its argument prototype would still apply.  */
36323 char $ac_func ();
36324 /* The GNU C library defines this for functions which it implements
36325     to always fail with ENOSYS.  Some functions are actually named
36326     something starting with __ and the normal name is an alias.  */
36327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36328 choke me
36329 #else
36330 char (*f) () = $ac_func;
36331 #endif
36332 #ifdef __cplusplus
36333 }
36334 #endif
36335
36336 int
36337 main ()
36338 {
36339 return f != $ac_func;
36340   ;
36341   return 0;
36342 }
36343 _ACEOF
36344 rm -f conftest.$ac_objext conftest$ac_exeext
36345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36346   (eval $ac_link) 2>conftest.er1
36347   ac_status=$?
36348   grep -v '^ *+' conftest.er1 >conftest.err
36349   rm -f conftest.er1
36350   cat conftest.err >&5
36351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36352   (exit $ac_status); } &&
36353          { ac_try='test -z "$ac_c_werror_flag"
36354                          || test ! -s conftest.err'
36355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36356   (eval $ac_try) 2>&5
36357   ac_status=$?
36358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359   (exit $ac_status); }; } &&
36360          { ac_try='test -s conftest$ac_exeext'
36361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36362   (eval $ac_try) 2>&5
36363   ac_status=$?
36364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365   (exit $ac_status); }; }; then
36366   eval "$as_ac_var=yes"
36367 else
36368   echo "$as_me: failed program was:" >&5
36369 sed 's/^/| /' conftest.$ac_ext >&5
36370
36371 eval "$as_ac_var=no"
36372 fi
36373 rm -f conftest.err conftest.$ac_objext \
36374       conftest$ac_exeext conftest.$ac_ext
36375 fi
36376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36378 if test `eval echo '${'$as_ac_var'}'` = yes; then
36379   cat >>confdefs.h <<_ACEOF
36380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36381 _ACEOF
36382  ice_have_getsockopt=yes
36383 fi
36384 done
36385
36386 if test "${ice_have_getsockopt}" = yes; then
36387 echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
36388 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
36389 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
36390   echo $ECHO_N "(cached) $ECHO_C" >&6
36391 else
36392
36393 ice_cv_have_getsockopt_decl=no
36394 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36395 ice_re_word='(^|[^a-zA-Z0-9_])'
36396 for header in sys/types.h sys/socket.h; do
36397 # Check for ordinary declaration
36398 cat >conftest.$ac_ext <<_ACEOF
36399 /* confdefs.h.  */
36400 _ACEOF
36401 cat confdefs.h >>conftest.$ac_ext
36402 cat >>conftest.$ac_ext <<_ACEOF
36403 /* end confdefs.h.  */
36404 #include <$header>
36405
36406 _ACEOF
36407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36408   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
36409   ice_cv_have_getsockopt_decl=yes
36410 fi
36411 rm -f conftest*
36412
36413 if test "$ice_cv_have_getsockopt_decl" = yes; then
36414         break
36415 fi
36416 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36417 cat >conftest.$ac_ext <<_ACEOF
36418 /* confdefs.h.  */
36419 _ACEOF
36420 cat confdefs.h >>conftest.$ac_ext
36421 cat >>conftest.$ac_ext <<_ACEOF
36422 /* end confdefs.h.  */
36423 #include <$header>
36424
36425 _ACEOF
36426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36427   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36428   ice_cv_have_getsockopt_decl=yes
36429 fi
36430 rm -f conftest*
36431
36432 if test "$ice_cv_have_getsockopt_decl" = yes; then
36433         break
36434 fi
36435 done
36436
36437 fi
36438
36439 echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
36440 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6
36441 if test "$ice_cv_have_getsockopt_decl" = yes; then
36442
36443 cat >>confdefs.h <<_ACEOF
36444 #define HAVE_GETSOCKOPT_DECL 1
36445 _ACEOF
36446
36447 fi
36448 fi
36449
36450
36451 ice_have_gettimeofday=no
36452
36453 for ac_func in gettimeofday
36454 do
36455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36456 echo "$as_me:$LINENO: checking for $ac_func" >&5
36457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36458 if eval "test \"\${$as_ac_var+set}\" = set"; then
36459   echo $ECHO_N "(cached) $ECHO_C" >&6
36460 else
36461   cat >conftest.$ac_ext <<_ACEOF
36462 /* confdefs.h.  */
36463 _ACEOF
36464 cat confdefs.h >>conftest.$ac_ext
36465 cat >>conftest.$ac_ext <<_ACEOF
36466 /* end confdefs.h.  */
36467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36469 #define $ac_func innocuous_$ac_func
36470
36471 /* System header to define __stub macros and hopefully few prototypes,
36472     which can conflict with char $ac_func (); below.
36473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36474     <limits.h> exists even on freestanding compilers.  */
36475
36476 #ifdef __STDC__
36477 # include <limits.h>
36478 #else
36479 # include <assert.h>
36480 #endif
36481
36482 #undef $ac_func
36483
36484 /* Override any gcc2 internal prototype to avoid an error.  */
36485 #ifdef __cplusplus
36486 extern "C"
36487 {
36488 #endif
36489 /* We use char because int might match the return type of a gcc2
36490    builtin and then its argument prototype would still apply.  */
36491 char $ac_func ();
36492 /* The GNU C library defines this for functions which it implements
36493     to always fail with ENOSYS.  Some functions are actually named
36494     something starting with __ and the normal name is an alias.  */
36495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36496 choke me
36497 #else
36498 char (*f) () = $ac_func;
36499 #endif
36500 #ifdef __cplusplus
36501 }
36502 #endif
36503
36504 int
36505 main ()
36506 {
36507 return f != $ac_func;
36508   ;
36509   return 0;
36510 }
36511 _ACEOF
36512 rm -f conftest.$ac_objext conftest$ac_exeext
36513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36514   (eval $ac_link) 2>conftest.er1
36515   ac_status=$?
36516   grep -v '^ *+' conftest.er1 >conftest.err
36517   rm -f conftest.er1
36518   cat conftest.err >&5
36519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520   (exit $ac_status); } &&
36521          { ac_try='test -z "$ac_c_werror_flag"
36522                          || test ! -s conftest.err'
36523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36524   (eval $ac_try) 2>&5
36525   ac_status=$?
36526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527   (exit $ac_status); }; } &&
36528          { ac_try='test -s conftest$ac_exeext'
36529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36530   (eval $ac_try) 2>&5
36531   ac_status=$?
36532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533   (exit $ac_status); }; }; then
36534   eval "$as_ac_var=yes"
36535 else
36536   echo "$as_me: failed program was:" >&5
36537 sed 's/^/| /' conftest.$ac_ext >&5
36538
36539 eval "$as_ac_var=no"
36540 fi
36541 rm -f conftest.err conftest.$ac_objext \
36542       conftest$ac_exeext conftest.$ac_ext
36543 fi
36544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36546 if test `eval echo '${'$as_ac_var'}'` = yes; then
36547   cat >>confdefs.h <<_ACEOF
36548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36549 _ACEOF
36550  ice_have_gettimeofday=yes
36551 fi
36552 done
36553
36554 if test "${ice_have_gettimeofday}" = yes; then
36555 echo "$as_me:$LINENO: checking for gettimeofday declaration in time.h sys/time.h" >&5
36556 echo $ECHO_N "checking for gettimeofday declaration in time.h sys/time.h... $ECHO_C" >&6
36557 if test "${ice_cv_have_gettimeofday_decl+set}" = set; then
36558   echo $ECHO_N "(cached) $ECHO_C" >&6
36559 else
36560
36561 ice_cv_have_gettimeofday_decl=no
36562 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36563 ice_re_word='(^|[^a-zA-Z0-9_])'
36564 for header in time.h sys/time.h; do
36565 # Check for ordinary declaration
36566 cat >conftest.$ac_ext <<_ACEOF
36567 /* confdefs.h.  */
36568 _ACEOF
36569 cat confdefs.h >>conftest.$ac_ext
36570 cat >>conftest.$ac_ext <<_ACEOF
36571 /* end confdefs.h.  */
36572 #include <$header>
36573
36574 _ACEOF
36575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36576   $EGREP "${ice_re_word}gettimeofday[   ]*\(" >/dev/null 2>&1; then
36577   ice_cv_have_gettimeofday_decl=yes
36578 fi
36579 rm -f conftest*
36580
36581 if test "$ice_cv_have_gettimeofday_decl" = yes; then
36582         break
36583 fi
36584 # Check for "fixed" declaration like "getpid _PARAMS((int))"
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 #include <$header>
36592
36593 _ACEOF
36594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36595   $EGREP "${ice_re_word}gettimeofday[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36596   ice_cv_have_gettimeofday_decl=yes
36597 fi
36598 rm -f conftest*
36599
36600 if test "$ice_cv_have_gettimeofday_decl" = yes; then
36601         break
36602 fi
36603 done
36604
36605 fi
36606
36607 echo "$as_me:$LINENO: result: $ice_cv_have_gettimeofday_decl" >&5
36608 echo "${ECHO_T}$ice_cv_have_gettimeofday_decl" >&6
36609 if test "$ice_cv_have_gettimeofday_decl" = yes; then
36610
36611 cat >>confdefs.h <<_ACEOF
36612 #define HAVE_GETTIMEOFDAY_DECL 1
36613 _ACEOF
36614
36615 fi
36616 fi
36617
36618
36619
36620         echo "$as_me:$LINENO: checking for gettimeofday number of arguments" >&5
36621 echo $ECHO_N "checking for gettimeofday number of arguments... $ECHO_C" >&6
36622 if test "${amanda_cv_gettimeofday_args+set}" = set; then
36623   echo $ECHO_N "(cached) $ECHO_C" >&6
36624 else
36625
36626                 cat >conftest.$ac_ext <<_ACEOF
36627 /* confdefs.h.  */
36628 _ACEOF
36629 cat confdefs.h >>conftest.$ac_ext
36630 cat >>conftest.$ac_ext <<_ACEOF
36631 /* end confdefs.h.  */
36632
36633 #ifdef TIME_WITH_SYS_TIME
36634 #  include <sys/time.h>
36635 #  include <time.h>
36636 #else
36637 #  ifdef HAVE_SYS_TIME_H
36638 #    include <sys/time.h>
36639 #  else
36640 #    include <time.h>
36641 #  endif
36642 #endif
36643
36644 int
36645 main ()
36646 {
36647
36648                         struct timeval val;
36649                         struct timezone zone;
36650                         gettimeofday(&val, &zone);
36651
36652   ;
36653   return 0;
36654 }
36655 _ACEOF
36656 rm -f conftest.$ac_objext
36657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36658   (eval $ac_compile) 2>conftest.er1
36659   ac_status=$?
36660   grep -v '^ *+' conftest.er1 >conftest.err
36661   rm -f conftest.er1
36662   cat conftest.err >&5
36663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664   (exit $ac_status); } &&
36665          { ac_try='test -z "$ac_c_werror_flag"
36666                          || test ! -s conftest.err'
36667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36668   (eval $ac_try) 2>&5
36669   ac_status=$?
36670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36671   (exit $ac_status); }; } &&
36672          { ac_try='test -s conftest.$ac_objext'
36673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36674   (eval $ac_try) 2>&5
36675   ac_status=$?
36676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36677   (exit $ac_status); }; }; then
36678   amanda_cv_gettimeofday_args=2
36679 else
36680   echo "$as_me: failed program was:" >&5
36681 sed 's/^/| /' conftest.$ac_ext >&5
36682
36683 amanda_cv_gettimeofday_args=1
36684
36685 fi
36686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36687
36688
36689 fi
36690 echo "$as_me:$LINENO: result: $amanda_cv_gettimeofday_args" >&5
36691 echo "${ECHO_T}$amanda_cv_gettimeofday_args" >&6
36692         if test "$amanda_cv_gettimeofday_args" = 2; then
36693
36694 cat >>confdefs.h <<\_ACEOF
36695 #define HAVE_TWO_ARG_GETTIMEOFDAY 1
36696 _ACEOF
36697
36698         fi
36699
36700
36701
36702
36703
36704 for ac_func in getvfsent initgroups isascii
36705 do
36706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36707 echo "$as_me:$LINENO: checking for $ac_func" >&5
36708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36709 if eval "test \"\${$as_ac_var+set}\" = set"; then
36710   echo $ECHO_N "(cached) $ECHO_C" >&6
36711 else
36712   cat >conftest.$ac_ext <<_ACEOF
36713 /* confdefs.h.  */
36714 _ACEOF
36715 cat confdefs.h >>conftest.$ac_ext
36716 cat >>conftest.$ac_ext <<_ACEOF
36717 /* end confdefs.h.  */
36718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36720 #define $ac_func innocuous_$ac_func
36721
36722 /* System header to define __stub macros and hopefully few prototypes,
36723     which can conflict with char $ac_func (); below.
36724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36725     <limits.h> exists even on freestanding compilers.  */
36726
36727 #ifdef __STDC__
36728 # include <limits.h>
36729 #else
36730 # include <assert.h>
36731 #endif
36732
36733 #undef $ac_func
36734
36735 /* Override any gcc2 internal prototype to avoid an error.  */
36736 #ifdef __cplusplus
36737 extern "C"
36738 {
36739 #endif
36740 /* We use char because int might match the return type of a gcc2
36741    builtin and then its argument prototype would still apply.  */
36742 char $ac_func ();
36743 /* The GNU C library defines this for functions which it implements
36744     to always fail with ENOSYS.  Some functions are actually named
36745     something starting with __ and the normal name is an alias.  */
36746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36747 choke me
36748 #else
36749 char (*f) () = $ac_func;
36750 #endif
36751 #ifdef __cplusplus
36752 }
36753 #endif
36754
36755 int
36756 main ()
36757 {
36758 return f != $ac_func;
36759   ;
36760   return 0;
36761 }
36762 _ACEOF
36763 rm -f conftest.$ac_objext conftest$ac_exeext
36764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36765   (eval $ac_link) 2>conftest.er1
36766   ac_status=$?
36767   grep -v '^ *+' conftest.er1 >conftest.err
36768   rm -f conftest.er1
36769   cat conftest.err >&5
36770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771   (exit $ac_status); } &&
36772          { ac_try='test -z "$ac_c_werror_flag"
36773                          || test ! -s conftest.err'
36774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36775   (eval $ac_try) 2>&5
36776   ac_status=$?
36777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36778   (exit $ac_status); }; } &&
36779          { ac_try='test -s conftest$ac_exeext'
36780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36781   (eval $ac_try) 2>&5
36782   ac_status=$?
36783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36784   (exit $ac_status); }; }; then
36785   eval "$as_ac_var=yes"
36786 else
36787   echo "$as_me: failed program was:" >&5
36788 sed 's/^/| /' conftest.$ac_ext >&5
36789
36790 eval "$as_ac_var=no"
36791 fi
36792 rm -f conftest.err conftest.$ac_objext \
36793       conftest$ac_exeext conftest.$ac_ext
36794 fi
36795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36797 if test `eval echo '${'$as_ac_var'}'` = yes; then
36798   cat >>confdefs.h <<_ACEOF
36799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36800 _ACEOF
36801
36802 fi
36803 done
36804
36805
36806 ice_have_initgroups=no
36807
36808 for ac_func in initgroups
36809 do
36810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36811 echo "$as_me:$LINENO: checking for $ac_func" >&5
36812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36813 if eval "test \"\${$as_ac_var+set}\" = set"; then
36814   echo $ECHO_N "(cached) $ECHO_C" >&6
36815 else
36816   cat >conftest.$ac_ext <<_ACEOF
36817 /* confdefs.h.  */
36818 _ACEOF
36819 cat confdefs.h >>conftest.$ac_ext
36820 cat >>conftest.$ac_ext <<_ACEOF
36821 /* end confdefs.h.  */
36822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36824 #define $ac_func innocuous_$ac_func
36825
36826 /* System header to define __stub macros and hopefully few prototypes,
36827     which can conflict with char $ac_func (); below.
36828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36829     <limits.h> exists even on freestanding compilers.  */
36830
36831 #ifdef __STDC__
36832 # include <limits.h>
36833 #else
36834 # include <assert.h>
36835 #endif
36836
36837 #undef $ac_func
36838
36839 /* Override any gcc2 internal prototype to avoid an error.  */
36840 #ifdef __cplusplus
36841 extern "C"
36842 {
36843 #endif
36844 /* We use char because int might match the return type of a gcc2
36845    builtin and then its argument prototype would still apply.  */
36846 char $ac_func ();
36847 /* The GNU C library defines this for functions which it implements
36848     to always fail with ENOSYS.  Some functions are actually named
36849     something starting with __ and the normal name is an alias.  */
36850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36851 choke me
36852 #else
36853 char (*f) () = $ac_func;
36854 #endif
36855 #ifdef __cplusplus
36856 }
36857 #endif
36858
36859 int
36860 main ()
36861 {
36862 return f != $ac_func;
36863   ;
36864   return 0;
36865 }
36866 _ACEOF
36867 rm -f conftest.$ac_objext conftest$ac_exeext
36868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36869   (eval $ac_link) 2>conftest.er1
36870   ac_status=$?
36871   grep -v '^ *+' conftest.er1 >conftest.err
36872   rm -f conftest.er1
36873   cat conftest.err >&5
36874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36875   (exit $ac_status); } &&
36876          { ac_try='test -z "$ac_c_werror_flag"
36877                          || test ! -s conftest.err'
36878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36879   (eval $ac_try) 2>&5
36880   ac_status=$?
36881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882   (exit $ac_status); }; } &&
36883          { ac_try='test -s conftest$ac_exeext'
36884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36885   (eval $ac_try) 2>&5
36886   ac_status=$?
36887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36888   (exit $ac_status); }; }; then
36889   eval "$as_ac_var=yes"
36890 else
36891   echo "$as_me: failed program was:" >&5
36892 sed 's/^/| /' conftest.$ac_ext >&5
36893
36894 eval "$as_ac_var=no"
36895 fi
36896 rm -f conftest.err conftest.$ac_objext \
36897       conftest$ac_exeext conftest.$ac_ext
36898 fi
36899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36901 if test `eval echo '${'$as_ac_var'}'` = yes; then
36902   cat >>confdefs.h <<_ACEOF
36903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36904 _ACEOF
36905  ice_have_initgroups=yes
36906 fi
36907 done
36908
36909 if test "${ice_have_initgroups}" = yes; then
36910 echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
36911 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6
36912 if test "${ice_cv_have_initgroups_decl+set}" = set; then
36913   echo $ECHO_N "(cached) $ECHO_C" >&6
36914 else
36915
36916 ice_cv_have_initgroups_decl=no
36917 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36918 ice_re_word='(^|[^a-zA-Z0-9_])'
36919 for header in grp.h sys/types.h unistd.h libc.h; do
36920 # Check for ordinary declaration
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 #include <$header>
36928
36929 _ACEOF
36930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36931   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
36932   ice_cv_have_initgroups_decl=yes
36933 fi
36934 rm -f conftest*
36935
36936 if test "$ice_cv_have_initgroups_decl" = yes; then
36937         break
36938 fi
36939 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36940 cat >conftest.$ac_ext <<_ACEOF
36941 /* confdefs.h.  */
36942 _ACEOF
36943 cat confdefs.h >>conftest.$ac_ext
36944 cat >>conftest.$ac_ext <<_ACEOF
36945 /* end confdefs.h.  */
36946 #include <$header>
36947
36948 _ACEOF
36949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36950   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36951   ice_cv_have_initgroups_decl=yes
36952 fi
36953 rm -f conftest*
36954
36955 if test "$ice_cv_have_initgroups_decl" = yes; then
36956         break
36957 fi
36958 done
36959
36960 fi
36961
36962 echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
36963 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6
36964 if test "$ice_cv_have_initgroups_decl" = yes; then
36965
36966 cat >>confdefs.h <<_ACEOF
36967 #define HAVE_INITGROUPS_DECL 1
36968 _ACEOF
36969
36970 fi
36971 fi
36972
36973
36974 ice_have_ioctl=no
36975
36976 for ac_func in ioctl
36977 do
36978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36979 echo "$as_me:$LINENO: checking for $ac_func" >&5
36980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36981 if eval "test \"\${$as_ac_var+set}\" = set"; then
36982   echo $ECHO_N "(cached) $ECHO_C" >&6
36983 else
36984   cat >conftest.$ac_ext <<_ACEOF
36985 /* confdefs.h.  */
36986 _ACEOF
36987 cat confdefs.h >>conftest.$ac_ext
36988 cat >>conftest.$ac_ext <<_ACEOF
36989 /* end confdefs.h.  */
36990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36992 #define $ac_func innocuous_$ac_func
36993
36994 /* System header to define __stub macros and hopefully few prototypes,
36995     which can conflict with char $ac_func (); below.
36996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36997     <limits.h> exists even on freestanding compilers.  */
36998
36999 #ifdef __STDC__
37000 # include <limits.h>
37001 #else
37002 # include <assert.h>
37003 #endif
37004
37005 #undef $ac_func
37006
37007 /* Override any gcc2 internal prototype to avoid an error.  */
37008 #ifdef __cplusplus
37009 extern "C"
37010 {
37011 #endif
37012 /* We use char because int might match the return type of a gcc2
37013    builtin and then its argument prototype would still apply.  */
37014 char $ac_func ();
37015 /* The GNU C library defines this for functions which it implements
37016     to always fail with ENOSYS.  Some functions are actually named
37017     something starting with __ and the normal name is an alias.  */
37018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37019 choke me
37020 #else
37021 char (*f) () = $ac_func;
37022 #endif
37023 #ifdef __cplusplus
37024 }
37025 #endif
37026
37027 int
37028 main ()
37029 {
37030 return f != $ac_func;
37031   ;
37032   return 0;
37033 }
37034 _ACEOF
37035 rm -f conftest.$ac_objext conftest$ac_exeext
37036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37037   (eval $ac_link) 2>conftest.er1
37038   ac_status=$?
37039   grep -v '^ *+' conftest.er1 >conftest.err
37040   rm -f conftest.er1
37041   cat conftest.err >&5
37042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043   (exit $ac_status); } &&
37044          { ac_try='test -z "$ac_c_werror_flag"
37045                          || test ! -s conftest.err'
37046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37047   (eval $ac_try) 2>&5
37048   ac_status=$?
37049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37050   (exit $ac_status); }; } &&
37051          { ac_try='test -s conftest$ac_exeext'
37052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37053   (eval $ac_try) 2>&5
37054   ac_status=$?
37055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37056   (exit $ac_status); }; }; then
37057   eval "$as_ac_var=yes"
37058 else
37059   echo "$as_me: failed program was:" >&5
37060 sed 's/^/| /' conftest.$ac_ext >&5
37061
37062 eval "$as_ac_var=no"
37063 fi
37064 rm -f conftest.err conftest.$ac_objext \
37065       conftest$ac_exeext conftest.$ac_ext
37066 fi
37067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37069 if test `eval echo '${'$as_ac_var'}'` = yes; then
37070   cat >>confdefs.h <<_ACEOF
37071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37072 _ACEOF
37073  ice_have_ioctl=yes
37074 fi
37075 done
37076
37077 if test "${ice_have_ioctl}" = yes; then
37078 echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
37079 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6
37080 if test "${ice_cv_have_ioctl_decl+set}" = set; then
37081   echo $ECHO_N "(cached) $ECHO_C" >&6
37082 else
37083
37084 ice_cv_have_ioctl_decl=no
37085 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37086 ice_re_word='(^|[^a-zA-Z0-9_])'
37087 for header in sys/ioctl.h unistd.h libc.h; do
37088 # Check for ordinary declaration
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 #include <$header>
37096
37097 _ACEOF
37098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37099   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
37100   ice_cv_have_ioctl_decl=yes
37101 fi
37102 rm -f conftest*
37103
37104 if test "$ice_cv_have_ioctl_decl" = yes; then
37105         break
37106 fi
37107 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37108 cat >conftest.$ac_ext <<_ACEOF
37109 /* confdefs.h.  */
37110 _ACEOF
37111 cat confdefs.h >>conftest.$ac_ext
37112 cat >>conftest.$ac_ext <<_ACEOF
37113 /* end confdefs.h.  */
37114 #include <$header>
37115
37116 _ACEOF
37117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37118   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37119   ice_cv_have_ioctl_decl=yes
37120 fi
37121 rm -f conftest*
37122
37123 if test "$ice_cv_have_ioctl_decl" = yes; then
37124         break
37125 fi
37126 done
37127
37128 fi
37129
37130 echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
37131 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6
37132 if test "$ice_cv_have_ioctl_decl" = yes; then
37133
37134 cat >>confdefs.h <<_ACEOF
37135 #define HAVE_IOCTL_DECL 1
37136 _ACEOF
37137
37138 fi
37139 fi
37140
37141
37142 ice_have_listen=no
37143
37144 for ac_func in listen
37145 do
37146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37147 echo "$as_me:$LINENO: checking for $ac_func" >&5
37148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37149 if eval "test \"\${$as_ac_var+set}\" = set"; then
37150   echo $ECHO_N "(cached) $ECHO_C" >&6
37151 else
37152   cat >conftest.$ac_ext <<_ACEOF
37153 /* confdefs.h.  */
37154 _ACEOF
37155 cat confdefs.h >>conftest.$ac_ext
37156 cat >>conftest.$ac_ext <<_ACEOF
37157 /* end confdefs.h.  */
37158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37160 #define $ac_func innocuous_$ac_func
37161
37162 /* System header to define __stub macros and hopefully few prototypes,
37163     which can conflict with char $ac_func (); below.
37164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37165     <limits.h> exists even on freestanding compilers.  */
37166
37167 #ifdef __STDC__
37168 # include <limits.h>
37169 #else
37170 # include <assert.h>
37171 #endif
37172
37173 #undef $ac_func
37174
37175 /* Override any gcc2 internal prototype to avoid an error.  */
37176 #ifdef __cplusplus
37177 extern "C"
37178 {
37179 #endif
37180 /* We use char because int might match the return type of a gcc2
37181    builtin and then its argument prototype would still apply.  */
37182 char $ac_func ();
37183 /* The GNU C library defines this for functions which it implements
37184     to always fail with ENOSYS.  Some functions are actually named
37185     something starting with __ and the normal name is an alias.  */
37186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37187 choke me
37188 #else
37189 char (*f) () = $ac_func;
37190 #endif
37191 #ifdef __cplusplus
37192 }
37193 #endif
37194
37195 int
37196 main ()
37197 {
37198 return f != $ac_func;
37199   ;
37200   return 0;
37201 }
37202 _ACEOF
37203 rm -f conftest.$ac_objext conftest$ac_exeext
37204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37205   (eval $ac_link) 2>conftest.er1
37206   ac_status=$?
37207   grep -v '^ *+' conftest.er1 >conftest.err
37208   rm -f conftest.er1
37209   cat conftest.err >&5
37210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211   (exit $ac_status); } &&
37212          { ac_try='test -z "$ac_c_werror_flag"
37213                          || test ! -s conftest.err'
37214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37215   (eval $ac_try) 2>&5
37216   ac_status=$?
37217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218   (exit $ac_status); }; } &&
37219          { ac_try='test -s conftest$ac_exeext'
37220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37221   (eval $ac_try) 2>&5
37222   ac_status=$?
37223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224   (exit $ac_status); }; }; then
37225   eval "$as_ac_var=yes"
37226 else
37227   echo "$as_me: failed program was:" >&5
37228 sed 's/^/| /' conftest.$ac_ext >&5
37229
37230 eval "$as_ac_var=no"
37231 fi
37232 rm -f conftest.err conftest.$ac_objext \
37233       conftest$ac_exeext conftest.$ac_ext
37234 fi
37235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37237 if test `eval echo '${'$as_ac_var'}'` = yes; then
37238   cat >>confdefs.h <<_ACEOF
37239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37240 _ACEOF
37241  ice_have_listen=yes
37242 fi
37243 done
37244
37245 if test "${ice_have_listen}" = yes; then
37246 echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
37247 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
37248 if test "${ice_cv_have_listen_decl+set}" = set; then
37249   echo $ECHO_N "(cached) $ECHO_C" >&6
37250 else
37251
37252 ice_cv_have_listen_decl=no
37253 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37254 ice_re_word='(^|[^a-zA-Z0-9_])'
37255 for header in sys/types.h sys/socket.h; do
37256 # Check for ordinary declaration
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 #include <$header>
37264
37265 _ACEOF
37266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37267   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
37268   ice_cv_have_listen_decl=yes
37269 fi
37270 rm -f conftest*
37271
37272 if test "$ice_cv_have_listen_decl" = yes; then
37273         break
37274 fi
37275 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37276 cat >conftest.$ac_ext <<_ACEOF
37277 /* confdefs.h.  */
37278 _ACEOF
37279 cat confdefs.h >>conftest.$ac_ext
37280 cat >>conftest.$ac_ext <<_ACEOF
37281 /* end confdefs.h.  */
37282 #include <$header>
37283
37284 _ACEOF
37285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37286   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37287   ice_cv_have_listen_decl=yes
37288 fi
37289 rm -f conftest*
37290
37291 if test "$ice_cv_have_listen_decl" = yes; then
37292         break
37293 fi
37294 done
37295
37296 fi
37297
37298 echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
37299 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6
37300 if test "$ice_cv_have_listen_decl" = yes; then
37301
37302 cat >>confdefs.h <<_ACEOF
37303 #define HAVE_LISTEN_DECL 1
37304 _ACEOF
37305
37306 fi
37307 fi
37308
37309
37310 ice_have_lstat=no
37311
37312 for ac_func in lstat
37313 do
37314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37315 echo "$as_me:$LINENO: checking for $ac_func" >&5
37316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37317 if eval "test \"\${$as_ac_var+set}\" = set"; then
37318   echo $ECHO_N "(cached) $ECHO_C" >&6
37319 else
37320   cat >conftest.$ac_ext <<_ACEOF
37321 /* confdefs.h.  */
37322 _ACEOF
37323 cat confdefs.h >>conftest.$ac_ext
37324 cat >>conftest.$ac_ext <<_ACEOF
37325 /* end confdefs.h.  */
37326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37328 #define $ac_func innocuous_$ac_func
37329
37330 /* System header to define __stub macros and hopefully few prototypes,
37331     which can conflict with char $ac_func (); below.
37332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37333     <limits.h> exists even on freestanding compilers.  */
37334
37335 #ifdef __STDC__
37336 # include <limits.h>
37337 #else
37338 # include <assert.h>
37339 #endif
37340
37341 #undef $ac_func
37342
37343 /* Override any gcc2 internal prototype to avoid an error.  */
37344 #ifdef __cplusplus
37345 extern "C"
37346 {
37347 #endif
37348 /* We use char because int might match the return type of a gcc2
37349    builtin and then its argument prototype would still apply.  */
37350 char $ac_func ();
37351 /* The GNU C library defines this for functions which it implements
37352     to always fail with ENOSYS.  Some functions are actually named
37353     something starting with __ and the normal name is an alias.  */
37354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37355 choke me
37356 #else
37357 char (*f) () = $ac_func;
37358 #endif
37359 #ifdef __cplusplus
37360 }
37361 #endif
37362
37363 int
37364 main ()
37365 {
37366 return f != $ac_func;
37367   ;
37368   return 0;
37369 }
37370 _ACEOF
37371 rm -f conftest.$ac_objext conftest$ac_exeext
37372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37373   (eval $ac_link) 2>conftest.er1
37374   ac_status=$?
37375   grep -v '^ *+' conftest.er1 >conftest.err
37376   rm -f conftest.er1
37377   cat conftest.err >&5
37378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37379   (exit $ac_status); } &&
37380          { ac_try='test -z "$ac_c_werror_flag"
37381                          || test ! -s conftest.err'
37382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37383   (eval $ac_try) 2>&5
37384   ac_status=$?
37385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37386   (exit $ac_status); }; } &&
37387          { ac_try='test -s conftest$ac_exeext'
37388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37389   (eval $ac_try) 2>&5
37390   ac_status=$?
37391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37392   (exit $ac_status); }; }; then
37393   eval "$as_ac_var=yes"
37394 else
37395   echo "$as_me: failed program was:" >&5
37396 sed 's/^/| /' conftest.$ac_ext >&5
37397
37398 eval "$as_ac_var=no"
37399 fi
37400 rm -f conftest.err conftest.$ac_objext \
37401       conftest$ac_exeext conftest.$ac_ext
37402 fi
37403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37405 if test `eval echo '${'$as_ac_var'}'` = yes; then
37406   cat >>confdefs.h <<_ACEOF
37407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37408 _ACEOF
37409  ice_have_lstat=yes
37410 fi
37411 done
37412
37413 if test "${ice_have_lstat}" = yes; then
37414 echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
37415 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6
37416 if test "${ice_cv_have_lstat_decl+set}" = set; then
37417   echo $ECHO_N "(cached) $ECHO_C" >&6
37418 else
37419
37420 ice_cv_have_lstat_decl=no
37421 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37422 ice_re_word='(^|[^a-zA-Z0-9_])'
37423 for header in sys/types.h sys/stat.h; do
37424 # Check for ordinary declaration
37425 cat >conftest.$ac_ext <<_ACEOF
37426 /* confdefs.h.  */
37427 _ACEOF
37428 cat confdefs.h >>conftest.$ac_ext
37429 cat >>conftest.$ac_ext <<_ACEOF
37430 /* end confdefs.h.  */
37431 #include <$header>
37432
37433 _ACEOF
37434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37435   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
37436   ice_cv_have_lstat_decl=yes
37437 fi
37438 rm -f conftest*
37439
37440 if test "$ice_cv_have_lstat_decl" = yes; then
37441         break
37442 fi
37443 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37444 cat >conftest.$ac_ext <<_ACEOF
37445 /* confdefs.h.  */
37446 _ACEOF
37447 cat confdefs.h >>conftest.$ac_ext
37448 cat >>conftest.$ac_ext <<_ACEOF
37449 /* end confdefs.h.  */
37450 #include <$header>
37451
37452 _ACEOF
37453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37454   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37455   ice_cv_have_lstat_decl=yes
37456 fi
37457 rm -f conftest*
37458
37459 if test "$ice_cv_have_lstat_decl" = yes; then
37460         break
37461 fi
37462 done
37463
37464 fi
37465
37466 echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
37467 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6
37468 if test "$ice_cv_have_lstat_decl" = yes; then
37469
37470 cat >>confdefs.h <<_ACEOF
37471 #define HAVE_LSTAT_DECL 1
37472 _ACEOF
37473
37474 fi
37475 fi
37476
37477
37478 ice_have_malloc=no
37479
37480 for ac_func in malloc
37481 do
37482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37483 echo "$as_me:$LINENO: checking for $ac_func" >&5
37484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37485 if eval "test \"\${$as_ac_var+set}\" = set"; then
37486   echo $ECHO_N "(cached) $ECHO_C" >&6
37487 else
37488   cat >conftest.$ac_ext <<_ACEOF
37489 /* confdefs.h.  */
37490 _ACEOF
37491 cat confdefs.h >>conftest.$ac_ext
37492 cat >>conftest.$ac_ext <<_ACEOF
37493 /* end confdefs.h.  */
37494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37496 #define $ac_func innocuous_$ac_func
37497
37498 /* System header to define __stub macros and hopefully few prototypes,
37499     which can conflict with char $ac_func (); below.
37500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37501     <limits.h> exists even on freestanding compilers.  */
37502
37503 #ifdef __STDC__
37504 # include <limits.h>
37505 #else
37506 # include <assert.h>
37507 #endif
37508
37509 #undef $ac_func
37510
37511 /* Override any gcc2 internal prototype to avoid an error.  */
37512 #ifdef __cplusplus
37513 extern "C"
37514 {
37515 #endif
37516 /* We use char because int might match the return type of a gcc2
37517    builtin and then its argument prototype would still apply.  */
37518 char $ac_func ();
37519 /* The GNU C library defines this for functions which it implements
37520     to always fail with ENOSYS.  Some functions are actually named
37521     something starting with __ and the normal name is an alias.  */
37522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37523 choke me
37524 #else
37525 char (*f) () = $ac_func;
37526 #endif
37527 #ifdef __cplusplus
37528 }
37529 #endif
37530
37531 int
37532 main ()
37533 {
37534 return f != $ac_func;
37535   ;
37536   return 0;
37537 }
37538 _ACEOF
37539 rm -f conftest.$ac_objext conftest$ac_exeext
37540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37541   (eval $ac_link) 2>conftest.er1
37542   ac_status=$?
37543   grep -v '^ *+' conftest.er1 >conftest.err
37544   rm -f conftest.er1
37545   cat conftest.err >&5
37546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37547   (exit $ac_status); } &&
37548          { ac_try='test -z "$ac_c_werror_flag"
37549                          || test ! -s conftest.err'
37550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37551   (eval $ac_try) 2>&5
37552   ac_status=$?
37553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554   (exit $ac_status); }; } &&
37555          { ac_try='test -s conftest$ac_exeext'
37556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37557   (eval $ac_try) 2>&5
37558   ac_status=$?
37559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37560   (exit $ac_status); }; }; then
37561   eval "$as_ac_var=yes"
37562 else
37563   echo "$as_me: failed program was:" >&5
37564 sed 's/^/| /' conftest.$ac_ext >&5
37565
37566 eval "$as_ac_var=no"
37567 fi
37568 rm -f conftest.err conftest.$ac_objext \
37569       conftest$ac_exeext conftest.$ac_ext
37570 fi
37571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37573 if test `eval echo '${'$as_ac_var'}'` = yes; then
37574   cat >>confdefs.h <<_ACEOF
37575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37576 _ACEOF
37577  ice_have_malloc=yes
37578 fi
37579 done
37580
37581 if test "${ice_have_malloc}" = yes; then
37582 echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
37583 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6
37584 if test "${ice_cv_have_malloc_decl+set}" = set; then
37585   echo $ECHO_N "(cached) $ECHO_C" >&6
37586 else
37587
37588 ice_cv_have_malloc_decl=no
37589 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37590 ice_re_word='(^|[^a-zA-Z0-9_])'
37591 for header in stdlib.h; do
37592 # Check for ordinary declaration
37593 cat >conftest.$ac_ext <<_ACEOF
37594 /* confdefs.h.  */
37595 _ACEOF
37596 cat confdefs.h >>conftest.$ac_ext
37597 cat >>conftest.$ac_ext <<_ACEOF
37598 /* end confdefs.h.  */
37599 #include <$header>
37600
37601 _ACEOF
37602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37603   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
37604   ice_cv_have_malloc_decl=yes
37605 fi
37606 rm -f conftest*
37607
37608 if test "$ice_cv_have_malloc_decl" = yes; then
37609         break
37610 fi
37611 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37612 cat >conftest.$ac_ext <<_ACEOF
37613 /* confdefs.h.  */
37614 _ACEOF
37615 cat confdefs.h >>conftest.$ac_ext
37616 cat >>conftest.$ac_ext <<_ACEOF
37617 /* end confdefs.h.  */
37618 #include <$header>
37619
37620 _ACEOF
37621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37622   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37623   ice_cv_have_malloc_decl=yes
37624 fi
37625 rm -f conftest*
37626
37627 if test "$ice_cv_have_malloc_decl" = yes; then
37628         break
37629 fi
37630 done
37631
37632 fi
37633
37634 echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
37635 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6
37636 if test "$ice_cv_have_malloc_decl" = yes; then
37637
37638 cat >>confdefs.h <<_ACEOF
37639 #define HAVE_MALLOC_DECL 1
37640 _ACEOF
37641
37642 fi
37643 fi
37644
37645
37646 for ac_func in memmove
37647 do
37648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37649 echo "$as_me:$LINENO: checking for $ac_func" >&5
37650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37651 if eval "test \"\${$as_ac_var+set}\" = set"; then
37652   echo $ECHO_N "(cached) $ECHO_C" >&6
37653 else
37654   cat >conftest.$ac_ext <<_ACEOF
37655 /* confdefs.h.  */
37656 _ACEOF
37657 cat confdefs.h >>conftest.$ac_ext
37658 cat >>conftest.$ac_ext <<_ACEOF
37659 /* end confdefs.h.  */
37660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37662 #define $ac_func innocuous_$ac_func
37663
37664 /* System header to define __stub macros and hopefully few prototypes,
37665     which can conflict with char $ac_func (); below.
37666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37667     <limits.h> exists even on freestanding compilers.  */
37668
37669 #ifdef __STDC__
37670 # include <limits.h>
37671 #else
37672 # include <assert.h>
37673 #endif
37674
37675 #undef $ac_func
37676
37677 /* Override any gcc2 internal prototype to avoid an error.  */
37678 #ifdef __cplusplus
37679 extern "C"
37680 {
37681 #endif
37682 /* We use char because int might match the return type of a gcc2
37683    builtin and then its argument prototype would still apply.  */
37684 char $ac_func ();
37685 /* The GNU C library defines this for functions which it implements
37686     to always fail with ENOSYS.  Some functions are actually named
37687     something starting with __ and the normal name is an alias.  */
37688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37689 choke me
37690 #else
37691 char (*f) () = $ac_func;
37692 #endif
37693 #ifdef __cplusplus
37694 }
37695 #endif
37696
37697 int
37698 main ()
37699 {
37700 return f != $ac_func;
37701   ;
37702   return 0;
37703 }
37704 _ACEOF
37705 rm -f conftest.$ac_objext conftest$ac_exeext
37706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37707   (eval $ac_link) 2>conftest.er1
37708   ac_status=$?
37709   grep -v '^ *+' conftest.er1 >conftest.err
37710   rm -f conftest.er1
37711   cat conftest.err >&5
37712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37713   (exit $ac_status); } &&
37714          { ac_try='test -z "$ac_c_werror_flag"
37715                          || test ! -s conftest.err'
37716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37717   (eval $ac_try) 2>&5
37718   ac_status=$?
37719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37720   (exit $ac_status); }; } &&
37721          { ac_try='test -s conftest$ac_exeext'
37722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37723   (eval $ac_try) 2>&5
37724   ac_status=$?
37725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37726   (exit $ac_status); }; }; then
37727   eval "$as_ac_var=yes"
37728 else
37729   echo "$as_me: failed program was:" >&5
37730 sed 's/^/| /' conftest.$ac_ext >&5
37731
37732 eval "$as_ac_var=no"
37733 fi
37734 rm -f conftest.err conftest.$ac_objext \
37735       conftest$ac_exeext conftest.$ac_ext
37736 fi
37737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37739 if test `eval echo '${'$as_ac_var'}'` = yes; then
37740   cat >>confdefs.h <<_ACEOF
37741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37742 _ACEOF
37743
37744 else
37745   case $LIBOBJS in
37746     "$ac_func.$ac_objext"   | \
37747   *" $ac_func.$ac_objext"   | \
37748     "$ac_func.$ac_objext "* | \
37749   *" $ac_func.$ac_objext "* ) ;;
37750   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
37751 esac
37752
37753 fi
37754 done
37755
37756
37757
37758 ice_have_memmove=no
37759
37760 for ac_func in memmove
37761 do
37762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37763 echo "$as_me:$LINENO: checking for $ac_func" >&5
37764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37765 if eval "test \"\${$as_ac_var+set}\" = set"; then
37766   echo $ECHO_N "(cached) $ECHO_C" >&6
37767 else
37768   cat >conftest.$ac_ext <<_ACEOF
37769 /* confdefs.h.  */
37770 _ACEOF
37771 cat confdefs.h >>conftest.$ac_ext
37772 cat >>conftest.$ac_ext <<_ACEOF
37773 /* end confdefs.h.  */
37774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37776 #define $ac_func innocuous_$ac_func
37777
37778 /* System header to define __stub macros and hopefully few prototypes,
37779     which can conflict with char $ac_func (); below.
37780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37781     <limits.h> exists even on freestanding compilers.  */
37782
37783 #ifdef __STDC__
37784 # include <limits.h>
37785 #else
37786 # include <assert.h>
37787 #endif
37788
37789 #undef $ac_func
37790
37791 /* Override any gcc2 internal prototype to avoid an error.  */
37792 #ifdef __cplusplus
37793 extern "C"
37794 {
37795 #endif
37796 /* We use char because int might match the return type of a gcc2
37797    builtin and then its argument prototype would still apply.  */
37798 char $ac_func ();
37799 /* The GNU C library defines this for functions which it implements
37800     to always fail with ENOSYS.  Some functions are actually named
37801     something starting with __ and the normal name is an alias.  */
37802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37803 choke me
37804 #else
37805 char (*f) () = $ac_func;
37806 #endif
37807 #ifdef __cplusplus
37808 }
37809 #endif
37810
37811 int
37812 main ()
37813 {
37814 return f != $ac_func;
37815   ;
37816   return 0;
37817 }
37818 _ACEOF
37819 rm -f conftest.$ac_objext conftest$ac_exeext
37820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37821   (eval $ac_link) 2>conftest.er1
37822   ac_status=$?
37823   grep -v '^ *+' conftest.er1 >conftest.err
37824   rm -f conftest.er1
37825   cat conftest.err >&5
37826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37827   (exit $ac_status); } &&
37828          { ac_try='test -z "$ac_c_werror_flag"
37829                          || test ! -s conftest.err'
37830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37831   (eval $ac_try) 2>&5
37832   ac_status=$?
37833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37834   (exit $ac_status); }; } &&
37835          { ac_try='test -s conftest$ac_exeext'
37836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37837   (eval $ac_try) 2>&5
37838   ac_status=$?
37839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37840   (exit $ac_status); }; }; then
37841   eval "$as_ac_var=yes"
37842 else
37843   echo "$as_me: failed program was:" >&5
37844 sed 's/^/| /' conftest.$ac_ext >&5
37845
37846 eval "$as_ac_var=no"
37847 fi
37848 rm -f conftest.err conftest.$ac_objext \
37849       conftest$ac_exeext conftest.$ac_ext
37850 fi
37851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37853 if test `eval echo '${'$as_ac_var'}'` = yes; then
37854   cat >>confdefs.h <<_ACEOF
37855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37856 _ACEOF
37857  ice_have_memmove=yes
37858 fi
37859 done
37860
37861 if test "${ice_have_memmove}" = yes; then
37862 echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
37863 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6
37864 if test "${ice_cv_have_memmove_decl+set}" = set; then
37865   echo $ECHO_N "(cached) $ECHO_C" >&6
37866 else
37867
37868 ice_cv_have_memmove_decl=no
37869 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37870 ice_re_word='(^|[^a-zA-Z0-9_])'
37871 for header in string.h strings.h; do
37872 # Check for ordinary declaration
37873 cat >conftest.$ac_ext <<_ACEOF
37874 /* confdefs.h.  */
37875 _ACEOF
37876 cat confdefs.h >>conftest.$ac_ext
37877 cat >>conftest.$ac_ext <<_ACEOF
37878 /* end confdefs.h.  */
37879 #include <$header>
37880
37881 _ACEOF
37882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37883   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
37884   ice_cv_have_memmove_decl=yes
37885 fi
37886 rm -f conftest*
37887
37888 if test "$ice_cv_have_memmove_decl" = yes; then
37889         break
37890 fi
37891 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37892 cat >conftest.$ac_ext <<_ACEOF
37893 /* confdefs.h.  */
37894 _ACEOF
37895 cat confdefs.h >>conftest.$ac_ext
37896 cat >>conftest.$ac_ext <<_ACEOF
37897 /* end confdefs.h.  */
37898 #include <$header>
37899
37900 _ACEOF
37901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37902   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37903   ice_cv_have_memmove_decl=yes
37904 fi
37905 rm -f conftest*
37906
37907 if test "$ice_cv_have_memmove_decl" = yes; then
37908         break
37909 fi
37910 done
37911
37912 fi
37913
37914 echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
37915 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6
37916 if test "$ice_cv_have_memmove_decl" = yes; then
37917
37918 cat >>confdefs.h <<_ACEOF
37919 #define HAVE_MEMMOVE_DECL 1
37920 _ACEOF
37921
37922 fi
37923 fi
37924
37925
37926 ice_have_memset=no
37927
37928 for ac_func in memset
37929 do
37930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37931 echo "$as_me:$LINENO: checking for $ac_func" >&5
37932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37933 if eval "test \"\${$as_ac_var+set}\" = set"; then
37934   echo $ECHO_N "(cached) $ECHO_C" >&6
37935 else
37936   cat >conftest.$ac_ext <<_ACEOF
37937 /* confdefs.h.  */
37938 _ACEOF
37939 cat confdefs.h >>conftest.$ac_ext
37940 cat >>conftest.$ac_ext <<_ACEOF
37941 /* end confdefs.h.  */
37942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37944 #define $ac_func innocuous_$ac_func
37945
37946 /* System header to define __stub macros and hopefully few prototypes,
37947     which can conflict with char $ac_func (); below.
37948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37949     <limits.h> exists even on freestanding compilers.  */
37950
37951 #ifdef __STDC__
37952 # include <limits.h>
37953 #else
37954 # include <assert.h>
37955 #endif
37956
37957 #undef $ac_func
37958
37959 /* Override any gcc2 internal prototype to avoid an error.  */
37960 #ifdef __cplusplus
37961 extern "C"
37962 {
37963 #endif
37964 /* We use char because int might match the return type of a gcc2
37965    builtin and then its argument prototype would still apply.  */
37966 char $ac_func ();
37967 /* The GNU C library defines this for functions which it implements
37968     to always fail with ENOSYS.  Some functions are actually named
37969     something starting with __ and the normal name is an alias.  */
37970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37971 choke me
37972 #else
37973 char (*f) () = $ac_func;
37974 #endif
37975 #ifdef __cplusplus
37976 }
37977 #endif
37978
37979 int
37980 main ()
37981 {
37982 return f != $ac_func;
37983   ;
37984   return 0;
37985 }
37986 _ACEOF
37987 rm -f conftest.$ac_objext conftest$ac_exeext
37988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37989   (eval $ac_link) 2>conftest.er1
37990   ac_status=$?
37991   grep -v '^ *+' conftest.er1 >conftest.err
37992   rm -f conftest.er1
37993   cat conftest.err >&5
37994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995   (exit $ac_status); } &&
37996          { ac_try='test -z "$ac_c_werror_flag"
37997                          || test ! -s conftest.err'
37998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37999   (eval $ac_try) 2>&5
38000   ac_status=$?
38001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38002   (exit $ac_status); }; } &&
38003          { ac_try='test -s conftest$ac_exeext'
38004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38005   (eval $ac_try) 2>&5
38006   ac_status=$?
38007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38008   (exit $ac_status); }; }; then
38009   eval "$as_ac_var=yes"
38010 else
38011   echo "$as_me: failed program was:" >&5
38012 sed 's/^/| /' conftest.$ac_ext >&5
38013
38014 eval "$as_ac_var=no"
38015 fi
38016 rm -f conftest.err conftest.$ac_objext \
38017       conftest$ac_exeext conftest.$ac_ext
38018 fi
38019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38021 if test `eval echo '${'$as_ac_var'}'` = yes; then
38022   cat >>confdefs.h <<_ACEOF
38023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38024 _ACEOF
38025  ice_have_memset=yes
38026 fi
38027 done
38028
38029 if test "${ice_have_memset}" = yes; then
38030 echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
38031 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6
38032 if test "${ice_cv_have_memset_decl+set}" = set; then
38033   echo $ECHO_N "(cached) $ECHO_C" >&6
38034 else
38035
38036 ice_cv_have_memset_decl=no
38037 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38038 ice_re_word='(^|[^a-zA-Z0-9_])'
38039 for header in string.h strings.h; do
38040 # Check for ordinary declaration
38041 cat >conftest.$ac_ext <<_ACEOF
38042 /* confdefs.h.  */
38043 _ACEOF
38044 cat confdefs.h >>conftest.$ac_ext
38045 cat >>conftest.$ac_ext <<_ACEOF
38046 /* end confdefs.h.  */
38047 #include <$header>
38048
38049 _ACEOF
38050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38051   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
38052   ice_cv_have_memset_decl=yes
38053 fi
38054 rm -f conftest*
38055
38056 if test "$ice_cv_have_memset_decl" = yes; then
38057         break
38058 fi
38059 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38060 cat >conftest.$ac_ext <<_ACEOF
38061 /* confdefs.h.  */
38062 _ACEOF
38063 cat confdefs.h >>conftest.$ac_ext
38064 cat >>conftest.$ac_ext <<_ACEOF
38065 /* end confdefs.h.  */
38066 #include <$header>
38067
38068 _ACEOF
38069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38070   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38071   ice_cv_have_memset_decl=yes
38072 fi
38073 rm -f conftest*
38074
38075 if test "$ice_cv_have_memset_decl" = yes; then
38076         break
38077 fi
38078 done
38079
38080 fi
38081
38082 echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
38083 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6
38084 if test "$ice_cv_have_memset_decl" = yes; then
38085
38086 cat >>confdefs.h <<_ACEOF
38087 #define HAVE_MEMSET_DECL 1
38088 _ACEOF
38089
38090 fi
38091 fi
38092
38093
38094 for ac_func in mkdir
38095 do
38096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38097 echo "$as_me:$LINENO: checking for $ac_func" >&5
38098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38099 if eval "test \"\${$as_ac_var+set}\" = set"; then
38100   echo $ECHO_N "(cached) $ECHO_C" >&6
38101 else
38102   cat >conftest.$ac_ext <<_ACEOF
38103 /* confdefs.h.  */
38104 _ACEOF
38105 cat confdefs.h >>conftest.$ac_ext
38106 cat >>conftest.$ac_ext <<_ACEOF
38107 /* end confdefs.h.  */
38108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38110 #define $ac_func innocuous_$ac_func
38111
38112 /* System header to define __stub macros and hopefully few prototypes,
38113     which can conflict with char $ac_func (); below.
38114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38115     <limits.h> exists even on freestanding compilers.  */
38116
38117 #ifdef __STDC__
38118 # include <limits.h>
38119 #else
38120 # include <assert.h>
38121 #endif
38122
38123 #undef $ac_func
38124
38125 /* Override any gcc2 internal prototype to avoid an error.  */
38126 #ifdef __cplusplus
38127 extern "C"
38128 {
38129 #endif
38130 /* We use char because int might match the return type of a gcc2
38131    builtin and then its argument prototype would still apply.  */
38132 char $ac_func ();
38133 /* The GNU C library defines this for functions which it implements
38134     to always fail with ENOSYS.  Some functions are actually named
38135     something starting with __ and the normal name is an alias.  */
38136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38137 choke me
38138 #else
38139 char (*f) () = $ac_func;
38140 #endif
38141 #ifdef __cplusplus
38142 }
38143 #endif
38144
38145 int
38146 main ()
38147 {
38148 return f != $ac_func;
38149   ;
38150   return 0;
38151 }
38152 _ACEOF
38153 rm -f conftest.$ac_objext conftest$ac_exeext
38154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38155   (eval $ac_link) 2>conftest.er1
38156   ac_status=$?
38157   grep -v '^ *+' conftest.er1 >conftest.err
38158   rm -f conftest.er1
38159   cat conftest.err >&5
38160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38161   (exit $ac_status); } &&
38162          { ac_try='test -z "$ac_c_werror_flag"
38163                          || test ! -s conftest.err'
38164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38165   (eval $ac_try) 2>&5
38166   ac_status=$?
38167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168   (exit $ac_status); }; } &&
38169          { ac_try='test -s conftest$ac_exeext'
38170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38171   (eval $ac_try) 2>&5
38172   ac_status=$?
38173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38174   (exit $ac_status); }; }; then
38175   eval "$as_ac_var=yes"
38176 else
38177   echo "$as_me: failed program was:" >&5
38178 sed 's/^/| /' conftest.$ac_ext >&5
38179
38180 eval "$as_ac_var=no"
38181 fi
38182 rm -f conftest.err conftest.$ac_objext \
38183       conftest$ac_exeext conftest.$ac_ext
38184 fi
38185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38187 if test `eval echo '${'$as_ac_var'}'` = yes; then
38188   cat >>confdefs.h <<_ACEOF
38189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38190 _ACEOF
38191
38192 fi
38193 done
38194
38195
38196 ice_have_mktemp=no
38197
38198 for ac_func in mktemp
38199 do
38200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38201 echo "$as_me:$LINENO: checking for $ac_func" >&5
38202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38203 if eval "test \"\${$as_ac_var+set}\" = set"; then
38204   echo $ECHO_N "(cached) $ECHO_C" >&6
38205 else
38206   cat >conftest.$ac_ext <<_ACEOF
38207 /* confdefs.h.  */
38208 _ACEOF
38209 cat confdefs.h >>conftest.$ac_ext
38210 cat >>conftest.$ac_ext <<_ACEOF
38211 /* end confdefs.h.  */
38212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38214 #define $ac_func innocuous_$ac_func
38215
38216 /* System header to define __stub macros and hopefully few prototypes,
38217     which can conflict with char $ac_func (); below.
38218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38219     <limits.h> exists even on freestanding compilers.  */
38220
38221 #ifdef __STDC__
38222 # include <limits.h>
38223 #else
38224 # include <assert.h>
38225 #endif
38226
38227 #undef $ac_func
38228
38229 /* Override any gcc2 internal prototype to avoid an error.  */
38230 #ifdef __cplusplus
38231 extern "C"
38232 {
38233 #endif
38234 /* We use char because int might match the return type of a gcc2
38235    builtin and then its argument prototype would still apply.  */
38236 char $ac_func ();
38237 /* The GNU C library defines this for functions which it implements
38238     to always fail with ENOSYS.  Some functions are actually named
38239     something starting with __ and the normal name is an alias.  */
38240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38241 choke me
38242 #else
38243 char (*f) () = $ac_func;
38244 #endif
38245 #ifdef __cplusplus
38246 }
38247 #endif
38248
38249 int
38250 main ()
38251 {
38252 return f != $ac_func;
38253   ;
38254   return 0;
38255 }
38256 _ACEOF
38257 rm -f conftest.$ac_objext conftest$ac_exeext
38258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38259   (eval $ac_link) 2>conftest.er1
38260   ac_status=$?
38261   grep -v '^ *+' conftest.er1 >conftest.err
38262   rm -f conftest.er1
38263   cat conftest.err >&5
38264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38265   (exit $ac_status); } &&
38266          { ac_try='test -z "$ac_c_werror_flag"
38267                          || test ! -s conftest.err'
38268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38269   (eval $ac_try) 2>&5
38270   ac_status=$?
38271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38272   (exit $ac_status); }; } &&
38273          { ac_try='test -s conftest$ac_exeext'
38274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38275   (eval $ac_try) 2>&5
38276   ac_status=$?
38277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38278   (exit $ac_status); }; }; then
38279   eval "$as_ac_var=yes"
38280 else
38281   echo "$as_me: failed program was:" >&5
38282 sed 's/^/| /' conftest.$ac_ext >&5
38283
38284 eval "$as_ac_var=no"
38285 fi
38286 rm -f conftest.err conftest.$ac_objext \
38287       conftest$ac_exeext conftest.$ac_ext
38288 fi
38289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38291 if test `eval echo '${'$as_ac_var'}'` = yes; then
38292   cat >>confdefs.h <<_ACEOF
38293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38294 _ACEOF
38295  ice_have_mktemp=yes
38296 fi
38297 done
38298
38299 if test "${ice_have_mktemp}" = yes; then
38300 echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
38301 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6
38302 if test "${ice_cv_have_mktemp_decl+set}" = set; then
38303   echo $ECHO_N "(cached) $ECHO_C" >&6
38304 else
38305
38306 ice_cv_have_mktemp_decl=no
38307 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38308 ice_re_word='(^|[^a-zA-Z0-9_])'
38309 for header in stdlib.h; do
38310 # Check for ordinary declaration
38311 cat >conftest.$ac_ext <<_ACEOF
38312 /* confdefs.h.  */
38313 _ACEOF
38314 cat confdefs.h >>conftest.$ac_ext
38315 cat >>conftest.$ac_ext <<_ACEOF
38316 /* end confdefs.h.  */
38317 #include <$header>
38318
38319 _ACEOF
38320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38321   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
38322   ice_cv_have_mktemp_decl=yes
38323 fi
38324 rm -f conftest*
38325
38326 if test "$ice_cv_have_mktemp_decl" = yes; then
38327         break
38328 fi
38329 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38330 cat >conftest.$ac_ext <<_ACEOF
38331 /* confdefs.h.  */
38332 _ACEOF
38333 cat confdefs.h >>conftest.$ac_ext
38334 cat >>conftest.$ac_ext <<_ACEOF
38335 /* end confdefs.h.  */
38336 #include <$header>
38337
38338 _ACEOF
38339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38340   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38341   ice_cv_have_mktemp_decl=yes
38342 fi
38343 rm -f conftest*
38344
38345 if test "$ice_cv_have_mktemp_decl" = yes; then
38346         break
38347 fi
38348 done
38349
38350 fi
38351
38352 echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
38353 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6
38354 if test "$ice_cv_have_mktemp_decl" = yes; then
38355
38356 cat >>confdefs.h <<_ACEOF
38357 #define HAVE_MKTEMP_DECL 1
38358 _ACEOF
38359
38360 fi
38361 fi
38362
38363
38364 for ac_func in mktime
38365 do
38366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38367 echo "$as_me:$LINENO: checking for $ac_func" >&5
38368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38369 if eval "test \"\${$as_ac_var+set}\" = set"; then
38370   echo $ECHO_N "(cached) $ECHO_C" >&6
38371 else
38372   cat >conftest.$ac_ext <<_ACEOF
38373 /* confdefs.h.  */
38374 _ACEOF
38375 cat confdefs.h >>conftest.$ac_ext
38376 cat >>conftest.$ac_ext <<_ACEOF
38377 /* end confdefs.h.  */
38378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38380 #define $ac_func innocuous_$ac_func
38381
38382 /* System header to define __stub macros and hopefully few prototypes,
38383     which can conflict with char $ac_func (); below.
38384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38385     <limits.h> exists even on freestanding compilers.  */
38386
38387 #ifdef __STDC__
38388 # include <limits.h>
38389 #else
38390 # include <assert.h>
38391 #endif
38392
38393 #undef $ac_func
38394
38395 /* Override any gcc2 internal prototype to avoid an error.  */
38396 #ifdef __cplusplus
38397 extern "C"
38398 {
38399 #endif
38400 /* We use char because int might match the return type of a gcc2
38401    builtin and then its argument prototype would still apply.  */
38402 char $ac_func ();
38403 /* The GNU C library defines this for functions which it implements
38404     to always fail with ENOSYS.  Some functions are actually named
38405     something starting with __ and the normal name is an alias.  */
38406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38407 choke me
38408 #else
38409 char (*f) () = $ac_func;
38410 #endif
38411 #ifdef __cplusplus
38412 }
38413 #endif
38414
38415 int
38416 main ()
38417 {
38418 return f != $ac_func;
38419   ;
38420   return 0;
38421 }
38422 _ACEOF
38423 rm -f conftest.$ac_objext conftest$ac_exeext
38424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38425   (eval $ac_link) 2>conftest.er1
38426   ac_status=$?
38427   grep -v '^ *+' conftest.er1 >conftest.err
38428   rm -f conftest.er1
38429   cat conftest.err >&5
38430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38431   (exit $ac_status); } &&
38432          { ac_try='test -z "$ac_c_werror_flag"
38433                          || test ! -s conftest.err'
38434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38435   (eval $ac_try) 2>&5
38436   ac_status=$?
38437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38438   (exit $ac_status); }; } &&
38439          { ac_try='test -s conftest$ac_exeext'
38440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38441   (eval $ac_try) 2>&5
38442   ac_status=$?
38443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38444   (exit $ac_status); }; }; then
38445   eval "$as_ac_var=yes"
38446 else
38447   echo "$as_me: failed program was:" >&5
38448 sed 's/^/| /' conftest.$ac_ext >&5
38449
38450 eval "$as_ac_var=no"
38451 fi
38452 rm -f conftest.err conftest.$ac_objext \
38453       conftest$ac_exeext conftest.$ac_ext
38454 fi
38455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38457 if test `eval echo '${'$as_ac_var'}'` = yes; then
38458   cat >>confdefs.h <<_ACEOF
38459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38460 _ACEOF
38461
38462 else
38463   case $LIBOBJS in
38464     "$ac_func.$ac_objext"   | \
38465   *" $ac_func.$ac_objext"   | \
38466     "$ac_func.$ac_objext "* | \
38467   *" $ac_func.$ac_objext "* ) ;;
38468   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
38469 esac
38470
38471 fi
38472 done
38473
38474
38475
38476 ice_have_mktime=no
38477
38478 for ac_func in mktime
38479 do
38480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38481 echo "$as_me:$LINENO: checking for $ac_func" >&5
38482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38483 if eval "test \"\${$as_ac_var+set}\" = set"; then
38484   echo $ECHO_N "(cached) $ECHO_C" >&6
38485 else
38486   cat >conftest.$ac_ext <<_ACEOF
38487 /* confdefs.h.  */
38488 _ACEOF
38489 cat confdefs.h >>conftest.$ac_ext
38490 cat >>conftest.$ac_ext <<_ACEOF
38491 /* end confdefs.h.  */
38492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38493    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38494 #define $ac_func innocuous_$ac_func
38495
38496 /* System header to define __stub macros and hopefully few prototypes,
38497     which can conflict with char $ac_func (); below.
38498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38499     <limits.h> exists even on freestanding compilers.  */
38500
38501 #ifdef __STDC__
38502 # include <limits.h>
38503 #else
38504 # include <assert.h>
38505 #endif
38506
38507 #undef $ac_func
38508
38509 /* Override any gcc2 internal prototype to avoid an error.  */
38510 #ifdef __cplusplus
38511 extern "C"
38512 {
38513 #endif
38514 /* We use char because int might match the return type of a gcc2
38515    builtin and then its argument prototype would still apply.  */
38516 char $ac_func ();
38517 /* The GNU C library defines this for functions which it implements
38518     to always fail with ENOSYS.  Some functions are actually named
38519     something starting with __ and the normal name is an alias.  */
38520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38521 choke me
38522 #else
38523 char (*f) () = $ac_func;
38524 #endif
38525 #ifdef __cplusplus
38526 }
38527 #endif
38528
38529 int
38530 main ()
38531 {
38532 return f != $ac_func;
38533   ;
38534   return 0;
38535 }
38536 _ACEOF
38537 rm -f conftest.$ac_objext conftest$ac_exeext
38538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38539   (eval $ac_link) 2>conftest.er1
38540   ac_status=$?
38541   grep -v '^ *+' conftest.er1 >conftest.err
38542   rm -f conftest.er1
38543   cat conftest.err >&5
38544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38545   (exit $ac_status); } &&
38546          { ac_try='test -z "$ac_c_werror_flag"
38547                          || test ! -s conftest.err'
38548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38549   (eval $ac_try) 2>&5
38550   ac_status=$?
38551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38552   (exit $ac_status); }; } &&
38553          { ac_try='test -s conftest$ac_exeext'
38554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38555   (eval $ac_try) 2>&5
38556   ac_status=$?
38557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38558   (exit $ac_status); }; }; then
38559   eval "$as_ac_var=yes"
38560 else
38561   echo "$as_me: failed program was:" >&5
38562 sed 's/^/| /' conftest.$ac_ext >&5
38563
38564 eval "$as_ac_var=no"
38565 fi
38566 rm -f conftest.err conftest.$ac_objext \
38567       conftest$ac_exeext conftest.$ac_ext
38568 fi
38569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38571 if test `eval echo '${'$as_ac_var'}'` = yes; then
38572   cat >>confdefs.h <<_ACEOF
38573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38574 _ACEOF
38575  ice_have_mktime=yes
38576 fi
38577 done
38578
38579 if test "${ice_have_mktime}" = yes; then
38580 echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
38581 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6
38582 if test "${ice_cv_have_mktime_decl+set}" = set; then
38583   echo $ECHO_N "(cached) $ECHO_C" >&6
38584 else
38585
38586 ice_cv_have_mktime_decl=no
38587 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38588 ice_re_word='(^|[^a-zA-Z0-9_])'
38589 for header in time.h sys/time.h; do
38590 # Check for ordinary declaration
38591 cat >conftest.$ac_ext <<_ACEOF
38592 /* confdefs.h.  */
38593 _ACEOF
38594 cat confdefs.h >>conftest.$ac_ext
38595 cat >>conftest.$ac_ext <<_ACEOF
38596 /* end confdefs.h.  */
38597 #include <$header>
38598
38599 _ACEOF
38600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38601   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
38602   ice_cv_have_mktime_decl=yes
38603 fi
38604 rm -f conftest*
38605
38606 if test "$ice_cv_have_mktime_decl" = yes; then
38607         break
38608 fi
38609 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38610 cat >conftest.$ac_ext <<_ACEOF
38611 /* confdefs.h.  */
38612 _ACEOF
38613 cat confdefs.h >>conftest.$ac_ext
38614 cat >>conftest.$ac_ext <<_ACEOF
38615 /* end confdefs.h.  */
38616 #include <$header>
38617
38618 _ACEOF
38619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38620   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38621   ice_cv_have_mktime_decl=yes
38622 fi
38623 rm -f conftest*
38624
38625 if test "$ice_cv_have_mktime_decl" = yes; then
38626         break
38627 fi
38628 done
38629
38630 fi
38631
38632 echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
38633 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6
38634 if test "$ice_cv_have_mktime_decl" = yes; then
38635
38636 cat >>confdefs.h <<_ACEOF
38637 #define HAVE_MKTIME_DECL 1
38638 _ACEOF
38639
38640 fi
38641 fi
38642
38643
38644
38645 for ac_header in stdlib.h unistd.h
38646 do
38647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38649   echo "$as_me:$LINENO: checking for $ac_header" >&5
38650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38652   echo $ECHO_N "(cached) $ECHO_C" >&6
38653 fi
38654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38656 else
38657   # Is the header compilable?
38658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38660 cat >conftest.$ac_ext <<_ACEOF
38661 /* confdefs.h.  */
38662 _ACEOF
38663 cat confdefs.h >>conftest.$ac_ext
38664 cat >>conftest.$ac_ext <<_ACEOF
38665 /* end confdefs.h.  */
38666 $ac_includes_default
38667 #include <$ac_header>
38668 _ACEOF
38669 rm -f conftest.$ac_objext
38670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38671   (eval $ac_compile) 2>conftest.er1
38672   ac_status=$?
38673   grep -v '^ *+' conftest.er1 >conftest.err
38674   rm -f conftest.er1
38675   cat conftest.err >&5
38676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38677   (exit $ac_status); } &&
38678          { ac_try='test -z "$ac_c_werror_flag"
38679                          || test ! -s conftest.err'
38680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38681   (eval $ac_try) 2>&5
38682   ac_status=$?
38683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38684   (exit $ac_status); }; } &&
38685          { ac_try='test -s conftest.$ac_objext'
38686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38687   (eval $ac_try) 2>&5
38688   ac_status=$?
38689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38690   (exit $ac_status); }; }; then
38691   ac_header_compiler=yes
38692 else
38693   echo "$as_me: failed program was:" >&5
38694 sed 's/^/| /' conftest.$ac_ext >&5
38695
38696 ac_header_compiler=no
38697 fi
38698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38700 echo "${ECHO_T}$ac_header_compiler" >&6
38701
38702 # Is the header present?
38703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38705 cat >conftest.$ac_ext <<_ACEOF
38706 /* confdefs.h.  */
38707 _ACEOF
38708 cat confdefs.h >>conftest.$ac_ext
38709 cat >>conftest.$ac_ext <<_ACEOF
38710 /* end confdefs.h.  */
38711 #include <$ac_header>
38712 _ACEOF
38713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38714   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38715   ac_status=$?
38716   grep -v '^ *+' conftest.er1 >conftest.err
38717   rm -f conftest.er1
38718   cat conftest.err >&5
38719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720   (exit $ac_status); } >/dev/null; then
38721   if test -s conftest.err; then
38722     ac_cpp_err=$ac_c_preproc_warn_flag
38723     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38724   else
38725     ac_cpp_err=
38726   fi
38727 else
38728   ac_cpp_err=yes
38729 fi
38730 if test -z "$ac_cpp_err"; then
38731   ac_header_preproc=yes
38732 else
38733   echo "$as_me: failed program was:" >&5
38734 sed 's/^/| /' conftest.$ac_ext >&5
38735
38736   ac_header_preproc=no
38737 fi
38738 rm -f conftest.err conftest.$ac_ext
38739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38740 echo "${ECHO_T}$ac_header_preproc" >&6
38741
38742 # So?  What about this header?
38743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38744   yes:no: )
38745     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38749     ac_header_preproc=yes
38750     ;;
38751   no:yes:* )
38752     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38754     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38755 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38756     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38758     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38759 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38762     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38764     (
38765       cat <<\_ASBOX
38766 ## ------------------------------------------ ##
38767 ## Report this to the AC_PACKAGE_NAME lists.  ##
38768 ## ------------------------------------------ ##
38769 _ASBOX
38770     ) |
38771       sed "s/^/$as_me: WARNING:     /" >&2
38772     ;;
38773 esac
38774 echo "$as_me:$LINENO: checking for $ac_header" >&5
38775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38777   echo $ECHO_N "(cached) $ECHO_C" >&6
38778 else
38779   eval "$as_ac_Header=\$ac_header_preproc"
38780 fi
38781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38783
38784 fi
38785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38786   cat >>confdefs.h <<_ACEOF
38787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38788 _ACEOF
38789
38790 fi
38791
38792 done
38793
38794
38795 for ac_func in getpagesize
38796 do
38797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38798 echo "$as_me:$LINENO: checking for $ac_func" >&5
38799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38800 if eval "test \"\${$as_ac_var+set}\" = set"; then
38801   echo $ECHO_N "(cached) $ECHO_C" >&6
38802 else
38803   cat >conftest.$ac_ext <<_ACEOF
38804 /* confdefs.h.  */
38805 _ACEOF
38806 cat confdefs.h >>conftest.$ac_ext
38807 cat >>conftest.$ac_ext <<_ACEOF
38808 /* end confdefs.h.  */
38809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38811 #define $ac_func innocuous_$ac_func
38812
38813 /* System header to define __stub macros and hopefully few prototypes,
38814     which can conflict with char $ac_func (); below.
38815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38816     <limits.h> exists even on freestanding compilers.  */
38817
38818 #ifdef __STDC__
38819 # include <limits.h>
38820 #else
38821 # include <assert.h>
38822 #endif
38823
38824 #undef $ac_func
38825
38826 /* Override any gcc2 internal prototype to avoid an error.  */
38827 #ifdef __cplusplus
38828 extern "C"
38829 {
38830 #endif
38831 /* We use char because int might match the return type of a gcc2
38832    builtin and then its argument prototype would still apply.  */
38833 char $ac_func ();
38834 /* The GNU C library defines this for functions which it implements
38835     to always fail with ENOSYS.  Some functions are actually named
38836     something starting with __ and the normal name is an alias.  */
38837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38838 choke me
38839 #else
38840 char (*f) () = $ac_func;
38841 #endif
38842 #ifdef __cplusplus
38843 }
38844 #endif
38845
38846 int
38847 main ()
38848 {
38849 return f != $ac_func;
38850   ;
38851   return 0;
38852 }
38853 _ACEOF
38854 rm -f conftest.$ac_objext conftest$ac_exeext
38855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38856   (eval $ac_link) 2>conftest.er1
38857   ac_status=$?
38858   grep -v '^ *+' conftest.er1 >conftest.err
38859   rm -f conftest.er1
38860   cat conftest.err >&5
38861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38862   (exit $ac_status); } &&
38863          { ac_try='test -z "$ac_c_werror_flag"
38864                          || test ! -s conftest.err'
38865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38866   (eval $ac_try) 2>&5
38867   ac_status=$?
38868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38869   (exit $ac_status); }; } &&
38870          { ac_try='test -s conftest$ac_exeext'
38871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38872   (eval $ac_try) 2>&5
38873   ac_status=$?
38874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38875   (exit $ac_status); }; }; then
38876   eval "$as_ac_var=yes"
38877 else
38878   echo "$as_me: failed program was:" >&5
38879 sed 's/^/| /' conftest.$ac_ext >&5
38880
38881 eval "$as_ac_var=no"
38882 fi
38883 rm -f conftest.err conftest.$ac_objext \
38884       conftest$ac_exeext conftest.$ac_ext
38885 fi
38886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38888 if test `eval echo '${'$as_ac_var'}'` = yes; then
38889   cat >>confdefs.h <<_ACEOF
38890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38891 _ACEOF
38892
38893 fi
38894 done
38895
38896 echo "$as_me:$LINENO: checking for working mmap" >&5
38897 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
38898 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
38899   echo $ECHO_N "(cached) $ECHO_C" >&6
38900 else
38901   if test "$cross_compiling" = yes; then
38902   ac_cv_func_mmap_fixed_mapped=no
38903 else
38904   cat >conftest.$ac_ext <<_ACEOF
38905 /* confdefs.h.  */
38906 _ACEOF
38907 cat confdefs.h >>conftest.$ac_ext
38908 cat >>conftest.$ac_ext <<_ACEOF
38909 /* end confdefs.h.  */
38910 $ac_includes_default
38911 /* malloc might have been renamed as rpl_malloc. */
38912 #undef malloc
38913
38914 /* Thanks to Mike Haertel and Jim Avera for this test.
38915    Here is a matrix of mmap possibilities:
38916         mmap private not fixed
38917         mmap private fixed at somewhere currently unmapped
38918         mmap private fixed at somewhere already mapped
38919         mmap shared not fixed
38920         mmap shared fixed at somewhere currently unmapped
38921         mmap shared fixed at somewhere already mapped
38922    For private mappings, we should verify that changes cannot be read()
38923    back from the file, nor mmap's back from the file at a different
38924    address.  (There have been systems where private was not correctly
38925    implemented like the infamous i386 svr4.0, and systems where the
38926    VM page cache was not coherent with the file system buffer cache
38927    like early versions of FreeBSD and possibly contemporary NetBSD.)
38928    For shared mappings, we should conversely verify that changes get
38929    propagated back to all the places they're supposed to be.
38930
38931    Grep wants private fixed already mapped.
38932    The main things grep needs to know about mmap are:
38933    * does it exist and is it safe to write into the mmap'd area
38934    * how to use it (BSD variants)  */
38935
38936 #include <fcntl.h>
38937 #include <sys/mman.h>
38938
38939 #if !STDC_HEADERS && !HAVE_STDLIB_H
38940 char *malloc ();
38941 #endif
38942
38943 /* This mess was copied from the GNU getpagesize.h.  */
38944 #if !HAVE_GETPAGESIZE
38945 /* Assume that all systems that can run configure have sys/param.h.  */
38946 # if !HAVE_SYS_PARAM_H
38947 #  define HAVE_SYS_PARAM_H 1
38948 # endif
38949
38950 # ifdef _SC_PAGESIZE
38951 #  define getpagesize() sysconf(_SC_PAGESIZE)
38952 # else /* no _SC_PAGESIZE */
38953 #  if HAVE_SYS_PARAM_H
38954 #   include <sys/param.h>
38955 #   ifdef EXEC_PAGESIZE
38956 #    define getpagesize() EXEC_PAGESIZE
38957 #   else /* no EXEC_PAGESIZE */
38958 #    ifdef NBPG
38959 #     define getpagesize() NBPG * CLSIZE
38960 #     ifndef CLSIZE
38961 #      define CLSIZE 1
38962 #     endif /* no CLSIZE */
38963 #    else /* no NBPG */
38964 #     ifdef NBPC
38965 #      define getpagesize() NBPC
38966 #     else /* no NBPC */
38967 #      ifdef PAGESIZE
38968 #       define getpagesize() PAGESIZE
38969 #      endif /* PAGESIZE */
38970 #     endif /* no NBPC */
38971 #    endif /* no NBPG */
38972 #   endif /* no EXEC_PAGESIZE */
38973 #  else /* no HAVE_SYS_PARAM_H */
38974 #   define getpagesize() 8192   /* punt totally */
38975 #  endif /* no HAVE_SYS_PARAM_H */
38976 # endif /* no _SC_PAGESIZE */
38977
38978 #endif /* no HAVE_GETPAGESIZE */
38979
38980 int
38981 main ()
38982 {
38983   char *data, *data2, *data3;
38984   int i, pagesize;
38985   int fd;
38986
38987   pagesize = getpagesize ();
38988
38989   /* First, make a file with some known garbage in it. */
38990   data = (char *) malloc (pagesize);
38991   if (!data)
38992     exit (1);
38993   for (i = 0; i < pagesize; ++i)
38994     *(data + i) = rand ();
38995   umask (0);
38996   fd = creat ("conftest.mmap", 0600);
38997   if (fd < 0)
38998     exit (1);
38999   if (write (fd, data, pagesize) != pagesize)
39000     exit (1);
39001   close (fd);
39002
39003   /* Next, try to mmap the file at a fixed address which already has
39004      something else allocated at it.  If we can, also make sure that
39005      we see the same garbage.  */
39006   fd = open ("conftest.mmap", O_RDWR);
39007   if (fd < 0)
39008     exit (1);
39009   data2 = (char *) malloc (2 * pagesize);
39010   if (!data2)
39011     exit (1);
39012   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
39013   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
39014                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
39015     exit (1);
39016   for (i = 0; i < pagesize; ++i)
39017     if (*(data + i) != *(data2 + i))
39018       exit (1);
39019
39020   /* Finally, make sure that changes to the mapped area do not
39021      percolate back to the file as seen by read().  (This is a bug on
39022      some variants of i386 svr4.0.)  */
39023   for (i = 0; i < pagesize; ++i)
39024     *(data2 + i) = *(data2 + i) + 1;
39025   data3 = (char *) malloc (pagesize);
39026   if (!data3)
39027     exit (1);
39028   if (read (fd, data3, pagesize) != pagesize)
39029     exit (1);
39030   for (i = 0; i < pagesize; ++i)
39031     if (*(data + i) != *(data3 + i))
39032       exit (1);
39033   close (fd);
39034   exit (0);
39035 }
39036 _ACEOF
39037 rm -f conftest$ac_exeext
39038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39039   (eval $ac_link) 2>&5
39040   ac_status=$?
39041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39044   (eval $ac_try) 2>&5
39045   ac_status=$?
39046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39047   (exit $ac_status); }; }; then
39048   ac_cv_func_mmap_fixed_mapped=yes
39049 else
39050   echo "$as_me: program exited with status $ac_status" >&5
39051 echo "$as_me: failed program was:" >&5
39052 sed 's/^/| /' conftest.$ac_ext >&5
39053
39054 ( exit $ac_status )
39055 ac_cv_func_mmap_fixed_mapped=no
39056 fi
39057 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39058 fi
39059 fi
39060 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
39061 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
39062 if test $ac_cv_func_mmap_fixed_mapped = yes; then
39063
39064 cat >>confdefs.h <<\_ACEOF
39065 #define HAVE_MMAP 1
39066 _ACEOF
39067
39068 fi
39069 rm -f conftest.mmap
39070
39071
39072 for ac_func in on_exit
39073 do
39074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39075 echo "$as_me:$LINENO: checking for $ac_func" >&5
39076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39077 if eval "test \"\${$as_ac_var+set}\" = set"; then
39078   echo $ECHO_N "(cached) $ECHO_C" >&6
39079 else
39080   cat >conftest.$ac_ext <<_ACEOF
39081 /* confdefs.h.  */
39082 _ACEOF
39083 cat confdefs.h >>conftest.$ac_ext
39084 cat >>conftest.$ac_ext <<_ACEOF
39085 /* end confdefs.h.  */
39086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39088 #define $ac_func innocuous_$ac_func
39089
39090 /* System header to define __stub macros and hopefully few prototypes,
39091     which can conflict with char $ac_func (); below.
39092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39093     <limits.h> exists even on freestanding compilers.  */
39094
39095 #ifdef __STDC__
39096 # include <limits.h>
39097 #else
39098 # include <assert.h>
39099 #endif
39100
39101 #undef $ac_func
39102
39103 /* Override any gcc2 internal prototype to avoid an error.  */
39104 #ifdef __cplusplus
39105 extern "C"
39106 {
39107 #endif
39108 /* We use char because int might match the return type of a gcc2
39109    builtin and then its argument prototype would still apply.  */
39110 char $ac_func ();
39111 /* The GNU C library defines this for functions which it implements
39112     to always fail with ENOSYS.  Some functions are actually named
39113     something starting with __ and the normal name is an alias.  */
39114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39115 choke me
39116 #else
39117 char (*f) () = $ac_func;
39118 #endif
39119 #ifdef __cplusplus
39120 }
39121 #endif
39122
39123 int
39124 main ()
39125 {
39126 return f != $ac_func;
39127   ;
39128   return 0;
39129 }
39130 _ACEOF
39131 rm -f conftest.$ac_objext conftest$ac_exeext
39132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39133   (eval $ac_link) 2>conftest.er1
39134   ac_status=$?
39135   grep -v '^ *+' conftest.er1 >conftest.err
39136   rm -f conftest.er1
39137   cat conftest.err >&5
39138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39139   (exit $ac_status); } &&
39140          { ac_try='test -z "$ac_c_werror_flag"
39141                          || test ! -s conftest.err'
39142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39143   (eval $ac_try) 2>&5
39144   ac_status=$?
39145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146   (exit $ac_status); }; } &&
39147          { ac_try='test -s conftest$ac_exeext'
39148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39149   (eval $ac_try) 2>&5
39150   ac_status=$?
39151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39152   (exit $ac_status); }; }; then
39153   eval "$as_ac_var=yes"
39154 else
39155   echo "$as_me: failed program was:" >&5
39156 sed 's/^/| /' conftest.$ac_ext >&5
39157
39158 eval "$as_ac_var=no"
39159 fi
39160 rm -f conftest.err conftest.$ac_objext \
39161       conftest$ac_exeext conftest.$ac_ext
39162 fi
39163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39165 if test `eval echo '${'$as_ac_var'}'` = yes; then
39166   cat >>confdefs.h <<_ACEOF
39167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39168 _ACEOF
39169
39170 fi
39171 done
39172
39173
39174 ice_have_openlog=no
39175
39176 for ac_func in openlog
39177 do
39178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39179 echo "$as_me:$LINENO: checking for $ac_func" >&5
39180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39181 if eval "test \"\${$as_ac_var+set}\" = set"; then
39182   echo $ECHO_N "(cached) $ECHO_C" >&6
39183 else
39184   cat >conftest.$ac_ext <<_ACEOF
39185 /* confdefs.h.  */
39186 _ACEOF
39187 cat confdefs.h >>conftest.$ac_ext
39188 cat >>conftest.$ac_ext <<_ACEOF
39189 /* end confdefs.h.  */
39190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39192 #define $ac_func innocuous_$ac_func
39193
39194 /* System header to define __stub macros and hopefully few prototypes,
39195     which can conflict with char $ac_func (); below.
39196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39197     <limits.h> exists even on freestanding compilers.  */
39198
39199 #ifdef __STDC__
39200 # include <limits.h>
39201 #else
39202 # include <assert.h>
39203 #endif
39204
39205 #undef $ac_func
39206
39207 /* Override any gcc2 internal prototype to avoid an error.  */
39208 #ifdef __cplusplus
39209 extern "C"
39210 {
39211 #endif
39212 /* We use char because int might match the return type of a gcc2
39213    builtin and then its argument prototype would still apply.  */
39214 char $ac_func ();
39215 /* The GNU C library defines this for functions which it implements
39216     to always fail with ENOSYS.  Some functions are actually named
39217     something starting with __ and the normal name is an alias.  */
39218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39219 choke me
39220 #else
39221 char (*f) () = $ac_func;
39222 #endif
39223 #ifdef __cplusplus
39224 }
39225 #endif
39226
39227 int
39228 main ()
39229 {
39230 return f != $ac_func;
39231   ;
39232   return 0;
39233 }
39234 _ACEOF
39235 rm -f conftest.$ac_objext conftest$ac_exeext
39236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39237   (eval $ac_link) 2>conftest.er1
39238   ac_status=$?
39239   grep -v '^ *+' conftest.er1 >conftest.err
39240   rm -f conftest.er1
39241   cat conftest.err >&5
39242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39243   (exit $ac_status); } &&
39244          { ac_try='test -z "$ac_c_werror_flag"
39245                          || test ! -s conftest.err'
39246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39247   (eval $ac_try) 2>&5
39248   ac_status=$?
39249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39250   (exit $ac_status); }; } &&
39251          { ac_try='test -s conftest$ac_exeext'
39252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39253   (eval $ac_try) 2>&5
39254   ac_status=$?
39255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39256   (exit $ac_status); }; }; then
39257   eval "$as_ac_var=yes"
39258 else
39259   echo "$as_me: failed program was:" >&5
39260 sed 's/^/| /' conftest.$ac_ext >&5
39261
39262 eval "$as_ac_var=no"
39263 fi
39264 rm -f conftest.err conftest.$ac_objext \
39265       conftest$ac_exeext conftest.$ac_ext
39266 fi
39267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39269 if test `eval echo '${'$as_ac_var'}'` = yes; then
39270   cat >>confdefs.h <<_ACEOF
39271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39272 _ACEOF
39273  ice_have_openlog=yes
39274 fi
39275 done
39276
39277 if test "${ice_have_openlog}" = yes; then
39278 echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
39279 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6
39280 if test "${ice_cv_have_openlog_decl+set}" = set; then
39281   echo $ECHO_N "(cached) $ECHO_C" >&6
39282 else
39283
39284 ice_cv_have_openlog_decl=no
39285 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39286 ice_re_word='(^|[^a-zA-Z0-9_])'
39287 for header in syslog.h; do
39288 # Check for ordinary declaration
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 #include <$header>
39296
39297 _ACEOF
39298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39299   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then
39300   ice_cv_have_openlog_decl=yes
39301 fi
39302 rm -f conftest*
39303
39304 if test "$ice_cv_have_openlog_decl" = yes; then
39305         break
39306 fi
39307 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39308 cat >conftest.$ac_ext <<_ACEOF
39309 /* confdefs.h.  */
39310 _ACEOF
39311 cat confdefs.h >>conftest.$ac_ext
39312 cat >>conftest.$ac_ext <<_ACEOF
39313 /* end confdefs.h.  */
39314 #include <$header>
39315
39316 _ACEOF
39317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39318   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39319   ice_cv_have_openlog_decl=yes
39320 fi
39321 rm -f conftest*
39322
39323 if test "$ice_cv_have_openlog_decl" = yes; then
39324         break
39325 fi
39326 done
39327
39328 fi
39329
39330 echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
39331 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6
39332 if test "$ice_cv_have_openlog_decl" = yes; then
39333
39334 cat >>confdefs.h <<_ACEOF
39335 #define HAVE_OPENLOG_DECL 1
39336 _ACEOF
39337
39338 fi
39339 fi
39340
39341
39342 ice_have_pclose=no
39343
39344 for ac_func in pclose
39345 do
39346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39347 echo "$as_me:$LINENO: checking for $ac_func" >&5
39348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39349 if eval "test \"\${$as_ac_var+set}\" = set"; then
39350   echo $ECHO_N "(cached) $ECHO_C" >&6
39351 else
39352   cat >conftest.$ac_ext <<_ACEOF
39353 /* confdefs.h.  */
39354 _ACEOF
39355 cat confdefs.h >>conftest.$ac_ext
39356 cat >>conftest.$ac_ext <<_ACEOF
39357 /* end confdefs.h.  */
39358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39360 #define $ac_func innocuous_$ac_func
39361
39362 /* System header to define __stub macros and hopefully few prototypes,
39363     which can conflict with char $ac_func (); below.
39364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39365     <limits.h> exists even on freestanding compilers.  */
39366
39367 #ifdef __STDC__
39368 # include <limits.h>
39369 #else
39370 # include <assert.h>
39371 #endif
39372
39373 #undef $ac_func
39374
39375 /* Override any gcc2 internal prototype to avoid an error.  */
39376 #ifdef __cplusplus
39377 extern "C"
39378 {
39379 #endif
39380 /* We use char because int might match the return type of a gcc2
39381    builtin and then its argument prototype would still apply.  */
39382 char $ac_func ();
39383 /* The GNU C library defines this for functions which it implements
39384     to always fail with ENOSYS.  Some functions are actually named
39385     something starting with __ and the normal name is an alias.  */
39386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39387 choke me
39388 #else
39389 char (*f) () = $ac_func;
39390 #endif
39391 #ifdef __cplusplus
39392 }
39393 #endif
39394
39395 int
39396 main ()
39397 {
39398 return f != $ac_func;
39399   ;
39400   return 0;
39401 }
39402 _ACEOF
39403 rm -f conftest.$ac_objext conftest$ac_exeext
39404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39405   (eval $ac_link) 2>conftest.er1
39406   ac_status=$?
39407   grep -v '^ *+' conftest.er1 >conftest.err
39408   rm -f conftest.er1
39409   cat conftest.err >&5
39410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39411   (exit $ac_status); } &&
39412          { ac_try='test -z "$ac_c_werror_flag"
39413                          || test ! -s conftest.err'
39414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39415   (eval $ac_try) 2>&5
39416   ac_status=$?
39417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39418   (exit $ac_status); }; } &&
39419          { ac_try='test -s conftest$ac_exeext'
39420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39421   (eval $ac_try) 2>&5
39422   ac_status=$?
39423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39424   (exit $ac_status); }; }; then
39425   eval "$as_ac_var=yes"
39426 else
39427   echo "$as_me: failed program was:" >&5
39428 sed 's/^/| /' conftest.$ac_ext >&5
39429
39430 eval "$as_ac_var=no"
39431 fi
39432 rm -f conftest.err conftest.$ac_objext \
39433       conftest$ac_exeext conftest.$ac_ext
39434 fi
39435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39437 if test `eval echo '${'$as_ac_var'}'` = yes; then
39438   cat >>confdefs.h <<_ACEOF
39439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39440 _ACEOF
39441  ice_have_pclose=yes
39442 fi
39443 done
39444
39445 if test "${ice_have_pclose}" = yes; then
39446 echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
39447 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6
39448 if test "${ice_cv_have_pclose_decl+set}" = set; then
39449   echo $ECHO_N "(cached) $ECHO_C" >&6
39450 else
39451
39452 ice_cv_have_pclose_decl=no
39453 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39454 ice_re_word='(^|[^a-zA-Z0-9_])'
39455 for header in stdio.h; do
39456 # Check for ordinary declaration
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 #include <$header>
39464
39465 _ACEOF
39466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39467   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
39468   ice_cv_have_pclose_decl=yes
39469 fi
39470 rm -f conftest*
39471
39472 if test "$ice_cv_have_pclose_decl" = yes; then
39473         break
39474 fi
39475 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39476 cat >conftest.$ac_ext <<_ACEOF
39477 /* confdefs.h.  */
39478 _ACEOF
39479 cat confdefs.h >>conftest.$ac_ext
39480 cat >>conftest.$ac_ext <<_ACEOF
39481 /* end confdefs.h.  */
39482 #include <$header>
39483
39484 _ACEOF
39485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39486   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39487   ice_cv_have_pclose_decl=yes
39488 fi
39489 rm -f conftest*
39490
39491 if test "$ice_cv_have_pclose_decl" = yes; then
39492         break
39493 fi
39494 done
39495
39496 fi
39497
39498 echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
39499 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6
39500 if test "$ice_cv_have_pclose_decl" = yes; then
39501
39502 cat >>confdefs.h <<_ACEOF
39503 #define HAVE_PCLOSE_DECL 1
39504 _ACEOF
39505
39506 fi
39507 fi
39508
39509
39510 ice_have_perror=no
39511
39512 for ac_func in perror
39513 do
39514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39515 echo "$as_me:$LINENO: checking for $ac_func" >&5
39516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39517 if eval "test \"\${$as_ac_var+set}\" = set"; then
39518   echo $ECHO_N "(cached) $ECHO_C" >&6
39519 else
39520   cat >conftest.$ac_ext <<_ACEOF
39521 /* confdefs.h.  */
39522 _ACEOF
39523 cat confdefs.h >>conftest.$ac_ext
39524 cat >>conftest.$ac_ext <<_ACEOF
39525 /* end confdefs.h.  */
39526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39528 #define $ac_func innocuous_$ac_func
39529
39530 /* System header to define __stub macros and hopefully few prototypes,
39531     which can conflict with char $ac_func (); below.
39532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39533     <limits.h> exists even on freestanding compilers.  */
39534
39535 #ifdef __STDC__
39536 # include <limits.h>
39537 #else
39538 # include <assert.h>
39539 #endif
39540
39541 #undef $ac_func
39542
39543 /* Override any gcc2 internal prototype to avoid an error.  */
39544 #ifdef __cplusplus
39545 extern "C"
39546 {
39547 #endif
39548 /* We use char because int might match the return type of a gcc2
39549    builtin and then its argument prototype would still apply.  */
39550 char $ac_func ();
39551 /* The GNU C library defines this for functions which it implements
39552     to always fail with ENOSYS.  Some functions are actually named
39553     something starting with __ and the normal name is an alias.  */
39554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39555 choke me
39556 #else
39557 char (*f) () = $ac_func;
39558 #endif
39559 #ifdef __cplusplus
39560 }
39561 #endif
39562
39563 int
39564 main ()
39565 {
39566 return f != $ac_func;
39567   ;
39568   return 0;
39569 }
39570 _ACEOF
39571 rm -f conftest.$ac_objext conftest$ac_exeext
39572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39573   (eval $ac_link) 2>conftest.er1
39574   ac_status=$?
39575   grep -v '^ *+' conftest.er1 >conftest.err
39576   rm -f conftest.er1
39577   cat conftest.err >&5
39578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39579   (exit $ac_status); } &&
39580          { ac_try='test -z "$ac_c_werror_flag"
39581                          || test ! -s conftest.err'
39582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39583   (eval $ac_try) 2>&5
39584   ac_status=$?
39585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39586   (exit $ac_status); }; } &&
39587          { ac_try='test -s conftest$ac_exeext'
39588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39589   (eval $ac_try) 2>&5
39590   ac_status=$?
39591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592   (exit $ac_status); }; }; then
39593   eval "$as_ac_var=yes"
39594 else
39595   echo "$as_me: failed program was:" >&5
39596 sed 's/^/| /' conftest.$ac_ext >&5
39597
39598 eval "$as_ac_var=no"
39599 fi
39600 rm -f conftest.err conftest.$ac_objext \
39601       conftest$ac_exeext conftest.$ac_ext
39602 fi
39603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39605 if test `eval echo '${'$as_ac_var'}'` = yes; then
39606   cat >>confdefs.h <<_ACEOF
39607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39608 _ACEOF
39609  ice_have_perror=yes
39610 fi
39611 done
39612
39613 if test "${ice_have_perror}" = yes; then
39614 echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
39615 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6
39616 if test "${ice_cv_have_perror_decl+set}" = set; then
39617   echo $ECHO_N "(cached) $ECHO_C" >&6
39618 else
39619
39620 ice_cv_have_perror_decl=no
39621 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39622 ice_re_word='(^|[^a-zA-Z0-9_])'
39623 for header in stdio.h; do
39624 # Check for ordinary declaration
39625 cat >conftest.$ac_ext <<_ACEOF
39626 /* confdefs.h.  */
39627 _ACEOF
39628 cat confdefs.h >>conftest.$ac_ext
39629 cat >>conftest.$ac_ext <<_ACEOF
39630 /* end confdefs.h.  */
39631 #include <$header>
39632
39633 _ACEOF
39634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39635   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
39636   ice_cv_have_perror_decl=yes
39637 fi
39638 rm -f conftest*
39639
39640 if test "$ice_cv_have_perror_decl" = yes; then
39641         break
39642 fi
39643 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39644 cat >conftest.$ac_ext <<_ACEOF
39645 /* confdefs.h.  */
39646 _ACEOF
39647 cat confdefs.h >>conftest.$ac_ext
39648 cat >>conftest.$ac_ext <<_ACEOF
39649 /* end confdefs.h.  */
39650 #include <$header>
39651
39652 _ACEOF
39653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39654   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39655   ice_cv_have_perror_decl=yes
39656 fi
39657 rm -f conftest*
39658
39659 if test "$ice_cv_have_perror_decl" = yes; then
39660         break
39661 fi
39662 done
39663
39664 fi
39665
39666 echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
39667 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6
39668 if test "$ice_cv_have_perror_decl" = yes; then
39669
39670 cat >>confdefs.h <<_ACEOF
39671 #define HAVE_PERROR_DECL 1
39672 _ACEOF
39673
39674 fi
39675 fi
39676
39677
39678 ice_have_printf=no
39679
39680 for ac_func in printf
39681 do
39682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39683 echo "$as_me:$LINENO: checking for $ac_func" >&5
39684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39685 if eval "test \"\${$as_ac_var+set}\" = set"; then
39686   echo $ECHO_N "(cached) $ECHO_C" >&6
39687 else
39688   cat >conftest.$ac_ext <<_ACEOF
39689 /* confdefs.h.  */
39690 _ACEOF
39691 cat confdefs.h >>conftest.$ac_ext
39692 cat >>conftest.$ac_ext <<_ACEOF
39693 /* end confdefs.h.  */
39694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39696 #define $ac_func innocuous_$ac_func
39697
39698 /* System header to define __stub macros and hopefully few prototypes,
39699     which can conflict with char $ac_func (); below.
39700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39701     <limits.h> exists even on freestanding compilers.  */
39702
39703 #ifdef __STDC__
39704 # include <limits.h>
39705 #else
39706 # include <assert.h>
39707 #endif
39708
39709 #undef $ac_func
39710
39711 /* Override any gcc2 internal prototype to avoid an error.  */
39712 #ifdef __cplusplus
39713 extern "C"
39714 {
39715 #endif
39716 /* We use char because int might match the return type of a gcc2
39717    builtin and then its argument prototype would still apply.  */
39718 char $ac_func ();
39719 /* The GNU C library defines this for functions which it implements
39720     to always fail with ENOSYS.  Some functions are actually named
39721     something starting with __ and the normal name is an alias.  */
39722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39723 choke me
39724 #else
39725 char (*f) () = $ac_func;
39726 #endif
39727 #ifdef __cplusplus
39728 }
39729 #endif
39730
39731 int
39732 main ()
39733 {
39734 return f != $ac_func;
39735   ;
39736   return 0;
39737 }
39738 _ACEOF
39739 rm -f conftest.$ac_objext conftest$ac_exeext
39740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39741   (eval $ac_link) 2>conftest.er1
39742   ac_status=$?
39743   grep -v '^ *+' conftest.er1 >conftest.err
39744   rm -f conftest.er1
39745   cat conftest.err >&5
39746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39747   (exit $ac_status); } &&
39748          { ac_try='test -z "$ac_c_werror_flag"
39749                          || test ! -s conftest.err'
39750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39751   (eval $ac_try) 2>&5
39752   ac_status=$?
39753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39754   (exit $ac_status); }; } &&
39755          { ac_try='test -s conftest$ac_exeext'
39756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39757   (eval $ac_try) 2>&5
39758   ac_status=$?
39759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39760   (exit $ac_status); }; }; then
39761   eval "$as_ac_var=yes"
39762 else
39763   echo "$as_me: failed program was:" >&5
39764 sed 's/^/| /' conftest.$ac_ext >&5
39765
39766 eval "$as_ac_var=no"
39767 fi
39768 rm -f conftest.err conftest.$ac_objext \
39769       conftest$ac_exeext conftest.$ac_ext
39770 fi
39771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39773 if test `eval echo '${'$as_ac_var'}'` = yes; then
39774   cat >>confdefs.h <<_ACEOF
39775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39776 _ACEOF
39777  ice_have_printf=yes
39778 fi
39779 done
39780
39781 if test "${ice_have_printf}" = yes; then
39782 echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
39783 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6
39784 if test "${ice_cv_have_printf_decl+set}" = set; then
39785   echo $ECHO_N "(cached) $ECHO_C" >&6
39786 else
39787
39788 ice_cv_have_printf_decl=no
39789 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39790 ice_re_word='(^|[^a-zA-Z0-9_])'
39791 for header in stdio.h; do
39792 # Check for ordinary declaration
39793 cat >conftest.$ac_ext <<_ACEOF
39794 /* confdefs.h.  */
39795 _ACEOF
39796 cat confdefs.h >>conftest.$ac_ext
39797 cat >>conftest.$ac_ext <<_ACEOF
39798 /* end confdefs.h.  */
39799 #include <$header>
39800
39801 _ACEOF
39802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39803   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
39804   ice_cv_have_printf_decl=yes
39805 fi
39806 rm -f conftest*
39807
39808 if test "$ice_cv_have_printf_decl" = yes; then
39809         break
39810 fi
39811 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39812 cat >conftest.$ac_ext <<_ACEOF
39813 /* confdefs.h.  */
39814 _ACEOF
39815 cat confdefs.h >>conftest.$ac_ext
39816 cat >>conftest.$ac_ext <<_ACEOF
39817 /* end confdefs.h.  */
39818 #include <$header>
39819
39820 _ACEOF
39821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39822   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39823   ice_cv_have_printf_decl=yes
39824 fi
39825 rm -f conftest*
39826
39827 if test "$ice_cv_have_printf_decl" = yes; then
39828         break
39829 fi
39830 done
39831
39832 fi
39833
39834 echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
39835 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6
39836 if test "$ice_cv_have_printf_decl" = yes; then
39837
39838 cat >>confdefs.h <<_ACEOF
39839 #define HAVE_PRINTF_DECL 1
39840 _ACEOF
39841
39842 fi
39843 fi
39844
39845
39846 for ac_func in putenv
39847 do
39848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39849 echo "$as_me:$LINENO: checking for $ac_func" >&5
39850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39851 if eval "test \"\${$as_ac_var+set}\" = set"; then
39852   echo $ECHO_N "(cached) $ECHO_C" >&6
39853 else
39854   cat >conftest.$ac_ext <<_ACEOF
39855 /* confdefs.h.  */
39856 _ACEOF
39857 cat confdefs.h >>conftest.$ac_ext
39858 cat >>conftest.$ac_ext <<_ACEOF
39859 /* end confdefs.h.  */
39860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39862 #define $ac_func innocuous_$ac_func
39863
39864 /* System header to define __stub macros and hopefully few prototypes,
39865     which can conflict with char $ac_func (); below.
39866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39867     <limits.h> exists even on freestanding compilers.  */
39868
39869 #ifdef __STDC__
39870 # include <limits.h>
39871 #else
39872 # include <assert.h>
39873 #endif
39874
39875 #undef $ac_func
39876
39877 /* Override any gcc2 internal prototype to avoid an error.  */
39878 #ifdef __cplusplus
39879 extern "C"
39880 {
39881 #endif
39882 /* We use char because int might match the return type of a gcc2
39883    builtin and then its argument prototype would still apply.  */
39884 char $ac_func ();
39885 /* The GNU C library defines this for functions which it implements
39886     to always fail with ENOSYS.  Some functions are actually named
39887     something starting with __ and the normal name is an alias.  */
39888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39889 choke me
39890 #else
39891 char (*f) () = $ac_func;
39892 #endif
39893 #ifdef __cplusplus
39894 }
39895 #endif
39896
39897 int
39898 main ()
39899 {
39900 return f != $ac_func;
39901   ;
39902   return 0;
39903 }
39904 _ACEOF
39905 rm -f conftest.$ac_objext conftest$ac_exeext
39906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39907   (eval $ac_link) 2>conftest.er1
39908   ac_status=$?
39909   grep -v '^ *+' conftest.er1 >conftest.err
39910   rm -f conftest.er1
39911   cat conftest.err >&5
39912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913   (exit $ac_status); } &&
39914          { ac_try='test -z "$ac_c_werror_flag"
39915                          || test ! -s conftest.err'
39916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39917   (eval $ac_try) 2>&5
39918   ac_status=$?
39919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39920   (exit $ac_status); }; } &&
39921          { ac_try='test -s conftest$ac_exeext'
39922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39923   (eval $ac_try) 2>&5
39924   ac_status=$?
39925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39926   (exit $ac_status); }; }; then
39927   eval "$as_ac_var=yes"
39928 else
39929   echo "$as_me: failed program was:" >&5
39930 sed 's/^/| /' conftest.$ac_ext >&5
39931
39932 eval "$as_ac_var=no"
39933 fi
39934 rm -f conftest.err conftest.$ac_objext \
39935       conftest$ac_exeext conftest.$ac_ext
39936 fi
39937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39939 if test `eval echo '${'$as_ac_var'}'` = yes; then
39940   cat >>confdefs.h <<_ACEOF
39941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39942 _ACEOF
39943
39944 fi
39945 done
39946
39947
39948 ice_have_puts=no
39949
39950 for ac_func in puts
39951 do
39952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39953 echo "$as_me:$LINENO: checking for $ac_func" >&5
39954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39955 if eval "test \"\${$as_ac_var+set}\" = set"; then
39956   echo $ECHO_N "(cached) $ECHO_C" >&6
39957 else
39958   cat >conftest.$ac_ext <<_ACEOF
39959 /* confdefs.h.  */
39960 _ACEOF
39961 cat confdefs.h >>conftest.$ac_ext
39962 cat >>conftest.$ac_ext <<_ACEOF
39963 /* end confdefs.h.  */
39964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39966 #define $ac_func innocuous_$ac_func
39967
39968 /* System header to define __stub macros and hopefully few prototypes,
39969     which can conflict with char $ac_func (); below.
39970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39971     <limits.h> exists even on freestanding compilers.  */
39972
39973 #ifdef __STDC__
39974 # include <limits.h>
39975 #else
39976 # include <assert.h>
39977 #endif
39978
39979 #undef $ac_func
39980
39981 /* Override any gcc2 internal prototype to avoid an error.  */
39982 #ifdef __cplusplus
39983 extern "C"
39984 {
39985 #endif
39986 /* We use char because int might match the return type of a gcc2
39987    builtin and then its argument prototype would still apply.  */
39988 char $ac_func ();
39989 /* The GNU C library defines this for functions which it implements
39990     to always fail with ENOSYS.  Some functions are actually named
39991     something starting with __ and the normal name is an alias.  */
39992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39993 choke me
39994 #else
39995 char (*f) () = $ac_func;
39996 #endif
39997 #ifdef __cplusplus
39998 }
39999 #endif
40000
40001 int
40002 main ()
40003 {
40004 return f != $ac_func;
40005   ;
40006   return 0;
40007 }
40008 _ACEOF
40009 rm -f conftest.$ac_objext conftest$ac_exeext
40010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40011   (eval $ac_link) 2>conftest.er1
40012   ac_status=$?
40013   grep -v '^ *+' conftest.er1 >conftest.err
40014   rm -f conftest.er1
40015   cat conftest.err >&5
40016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40017   (exit $ac_status); } &&
40018          { ac_try='test -z "$ac_c_werror_flag"
40019                          || test ! -s conftest.err'
40020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40021   (eval $ac_try) 2>&5
40022   ac_status=$?
40023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40024   (exit $ac_status); }; } &&
40025          { ac_try='test -s conftest$ac_exeext'
40026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40027   (eval $ac_try) 2>&5
40028   ac_status=$?
40029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40030   (exit $ac_status); }; }; then
40031   eval "$as_ac_var=yes"
40032 else
40033   echo "$as_me: failed program was:" >&5
40034 sed 's/^/| /' conftest.$ac_ext >&5
40035
40036 eval "$as_ac_var=no"
40037 fi
40038 rm -f conftest.err conftest.$ac_objext \
40039       conftest$ac_exeext conftest.$ac_ext
40040 fi
40041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40043 if test `eval echo '${'$as_ac_var'}'` = yes; then
40044   cat >>confdefs.h <<_ACEOF
40045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40046 _ACEOF
40047  ice_have_puts=yes
40048 fi
40049 done
40050
40051 if test "${ice_have_puts}" = yes; then
40052 echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
40053 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6
40054 if test "${ice_cv_have_puts_decl+set}" = set; then
40055   echo $ECHO_N "(cached) $ECHO_C" >&6
40056 else
40057
40058 ice_cv_have_puts_decl=no
40059 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40060 ice_re_word='(^|[^a-zA-Z0-9_])'
40061 for header in stdio.h; do
40062 # Check for ordinary declaration
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 #include <$header>
40070
40071 _ACEOF
40072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40073   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
40074   ice_cv_have_puts_decl=yes
40075 fi
40076 rm -f conftest*
40077
40078 if test "$ice_cv_have_puts_decl" = yes; then
40079         break
40080 fi
40081 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40082 cat >conftest.$ac_ext <<_ACEOF
40083 /* confdefs.h.  */
40084 _ACEOF
40085 cat confdefs.h >>conftest.$ac_ext
40086 cat >>conftest.$ac_ext <<_ACEOF
40087 /* end confdefs.h.  */
40088 #include <$header>
40089
40090 _ACEOF
40091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40092   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40093   ice_cv_have_puts_decl=yes
40094 fi
40095 rm -f conftest*
40096
40097 if test "$ice_cv_have_puts_decl" = yes; then
40098         break
40099 fi
40100 done
40101
40102 fi
40103
40104 echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
40105 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6
40106 if test "$ice_cv_have_puts_decl" = yes; then
40107
40108 cat >>confdefs.h <<_ACEOF
40109 #define HAVE_PUTS_DECL 1
40110 _ACEOF
40111
40112 fi
40113 fi
40114
40115
40116 ice_have_realloc=no
40117
40118 for ac_func in realloc
40119 do
40120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40121 echo "$as_me:$LINENO: checking for $ac_func" >&5
40122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40123 if eval "test \"\${$as_ac_var+set}\" = set"; then
40124   echo $ECHO_N "(cached) $ECHO_C" >&6
40125 else
40126   cat >conftest.$ac_ext <<_ACEOF
40127 /* confdefs.h.  */
40128 _ACEOF
40129 cat confdefs.h >>conftest.$ac_ext
40130 cat >>conftest.$ac_ext <<_ACEOF
40131 /* end confdefs.h.  */
40132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40134 #define $ac_func innocuous_$ac_func
40135
40136 /* System header to define __stub macros and hopefully few prototypes,
40137     which can conflict with char $ac_func (); below.
40138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40139     <limits.h> exists even on freestanding compilers.  */
40140
40141 #ifdef __STDC__
40142 # include <limits.h>
40143 #else
40144 # include <assert.h>
40145 #endif
40146
40147 #undef $ac_func
40148
40149 /* Override any gcc2 internal prototype to avoid an error.  */
40150 #ifdef __cplusplus
40151 extern "C"
40152 {
40153 #endif
40154 /* We use char because int might match the return type of a gcc2
40155    builtin and then its argument prototype would still apply.  */
40156 char $ac_func ();
40157 /* The GNU C library defines this for functions which it implements
40158     to always fail with ENOSYS.  Some functions are actually named
40159     something starting with __ and the normal name is an alias.  */
40160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40161 choke me
40162 #else
40163 char (*f) () = $ac_func;
40164 #endif
40165 #ifdef __cplusplus
40166 }
40167 #endif
40168
40169 int
40170 main ()
40171 {
40172 return f != $ac_func;
40173   ;
40174   return 0;
40175 }
40176 _ACEOF
40177 rm -f conftest.$ac_objext conftest$ac_exeext
40178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40179   (eval $ac_link) 2>conftest.er1
40180   ac_status=$?
40181   grep -v '^ *+' conftest.er1 >conftest.err
40182   rm -f conftest.er1
40183   cat conftest.err >&5
40184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40185   (exit $ac_status); } &&
40186          { ac_try='test -z "$ac_c_werror_flag"
40187                          || test ! -s conftest.err'
40188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40189   (eval $ac_try) 2>&5
40190   ac_status=$?
40191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40192   (exit $ac_status); }; } &&
40193          { ac_try='test -s conftest$ac_exeext'
40194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40195   (eval $ac_try) 2>&5
40196   ac_status=$?
40197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40198   (exit $ac_status); }; }; then
40199   eval "$as_ac_var=yes"
40200 else
40201   echo "$as_me: failed program was:" >&5
40202 sed 's/^/| /' conftest.$ac_ext >&5
40203
40204 eval "$as_ac_var=no"
40205 fi
40206 rm -f conftest.err conftest.$ac_objext \
40207       conftest$ac_exeext conftest.$ac_ext
40208 fi
40209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40211 if test `eval echo '${'$as_ac_var'}'` = yes; then
40212   cat >>confdefs.h <<_ACEOF
40213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40214 _ACEOF
40215  ice_have_realloc=yes
40216 fi
40217 done
40218
40219 if test "${ice_have_realloc}" = yes; then
40220 echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
40221 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6
40222 if test "${ice_cv_have_realloc_decl+set}" = set; then
40223   echo $ECHO_N "(cached) $ECHO_C" >&6
40224 else
40225
40226 ice_cv_have_realloc_decl=no
40227 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40228 ice_re_word='(^|[^a-zA-Z0-9_])'
40229 for header in stdlib.h; do
40230 # Check for ordinary declaration
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 #include <$header>
40238
40239 _ACEOF
40240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40241   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
40242   ice_cv_have_realloc_decl=yes
40243 fi
40244 rm -f conftest*
40245
40246 if test "$ice_cv_have_realloc_decl" = yes; then
40247         break
40248 fi
40249 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40250 cat >conftest.$ac_ext <<_ACEOF
40251 /* confdefs.h.  */
40252 _ACEOF
40253 cat confdefs.h >>conftest.$ac_ext
40254 cat >>conftest.$ac_ext <<_ACEOF
40255 /* end confdefs.h.  */
40256 #include <$header>
40257
40258 _ACEOF
40259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40260   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40261   ice_cv_have_realloc_decl=yes
40262 fi
40263 rm -f conftest*
40264
40265 if test "$ice_cv_have_realloc_decl" = yes; then
40266         break
40267 fi
40268 done
40269
40270 fi
40271
40272 echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
40273 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6
40274 if test "$ice_cv_have_realloc_decl" = yes; then
40275
40276 cat >>confdefs.h <<_ACEOF
40277 #define HAVE_REALLOC_DECL 1
40278 _ACEOF
40279
40280 fi
40281 fi
40282
40283
40284 ice_have_recvfrom=no
40285
40286 for ac_func in recvfrom
40287 do
40288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40289 echo "$as_me:$LINENO: checking for $ac_func" >&5
40290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40291 if eval "test \"\${$as_ac_var+set}\" = set"; then
40292   echo $ECHO_N "(cached) $ECHO_C" >&6
40293 else
40294   cat >conftest.$ac_ext <<_ACEOF
40295 /* confdefs.h.  */
40296 _ACEOF
40297 cat confdefs.h >>conftest.$ac_ext
40298 cat >>conftest.$ac_ext <<_ACEOF
40299 /* end confdefs.h.  */
40300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40302 #define $ac_func innocuous_$ac_func
40303
40304 /* System header to define __stub macros and hopefully few prototypes,
40305     which can conflict with char $ac_func (); below.
40306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40307     <limits.h> exists even on freestanding compilers.  */
40308
40309 #ifdef __STDC__
40310 # include <limits.h>
40311 #else
40312 # include <assert.h>
40313 #endif
40314
40315 #undef $ac_func
40316
40317 /* Override any gcc2 internal prototype to avoid an error.  */
40318 #ifdef __cplusplus
40319 extern "C"
40320 {
40321 #endif
40322 /* We use char because int might match the return type of a gcc2
40323    builtin and then its argument prototype would still apply.  */
40324 char $ac_func ();
40325 /* The GNU C library defines this for functions which it implements
40326     to always fail with ENOSYS.  Some functions are actually named
40327     something starting with __ and the normal name is an alias.  */
40328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40329 choke me
40330 #else
40331 char (*f) () = $ac_func;
40332 #endif
40333 #ifdef __cplusplus
40334 }
40335 #endif
40336
40337 int
40338 main ()
40339 {
40340 return f != $ac_func;
40341   ;
40342   return 0;
40343 }
40344 _ACEOF
40345 rm -f conftest.$ac_objext conftest$ac_exeext
40346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40347   (eval $ac_link) 2>conftest.er1
40348   ac_status=$?
40349   grep -v '^ *+' conftest.er1 >conftest.err
40350   rm -f conftest.er1
40351   cat conftest.err >&5
40352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40353   (exit $ac_status); } &&
40354          { ac_try='test -z "$ac_c_werror_flag"
40355                          || test ! -s conftest.err'
40356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40357   (eval $ac_try) 2>&5
40358   ac_status=$?
40359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40360   (exit $ac_status); }; } &&
40361          { ac_try='test -s conftest$ac_exeext'
40362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40363   (eval $ac_try) 2>&5
40364   ac_status=$?
40365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40366   (exit $ac_status); }; }; then
40367   eval "$as_ac_var=yes"
40368 else
40369   echo "$as_me: failed program was:" >&5
40370 sed 's/^/| /' conftest.$ac_ext >&5
40371
40372 eval "$as_ac_var=no"
40373 fi
40374 rm -f conftest.err conftest.$ac_objext \
40375       conftest$ac_exeext conftest.$ac_ext
40376 fi
40377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40379 if test `eval echo '${'$as_ac_var'}'` = yes; then
40380   cat >>confdefs.h <<_ACEOF
40381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40382 _ACEOF
40383  ice_have_recvfrom=yes
40384 fi
40385 done
40386
40387 if test "${ice_have_recvfrom}" = yes; then
40388 echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
40389 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
40390 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
40391   echo $ECHO_N "(cached) $ECHO_C" >&6
40392 else
40393
40394 ice_cv_have_recvfrom_decl=no
40395 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40396 ice_re_word='(^|[^a-zA-Z0-9_])'
40397 for header in sys/types.h sys/socket.h; do
40398 # Check for ordinary declaration
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 #include <$header>
40406
40407 _ACEOF
40408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40409   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
40410   ice_cv_have_recvfrom_decl=yes
40411 fi
40412 rm -f conftest*
40413
40414 if test "$ice_cv_have_recvfrom_decl" = yes; then
40415         break
40416 fi
40417 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40418 cat >conftest.$ac_ext <<_ACEOF
40419 /* confdefs.h.  */
40420 _ACEOF
40421 cat confdefs.h >>conftest.$ac_ext
40422 cat >>conftest.$ac_ext <<_ACEOF
40423 /* end confdefs.h.  */
40424 #include <$header>
40425
40426 _ACEOF
40427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40428   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40429   ice_cv_have_recvfrom_decl=yes
40430 fi
40431 rm -f conftest*
40432
40433 if test "$ice_cv_have_recvfrom_decl" = yes; then
40434         break
40435 fi
40436 done
40437
40438 fi
40439
40440 echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
40441 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6
40442 if test "$ice_cv_have_recvfrom_decl" = yes; then
40443
40444 cat >>confdefs.h <<_ACEOF
40445 #define HAVE_RECVFROM_DECL 1
40446 _ACEOF
40447
40448 fi
40449 fi
40450
40451
40452 ice_have_remove=no
40453
40454 for ac_func in remove
40455 do
40456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40457 echo "$as_me:$LINENO: checking for $ac_func" >&5
40458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40459 if eval "test \"\${$as_ac_var+set}\" = set"; then
40460   echo $ECHO_N "(cached) $ECHO_C" >&6
40461 else
40462   cat >conftest.$ac_ext <<_ACEOF
40463 /* confdefs.h.  */
40464 _ACEOF
40465 cat confdefs.h >>conftest.$ac_ext
40466 cat >>conftest.$ac_ext <<_ACEOF
40467 /* end confdefs.h.  */
40468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40470 #define $ac_func innocuous_$ac_func
40471
40472 /* System header to define __stub macros and hopefully few prototypes,
40473     which can conflict with char $ac_func (); below.
40474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40475     <limits.h> exists even on freestanding compilers.  */
40476
40477 #ifdef __STDC__
40478 # include <limits.h>
40479 #else
40480 # include <assert.h>
40481 #endif
40482
40483 #undef $ac_func
40484
40485 /* Override any gcc2 internal prototype to avoid an error.  */
40486 #ifdef __cplusplus
40487 extern "C"
40488 {
40489 #endif
40490 /* We use char because int might match the return type of a gcc2
40491    builtin and then its argument prototype would still apply.  */
40492 char $ac_func ();
40493 /* The GNU C library defines this for functions which it implements
40494     to always fail with ENOSYS.  Some functions are actually named
40495     something starting with __ and the normal name is an alias.  */
40496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40497 choke me
40498 #else
40499 char (*f) () = $ac_func;
40500 #endif
40501 #ifdef __cplusplus
40502 }
40503 #endif
40504
40505 int
40506 main ()
40507 {
40508 return f != $ac_func;
40509   ;
40510   return 0;
40511 }
40512 _ACEOF
40513 rm -f conftest.$ac_objext conftest$ac_exeext
40514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40515   (eval $ac_link) 2>conftest.er1
40516   ac_status=$?
40517   grep -v '^ *+' conftest.er1 >conftest.err
40518   rm -f conftest.er1
40519   cat conftest.err >&5
40520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40521   (exit $ac_status); } &&
40522          { ac_try='test -z "$ac_c_werror_flag"
40523                          || test ! -s conftest.err'
40524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40525   (eval $ac_try) 2>&5
40526   ac_status=$?
40527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40528   (exit $ac_status); }; } &&
40529          { ac_try='test -s conftest$ac_exeext'
40530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40531   (eval $ac_try) 2>&5
40532   ac_status=$?
40533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40534   (exit $ac_status); }; }; then
40535   eval "$as_ac_var=yes"
40536 else
40537   echo "$as_me: failed program was:" >&5
40538 sed 's/^/| /' conftest.$ac_ext >&5
40539
40540 eval "$as_ac_var=no"
40541 fi
40542 rm -f conftest.err conftest.$ac_objext \
40543       conftest$ac_exeext conftest.$ac_ext
40544 fi
40545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40547 if test `eval echo '${'$as_ac_var'}'` = yes; then
40548   cat >>confdefs.h <<_ACEOF
40549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40550 _ACEOF
40551  ice_have_remove=yes
40552 fi
40553 done
40554
40555 if test "${ice_have_remove}" = yes; then
40556 echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
40557 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6
40558 if test "${ice_cv_have_remove_decl+set}" = set; then
40559   echo $ECHO_N "(cached) $ECHO_C" >&6
40560 else
40561
40562 ice_cv_have_remove_decl=no
40563 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40564 ice_re_word='(^|[^a-zA-Z0-9_])'
40565 for header in stdio.h; do
40566 # Check for ordinary declaration
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 #include <$header>
40574
40575 _ACEOF
40576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40577   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
40578   ice_cv_have_remove_decl=yes
40579 fi
40580 rm -f conftest*
40581
40582 if test "$ice_cv_have_remove_decl" = yes; then
40583         break
40584 fi
40585 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40586 cat >conftest.$ac_ext <<_ACEOF
40587 /* confdefs.h.  */
40588 _ACEOF
40589 cat confdefs.h >>conftest.$ac_ext
40590 cat >>conftest.$ac_ext <<_ACEOF
40591 /* end confdefs.h.  */
40592 #include <$header>
40593
40594 _ACEOF
40595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40596   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40597   ice_cv_have_remove_decl=yes
40598 fi
40599 rm -f conftest*
40600
40601 if test "$ice_cv_have_remove_decl" = yes; then
40602         break
40603 fi
40604 done
40605
40606 fi
40607
40608 echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
40609 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6
40610 if test "$ice_cv_have_remove_decl" = yes; then
40611
40612 cat >>confdefs.h <<_ACEOF
40613 #define HAVE_REMOVE_DECL 1
40614 _ACEOF
40615
40616 fi
40617 fi
40618
40619
40620 ice_have_rename=no
40621
40622 for ac_func in rename
40623 do
40624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40625 echo "$as_me:$LINENO: checking for $ac_func" >&5
40626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40627 if eval "test \"\${$as_ac_var+set}\" = set"; then
40628   echo $ECHO_N "(cached) $ECHO_C" >&6
40629 else
40630   cat >conftest.$ac_ext <<_ACEOF
40631 /* confdefs.h.  */
40632 _ACEOF
40633 cat confdefs.h >>conftest.$ac_ext
40634 cat >>conftest.$ac_ext <<_ACEOF
40635 /* end confdefs.h.  */
40636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40638 #define $ac_func innocuous_$ac_func
40639
40640 /* System header to define __stub macros and hopefully few prototypes,
40641     which can conflict with char $ac_func (); below.
40642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40643     <limits.h> exists even on freestanding compilers.  */
40644
40645 #ifdef __STDC__
40646 # include <limits.h>
40647 #else
40648 # include <assert.h>
40649 #endif
40650
40651 #undef $ac_func
40652
40653 /* Override any gcc2 internal prototype to avoid an error.  */
40654 #ifdef __cplusplus
40655 extern "C"
40656 {
40657 #endif
40658 /* We use char because int might match the return type of a gcc2
40659    builtin and then its argument prototype would still apply.  */
40660 char $ac_func ();
40661 /* The GNU C library defines this for functions which it implements
40662     to always fail with ENOSYS.  Some functions are actually named
40663     something starting with __ and the normal name is an alias.  */
40664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40665 choke me
40666 #else
40667 char (*f) () = $ac_func;
40668 #endif
40669 #ifdef __cplusplus
40670 }
40671 #endif
40672
40673 int
40674 main ()
40675 {
40676 return f != $ac_func;
40677   ;
40678   return 0;
40679 }
40680 _ACEOF
40681 rm -f conftest.$ac_objext conftest$ac_exeext
40682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40683   (eval $ac_link) 2>conftest.er1
40684   ac_status=$?
40685   grep -v '^ *+' conftest.er1 >conftest.err
40686   rm -f conftest.er1
40687   cat conftest.err >&5
40688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40689   (exit $ac_status); } &&
40690          { ac_try='test -z "$ac_c_werror_flag"
40691                          || test ! -s conftest.err'
40692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40693   (eval $ac_try) 2>&5
40694   ac_status=$?
40695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40696   (exit $ac_status); }; } &&
40697          { ac_try='test -s conftest$ac_exeext'
40698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40699   (eval $ac_try) 2>&5
40700   ac_status=$?
40701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40702   (exit $ac_status); }; }; then
40703   eval "$as_ac_var=yes"
40704 else
40705   echo "$as_me: failed program was:" >&5
40706 sed 's/^/| /' conftest.$ac_ext >&5
40707
40708 eval "$as_ac_var=no"
40709 fi
40710 rm -f conftest.err conftest.$ac_objext \
40711       conftest$ac_exeext conftest.$ac_ext
40712 fi
40713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40715 if test `eval echo '${'$as_ac_var'}'` = yes; then
40716   cat >>confdefs.h <<_ACEOF
40717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40718 _ACEOF
40719  ice_have_rename=yes
40720 fi
40721 done
40722
40723 if test "${ice_have_rename}" = yes; then
40724 echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
40725 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6
40726 if test "${ice_cv_have_rename_decl+set}" = set; then
40727   echo $ECHO_N "(cached) $ECHO_C" >&6
40728 else
40729
40730 ice_cv_have_rename_decl=no
40731 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40732 ice_re_word='(^|[^a-zA-Z0-9_])'
40733 for header in stdio.h; do
40734 # Check for ordinary declaration
40735 cat >conftest.$ac_ext <<_ACEOF
40736 /* confdefs.h.  */
40737 _ACEOF
40738 cat confdefs.h >>conftest.$ac_ext
40739 cat >>conftest.$ac_ext <<_ACEOF
40740 /* end confdefs.h.  */
40741 #include <$header>
40742
40743 _ACEOF
40744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40745   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
40746   ice_cv_have_rename_decl=yes
40747 fi
40748 rm -f conftest*
40749
40750 if test "$ice_cv_have_rename_decl" = yes; then
40751         break
40752 fi
40753 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40754 cat >conftest.$ac_ext <<_ACEOF
40755 /* confdefs.h.  */
40756 _ACEOF
40757 cat confdefs.h >>conftest.$ac_ext
40758 cat >>conftest.$ac_ext <<_ACEOF
40759 /* end confdefs.h.  */
40760 #include <$header>
40761
40762 _ACEOF
40763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40764   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40765   ice_cv_have_rename_decl=yes
40766 fi
40767 rm -f conftest*
40768
40769 if test "$ice_cv_have_rename_decl" = yes; then
40770         break
40771 fi
40772 done
40773
40774 fi
40775
40776 echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
40777 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6
40778 if test "$ice_cv_have_rename_decl" = yes; then
40779
40780 cat >>confdefs.h <<_ACEOF
40781 #define HAVE_RENAME_DECL 1
40782 _ACEOF
40783
40784 fi
40785 fi
40786
40787
40788 ice_have_rewind=no
40789
40790 for ac_func in rewind
40791 do
40792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40793 echo "$as_me:$LINENO: checking for $ac_func" >&5
40794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40795 if eval "test \"\${$as_ac_var+set}\" = set"; then
40796   echo $ECHO_N "(cached) $ECHO_C" >&6
40797 else
40798   cat >conftest.$ac_ext <<_ACEOF
40799 /* confdefs.h.  */
40800 _ACEOF
40801 cat confdefs.h >>conftest.$ac_ext
40802 cat >>conftest.$ac_ext <<_ACEOF
40803 /* end confdefs.h.  */
40804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40806 #define $ac_func innocuous_$ac_func
40807
40808 /* System header to define __stub macros and hopefully few prototypes,
40809     which can conflict with char $ac_func (); below.
40810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40811     <limits.h> exists even on freestanding compilers.  */
40812
40813 #ifdef __STDC__
40814 # include <limits.h>
40815 #else
40816 # include <assert.h>
40817 #endif
40818
40819 #undef $ac_func
40820
40821 /* Override any gcc2 internal prototype to avoid an error.  */
40822 #ifdef __cplusplus
40823 extern "C"
40824 {
40825 #endif
40826 /* We use char because int might match the return type of a gcc2
40827    builtin and then its argument prototype would still apply.  */
40828 char $ac_func ();
40829 /* The GNU C library defines this for functions which it implements
40830     to always fail with ENOSYS.  Some functions are actually named
40831     something starting with __ and the normal name is an alias.  */
40832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40833 choke me
40834 #else
40835 char (*f) () = $ac_func;
40836 #endif
40837 #ifdef __cplusplus
40838 }
40839 #endif
40840
40841 int
40842 main ()
40843 {
40844 return f != $ac_func;
40845   ;
40846   return 0;
40847 }
40848 _ACEOF
40849 rm -f conftest.$ac_objext conftest$ac_exeext
40850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40851   (eval $ac_link) 2>conftest.er1
40852   ac_status=$?
40853   grep -v '^ *+' conftest.er1 >conftest.err
40854   rm -f conftest.er1
40855   cat conftest.err >&5
40856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40857   (exit $ac_status); } &&
40858          { ac_try='test -z "$ac_c_werror_flag"
40859                          || test ! -s conftest.err'
40860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40861   (eval $ac_try) 2>&5
40862   ac_status=$?
40863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40864   (exit $ac_status); }; } &&
40865          { ac_try='test -s conftest$ac_exeext'
40866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40867   (eval $ac_try) 2>&5
40868   ac_status=$?
40869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40870   (exit $ac_status); }; }; then
40871   eval "$as_ac_var=yes"
40872 else
40873   echo "$as_me: failed program was:" >&5
40874 sed 's/^/| /' conftest.$ac_ext >&5
40875
40876 eval "$as_ac_var=no"
40877 fi
40878 rm -f conftest.err conftest.$ac_objext \
40879       conftest$ac_exeext conftest.$ac_ext
40880 fi
40881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40883 if test `eval echo '${'$as_ac_var'}'` = yes; then
40884   cat >>confdefs.h <<_ACEOF
40885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40886 _ACEOF
40887  ice_have_rewind=yes
40888 fi
40889 done
40890
40891 if test "${ice_have_rewind}" = yes; then
40892 echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
40893 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6
40894 if test "${ice_cv_have_rewind_decl+set}" = set; then
40895   echo $ECHO_N "(cached) $ECHO_C" >&6
40896 else
40897
40898 ice_cv_have_rewind_decl=no
40899 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40900 ice_re_word='(^|[^a-zA-Z0-9_])'
40901 for header in stdio.h; do
40902 # Check for ordinary declaration
40903 cat >conftest.$ac_ext <<_ACEOF
40904 /* confdefs.h.  */
40905 _ACEOF
40906 cat confdefs.h >>conftest.$ac_ext
40907 cat >>conftest.$ac_ext <<_ACEOF
40908 /* end confdefs.h.  */
40909 #include <$header>
40910
40911 _ACEOF
40912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40913   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
40914   ice_cv_have_rewind_decl=yes
40915 fi
40916 rm -f conftest*
40917
40918 if test "$ice_cv_have_rewind_decl" = yes; then
40919         break
40920 fi
40921 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40922 cat >conftest.$ac_ext <<_ACEOF
40923 /* confdefs.h.  */
40924 _ACEOF
40925 cat confdefs.h >>conftest.$ac_ext
40926 cat >>conftest.$ac_ext <<_ACEOF
40927 /* end confdefs.h.  */
40928 #include <$header>
40929
40930 _ACEOF
40931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40932   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40933   ice_cv_have_rewind_decl=yes
40934 fi
40935 rm -f conftest*
40936
40937 if test "$ice_cv_have_rewind_decl" = yes; then
40938         break
40939 fi
40940 done
40941
40942 fi
40943
40944 echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
40945 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6
40946 if test "$ice_cv_have_rewind_decl" = yes; then
40947
40948 cat >>confdefs.h <<_ACEOF
40949 #define HAVE_REWIND_DECL 1
40950 _ACEOF
40951
40952 fi
40953 fi
40954
40955
40956 for ac_func in rmdir
40957 do
40958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40959 echo "$as_me:$LINENO: checking for $ac_func" >&5
40960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40961 if eval "test \"\${$as_ac_var+set}\" = set"; then
40962   echo $ECHO_N "(cached) $ECHO_C" >&6
40963 else
40964   cat >conftest.$ac_ext <<_ACEOF
40965 /* confdefs.h.  */
40966 _ACEOF
40967 cat confdefs.h >>conftest.$ac_ext
40968 cat >>conftest.$ac_ext <<_ACEOF
40969 /* end confdefs.h.  */
40970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40972 #define $ac_func innocuous_$ac_func
40973
40974 /* System header to define __stub macros and hopefully few prototypes,
40975     which can conflict with char $ac_func (); below.
40976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40977     <limits.h> exists even on freestanding compilers.  */
40978
40979 #ifdef __STDC__
40980 # include <limits.h>
40981 #else
40982 # include <assert.h>
40983 #endif
40984
40985 #undef $ac_func
40986
40987 /* Override any gcc2 internal prototype to avoid an error.  */
40988 #ifdef __cplusplus
40989 extern "C"
40990 {
40991 #endif
40992 /* We use char because int might match the return type of a gcc2
40993    builtin and then its argument prototype would still apply.  */
40994 char $ac_func ();
40995 /* The GNU C library defines this for functions which it implements
40996     to always fail with ENOSYS.  Some functions are actually named
40997     something starting with __ and the normal name is an alias.  */
40998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40999 choke me
41000 #else
41001 char (*f) () = $ac_func;
41002 #endif
41003 #ifdef __cplusplus
41004 }
41005 #endif
41006
41007 int
41008 main ()
41009 {
41010 return f != $ac_func;
41011   ;
41012   return 0;
41013 }
41014 _ACEOF
41015 rm -f conftest.$ac_objext conftest$ac_exeext
41016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41017   (eval $ac_link) 2>conftest.er1
41018   ac_status=$?
41019   grep -v '^ *+' conftest.er1 >conftest.err
41020   rm -f conftest.er1
41021   cat conftest.err >&5
41022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41023   (exit $ac_status); } &&
41024          { ac_try='test -z "$ac_c_werror_flag"
41025                          || test ! -s conftest.err'
41026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41027   (eval $ac_try) 2>&5
41028   ac_status=$?
41029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41030   (exit $ac_status); }; } &&
41031          { ac_try='test -s conftest$ac_exeext'
41032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41033   (eval $ac_try) 2>&5
41034   ac_status=$?
41035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41036   (exit $ac_status); }; }; then
41037   eval "$as_ac_var=yes"
41038 else
41039   echo "$as_me: failed program was:" >&5
41040 sed 's/^/| /' conftest.$ac_ext >&5
41041
41042 eval "$as_ac_var=no"
41043 fi
41044 rm -f conftest.err conftest.$ac_objext \
41045       conftest$ac_exeext conftest.$ac_ext
41046 fi
41047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41049 if test `eval echo '${'$as_ac_var'}'` = yes; then
41050   cat >>confdefs.h <<_ACEOF
41051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41052 _ACEOF
41053
41054 fi
41055 done
41056
41057
41058 ice_have_ruserok=no
41059
41060 for ac_func in ruserok
41061 do
41062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41063 echo "$as_me:$LINENO: checking for $ac_func" >&5
41064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41065 if eval "test \"\${$as_ac_var+set}\" = set"; then
41066   echo $ECHO_N "(cached) $ECHO_C" >&6
41067 else
41068   cat >conftest.$ac_ext <<_ACEOF
41069 /* confdefs.h.  */
41070 _ACEOF
41071 cat confdefs.h >>conftest.$ac_ext
41072 cat >>conftest.$ac_ext <<_ACEOF
41073 /* end confdefs.h.  */
41074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41075    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41076 #define $ac_func innocuous_$ac_func
41077
41078 /* System header to define __stub macros and hopefully few prototypes,
41079     which can conflict with char $ac_func (); below.
41080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41081     <limits.h> exists even on freestanding compilers.  */
41082
41083 #ifdef __STDC__
41084 # include <limits.h>
41085 #else
41086 # include <assert.h>
41087 #endif
41088
41089 #undef $ac_func
41090
41091 /* Override any gcc2 internal prototype to avoid an error.  */
41092 #ifdef __cplusplus
41093 extern "C"
41094 {
41095 #endif
41096 /* We use char because int might match the return type of a gcc2
41097    builtin and then its argument prototype would still apply.  */
41098 char $ac_func ();
41099 /* The GNU C library defines this for functions which it implements
41100     to always fail with ENOSYS.  Some functions are actually named
41101     something starting with __ and the normal name is an alias.  */
41102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41103 choke me
41104 #else
41105 char (*f) () = $ac_func;
41106 #endif
41107 #ifdef __cplusplus
41108 }
41109 #endif
41110
41111 int
41112 main ()
41113 {
41114 return f != $ac_func;
41115   ;
41116   return 0;
41117 }
41118 _ACEOF
41119 rm -f conftest.$ac_objext conftest$ac_exeext
41120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41121   (eval $ac_link) 2>conftest.er1
41122   ac_status=$?
41123   grep -v '^ *+' conftest.er1 >conftest.err
41124   rm -f conftest.er1
41125   cat conftest.err >&5
41126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41127   (exit $ac_status); } &&
41128          { ac_try='test -z "$ac_c_werror_flag"
41129                          || test ! -s conftest.err'
41130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41131   (eval $ac_try) 2>&5
41132   ac_status=$?
41133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41134   (exit $ac_status); }; } &&
41135          { ac_try='test -s conftest$ac_exeext'
41136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41137   (eval $ac_try) 2>&5
41138   ac_status=$?
41139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41140   (exit $ac_status); }; }; then
41141   eval "$as_ac_var=yes"
41142 else
41143   echo "$as_me: failed program was:" >&5
41144 sed 's/^/| /' conftest.$ac_ext >&5
41145
41146 eval "$as_ac_var=no"
41147 fi
41148 rm -f conftest.err conftest.$ac_objext \
41149       conftest$ac_exeext conftest.$ac_ext
41150 fi
41151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41153 if test `eval echo '${'$as_ac_var'}'` = yes; then
41154   cat >>confdefs.h <<_ACEOF
41155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41156 _ACEOF
41157  ice_have_ruserok=yes
41158 fi
41159 done
41160
41161 if test "${ice_have_ruserok}" = yes; then
41162 echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
41163 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6
41164 if test "${ice_cv_have_ruserok_decl+set}" = set; then
41165   echo $ECHO_N "(cached) $ECHO_C" >&6
41166 else
41167
41168 ice_cv_have_ruserok_decl=no
41169 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41170 ice_re_word='(^|[^a-zA-Z0-9_])'
41171 for header in netdb.h sys/socket.h libc.h unistd.h; do
41172 # Check for ordinary declaration
41173 cat >conftest.$ac_ext <<_ACEOF
41174 /* confdefs.h.  */
41175 _ACEOF
41176 cat confdefs.h >>conftest.$ac_ext
41177 cat >>conftest.$ac_ext <<_ACEOF
41178 /* end confdefs.h.  */
41179 #include <$header>
41180
41181 _ACEOF
41182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41183   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
41184   ice_cv_have_ruserok_decl=yes
41185 fi
41186 rm -f conftest*
41187
41188 if test "$ice_cv_have_ruserok_decl" = yes; then
41189         break
41190 fi
41191 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41192 cat >conftest.$ac_ext <<_ACEOF
41193 /* confdefs.h.  */
41194 _ACEOF
41195 cat confdefs.h >>conftest.$ac_ext
41196 cat >>conftest.$ac_ext <<_ACEOF
41197 /* end confdefs.h.  */
41198 #include <$header>
41199
41200 _ACEOF
41201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41202   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41203   ice_cv_have_ruserok_decl=yes
41204 fi
41205 rm -f conftest*
41206
41207 if test "$ice_cv_have_ruserok_decl" = yes; then
41208         break
41209 fi
41210 done
41211
41212 fi
41213
41214 echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
41215 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6
41216 if test "$ice_cv_have_ruserok_decl" = yes; then
41217
41218 cat >>confdefs.h <<_ACEOF
41219 #define HAVE_RUSEROK_DECL 1
41220 _ACEOF
41221
41222 fi
41223 fi
41224
41225
41226 ice_have_select=no
41227
41228 for ac_func in select
41229 do
41230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41231 echo "$as_me:$LINENO: checking for $ac_func" >&5
41232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41233 if eval "test \"\${$as_ac_var+set}\" = set"; then
41234   echo $ECHO_N "(cached) $ECHO_C" >&6
41235 else
41236   cat >conftest.$ac_ext <<_ACEOF
41237 /* confdefs.h.  */
41238 _ACEOF
41239 cat confdefs.h >>conftest.$ac_ext
41240 cat >>conftest.$ac_ext <<_ACEOF
41241 /* end confdefs.h.  */
41242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41244 #define $ac_func innocuous_$ac_func
41245
41246 /* System header to define __stub macros and hopefully few prototypes,
41247     which can conflict with char $ac_func (); below.
41248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41249     <limits.h> exists even on freestanding compilers.  */
41250
41251 #ifdef __STDC__
41252 # include <limits.h>
41253 #else
41254 # include <assert.h>
41255 #endif
41256
41257 #undef $ac_func
41258
41259 /* Override any gcc2 internal prototype to avoid an error.  */
41260 #ifdef __cplusplus
41261 extern "C"
41262 {
41263 #endif
41264 /* We use char because int might match the return type of a gcc2
41265    builtin and then its argument prototype would still apply.  */
41266 char $ac_func ();
41267 /* The GNU C library defines this for functions which it implements
41268     to always fail with ENOSYS.  Some functions are actually named
41269     something starting with __ and the normal name is an alias.  */
41270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41271 choke me
41272 #else
41273 char (*f) () = $ac_func;
41274 #endif
41275 #ifdef __cplusplus
41276 }
41277 #endif
41278
41279 int
41280 main ()
41281 {
41282 return f != $ac_func;
41283   ;
41284   return 0;
41285 }
41286 _ACEOF
41287 rm -f conftest.$ac_objext conftest$ac_exeext
41288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41289   (eval $ac_link) 2>conftest.er1
41290   ac_status=$?
41291   grep -v '^ *+' conftest.er1 >conftest.err
41292   rm -f conftest.er1
41293   cat conftest.err >&5
41294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41295   (exit $ac_status); } &&
41296          { ac_try='test -z "$ac_c_werror_flag"
41297                          || test ! -s conftest.err'
41298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41299   (eval $ac_try) 2>&5
41300   ac_status=$?
41301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41302   (exit $ac_status); }; } &&
41303          { ac_try='test -s conftest$ac_exeext'
41304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41305   (eval $ac_try) 2>&5
41306   ac_status=$?
41307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41308   (exit $ac_status); }; }; then
41309   eval "$as_ac_var=yes"
41310 else
41311   echo "$as_me: failed program was:" >&5
41312 sed 's/^/| /' conftest.$ac_ext >&5
41313
41314 eval "$as_ac_var=no"
41315 fi
41316 rm -f conftest.err conftest.$ac_objext \
41317       conftest$ac_exeext conftest.$ac_ext
41318 fi
41319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41321 if test `eval echo '${'$as_ac_var'}'` = yes; then
41322   cat >>confdefs.h <<_ACEOF
41323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41324 _ACEOF
41325  ice_have_select=yes
41326 fi
41327 done
41328
41329 if test "${ice_have_select}" = yes; then
41330 echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
41331 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
41332 if test "${ice_cv_have_select_decl+set}" = set; then
41333   echo $ECHO_N "(cached) $ECHO_C" >&6
41334 else
41335
41336 ice_cv_have_select_decl=no
41337 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41338 ice_re_word='(^|[^a-zA-Z0-9_])'
41339 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
41340 # Check for ordinary declaration
41341 cat >conftest.$ac_ext <<_ACEOF
41342 /* confdefs.h.  */
41343 _ACEOF
41344 cat confdefs.h >>conftest.$ac_ext
41345 cat >>conftest.$ac_ext <<_ACEOF
41346 /* end confdefs.h.  */
41347 #include <$header>
41348
41349 _ACEOF
41350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41351   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
41352   ice_cv_have_select_decl=yes
41353 fi
41354 rm -f conftest*
41355
41356 if test "$ice_cv_have_select_decl" = yes; then
41357         break
41358 fi
41359 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41360 cat >conftest.$ac_ext <<_ACEOF
41361 /* confdefs.h.  */
41362 _ACEOF
41363 cat confdefs.h >>conftest.$ac_ext
41364 cat >>conftest.$ac_ext <<_ACEOF
41365 /* end confdefs.h.  */
41366 #include <$header>
41367
41368 _ACEOF
41369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41370   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41371   ice_cv_have_select_decl=yes
41372 fi
41373 rm -f conftest*
41374
41375 if test "$ice_cv_have_select_decl" = yes; then
41376         break
41377 fi
41378 done
41379
41380 fi
41381
41382 echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
41383 echo "${ECHO_T}$ice_cv_have_select_decl" >&6
41384 if test "$ice_cv_have_select_decl" = yes; then
41385
41386 cat >>confdefs.h <<_ACEOF
41387 #define HAVE_SELECT_DECL 1
41388 _ACEOF
41389
41390 fi
41391 fi
41392
41393
41394         echo "$as_me:$LINENO: checking for select() argument type" >&5
41395 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6
41396 if test "${amanda_cv_select_arg_type+set}" = set; then
41397   echo $ECHO_N "(cached) $ECHO_C" >&6
41398 else
41399
41400                 rm -f conftest.c
41401                 cat <<EOF >conftest.$ac_ext
41402 #include "confdefs.h"
41403 #ifdef HAVE_SYS_TIME_H
41404 # include <sys/time.h>
41405 #endif
41406 #ifdef HAVE_SYS_TYPES_H
41407 # include <sys/types.h>
41408 #endif
41409 #ifdef HAVE_SYS_SELECT_H
41410 #  include <sys/select.h>
41411 #endif
41412 #ifdef HAVE_SYS_SOCKET_H
41413 #  include <sys/socket.h>
41414 #endif
41415 #ifdef HAVE_UNISTD_H
41416 # include <unistd.h>
41417 #endif
41418
41419 int main()
41420 {
41421 #ifdef FD_SET_POINTER
41422         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
41423 #else
41424         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
41425 #endif
41426         return 0;
41427 }
41428 EOF
41429
41430                                                                                                                                 amanda_cv_select_arg_type=no
41431                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
41432                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
41433                 if test $? -ne 0; then
41434                     amanda_cv_select_arg_type=int
41435                 fi
41436                 if test "$amanda_cv_select_arg_type" = no; then
41437                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
41438                     if test $? -ne 0; then
41439                         amanda_cv_select_arg_type=fd_set
41440                     fi
41441                 fi
41442                 if test "$amanda_cv_select_arg_type" = no; then
41443                     wc_fdset=`wc -l <conftest.fd_set`
41444                     wc_int=`wc -l <conftest.int`
41445                     if test "$wc_fdset" -le "$wc_int"; then
41446                         amanda_cv_select_arg_type=fd_set
41447                     else
41448                         amanda_cv_select_arg_type=int
41449                     fi
41450                 fi
41451                 rm -f conftest*
41452
41453
41454 fi
41455 echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
41456 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6
41457
41458 cat >>confdefs.h <<_ACEOF
41459 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
41460 _ACEOF
41461
41462
41463
41464
41465 ice_have_sendto=no
41466
41467 for ac_func in sendto
41468 do
41469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41470 echo "$as_me:$LINENO: checking for $ac_func" >&5
41471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41472 if eval "test \"\${$as_ac_var+set}\" = set"; then
41473   echo $ECHO_N "(cached) $ECHO_C" >&6
41474 else
41475   cat >conftest.$ac_ext <<_ACEOF
41476 /* confdefs.h.  */
41477 _ACEOF
41478 cat confdefs.h >>conftest.$ac_ext
41479 cat >>conftest.$ac_ext <<_ACEOF
41480 /* end confdefs.h.  */
41481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41483 #define $ac_func innocuous_$ac_func
41484
41485 /* System header to define __stub macros and hopefully few prototypes,
41486     which can conflict with char $ac_func (); below.
41487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41488     <limits.h> exists even on freestanding compilers.  */
41489
41490 #ifdef __STDC__
41491 # include <limits.h>
41492 #else
41493 # include <assert.h>
41494 #endif
41495
41496 #undef $ac_func
41497
41498 /* Override any gcc2 internal prototype to avoid an error.  */
41499 #ifdef __cplusplus
41500 extern "C"
41501 {
41502 #endif
41503 /* We use char because int might match the return type of a gcc2
41504    builtin and then its argument prototype would still apply.  */
41505 char $ac_func ();
41506 /* The GNU C library defines this for functions which it implements
41507     to always fail with ENOSYS.  Some functions are actually named
41508     something starting with __ and the normal name is an alias.  */
41509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41510 choke me
41511 #else
41512 char (*f) () = $ac_func;
41513 #endif
41514 #ifdef __cplusplus
41515 }
41516 #endif
41517
41518 int
41519 main ()
41520 {
41521 return f != $ac_func;
41522   ;
41523   return 0;
41524 }
41525 _ACEOF
41526 rm -f conftest.$ac_objext conftest$ac_exeext
41527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41528   (eval $ac_link) 2>conftest.er1
41529   ac_status=$?
41530   grep -v '^ *+' conftest.er1 >conftest.err
41531   rm -f conftest.er1
41532   cat conftest.err >&5
41533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41534   (exit $ac_status); } &&
41535          { ac_try='test -z "$ac_c_werror_flag"
41536                          || test ! -s conftest.err'
41537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41538   (eval $ac_try) 2>&5
41539   ac_status=$?
41540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41541   (exit $ac_status); }; } &&
41542          { ac_try='test -s conftest$ac_exeext'
41543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41544   (eval $ac_try) 2>&5
41545   ac_status=$?
41546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41547   (exit $ac_status); }; }; then
41548   eval "$as_ac_var=yes"
41549 else
41550   echo "$as_me: failed program was:" >&5
41551 sed 's/^/| /' conftest.$ac_ext >&5
41552
41553 eval "$as_ac_var=no"
41554 fi
41555 rm -f conftest.err conftest.$ac_objext \
41556       conftest$ac_exeext conftest.$ac_ext
41557 fi
41558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41560 if test `eval echo '${'$as_ac_var'}'` = yes; then
41561   cat >>confdefs.h <<_ACEOF
41562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41563 _ACEOF
41564  ice_have_sendto=yes
41565 fi
41566 done
41567
41568 if test "${ice_have_sendto}" = yes; then
41569 echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
41570 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
41571 if test "${ice_cv_have_sendto_decl+set}" = set; then
41572   echo $ECHO_N "(cached) $ECHO_C" >&6
41573 else
41574
41575 ice_cv_have_sendto_decl=no
41576 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41577 ice_re_word='(^|[^a-zA-Z0-9_])'
41578 for header in sys/types.h sys/socket.h; do
41579 # Check for ordinary declaration
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 #include <$header>
41587
41588 _ACEOF
41589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41590   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
41591   ice_cv_have_sendto_decl=yes
41592 fi
41593 rm -f conftest*
41594
41595 if test "$ice_cv_have_sendto_decl" = yes; then
41596         break
41597 fi
41598 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41599 cat >conftest.$ac_ext <<_ACEOF
41600 /* confdefs.h.  */
41601 _ACEOF
41602 cat confdefs.h >>conftest.$ac_ext
41603 cat >>conftest.$ac_ext <<_ACEOF
41604 /* end confdefs.h.  */
41605 #include <$header>
41606
41607 _ACEOF
41608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41609   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41610   ice_cv_have_sendto_decl=yes
41611 fi
41612 rm -f conftest*
41613
41614 if test "$ice_cv_have_sendto_decl" = yes; then
41615         break
41616 fi
41617 done
41618
41619 fi
41620
41621 echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
41622 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6
41623 if test "$ice_cv_have_sendto_decl" = yes; then
41624
41625 cat >>confdefs.h <<_ACEOF
41626 #define HAVE_SENDTO_DECL 1
41627 _ACEOF
41628
41629 fi
41630 fi
41631
41632
41633 ice_have_setegid=no
41634
41635 for ac_func in setegid
41636 do
41637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41638 echo "$as_me:$LINENO: checking for $ac_func" >&5
41639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41640 if eval "test \"\${$as_ac_var+set}\" = set"; then
41641   echo $ECHO_N "(cached) $ECHO_C" >&6
41642 else
41643   cat >conftest.$ac_ext <<_ACEOF
41644 /* confdefs.h.  */
41645 _ACEOF
41646 cat confdefs.h >>conftest.$ac_ext
41647 cat >>conftest.$ac_ext <<_ACEOF
41648 /* end confdefs.h.  */
41649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41651 #define $ac_func innocuous_$ac_func
41652
41653 /* System header to define __stub macros and hopefully few prototypes,
41654     which can conflict with char $ac_func (); below.
41655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41656     <limits.h> exists even on freestanding compilers.  */
41657
41658 #ifdef __STDC__
41659 # include <limits.h>
41660 #else
41661 # include <assert.h>
41662 #endif
41663
41664 #undef $ac_func
41665
41666 /* Override any gcc2 internal prototype to avoid an error.  */
41667 #ifdef __cplusplus
41668 extern "C"
41669 {
41670 #endif
41671 /* We use char because int might match the return type of a gcc2
41672    builtin and then its argument prototype would still apply.  */
41673 char $ac_func ();
41674 /* The GNU C library defines this for functions which it implements
41675     to always fail with ENOSYS.  Some functions are actually named
41676     something starting with __ and the normal name is an alias.  */
41677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41678 choke me
41679 #else
41680 char (*f) () = $ac_func;
41681 #endif
41682 #ifdef __cplusplus
41683 }
41684 #endif
41685
41686 int
41687 main ()
41688 {
41689 return f != $ac_func;
41690   ;
41691   return 0;
41692 }
41693 _ACEOF
41694 rm -f conftest.$ac_objext conftest$ac_exeext
41695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41696   (eval $ac_link) 2>conftest.er1
41697   ac_status=$?
41698   grep -v '^ *+' conftest.er1 >conftest.err
41699   rm -f conftest.er1
41700   cat conftest.err >&5
41701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702   (exit $ac_status); } &&
41703          { ac_try='test -z "$ac_c_werror_flag"
41704                          || test ! -s conftest.err'
41705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41706   (eval $ac_try) 2>&5
41707   ac_status=$?
41708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41709   (exit $ac_status); }; } &&
41710          { ac_try='test -s conftest$ac_exeext'
41711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41712   (eval $ac_try) 2>&5
41713   ac_status=$?
41714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41715   (exit $ac_status); }; }; then
41716   eval "$as_ac_var=yes"
41717 else
41718   echo "$as_me: failed program was:" >&5
41719 sed 's/^/| /' conftest.$ac_ext >&5
41720
41721 eval "$as_ac_var=no"
41722 fi
41723 rm -f conftest.err conftest.$ac_objext \
41724       conftest$ac_exeext conftest.$ac_ext
41725 fi
41726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41728 if test `eval echo '${'$as_ac_var'}'` = yes; then
41729   cat >>confdefs.h <<_ACEOF
41730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41731 _ACEOF
41732  ice_have_setegid=yes
41733 fi
41734 done
41735
41736 if test "${ice_have_setegid}" = yes; then
41737 echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
41738 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6
41739 if test "${ice_cv_have_setegid_decl+set}" = set; then
41740   echo $ECHO_N "(cached) $ECHO_C" >&6
41741 else
41742
41743 ice_cv_have_setegid_decl=no
41744 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41745 ice_re_word='(^|[^a-zA-Z0-9_])'
41746 for header in unistd.h; do
41747 # Check for ordinary declaration
41748 cat >conftest.$ac_ext <<_ACEOF
41749 /* confdefs.h.  */
41750 _ACEOF
41751 cat confdefs.h >>conftest.$ac_ext
41752 cat >>conftest.$ac_ext <<_ACEOF
41753 /* end confdefs.h.  */
41754 #include <$header>
41755
41756 _ACEOF
41757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41758   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
41759   ice_cv_have_setegid_decl=yes
41760 fi
41761 rm -f conftest*
41762
41763 if test "$ice_cv_have_setegid_decl" = yes; then
41764         break
41765 fi
41766 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41767 cat >conftest.$ac_ext <<_ACEOF
41768 /* confdefs.h.  */
41769 _ACEOF
41770 cat confdefs.h >>conftest.$ac_ext
41771 cat >>conftest.$ac_ext <<_ACEOF
41772 /* end confdefs.h.  */
41773 #include <$header>
41774
41775 _ACEOF
41776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41777   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41778   ice_cv_have_setegid_decl=yes
41779 fi
41780 rm -f conftest*
41781
41782 if test "$ice_cv_have_setegid_decl" = yes; then
41783         break
41784 fi
41785 done
41786
41787 fi
41788
41789 echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
41790 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6
41791 if test "$ice_cv_have_setegid_decl" = yes; then
41792
41793 cat >>confdefs.h <<_ACEOF
41794 #define HAVE_SETEGID_DECL 1
41795 _ACEOF
41796
41797 fi
41798 fi
41799
41800
41801 ice_have_seteuid=no
41802
41803 for ac_func in seteuid
41804 do
41805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41806 echo "$as_me:$LINENO: checking for $ac_func" >&5
41807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41808 if eval "test \"\${$as_ac_var+set}\" = set"; then
41809   echo $ECHO_N "(cached) $ECHO_C" >&6
41810 else
41811   cat >conftest.$ac_ext <<_ACEOF
41812 /* confdefs.h.  */
41813 _ACEOF
41814 cat confdefs.h >>conftest.$ac_ext
41815 cat >>conftest.$ac_ext <<_ACEOF
41816 /* end confdefs.h.  */
41817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41819 #define $ac_func innocuous_$ac_func
41820
41821 /* System header to define __stub macros and hopefully few prototypes,
41822     which can conflict with char $ac_func (); below.
41823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41824     <limits.h> exists even on freestanding compilers.  */
41825
41826 #ifdef __STDC__
41827 # include <limits.h>
41828 #else
41829 # include <assert.h>
41830 #endif
41831
41832 #undef $ac_func
41833
41834 /* Override any gcc2 internal prototype to avoid an error.  */
41835 #ifdef __cplusplus
41836 extern "C"
41837 {
41838 #endif
41839 /* We use char because int might match the return type of a gcc2
41840    builtin and then its argument prototype would still apply.  */
41841 char $ac_func ();
41842 /* The GNU C library defines this for functions which it implements
41843     to always fail with ENOSYS.  Some functions are actually named
41844     something starting with __ and the normal name is an alias.  */
41845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41846 choke me
41847 #else
41848 char (*f) () = $ac_func;
41849 #endif
41850 #ifdef __cplusplus
41851 }
41852 #endif
41853
41854 int
41855 main ()
41856 {
41857 return f != $ac_func;
41858   ;
41859   return 0;
41860 }
41861 _ACEOF
41862 rm -f conftest.$ac_objext conftest$ac_exeext
41863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41864   (eval $ac_link) 2>conftest.er1
41865   ac_status=$?
41866   grep -v '^ *+' conftest.er1 >conftest.err
41867   rm -f conftest.er1
41868   cat conftest.err >&5
41869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41870   (exit $ac_status); } &&
41871          { ac_try='test -z "$ac_c_werror_flag"
41872                          || test ! -s conftest.err'
41873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41874   (eval $ac_try) 2>&5
41875   ac_status=$?
41876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41877   (exit $ac_status); }; } &&
41878          { ac_try='test -s conftest$ac_exeext'
41879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41880   (eval $ac_try) 2>&5
41881   ac_status=$?
41882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41883   (exit $ac_status); }; }; then
41884   eval "$as_ac_var=yes"
41885 else
41886   echo "$as_me: failed program was:" >&5
41887 sed 's/^/| /' conftest.$ac_ext >&5
41888
41889 eval "$as_ac_var=no"
41890 fi
41891 rm -f conftest.err conftest.$ac_objext \
41892       conftest$ac_exeext conftest.$ac_ext
41893 fi
41894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41896 if test `eval echo '${'$as_ac_var'}'` = yes; then
41897   cat >>confdefs.h <<_ACEOF
41898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41899 _ACEOF
41900  ice_have_seteuid=yes
41901 fi
41902 done
41903
41904 if test "${ice_have_seteuid}" = yes; then
41905 echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
41906 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6
41907 if test "${ice_cv_have_seteuid_decl+set}" = set; then
41908   echo $ECHO_N "(cached) $ECHO_C" >&6
41909 else
41910
41911 ice_cv_have_seteuid_decl=no
41912 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41913 ice_re_word='(^|[^a-zA-Z0-9_])'
41914 for header in unistd.h; do
41915 # Check for ordinary declaration
41916 cat >conftest.$ac_ext <<_ACEOF
41917 /* confdefs.h.  */
41918 _ACEOF
41919 cat confdefs.h >>conftest.$ac_ext
41920 cat >>conftest.$ac_ext <<_ACEOF
41921 /* end confdefs.h.  */
41922 #include <$header>
41923
41924 _ACEOF
41925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41926   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
41927   ice_cv_have_seteuid_decl=yes
41928 fi
41929 rm -f conftest*
41930
41931 if test "$ice_cv_have_seteuid_decl" = yes; then
41932         break
41933 fi
41934 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41935 cat >conftest.$ac_ext <<_ACEOF
41936 /* confdefs.h.  */
41937 _ACEOF
41938 cat confdefs.h >>conftest.$ac_ext
41939 cat >>conftest.$ac_ext <<_ACEOF
41940 /* end confdefs.h.  */
41941 #include <$header>
41942
41943 _ACEOF
41944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41945   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41946   ice_cv_have_seteuid_decl=yes
41947 fi
41948 rm -f conftest*
41949
41950 if test "$ice_cv_have_seteuid_decl" = yes; then
41951         break
41952 fi
41953 done
41954
41955 fi
41956
41957 echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
41958 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6
41959 if test "$ice_cv_have_seteuid_decl" = yes; then
41960
41961 cat >>confdefs.h <<_ACEOF
41962 #define HAVE_SETEUID_DECL 1
41963 _ACEOF
41964
41965 fi
41966 fi
41967
41968
41969 for ac_func in setmntent
41970 do
41971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41972 echo "$as_me:$LINENO: checking for $ac_func" >&5
41973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41974 if eval "test \"\${$as_ac_var+set}\" = set"; then
41975   echo $ECHO_N "(cached) $ECHO_C" >&6
41976 else
41977   cat >conftest.$ac_ext <<_ACEOF
41978 /* confdefs.h.  */
41979 _ACEOF
41980 cat confdefs.h >>conftest.$ac_ext
41981 cat >>conftest.$ac_ext <<_ACEOF
41982 /* end confdefs.h.  */
41983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41985 #define $ac_func innocuous_$ac_func
41986
41987 /* System header to define __stub macros and hopefully few prototypes,
41988     which can conflict with char $ac_func (); below.
41989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41990     <limits.h> exists even on freestanding compilers.  */
41991
41992 #ifdef __STDC__
41993 # include <limits.h>
41994 #else
41995 # include <assert.h>
41996 #endif
41997
41998 #undef $ac_func
41999
42000 /* Override any gcc2 internal prototype to avoid an error.  */
42001 #ifdef __cplusplus
42002 extern "C"
42003 {
42004 #endif
42005 /* We use char because int might match the return type of a gcc2
42006    builtin and then its argument prototype would still apply.  */
42007 char $ac_func ();
42008 /* The GNU C library defines this for functions which it implements
42009     to always fail with ENOSYS.  Some functions are actually named
42010     something starting with __ and the normal name is an alias.  */
42011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42012 choke me
42013 #else
42014 char (*f) () = $ac_func;
42015 #endif
42016 #ifdef __cplusplus
42017 }
42018 #endif
42019
42020 int
42021 main ()
42022 {
42023 return f != $ac_func;
42024   ;
42025   return 0;
42026 }
42027 _ACEOF
42028 rm -f conftest.$ac_objext conftest$ac_exeext
42029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42030   (eval $ac_link) 2>conftest.er1
42031   ac_status=$?
42032   grep -v '^ *+' conftest.er1 >conftest.err
42033   rm -f conftest.er1
42034   cat conftest.err >&5
42035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42036   (exit $ac_status); } &&
42037          { ac_try='test -z "$ac_c_werror_flag"
42038                          || test ! -s conftest.err'
42039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42040   (eval $ac_try) 2>&5
42041   ac_status=$?
42042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42043   (exit $ac_status); }; } &&
42044          { ac_try='test -s conftest$ac_exeext'
42045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42046   (eval $ac_try) 2>&5
42047   ac_status=$?
42048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42049   (exit $ac_status); }; }; then
42050   eval "$as_ac_var=yes"
42051 else
42052   echo "$as_me: failed program was:" >&5
42053 sed 's/^/| /' conftest.$ac_ext >&5
42054
42055 eval "$as_ac_var=no"
42056 fi
42057 rm -f conftest.err conftest.$ac_objext \
42058       conftest$ac_exeext conftest.$ac_ext
42059 fi
42060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42062 if test `eval echo '${'$as_ac_var'}'` = yes; then
42063   cat >>confdefs.h <<_ACEOF
42064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42065 _ACEOF
42066
42067 fi
42068 done
42069
42070
42071 ice_have_setresgid=no
42072
42073 for ac_func in setresgid
42074 do
42075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42076 echo "$as_me:$LINENO: checking for $ac_func" >&5
42077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42078 if eval "test \"\${$as_ac_var+set}\" = set"; then
42079   echo $ECHO_N "(cached) $ECHO_C" >&6
42080 else
42081   cat >conftest.$ac_ext <<_ACEOF
42082 /* confdefs.h.  */
42083 _ACEOF
42084 cat confdefs.h >>conftest.$ac_ext
42085 cat >>conftest.$ac_ext <<_ACEOF
42086 /* end confdefs.h.  */
42087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42089 #define $ac_func innocuous_$ac_func
42090
42091 /* System header to define __stub macros and hopefully few prototypes,
42092     which can conflict with char $ac_func (); below.
42093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42094     <limits.h> exists even on freestanding compilers.  */
42095
42096 #ifdef __STDC__
42097 # include <limits.h>
42098 #else
42099 # include <assert.h>
42100 #endif
42101
42102 #undef $ac_func
42103
42104 /* Override any gcc2 internal prototype to avoid an error.  */
42105 #ifdef __cplusplus
42106 extern "C"
42107 {
42108 #endif
42109 /* We use char because int might match the return type of a gcc2
42110    builtin and then its argument prototype would still apply.  */
42111 char $ac_func ();
42112 /* The GNU C library defines this for functions which it implements
42113     to always fail with ENOSYS.  Some functions are actually named
42114     something starting with __ and the normal name is an alias.  */
42115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42116 choke me
42117 #else
42118 char (*f) () = $ac_func;
42119 #endif
42120 #ifdef __cplusplus
42121 }
42122 #endif
42123
42124 int
42125 main ()
42126 {
42127 return f != $ac_func;
42128   ;
42129   return 0;
42130 }
42131 _ACEOF
42132 rm -f conftest.$ac_objext conftest$ac_exeext
42133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42134   (eval $ac_link) 2>conftest.er1
42135   ac_status=$?
42136   grep -v '^ *+' conftest.er1 >conftest.err
42137   rm -f conftest.er1
42138   cat conftest.err >&5
42139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42140   (exit $ac_status); } &&
42141          { ac_try='test -z "$ac_c_werror_flag"
42142                          || test ! -s conftest.err'
42143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42144   (eval $ac_try) 2>&5
42145   ac_status=$?
42146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42147   (exit $ac_status); }; } &&
42148          { ac_try='test -s conftest$ac_exeext'
42149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42150   (eval $ac_try) 2>&5
42151   ac_status=$?
42152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42153   (exit $ac_status); }; }; then
42154   eval "$as_ac_var=yes"
42155 else
42156   echo "$as_me: failed program was:" >&5
42157 sed 's/^/| /' conftest.$ac_ext >&5
42158
42159 eval "$as_ac_var=no"
42160 fi
42161 rm -f conftest.err conftest.$ac_objext \
42162       conftest$ac_exeext conftest.$ac_ext
42163 fi
42164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42166 if test `eval echo '${'$as_ac_var'}'` = yes; then
42167   cat >>confdefs.h <<_ACEOF
42168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42169 _ACEOF
42170  ice_have_setresgid=yes
42171 fi
42172 done
42173
42174 if test "${ice_have_setresgid}" = yes; then
42175 echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
42176 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6
42177 if test "${ice_cv_have_setresgid_decl+set}" = set; then
42178   echo $ECHO_N "(cached) $ECHO_C" >&6
42179 else
42180
42181 ice_cv_have_setresgid_decl=no
42182 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42183 ice_re_word='(^|[^a-zA-Z0-9_])'
42184 for header in unistd.h; do
42185 # Check for ordinary declaration
42186 cat >conftest.$ac_ext <<_ACEOF
42187 /* confdefs.h.  */
42188 _ACEOF
42189 cat confdefs.h >>conftest.$ac_ext
42190 cat >>conftest.$ac_ext <<_ACEOF
42191 /* end confdefs.h.  */
42192 #include <$header>
42193
42194 _ACEOF
42195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42196   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then
42197   ice_cv_have_setresgid_decl=yes
42198 fi
42199 rm -f conftest*
42200
42201 if test "$ice_cv_have_setresgid_decl" = yes; then
42202         break
42203 fi
42204 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42205 cat >conftest.$ac_ext <<_ACEOF
42206 /* confdefs.h.  */
42207 _ACEOF
42208 cat confdefs.h >>conftest.$ac_ext
42209 cat >>conftest.$ac_ext <<_ACEOF
42210 /* end confdefs.h.  */
42211 #include <$header>
42212
42213 _ACEOF
42214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42215   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42216   ice_cv_have_setresgid_decl=yes
42217 fi
42218 rm -f conftest*
42219
42220 if test "$ice_cv_have_setresgid_decl" = yes; then
42221         break
42222 fi
42223 done
42224
42225 fi
42226
42227 echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
42228 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6
42229 if test "$ice_cv_have_setresgid_decl" = yes; then
42230
42231 cat >>confdefs.h <<_ACEOF
42232 #define HAVE_SETRESGID_DECL 1
42233 _ACEOF
42234
42235 fi
42236 fi
42237
42238
42239 ice_have_setresuid=no
42240
42241 for ac_func in setresuid
42242 do
42243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42244 echo "$as_me:$LINENO: checking for $ac_func" >&5
42245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42246 if eval "test \"\${$as_ac_var+set}\" = set"; then
42247   echo $ECHO_N "(cached) $ECHO_C" >&6
42248 else
42249   cat >conftest.$ac_ext <<_ACEOF
42250 /* confdefs.h.  */
42251 _ACEOF
42252 cat confdefs.h >>conftest.$ac_ext
42253 cat >>conftest.$ac_ext <<_ACEOF
42254 /* end confdefs.h.  */
42255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42257 #define $ac_func innocuous_$ac_func
42258
42259 /* System header to define __stub macros and hopefully few prototypes,
42260     which can conflict with char $ac_func (); below.
42261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42262     <limits.h> exists even on freestanding compilers.  */
42263
42264 #ifdef __STDC__
42265 # include <limits.h>
42266 #else
42267 # include <assert.h>
42268 #endif
42269
42270 #undef $ac_func
42271
42272 /* Override any gcc2 internal prototype to avoid an error.  */
42273 #ifdef __cplusplus
42274 extern "C"
42275 {
42276 #endif
42277 /* We use char because int might match the return type of a gcc2
42278    builtin and then its argument prototype would still apply.  */
42279 char $ac_func ();
42280 /* The GNU C library defines this for functions which it implements
42281     to always fail with ENOSYS.  Some functions are actually named
42282     something starting with __ and the normal name is an alias.  */
42283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42284 choke me
42285 #else
42286 char (*f) () = $ac_func;
42287 #endif
42288 #ifdef __cplusplus
42289 }
42290 #endif
42291
42292 int
42293 main ()
42294 {
42295 return f != $ac_func;
42296   ;
42297   return 0;
42298 }
42299 _ACEOF
42300 rm -f conftest.$ac_objext conftest$ac_exeext
42301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42302   (eval $ac_link) 2>conftest.er1
42303   ac_status=$?
42304   grep -v '^ *+' conftest.er1 >conftest.err
42305   rm -f conftest.er1
42306   cat conftest.err >&5
42307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42308   (exit $ac_status); } &&
42309          { ac_try='test -z "$ac_c_werror_flag"
42310                          || test ! -s conftest.err'
42311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42312   (eval $ac_try) 2>&5
42313   ac_status=$?
42314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42315   (exit $ac_status); }; } &&
42316          { ac_try='test -s conftest$ac_exeext'
42317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42318   (eval $ac_try) 2>&5
42319   ac_status=$?
42320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42321   (exit $ac_status); }; }; then
42322   eval "$as_ac_var=yes"
42323 else
42324   echo "$as_me: failed program was:" >&5
42325 sed 's/^/| /' conftest.$ac_ext >&5
42326
42327 eval "$as_ac_var=no"
42328 fi
42329 rm -f conftest.err conftest.$ac_objext \
42330       conftest$ac_exeext conftest.$ac_ext
42331 fi
42332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42333 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42334 if test `eval echo '${'$as_ac_var'}'` = yes; then
42335   cat >>confdefs.h <<_ACEOF
42336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42337 _ACEOF
42338  ice_have_setresuid=yes
42339 fi
42340 done
42341
42342 if test "${ice_have_setresuid}" = yes; then
42343 echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
42344 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6
42345 if test "${ice_cv_have_setresuid_decl+set}" = set; then
42346   echo $ECHO_N "(cached) $ECHO_C" >&6
42347 else
42348
42349 ice_cv_have_setresuid_decl=no
42350 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42351 ice_re_word='(^|[^a-zA-Z0-9_])'
42352 for header in unistd.h; do
42353 # Check for ordinary declaration
42354 cat >conftest.$ac_ext <<_ACEOF
42355 /* confdefs.h.  */
42356 _ACEOF
42357 cat confdefs.h >>conftest.$ac_ext
42358 cat >>conftest.$ac_ext <<_ACEOF
42359 /* end confdefs.h.  */
42360 #include <$header>
42361
42362 _ACEOF
42363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42364   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
42365   ice_cv_have_setresuid_decl=yes
42366 fi
42367 rm -f conftest*
42368
42369 if test "$ice_cv_have_setresuid_decl" = yes; then
42370         break
42371 fi
42372 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42373 cat >conftest.$ac_ext <<_ACEOF
42374 /* confdefs.h.  */
42375 _ACEOF
42376 cat confdefs.h >>conftest.$ac_ext
42377 cat >>conftest.$ac_ext <<_ACEOF
42378 /* end confdefs.h.  */
42379 #include <$header>
42380
42381 _ACEOF
42382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42383   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42384   ice_cv_have_setresuid_decl=yes
42385 fi
42386 rm -f conftest*
42387
42388 if test "$ice_cv_have_setresuid_decl" = yes; then
42389         break
42390 fi
42391 done
42392
42393 fi
42394
42395 echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
42396 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6
42397 if test "$ice_cv_have_setresuid_decl" = yes; then
42398
42399 cat >>confdefs.h <<_ACEOF
42400 #define HAVE_SETRESUID_DECL 1
42401 _ACEOF
42402
42403 fi
42404 fi
42405
42406
42407 echo "$as_me:$LINENO: checking for setpgid" >&5
42408 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
42409 if test "${ac_cv_func_setpgid+set}" = set; then
42410   echo $ECHO_N "(cached) $ECHO_C" >&6
42411 else
42412   cat >conftest.$ac_ext <<_ACEOF
42413 /* confdefs.h.  */
42414 _ACEOF
42415 cat confdefs.h >>conftest.$ac_ext
42416 cat >>conftest.$ac_ext <<_ACEOF
42417 /* end confdefs.h.  */
42418 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
42419    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42420 #define setpgid innocuous_setpgid
42421
42422 /* System header to define __stub macros and hopefully few prototypes,
42423     which can conflict with char setpgid (); below.
42424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42425     <limits.h> exists even on freestanding compilers.  */
42426
42427 #ifdef __STDC__
42428 # include <limits.h>
42429 #else
42430 # include <assert.h>
42431 #endif
42432
42433 #undef setpgid
42434
42435 /* Override any gcc2 internal prototype to avoid an error.  */
42436 #ifdef __cplusplus
42437 extern "C"
42438 {
42439 #endif
42440 /* We use char because int might match the return type of a gcc2
42441    builtin and then its argument prototype would still apply.  */
42442 char setpgid ();
42443 /* The GNU C library defines this for functions which it implements
42444     to always fail with ENOSYS.  Some functions are actually named
42445     something starting with __ and the normal name is an alias.  */
42446 #if defined (__stub_setpgid) || defined (__stub___setpgid)
42447 choke me
42448 #else
42449 char (*f) () = setpgid;
42450 #endif
42451 #ifdef __cplusplus
42452 }
42453 #endif
42454
42455 int
42456 main ()
42457 {
42458 return f != setpgid;
42459   ;
42460   return 0;
42461 }
42462 _ACEOF
42463 rm -f conftest.$ac_objext conftest$ac_exeext
42464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42465   (eval $ac_link) 2>conftest.er1
42466   ac_status=$?
42467   grep -v '^ *+' conftest.er1 >conftest.err
42468   rm -f conftest.er1
42469   cat conftest.err >&5
42470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42471   (exit $ac_status); } &&
42472          { ac_try='test -z "$ac_c_werror_flag"
42473                          || test ! -s conftest.err'
42474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42475   (eval $ac_try) 2>&5
42476   ac_status=$?
42477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42478   (exit $ac_status); }; } &&
42479          { ac_try='test -s conftest$ac_exeext'
42480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42481   (eval $ac_try) 2>&5
42482   ac_status=$?
42483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42484   (exit $ac_status); }; }; then
42485   ac_cv_func_setpgid=yes
42486 else
42487   echo "$as_me: failed program was:" >&5
42488 sed 's/^/| /' conftest.$ac_ext >&5
42489
42490 ac_cv_func_setpgid=no
42491 fi
42492 rm -f conftest.err conftest.$ac_objext \
42493       conftest$ac_exeext conftest.$ac_ext
42494 fi
42495 echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
42496 echo "${ECHO_T}$ac_cv_func_setpgid" >&6
42497 if test $ac_cv_func_setpgid = yes; then
42498
42499
42500 cat >>confdefs.h <<\_ACEOF
42501 #define HAVE_SETPGID 1
42502 _ACEOF
42503
42504
42505 ice_have_setpgid=no
42506
42507 for ac_func in setpgid
42508 do
42509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42510 echo "$as_me:$LINENO: checking for $ac_func" >&5
42511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42512 if eval "test \"\${$as_ac_var+set}\" = set"; then
42513   echo $ECHO_N "(cached) $ECHO_C" >&6
42514 else
42515   cat >conftest.$ac_ext <<_ACEOF
42516 /* confdefs.h.  */
42517 _ACEOF
42518 cat confdefs.h >>conftest.$ac_ext
42519 cat >>conftest.$ac_ext <<_ACEOF
42520 /* end confdefs.h.  */
42521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42523 #define $ac_func innocuous_$ac_func
42524
42525 /* System header to define __stub macros and hopefully few prototypes,
42526     which can conflict with char $ac_func (); below.
42527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42528     <limits.h> exists even on freestanding compilers.  */
42529
42530 #ifdef __STDC__
42531 # include <limits.h>
42532 #else
42533 # include <assert.h>
42534 #endif
42535
42536 #undef $ac_func
42537
42538 /* Override any gcc2 internal prototype to avoid an error.  */
42539 #ifdef __cplusplus
42540 extern "C"
42541 {
42542 #endif
42543 /* We use char because int might match the return type of a gcc2
42544    builtin and then its argument prototype would still apply.  */
42545 char $ac_func ();
42546 /* The GNU C library defines this for functions which it implements
42547     to always fail with ENOSYS.  Some functions are actually named
42548     something starting with __ and the normal name is an alias.  */
42549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42550 choke me
42551 #else
42552 char (*f) () = $ac_func;
42553 #endif
42554 #ifdef __cplusplus
42555 }
42556 #endif
42557
42558 int
42559 main ()
42560 {
42561 return f != $ac_func;
42562   ;
42563   return 0;
42564 }
42565 _ACEOF
42566 rm -f conftest.$ac_objext conftest$ac_exeext
42567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42568   (eval $ac_link) 2>conftest.er1
42569   ac_status=$?
42570   grep -v '^ *+' conftest.er1 >conftest.err
42571   rm -f conftest.er1
42572   cat conftest.err >&5
42573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42574   (exit $ac_status); } &&
42575          { ac_try='test -z "$ac_c_werror_flag"
42576                          || test ! -s conftest.err'
42577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42578   (eval $ac_try) 2>&5
42579   ac_status=$?
42580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42581   (exit $ac_status); }; } &&
42582          { ac_try='test -s conftest$ac_exeext'
42583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42584   (eval $ac_try) 2>&5
42585   ac_status=$?
42586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42587   (exit $ac_status); }; }; then
42588   eval "$as_ac_var=yes"
42589 else
42590   echo "$as_me: failed program was:" >&5
42591 sed 's/^/| /' conftest.$ac_ext >&5
42592
42593 eval "$as_ac_var=no"
42594 fi
42595 rm -f conftest.err conftest.$ac_objext \
42596       conftest$ac_exeext conftest.$ac_ext
42597 fi
42598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42600 if test `eval echo '${'$as_ac_var'}'` = yes; then
42601   cat >>confdefs.h <<_ACEOF
42602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42603 _ACEOF
42604  ice_have_setpgid=yes
42605 fi
42606 done
42607
42608 if test "${ice_have_setpgid}" = yes; then
42609 echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
42610 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6
42611 if test "${ice_cv_have_setpgid_decl+set}" = set; then
42612   echo $ECHO_N "(cached) $ECHO_C" >&6
42613 else
42614
42615 ice_cv_have_setpgid_decl=no
42616 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42617 ice_re_word='(^|[^a-zA-Z0-9_])'
42618 for header in sys/types.h unistd.h; do
42619 # Check for ordinary declaration
42620 cat >conftest.$ac_ext <<_ACEOF
42621 /* confdefs.h.  */
42622 _ACEOF
42623 cat confdefs.h >>conftest.$ac_ext
42624 cat >>conftest.$ac_ext <<_ACEOF
42625 /* end confdefs.h.  */
42626 #include <$header>
42627
42628 _ACEOF
42629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42630   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
42631   ice_cv_have_setpgid_decl=yes
42632 fi
42633 rm -f conftest*
42634
42635 if test "$ice_cv_have_setpgid_decl" = yes; then
42636         break
42637 fi
42638 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42639 cat >conftest.$ac_ext <<_ACEOF
42640 /* confdefs.h.  */
42641 _ACEOF
42642 cat confdefs.h >>conftest.$ac_ext
42643 cat >>conftest.$ac_ext <<_ACEOF
42644 /* end confdefs.h.  */
42645 #include <$header>
42646
42647 _ACEOF
42648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42649   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42650   ice_cv_have_setpgid_decl=yes
42651 fi
42652 rm -f conftest*
42653
42654 if test "$ice_cv_have_setpgid_decl" = yes; then
42655         break
42656 fi
42657 done
42658
42659 fi
42660
42661 echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
42662 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6
42663 if test "$ice_cv_have_setpgid_decl" = yes; then
42664
42665 cat >>confdefs.h <<_ACEOF
42666 #define HAVE_SETPGID_DECL 1
42667 _ACEOF
42668
42669 fi
42670 fi
42671
42672
42673 fi
42674
42675 echo "$as_me:$LINENO: checking for setpgrp" >&5
42676 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
42677 if test "${ac_cv_func_setpgrp+set}" = set; then
42678   echo $ECHO_N "(cached) $ECHO_C" >&6
42679 else
42680   cat >conftest.$ac_ext <<_ACEOF
42681 /* confdefs.h.  */
42682 _ACEOF
42683 cat confdefs.h >>conftest.$ac_ext
42684 cat >>conftest.$ac_ext <<_ACEOF
42685 /* end confdefs.h.  */
42686 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
42687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42688 #define setpgrp innocuous_setpgrp
42689
42690 /* System header to define __stub macros and hopefully few prototypes,
42691     which can conflict with char setpgrp (); below.
42692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42693     <limits.h> exists even on freestanding compilers.  */
42694
42695 #ifdef __STDC__
42696 # include <limits.h>
42697 #else
42698 # include <assert.h>
42699 #endif
42700
42701 #undef setpgrp
42702
42703 /* Override any gcc2 internal prototype to avoid an error.  */
42704 #ifdef __cplusplus
42705 extern "C"
42706 {
42707 #endif
42708 /* We use char because int might match the return type of a gcc2
42709    builtin and then its argument prototype would still apply.  */
42710 char setpgrp ();
42711 /* The GNU C library defines this for functions which it implements
42712     to always fail with ENOSYS.  Some functions are actually named
42713     something starting with __ and the normal name is an alias.  */
42714 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
42715 choke me
42716 #else
42717 char (*f) () = setpgrp;
42718 #endif
42719 #ifdef __cplusplus
42720 }
42721 #endif
42722
42723 int
42724 main ()
42725 {
42726 return f != setpgrp;
42727   ;
42728   return 0;
42729 }
42730 _ACEOF
42731 rm -f conftest.$ac_objext conftest$ac_exeext
42732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42733   (eval $ac_link) 2>conftest.er1
42734   ac_status=$?
42735   grep -v '^ *+' conftest.er1 >conftest.err
42736   rm -f conftest.er1
42737   cat conftest.err >&5
42738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42739   (exit $ac_status); } &&
42740          { ac_try='test -z "$ac_c_werror_flag"
42741                          || test ! -s conftest.err'
42742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42743   (eval $ac_try) 2>&5
42744   ac_status=$?
42745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42746   (exit $ac_status); }; } &&
42747          { ac_try='test -s conftest$ac_exeext'
42748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42749   (eval $ac_try) 2>&5
42750   ac_status=$?
42751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42752   (exit $ac_status); }; }; then
42753   ac_cv_func_setpgrp=yes
42754 else
42755   echo "$as_me: failed program was:" >&5
42756 sed 's/^/| /' conftest.$ac_ext >&5
42757
42758 ac_cv_func_setpgrp=no
42759 fi
42760 rm -f conftest.err conftest.$ac_objext \
42761       conftest$ac_exeext conftest.$ac_ext
42762 fi
42763 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
42764 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
42765 if test $ac_cv_func_setpgrp = yes; then
42766   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
42767 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
42768 if test "${ac_cv_func_setpgrp_void+set}" = set; then
42769   echo $ECHO_N "(cached) $ECHO_C" >&6
42770 else
42771   if test "$cross_compiling" = yes; then
42772   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
42773 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
42774    { (exit 1); exit 1; }; }
42775 else
42776   cat >conftest.$ac_ext <<_ACEOF
42777 /* confdefs.h.  */
42778 _ACEOF
42779 cat confdefs.h >>conftest.$ac_ext
42780 cat >>conftest.$ac_ext <<_ACEOF
42781 /* end confdefs.h.  */
42782 #if HAVE_UNISTD_H
42783 # include <unistd.h>
42784 #endif
42785
42786 int
42787 main ()
42788 {
42789 /* If this system has a BSD-style setpgrp which takes arguments,
42790   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
42791   exit successfully. */
42792   exit (setpgrp (1,1) == -1 ? 0 : 1);
42793   ;
42794   return 0;
42795 }
42796 _ACEOF
42797 rm -f conftest$ac_exeext
42798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42799   (eval $ac_link) 2>&5
42800   ac_status=$?
42801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42804   (eval $ac_try) 2>&5
42805   ac_status=$?
42806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42807   (exit $ac_status); }; }; then
42808   ac_cv_func_setpgrp_void=no
42809 else
42810   echo "$as_me: program exited with status $ac_status" >&5
42811 echo "$as_me: failed program was:" >&5
42812 sed 's/^/| /' conftest.$ac_ext >&5
42813
42814 ( exit $ac_status )
42815 ac_cv_func_setpgrp_void=yes
42816 fi
42817 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42818 fi
42819 fi
42820 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
42821 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
42822 if test $ac_cv_func_setpgrp_void = yes; then
42823
42824 cat >>confdefs.h <<\_ACEOF
42825 #define SETPGRP_VOID 1
42826 _ACEOF
42827
42828 fi
42829
42830 fi
42831
42832
42833 ice_have_setpgrp=no
42834
42835 for ac_func in setpgrp
42836 do
42837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42838 echo "$as_me:$LINENO: checking for $ac_func" >&5
42839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42840 if eval "test \"\${$as_ac_var+set}\" = set"; then
42841   echo $ECHO_N "(cached) $ECHO_C" >&6
42842 else
42843   cat >conftest.$ac_ext <<_ACEOF
42844 /* confdefs.h.  */
42845 _ACEOF
42846 cat confdefs.h >>conftest.$ac_ext
42847 cat >>conftest.$ac_ext <<_ACEOF
42848 /* end confdefs.h.  */
42849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42851 #define $ac_func innocuous_$ac_func
42852
42853 /* System header to define __stub macros and hopefully few prototypes,
42854     which can conflict with char $ac_func (); below.
42855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42856     <limits.h> exists even on freestanding compilers.  */
42857
42858 #ifdef __STDC__
42859 # include <limits.h>
42860 #else
42861 # include <assert.h>
42862 #endif
42863
42864 #undef $ac_func
42865
42866 /* Override any gcc2 internal prototype to avoid an error.  */
42867 #ifdef __cplusplus
42868 extern "C"
42869 {
42870 #endif
42871 /* We use char because int might match the return type of a gcc2
42872    builtin and then its argument prototype would still apply.  */
42873 char $ac_func ();
42874 /* The GNU C library defines this for functions which it implements
42875     to always fail with ENOSYS.  Some functions are actually named
42876     something starting with __ and the normal name is an alias.  */
42877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42878 choke me
42879 #else
42880 char (*f) () = $ac_func;
42881 #endif
42882 #ifdef __cplusplus
42883 }
42884 #endif
42885
42886 int
42887 main ()
42888 {
42889 return f != $ac_func;
42890   ;
42891   return 0;
42892 }
42893 _ACEOF
42894 rm -f conftest.$ac_objext conftest$ac_exeext
42895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42896   (eval $ac_link) 2>conftest.er1
42897   ac_status=$?
42898   grep -v '^ *+' conftest.er1 >conftest.err
42899   rm -f conftest.er1
42900   cat conftest.err >&5
42901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42902   (exit $ac_status); } &&
42903          { ac_try='test -z "$ac_c_werror_flag"
42904                          || test ! -s conftest.err'
42905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42906   (eval $ac_try) 2>&5
42907   ac_status=$?
42908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42909   (exit $ac_status); }; } &&
42910          { ac_try='test -s conftest$ac_exeext'
42911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42912   (eval $ac_try) 2>&5
42913   ac_status=$?
42914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42915   (exit $ac_status); }; }; then
42916   eval "$as_ac_var=yes"
42917 else
42918   echo "$as_me: failed program was:" >&5
42919 sed 's/^/| /' conftest.$ac_ext >&5
42920
42921 eval "$as_ac_var=no"
42922 fi
42923 rm -f conftest.err conftest.$ac_objext \
42924       conftest$ac_exeext conftest.$ac_ext
42925 fi
42926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42928 if test `eval echo '${'$as_ac_var'}'` = yes; then
42929   cat >>confdefs.h <<_ACEOF
42930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42931 _ACEOF
42932  ice_have_setpgrp=yes
42933 fi
42934 done
42935
42936 if test "${ice_have_setpgrp}" = yes; then
42937 echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
42938 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6
42939 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
42940   echo $ECHO_N "(cached) $ECHO_C" >&6
42941 else
42942
42943 ice_cv_have_setpgrp_decl=no
42944 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42945 ice_re_word='(^|[^a-zA-Z0-9_])'
42946 for header in sys/types.h unistd.h libc.h; do
42947 # Check for ordinary declaration
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 #include <$header>
42955
42956 _ACEOF
42957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42958   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
42959   ice_cv_have_setpgrp_decl=yes
42960 fi
42961 rm -f conftest*
42962
42963 if test "$ice_cv_have_setpgrp_decl" = yes; then
42964         break
42965 fi
42966 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42967 cat >conftest.$ac_ext <<_ACEOF
42968 /* confdefs.h.  */
42969 _ACEOF
42970 cat confdefs.h >>conftest.$ac_ext
42971 cat >>conftest.$ac_ext <<_ACEOF
42972 /* end confdefs.h.  */
42973 #include <$header>
42974
42975 _ACEOF
42976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42977   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42978   ice_cv_have_setpgrp_decl=yes
42979 fi
42980 rm -f conftest*
42981
42982 if test "$ice_cv_have_setpgrp_decl" = yes; then
42983         break
42984 fi
42985 done
42986
42987 fi
42988
42989 echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
42990 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6
42991 if test "$ice_cv_have_setpgrp_decl" = yes; then
42992
42993 cat >>confdefs.h <<_ACEOF
42994 #define HAVE_SETPGRP_DECL 1
42995 _ACEOF
42996
42997 fi
42998 fi
42999
43000
43001
43002 ice_have_setsockopt=no
43003
43004 for ac_func in setsockopt
43005 do
43006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43007 echo "$as_me:$LINENO: checking for $ac_func" >&5
43008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43009 if eval "test \"\${$as_ac_var+set}\" = set"; then
43010   echo $ECHO_N "(cached) $ECHO_C" >&6
43011 else
43012   cat >conftest.$ac_ext <<_ACEOF
43013 /* confdefs.h.  */
43014 _ACEOF
43015 cat confdefs.h >>conftest.$ac_ext
43016 cat >>conftest.$ac_ext <<_ACEOF
43017 /* end confdefs.h.  */
43018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43020 #define $ac_func innocuous_$ac_func
43021
43022 /* System header to define __stub macros and hopefully few prototypes,
43023     which can conflict with char $ac_func (); below.
43024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43025     <limits.h> exists even on freestanding compilers.  */
43026
43027 #ifdef __STDC__
43028 # include <limits.h>
43029 #else
43030 # include <assert.h>
43031 #endif
43032
43033 #undef $ac_func
43034
43035 /* Override any gcc2 internal prototype to avoid an error.  */
43036 #ifdef __cplusplus
43037 extern "C"
43038 {
43039 #endif
43040 /* We use char because int might match the return type of a gcc2
43041    builtin and then its argument prototype would still apply.  */
43042 char $ac_func ();
43043 /* The GNU C library defines this for functions which it implements
43044     to always fail with ENOSYS.  Some functions are actually named
43045     something starting with __ and the normal name is an alias.  */
43046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43047 choke me
43048 #else
43049 char (*f) () = $ac_func;
43050 #endif
43051 #ifdef __cplusplus
43052 }
43053 #endif
43054
43055 int
43056 main ()
43057 {
43058 return f != $ac_func;
43059   ;
43060   return 0;
43061 }
43062 _ACEOF
43063 rm -f conftest.$ac_objext conftest$ac_exeext
43064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43065   (eval $ac_link) 2>conftest.er1
43066   ac_status=$?
43067   grep -v '^ *+' conftest.er1 >conftest.err
43068   rm -f conftest.er1
43069   cat conftest.err >&5
43070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43071   (exit $ac_status); } &&
43072          { ac_try='test -z "$ac_c_werror_flag"
43073                          || test ! -s conftest.err'
43074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43075   (eval $ac_try) 2>&5
43076   ac_status=$?
43077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43078   (exit $ac_status); }; } &&
43079          { ac_try='test -s conftest$ac_exeext'
43080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43081   (eval $ac_try) 2>&5
43082   ac_status=$?
43083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43084   (exit $ac_status); }; }; then
43085   eval "$as_ac_var=yes"
43086 else
43087   echo "$as_me: failed program was:" >&5
43088 sed 's/^/| /' conftest.$ac_ext >&5
43089
43090 eval "$as_ac_var=no"
43091 fi
43092 rm -f conftest.err conftest.$ac_objext \
43093       conftest$ac_exeext conftest.$ac_ext
43094 fi
43095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43097 if test `eval echo '${'$as_ac_var'}'` = yes; then
43098   cat >>confdefs.h <<_ACEOF
43099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43100 _ACEOF
43101  ice_have_setsockopt=yes
43102 fi
43103 done
43104
43105 if test "${ice_have_setsockopt}" = yes; then
43106 echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
43107 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
43108 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
43109   echo $ECHO_N "(cached) $ECHO_C" >&6
43110 else
43111
43112 ice_cv_have_setsockopt_decl=no
43113 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43114 ice_re_word='(^|[^a-zA-Z0-9_])'
43115 for header in sys/types.h sys/socket.h; do
43116 # Check for ordinary declaration
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 #include <$header>
43124
43125 _ACEOF
43126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43127   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
43128   ice_cv_have_setsockopt_decl=yes
43129 fi
43130 rm -f conftest*
43131
43132 if test "$ice_cv_have_setsockopt_decl" = yes; then
43133         break
43134 fi
43135 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43136 cat >conftest.$ac_ext <<_ACEOF
43137 /* confdefs.h.  */
43138 _ACEOF
43139 cat confdefs.h >>conftest.$ac_ext
43140 cat >>conftest.$ac_ext <<_ACEOF
43141 /* end confdefs.h.  */
43142 #include <$header>
43143
43144 _ACEOF
43145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43146   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43147   ice_cv_have_setsockopt_decl=yes
43148 fi
43149 rm -f conftest*
43150
43151 if test "$ice_cv_have_setsockopt_decl" = yes; then
43152         break
43153 fi
43154 done
43155
43156 fi
43157
43158 echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
43159 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6
43160 if test "$ice_cv_have_setsockopt_decl" = yes; then
43161
43162 cat >>confdefs.h <<_ACEOF
43163 #define HAVE_SETSOCKOPT_DECL 1
43164 _ACEOF
43165
43166 fi
43167 fi
43168
43169
43170
43171 for ac_func in shmget
43172 do
43173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43174 echo "$as_me:$LINENO: checking for $ac_func" >&5
43175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43176 if eval "test \"\${$as_ac_var+set}\" = set"; then
43177   echo $ECHO_N "(cached) $ECHO_C" >&6
43178 else
43179   cat >conftest.$ac_ext <<_ACEOF
43180 /* confdefs.h.  */
43181 _ACEOF
43182 cat confdefs.h >>conftest.$ac_ext
43183 cat >>conftest.$ac_ext <<_ACEOF
43184 /* end confdefs.h.  */
43185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43187 #define $ac_func innocuous_$ac_func
43188
43189 /* System header to define __stub macros and hopefully few prototypes,
43190     which can conflict with char $ac_func (); below.
43191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43192     <limits.h> exists even on freestanding compilers.  */
43193
43194 #ifdef __STDC__
43195 # include <limits.h>
43196 #else
43197 # include <assert.h>
43198 #endif
43199
43200 #undef $ac_func
43201
43202 /* Override any gcc2 internal prototype to avoid an error.  */
43203 #ifdef __cplusplus
43204 extern "C"
43205 {
43206 #endif
43207 /* We use char because int might match the return type of a gcc2
43208    builtin and then its argument prototype would still apply.  */
43209 char $ac_func ();
43210 /* The GNU C library defines this for functions which it implements
43211     to always fail with ENOSYS.  Some functions are actually named
43212     something starting with __ and the normal name is an alias.  */
43213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43214 choke me
43215 #else
43216 char (*f) () = $ac_func;
43217 #endif
43218 #ifdef __cplusplus
43219 }
43220 #endif
43221
43222 int
43223 main ()
43224 {
43225 return f != $ac_func;
43226   ;
43227   return 0;
43228 }
43229 _ACEOF
43230 rm -f conftest.$ac_objext conftest$ac_exeext
43231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43232   (eval $ac_link) 2>conftest.er1
43233   ac_status=$?
43234   grep -v '^ *+' conftest.er1 >conftest.err
43235   rm -f conftest.er1
43236   cat conftest.err >&5
43237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43238   (exit $ac_status); } &&
43239          { ac_try='test -z "$ac_c_werror_flag"
43240                          || test ! -s conftest.err'
43241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43242   (eval $ac_try) 2>&5
43243   ac_status=$?
43244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43245   (exit $ac_status); }; } &&
43246          { ac_try='test -s conftest$ac_exeext'
43247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43248   (eval $ac_try) 2>&5
43249   ac_status=$?
43250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43251   (exit $ac_status); }; }; then
43252   eval "$as_ac_var=yes"
43253 else
43254   echo "$as_me: failed program was:" >&5
43255 sed 's/^/| /' conftest.$ac_ext >&5
43256
43257 eval "$as_ac_var=no"
43258 fi
43259 rm -f conftest.err conftest.$ac_objext \
43260       conftest$ac_exeext conftest.$ac_ext
43261 fi
43262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43264 if test `eval echo '${'$as_ac_var'}'` = yes; then
43265   cat >>confdefs.h <<_ACEOF
43266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43267 _ACEOF
43268
43269
43270         echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
43271 echo $ECHO_N "checking for shmdt() argument type... $ECHO_C" >&6
43272 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
43273   echo $ECHO_N "(cached) $ECHO_C" >&6
43274 else
43275
43276                 if test "$ac_cv_func_shmget" = yes; then
43277                     cat <<EOF >conftest.$ac_ext
43278 #include "confdefs.h"
43279 #ifdef HAVE_SYS_TYPES_H
43280 # include <sys/types.h>
43281 #endif
43282 #ifdef HAVE_SYS_IPC_H
43283 # include <sys/ipc.h>
43284 #endif
43285 #ifdef HAVE_SYS_SHM_H
43286 # include <sys/shm.h>
43287 #endif
43288
43289 #ifdef __cplusplus
43290 extern "C" void *shmat(int, void *, int);
43291 #else
43292 void *shmat();
43293 #endif
43294
43295 int main()
43296 {
43297     int i;
43298     return 0;
43299 }
43300 EOF
43301                     ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
43302                     if test $? = 0; then
43303                         amanda_cv_shmdt_arg_type=void
43304                     else
43305                         amanda_cv_shmdt_arg_type=char
43306                     fi
43307                     rm -f conftest*
43308                 else
43309                     amanda_cv_shmdt_arg_type=nothing
43310                 fi
43311
43312
43313 fi
43314 echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
43315 echo "${ECHO_T}$amanda_cv_shmdt_arg_type" >&6
43316
43317 cat >>confdefs.h <<_ACEOF
43318 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
43319 _ACEOF
43320
43321
43322
43323         case "$FORCE_MMAP" in
43324         n | no)
43325
43326 cat >>confdefs.h <<\_ACEOF
43327 #define HAVE_SYSVSHM 1
43328 _ACEOF
43329
43330           ;;
43331         esac
43332
43333
43334 fi
43335 done
43336
43337
43338 ice_have_shmat=no
43339
43340 for ac_func in shmat
43341 do
43342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43343 echo "$as_me:$LINENO: checking for $ac_func" >&5
43344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43345 if eval "test \"\${$as_ac_var+set}\" = set"; then
43346   echo $ECHO_N "(cached) $ECHO_C" >&6
43347 else
43348   cat >conftest.$ac_ext <<_ACEOF
43349 /* confdefs.h.  */
43350 _ACEOF
43351 cat confdefs.h >>conftest.$ac_ext
43352 cat >>conftest.$ac_ext <<_ACEOF
43353 /* end confdefs.h.  */
43354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43356 #define $ac_func innocuous_$ac_func
43357
43358 /* System header to define __stub macros and hopefully few prototypes,
43359     which can conflict with char $ac_func (); below.
43360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43361     <limits.h> exists even on freestanding compilers.  */
43362
43363 #ifdef __STDC__
43364 # include <limits.h>
43365 #else
43366 # include <assert.h>
43367 #endif
43368
43369 #undef $ac_func
43370
43371 /* Override any gcc2 internal prototype to avoid an error.  */
43372 #ifdef __cplusplus
43373 extern "C"
43374 {
43375 #endif
43376 /* We use char because int might match the return type of a gcc2
43377    builtin and then its argument prototype would still apply.  */
43378 char $ac_func ();
43379 /* The GNU C library defines this for functions which it implements
43380     to always fail with ENOSYS.  Some functions are actually named
43381     something starting with __ and the normal name is an alias.  */
43382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43383 choke me
43384 #else
43385 char (*f) () = $ac_func;
43386 #endif
43387 #ifdef __cplusplus
43388 }
43389 #endif
43390
43391 int
43392 main ()
43393 {
43394 return f != $ac_func;
43395   ;
43396   return 0;
43397 }
43398 _ACEOF
43399 rm -f conftest.$ac_objext conftest$ac_exeext
43400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43401   (eval $ac_link) 2>conftest.er1
43402   ac_status=$?
43403   grep -v '^ *+' conftest.er1 >conftest.err
43404   rm -f conftest.er1
43405   cat conftest.err >&5
43406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43407   (exit $ac_status); } &&
43408          { ac_try='test -z "$ac_c_werror_flag"
43409                          || test ! -s conftest.err'
43410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43411   (eval $ac_try) 2>&5
43412   ac_status=$?
43413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43414   (exit $ac_status); }; } &&
43415          { ac_try='test -s conftest$ac_exeext'
43416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43417   (eval $ac_try) 2>&5
43418   ac_status=$?
43419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43420   (exit $ac_status); }; }; then
43421   eval "$as_ac_var=yes"
43422 else
43423   echo "$as_me: failed program was:" >&5
43424 sed 's/^/| /' conftest.$ac_ext >&5
43425
43426 eval "$as_ac_var=no"
43427 fi
43428 rm -f conftest.err conftest.$ac_objext \
43429       conftest$ac_exeext conftest.$ac_ext
43430 fi
43431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43433 if test `eval echo '${'$as_ac_var'}'` = yes; then
43434   cat >>confdefs.h <<_ACEOF
43435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43436 _ACEOF
43437  ice_have_shmat=yes
43438 fi
43439 done
43440
43441 if test "${ice_have_shmat}" = yes; then
43442 echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
43443 echo $ECHO_N "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
43444 if test "${ice_cv_have_shmat_decl+set}" = set; then
43445   echo $ECHO_N "(cached) $ECHO_C" >&6
43446 else
43447
43448 ice_cv_have_shmat_decl=no
43449 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43450 ice_re_word='(^|[^a-zA-Z0-9_])'
43451 for header in sys/types.h sys/ipc.h sys/shm.h; do
43452 # Check for ordinary declaration
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 #include <$header>
43460
43461 _ACEOF
43462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43463   $EGREP "${ice_re_word}shmat[  ]*\(" >/dev/null 2>&1; then
43464   ice_cv_have_shmat_decl=yes
43465 fi
43466 rm -f conftest*
43467
43468 if test "$ice_cv_have_shmat_decl" = yes; then
43469         break
43470 fi
43471 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43472 cat >conftest.$ac_ext <<_ACEOF
43473 /* confdefs.h.  */
43474 _ACEOF
43475 cat confdefs.h >>conftest.$ac_ext
43476 cat >>conftest.$ac_ext <<_ACEOF
43477 /* end confdefs.h.  */
43478 #include <$header>
43479
43480 _ACEOF
43481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43482   $EGREP "${ice_re_word}shmat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43483   ice_cv_have_shmat_decl=yes
43484 fi
43485 rm -f conftest*
43486
43487 if test "$ice_cv_have_shmat_decl" = yes; then
43488         break
43489 fi
43490 done
43491
43492 fi
43493
43494 echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
43495 echo "${ECHO_T}$ice_cv_have_shmat_decl" >&6
43496 if test "$ice_cv_have_shmat_decl" = yes; then
43497
43498 cat >>confdefs.h <<_ACEOF
43499 #define HAVE_SHMAT_DECL 1
43500 _ACEOF
43501
43502 fi
43503 fi
43504
43505
43506 ice_have_shmctl=no
43507
43508 for ac_func in shmctl
43509 do
43510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43511 echo "$as_me:$LINENO: checking for $ac_func" >&5
43512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43513 if eval "test \"\${$as_ac_var+set}\" = set"; then
43514   echo $ECHO_N "(cached) $ECHO_C" >&6
43515 else
43516   cat >conftest.$ac_ext <<_ACEOF
43517 /* confdefs.h.  */
43518 _ACEOF
43519 cat confdefs.h >>conftest.$ac_ext
43520 cat >>conftest.$ac_ext <<_ACEOF
43521 /* end confdefs.h.  */
43522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43524 #define $ac_func innocuous_$ac_func
43525
43526 /* System header to define __stub macros and hopefully few prototypes,
43527     which can conflict with char $ac_func (); below.
43528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43529     <limits.h> exists even on freestanding compilers.  */
43530
43531 #ifdef __STDC__
43532 # include <limits.h>
43533 #else
43534 # include <assert.h>
43535 #endif
43536
43537 #undef $ac_func
43538
43539 /* Override any gcc2 internal prototype to avoid an error.  */
43540 #ifdef __cplusplus
43541 extern "C"
43542 {
43543 #endif
43544 /* We use char because int might match the return type of a gcc2
43545    builtin and then its argument prototype would still apply.  */
43546 char $ac_func ();
43547 /* The GNU C library defines this for functions which it implements
43548     to always fail with ENOSYS.  Some functions are actually named
43549     something starting with __ and the normal name is an alias.  */
43550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43551 choke me
43552 #else
43553 char (*f) () = $ac_func;
43554 #endif
43555 #ifdef __cplusplus
43556 }
43557 #endif
43558
43559 int
43560 main ()
43561 {
43562 return f != $ac_func;
43563   ;
43564   return 0;
43565 }
43566 _ACEOF
43567 rm -f conftest.$ac_objext conftest$ac_exeext
43568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43569   (eval $ac_link) 2>conftest.er1
43570   ac_status=$?
43571   grep -v '^ *+' conftest.er1 >conftest.err
43572   rm -f conftest.er1
43573   cat conftest.err >&5
43574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43575   (exit $ac_status); } &&
43576          { ac_try='test -z "$ac_c_werror_flag"
43577                          || test ! -s conftest.err'
43578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43579   (eval $ac_try) 2>&5
43580   ac_status=$?
43581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43582   (exit $ac_status); }; } &&
43583          { ac_try='test -s conftest$ac_exeext'
43584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43585   (eval $ac_try) 2>&5
43586   ac_status=$?
43587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43588   (exit $ac_status); }; }; then
43589   eval "$as_ac_var=yes"
43590 else
43591   echo "$as_me: failed program was:" >&5
43592 sed 's/^/| /' conftest.$ac_ext >&5
43593
43594 eval "$as_ac_var=no"
43595 fi
43596 rm -f conftest.err conftest.$ac_objext \
43597       conftest$ac_exeext conftest.$ac_ext
43598 fi
43599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43601 if test `eval echo '${'$as_ac_var'}'` = yes; then
43602   cat >>confdefs.h <<_ACEOF
43603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43604 _ACEOF
43605  ice_have_shmctl=yes
43606 fi
43607 done
43608
43609 if test "${ice_have_shmctl}" = yes; then
43610 echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
43611 echo $ECHO_N "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
43612 if test "${ice_cv_have_shmctl_decl+set}" = set; then
43613   echo $ECHO_N "(cached) $ECHO_C" >&6
43614 else
43615
43616 ice_cv_have_shmctl_decl=no
43617 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43618 ice_re_word='(^|[^a-zA-Z0-9_])'
43619 for header in sys/types.h sys/ipc.h sys/shm.h; do
43620 # Check for ordinary declaration
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 #include <$header>
43628
43629 _ACEOF
43630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43631   $EGREP "${ice_re_word}shmctl[         ]*\(" >/dev/null 2>&1; then
43632   ice_cv_have_shmctl_decl=yes
43633 fi
43634 rm -f conftest*
43635
43636 if test "$ice_cv_have_shmctl_decl" = yes; then
43637         break
43638 fi
43639 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43640 cat >conftest.$ac_ext <<_ACEOF
43641 /* confdefs.h.  */
43642 _ACEOF
43643 cat confdefs.h >>conftest.$ac_ext
43644 cat >>conftest.$ac_ext <<_ACEOF
43645 /* end confdefs.h.  */
43646 #include <$header>
43647
43648 _ACEOF
43649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43650   $EGREP "${ice_re_word}shmctl[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43651   ice_cv_have_shmctl_decl=yes
43652 fi
43653 rm -f conftest*
43654
43655 if test "$ice_cv_have_shmctl_decl" = yes; then
43656         break
43657 fi
43658 done
43659
43660 fi
43661
43662 echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
43663 echo "${ECHO_T}$ice_cv_have_shmctl_decl" >&6
43664 if test "$ice_cv_have_shmctl_decl" = yes; then
43665
43666 cat >>confdefs.h <<_ACEOF
43667 #define HAVE_SHMCTL_DECL 1
43668 _ACEOF
43669
43670 fi
43671 fi
43672
43673
43674 ice_have_shmdt=no
43675
43676 for ac_func in shmdt
43677 do
43678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43679 echo "$as_me:$LINENO: checking for $ac_func" >&5
43680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43681 if eval "test \"\${$as_ac_var+set}\" = set"; then
43682   echo $ECHO_N "(cached) $ECHO_C" >&6
43683 else
43684   cat >conftest.$ac_ext <<_ACEOF
43685 /* confdefs.h.  */
43686 _ACEOF
43687 cat confdefs.h >>conftest.$ac_ext
43688 cat >>conftest.$ac_ext <<_ACEOF
43689 /* end confdefs.h.  */
43690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43692 #define $ac_func innocuous_$ac_func
43693
43694 /* System header to define __stub macros and hopefully few prototypes,
43695     which can conflict with char $ac_func (); below.
43696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43697     <limits.h> exists even on freestanding compilers.  */
43698
43699 #ifdef __STDC__
43700 # include <limits.h>
43701 #else
43702 # include <assert.h>
43703 #endif
43704
43705 #undef $ac_func
43706
43707 /* Override any gcc2 internal prototype to avoid an error.  */
43708 #ifdef __cplusplus
43709 extern "C"
43710 {
43711 #endif
43712 /* We use char because int might match the return type of a gcc2
43713    builtin and then its argument prototype would still apply.  */
43714 char $ac_func ();
43715 /* The GNU C library defines this for functions which it implements
43716     to always fail with ENOSYS.  Some functions are actually named
43717     something starting with __ and the normal name is an alias.  */
43718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43719 choke me
43720 #else
43721 char (*f) () = $ac_func;
43722 #endif
43723 #ifdef __cplusplus
43724 }
43725 #endif
43726
43727 int
43728 main ()
43729 {
43730 return f != $ac_func;
43731   ;
43732   return 0;
43733 }
43734 _ACEOF
43735 rm -f conftest.$ac_objext conftest$ac_exeext
43736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43737   (eval $ac_link) 2>conftest.er1
43738   ac_status=$?
43739   grep -v '^ *+' conftest.er1 >conftest.err
43740   rm -f conftest.er1
43741   cat conftest.err >&5
43742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43743   (exit $ac_status); } &&
43744          { ac_try='test -z "$ac_c_werror_flag"
43745                          || test ! -s conftest.err'
43746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43747   (eval $ac_try) 2>&5
43748   ac_status=$?
43749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43750   (exit $ac_status); }; } &&
43751          { ac_try='test -s conftest$ac_exeext'
43752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43753   (eval $ac_try) 2>&5
43754   ac_status=$?
43755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43756   (exit $ac_status); }; }; then
43757   eval "$as_ac_var=yes"
43758 else
43759   echo "$as_me: failed program was:" >&5
43760 sed 's/^/| /' conftest.$ac_ext >&5
43761
43762 eval "$as_ac_var=no"
43763 fi
43764 rm -f conftest.err conftest.$ac_objext \
43765       conftest$ac_exeext conftest.$ac_ext
43766 fi
43767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43769 if test `eval echo '${'$as_ac_var'}'` = yes; then
43770   cat >>confdefs.h <<_ACEOF
43771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43772 _ACEOF
43773  ice_have_shmdt=yes
43774 fi
43775 done
43776
43777 if test "${ice_have_shmdt}" = yes; then
43778 echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
43779 echo $ECHO_N "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
43780 if test "${ice_cv_have_shmdt_decl+set}" = set; then
43781   echo $ECHO_N "(cached) $ECHO_C" >&6
43782 else
43783
43784 ice_cv_have_shmdt_decl=no
43785 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43786 ice_re_word='(^|[^a-zA-Z0-9_])'
43787 for header in sys/types.h sys/ipc.h sys/shm.h; do
43788 # Check for ordinary declaration
43789 cat >conftest.$ac_ext <<_ACEOF
43790 /* confdefs.h.  */
43791 _ACEOF
43792 cat confdefs.h >>conftest.$ac_ext
43793 cat >>conftest.$ac_ext <<_ACEOF
43794 /* end confdefs.h.  */
43795 #include <$header>
43796
43797 _ACEOF
43798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43799   $EGREP "${ice_re_word}shmdt[  ]*\(" >/dev/null 2>&1; then
43800   ice_cv_have_shmdt_decl=yes
43801 fi
43802 rm -f conftest*
43803
43804 if test "$ice_cv_have_shmdt_decl" = yes; then
43805         break
43806 fi
43807 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43808 cat >conftest.$ac_ext <<_ACEOF
43809 /* confdefs.h.  */
43810 _ACEOF
43811 cat confdefs.h >>conftest.$ac_ext
43812 cat >>conftest.$ac_ext <<_ACEOF
43813 /* end confdefs.h.  */
43814 #include <$header>
43815
43816 _ACEOF
43817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43818   $EGREP "${ice_re_word}shmdt[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43819   ice_cv_have_shmdt_decl=yes
43820 fi
43821 rm -f conftest*
43822
43823 if test "$ice_cv_have_shmdt_decl" = yes; then
43824         break
43825 fi
43826 done
43827
43828 fi
43829
43830 echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
43831 echo "${ECHO_T}$ice_cv_have_shmdt_decl" >&6
43832 if test "$ice_cv_have_shmdt_decl" = yes; then
43833
43834 cat >>confdefs.h <<_ACEOF
43835 #define HAVE_SHMDT_DECL 1
43836 _ACEOF
43837
43838 fi
43839 fi
43840
43841
43842 ice_have_shmget=no
43843
43844 for ac_func in shmget
43845 do
43846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43847 echo "$as_me:$LINENO: checking for $ac_func" >&5
43848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43849 if eval "test \"\${$as_ac_var+set}\" = set"; then
43850   echo $ECHO_N "(cached) $ECHO_C" >&6
43851 else
43852   cat >conftest.$ac_ext <<_ACEOF
43853 /* confdefs.h.  */
43854 _ACEOF
43855 cat confdefs.h >>conftest.$ac_ext
43856 cat >>conftest.$ac_ext <<_ACEOF
43857 /* end confdefs.h.  */
43858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43860 #define $ac_func innocuous_$ac_func
43861
43862 /* System header to define __stub macros and hopefully few prototypes,
43863     which can conflict with char $ac_func (); below.
43864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43865     <limits.h> exists even on freestanding compilers.  */
43866
43867 #ifdef __STDC__
43868 # include <limits.h>
43869 #else
43870 # include <assert.h>
43871 #endif
43872
43873 #undef $ac_func
43874
43875 /* Override any gcc2 internal prototype to avoid an error.  */
43876 #ifdef __cplusplus
43877 extern "C"
43878 {
43879 #endif
43880 /* We use char because int might match the return type of a gcc2
43881    builtin and then its argument prototype would still apply.  */
43882 char $ac_func ();
43883 /* The GNU C library defines this for functions which it implements
43884     to always fail with ENOSYS.  Some functions are actually named
43885     something starting with __ and the normal name is an alias.  */
43886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43887 choke me
43888 #else
43889 char (*f) () = $ac_func;
43890 #endif
43891 #ifdef __cplusplus
43892 }
43893 #endif
43894
43895 int
43896 main ()
43897 {
43898 return f != $ac_func;
43899   ;
43900   return 0;
43901 }
43902 _ACEOF
43903 rm -f conftest.$ac_objext conftest$ac_exeext
43904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43905   (eval $ac_link) 2>conftest.er1
43906   ac_status=$?
43907   grep -v '^ *+' conftest.er1 >conftest.err
43908   rm -f conftest.er1
43909   cat conftest.err >&5
43910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43911   (exit $ac_status); } &&
43912          { ac_try='test -z "$ac_c_werror_flag"
43913                          || test ! -s conftest.err'
43914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43915   (eval $ac_try) 2>&5
43916   ac_status=$?
43917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43918   (exit $ac_status); }; } &&
43919          { ac_try='test -s conftest$ac_exeext'
43920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43921   (eval $ac_try) 2>&5
43922   ac_status=$?
43923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43924   (exit $ac_status); }; }; then
43925   eval "$as_ac_var=yes"
43926 else
43927   echo "$as_me: failed program was:" >&5
43928 sed 's/^/| /' conftest.$ac_ext >&5
43929
43930 eval "$as_ac_var=no"
43931 fi
43932 rm -f conftest.err conftest.$ac_objext \
43933       conftest$ac_exeext conftest.$ac_ext
43934 fi
43935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43937 if test `eval echo '${'$as_ac_var'}'` = yes; then
43938   cat >>confdefs.h <<_ACEOF
43939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43940 _ACEOF
43941  ice_have_shmget=yes
43942 fi
43943 done
43944
43945 if test "${ice_have_shmget}" = yes; then
43946 echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
43947 echo $ECHO_N "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
43948 if test "${ice_cv_have_shmget_decl+set}" = set; then
43949   echo $ECHO_N "(cached) $ECHO_C" >&6
43950 else
43951
43952 ice_cv_have_shmget_decl=no
43953 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43954 ice_re_word='(^|[^a-zA-Z0-9_])'
43955 for header in sys/types.h sys/ipc.h sys/shm.h; do
43956 # Check for ordinary declaration
43957 cat >conftest.$ac_ext <<_ACEOF
43958 /* confdefs.h.  */
43959 _ACEOF
43960 cat confdefs.h >>conftest.$ac_ext
43961 cat >>conftest.$ac_ext <<_ACEOF
43962 /* end confdefs.h.  */
43963 #include <$header>
43964
43965 _ACEOF
43966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43967   $EGREP "${ice_re_word}shmget[         ]*\(" >/dev/null 2>&1; then
43968   ice_cv_have_shmget_decl=yes
43969 fi
43970 rm -f conftest*
43971
43972 if test "$ice_cv_have_shmget_decl" = yes; then
43973         break
43974 fi
43975 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43976 cat >conftest.$ac_ext <<_ACEOF
43977 /* confdefs.h.  */
43978 _ACEOF
43979 cat confdefs.h >>conftest.$ac_ext
43980 cat >>conftest.$ac_ext <<_ACEOF
43981 /* end confdefs.h.  */
43982 #include <$header>
43983
43984 _ACEOF
43985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43986   $EGREP "${ice_re_word}shmget[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43987   ice_cv_have_shmget_decl=yes
43988 fi
43989 rm -f conftest*
43990
43991 if test "$ice_cv_have_shmget_decl" = yes; then
43992         break
43993 fi
43994 done
43995
43996 fi
43997
43998 echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
43999 echo "${ECHO_T}$ice_cv_have_shmget_decl" >&6
44000 if test "$ice_cv_have_shmget_decl" = yes; then
44001
44002 cat >>confdefs.h <<_ACEOF
44003 #define HAVE_SHMGET_DECL 1
44004 _ACEOF
44005
44006 fi
44007 fi
44008
44009
44010 if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
44011     case "$FORCE_MMAP" in
44012     n | no)
44013         if test "$ac_cv_func_shmget" != yes; then
44014             { echo "$as_me:$LINENO: WARNING: *** Neither shmget() nor mmap() found!" >&5
44015 echo "$as_me: WARNING: *** Neither shmget() nor mmap() found!" >&2;}
44016             { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
44017 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
44018             NO_SERVER_MODE=true
44019         fi
44020       ;;
44021     y | ye | yes)
44022         { echo "$as_me:$LINENO: WARNING: *** --with-mmap used on a system with no mmap() support!" >&5
44023 echo "$as_me: WARNING: *** --with-mmap used on a system with no mmap() support!" >&2;}
44024         { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
44025 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
44026         NO_SERVER_MODE=true
44027       ;;
44028     esac
44029 fi
44030
44031
44032 ice_have_shquote=no
44033
44034 for ac_func in shquote
44035 do
44036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44037 echo "$as_me:$LINENO: checking for $ac_func" >&5
44038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44039 if eval "test \"\${$as_ac_var+set}\" = set"; then
44040   echo $ECHO_N "(cached) $ECHO_C" >&6
44041 else
44042   cat >conftest.$ac_ext <<_ACEOF
44043 /* confdefs.h.  */
44044 _ACEOF
44045 cat confdefs.h >>conftest.$ac_ext
44046 cat >>conftest.$ac_ext <<_ACEOF
44047 /* end confdefs.h.  */
44048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44050 #define $ac_func innocuous_$ac_func
44051
44052 /* System header to define __stub macros and hopefully few prototypes,
44053     which can conflict with char $ac_func (); below.
44054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44055     <limits.h> exists even on freestanding compilers.  */
44056
44057 #ifdef __STDC__
44058 # include <limits.h>
44059 #else
44060 # include <assert.h>
44061 #endif
44062
44063 #undef $ac_func
44064
44065 /* Override any gcc2 internal prototype to avoid an error.  */
44066 #ifdef __cplusplus
44067 extern "C"
44068 {
44069 #endif
44070 /* We use char because int might match the return type of a gcc2
44071    builtin and then its argument prototype would still apply.  */
44072 char $ac_func ();
44073 /* The GNU C library defines this for functions which it implements
44074     to always fail with ENOSYS.  Some functions are actually named
44075     something starting with __ and the normal name is an alias.  */
44076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44077 choke me
44078 #else
44079 char (*f) () = $ac_func;
44080 #endif
44081 #ifdef __cplusplus
44082 }
44083 #endif
44084
44085 int
44086 main ()
44087 {
44088 return f != $ac_func;
44089   ;
44090   return 0;
44091 }
44092 _ACEOF
44093 rm -f conftest.$ac_objext conftest$ac_exeext
44094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44095   (eval $ac_link) 2>conftest.er1
44096   ac_status=$?
44097   grep -v '^ *+' conftest.er1 >conftest.err
44098   rm -f conftest.er1
44099   cat conftest.err >&5
44100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44101   (exit $ac_status); } &&
44102          { ac_try='test -z "$ac_c_werror_flag"
44103                          || test ! -s conftest.err'
44104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44105   (eval $ac_try) 2>&5
44106   ac_status=$?
44107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44108   (exit $ac_status); }; } &&
44109          { ac_try='test -s conftest$ac_exeext'
44110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44111   (eval $ac_try) 2>&5
44112   ac_status=$?
44113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44114   (exit $ac_status); }; }; then
44115   eval "$as_ac_var=yes"
44116 else
44117   echo "$as_me: failed program was:" >&5
44118 sed 's/^/| /' conftest.$ac_ext >&5
44119
44120 eval "$as_ac_var=no"
44121 fi
44122 rm -f conftest.err conftest.$ac_objext \
44123       conftest$ac_exeext conftest.$ac_ext
44124 fi
44125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44127 if test `eval echo '${'$as_ac_var'}'` = yes; then
44128   cat >>confdefs.h <<_ACEOF
44129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44130 _ACEOF
44131  ice_have_shquote=yes
44132 fi
44133 done
44134
44135 if test "${ice_have_shquote}" = yes; then
44136 echo "$as_me:$LINENO: checking for shquote declaration in stdlib.h" >&5
44137 echo $ECHO_N "checking for shquote declaration in stdlib.h... $ECHO_C" >&6
44138 if test "${ice_cv_have_shquote_decl+set}" = set; then
44139   echo $ECHO_N "(cached) $ECHO_C" >&6
44140 else
44141
44142 ice_cv_have_shquote_decl=no
44143 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44144 ice_re_word='(^|[^a-zA-Z0-9_])'
44145 for header in stdlib.h; do
44146 # Check for ordinary declaration
44147 cat >conftest.$ac_ext <<_ACEOF
44148 /* confdefs.h.  */
44149 _ACEOF
44150 cat confdefs.h >>conftest.$ac_ext
44151 cat >>conftest.$ac_ext <<_ACEOF
44152 /* end confdefs.h.  */
44153 #include <$header>
44154
44155 _ACEOF
44156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44157   $EGREP "${ice_re_word}shquote[        ]*\(" >/dev/null 2>&1; then
44158   ice_cv_have_shquote_decl=yes
44159 fi
44160 rm -f conftest*
44161
44162 if test "$ice_cv_have_shquote_decl" = yes; then
44163         break
44164 fi
44165 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44166 cat >conftest.$ac_ext <<_ACEOF
44167 /* confdefs.h.  */
44168 _ACEOF
44169 cat confdefs.h >>conftest.$ac_ext
44170 cat >>conftest.$ac_ext <<_ACEOF
44171 /* end confdefs.h.  */
44172 #include <$header>
44173
44174 _ACEOF
44175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44176   $EGREP "${ice_re_word}shquote[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44177   ice_cv_have_shquote_decl=yes
44178 fi
44179 rm -f conftest*
44180
44181 if test "$ice_cv_have_shquote_decl" = yes; then
44182         break
44183 fi
44184 done
44185
44186 fi
44187
44188 echo "$as_me:$LINENO: result: $ice_cv_have_shquote_decl" >&5
44189 echo "${ECHO_T}$ice_cv_have_shquote_decl" >&6
44190 if test "$ice_cv_have_shquote_decl" = yes; then
44191
44192 cat >>confdefs.h <<_ACEOF
44193 #define HAVE_SHQUOTE_DECL 1
44194 _ACEOF
44195
44196 fi
44197 fi
44198
44199
44200
44201 ice_have_snprintf=no
44202
44203 for ac_func in snprintf
44204 do
44205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44206 echo "$as_me:$LINENO: checking for $ac_func" >&5
44207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44208 if eval "test \"\${$as_ac_var+set}\" = set"; then
44209   echo $ECHO_N "(cached) $ECHO_C" >&6
44210 else
44211   cat >conftest.$ac_ext <<_ACEOF
44212 /* confdefs.h.  */
44213 _ACEOF
44214 cat confdefs.h >>conftest.$ac_ext
44215 cat >>conftest.$ac_ext <<_ACEOF
44216 /* end confdefs.h.  */
44217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44219 #define $ac_func innocuous_$ac_func
44220
44221 /* System header to define __stub macros and hopefully few prototypes,
44222     which can conflict with char $ac_func (); below.
44223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44224     <limits.h> exists even on freestanding compilers.  */
44225
44226 #ifdef __STDC__
44227 # include <limits.h>
44228 #else
44229 # include <assert.h>
44230 #endif
44231
44232 #undef $ac_func
44233
44234 /* Override any gcc2 internal prototype to avoid an error.  */
44235 #ifdef __cplusplus
44236 extern "C"
44237 {
44238 #endif
44239 /* We use char because int might match the return type of a gcc2
44240    builtin and then its argument prototype would still apply.  */
44241 char $ac_func ();
44242 /* The GNU C library defines this for functions which it implements
44243     to always fail with ENOSYS.  Some functions are actually named
44244     something starting with __ and the normal name is an alias.  */
44245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44246 choke me
44247 #else
44248 char (*f) () = $ac_func;
44249 #endif
44250 #ifdef __cplusplus
44251 }
44252 #endif
44253
44254 int
44255 main ()
44256 {
44257 return f != $ac_func;
44258   ;
44259   return 0;
44260 }
44261 _ACEOF
44262 rm -f conftest.$ac_objext conftest$ac_exeext
44263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44264   (eval $ac_link) 2>conftest.er1
44265   ac_status=$?
44266   grep -v '^ *+' conftest.er1 >conftest.err
44267   rm -f conftest.er1
44268   cat conftest.err >&5
44269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44270   (exit $ac_status); } &&
44271          { ac_try='test -z "$ac_c_werror_flag"
44272                          || test ! -s conftest.err'
44273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44274   (eval $ac_try) 2>&5
44275   ac_status=$?
44276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44277   (exit $ac_status); }; } &&
44278          { ac_try='test -s conftest$ac_exeext'
44279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44280   (eval $ac_try) 2>&5
44281   ac_status=$?
44282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44283   (exit $ac_status); }; }; then
44284   eval "$as_ac_var=yes"
44285 else
44286   echo "$as_me: failed program was:" >&5
44287 sed 's/^/| /' conftest.$ac_ext >&5
44288
44289 eval "$as_ac_var=no"
44290 fi
44291 rm -f conftest.err conftest.$ac_objext \
44292       conftest$ac_exeext conftest.$ac_ext
44293 fi
44294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44296 if test `eval echo '${'$as_ac_var'}'` = yes; then
44297   cat >>confdefs.h <<_ACEOF
44298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44299 _ACEOF
44300  ice_have_snprintf=yes
44301 fi
44302 done
44303
44304 if test "${ice_have_snprintf}" = yes; then
44305 echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
44306 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6
44307 if test "${ice_cv_have_snprintf_decl+set}" = set; then
44308   echo $ECHO_N "(cached) $ECHO_C" >&6
44309 else
44310
44311 ice_cv_have_snprintf_decl=no
44312 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44313 ice_re_word='(^|[^a-zA-Z0-9_])'
44314 for header in stdio.h; do
44315 # Check for ordinary declaration
44316 cat >conftest.$ac_ext <<_ACEOF
44317 /* confdefs.h.  */
44318 _ACEOF
44319 cat confdefs.h >>conftest.$ac_ext
44320 cat >>conftest.$ac_ext <<_ACEOF
44321 /* end confdefs.h.  */
44322 #include <$header>
44323
44324 _ACEOF
44325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44326   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
44327   ice_cv_have_snprintf_decl=yes
44328 fi
44329 rm -f conftest*
44330
44331 if test "$ice_cv_have_snprintf_decl" = yes; then
44332         break
44333 fi
44334 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44335 cat >conftest.$ac_ext <<_ACEOF
44336 /* confdefs.h.  */
44337 _ACEOF
44338 cat confdefs.h >>conftest.$ac_ext
44339 cat >>conftest.$ac_ext <<_ACEOF
44340 /* end confdefs.h.  */
44341 #include <$header>
44342
44343 _ACEOF
44344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44345   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44346   ice_cv_have_snprintf_decl=yes
44347 fi
44348 rm -f conftest*
44349
44350 if test "$ice_cv_have_snprintf_decl" = yes; then
44351         break
44352 fi
44353 done
44354
44355 fi
44356
44357 echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
44358 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6
44359 if test "$ice_cv_have_snprintf_decl" = yes; then
44360
44361 cat >>confdefs.h <<_ACEOF
44362 #define HAVE_SNPRINTF_DECL 1
44363 _ACEOF
44364
44365 fi
44366 fi
44367
44368
44369 ice_have_vsnprintf=no
44370
44371 for ac_func in vsnprintf
44372 do
44373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44374 echo "$as_me:$LINENO: checking for $ac_func" >&5
44375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44376 if eval "test \"\${$as_ac_var+set}\" = set"; then
44377   echo $ECHO_N "(cached) $ECHO_C" >&6
44378 else
44379   cat >conftest.$ac_ext <<_ACEOF
44380 /* confdefs.h.  */
44381 _ACEOF
44382 cat confdefs.h >>conftest.$ac_ext
44383 cat >>conftest.$ac_ext <<_ACEOF
44384 /* end confdefs.h.  */
44385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44387 #define $ac_func innocuous_$ac_func
44388
44389 /* System header to define __stub macros and hopefully few prototypes,
44390     which can conflict with char $ac_func (); below.
44391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44392     <limits.h> exists even on freestanding compilers.  */
44393
44394 #ifdef __STDC__
44395 # include <limits.h>
44396 #else
44397 # include <assert.h>
44398 #endif
44399
44400 #undef $ac_func
44401
44402 /* Override any gcc2 internal prototype to avoid an error.  */
44403 #ifdef __cplusplus
44404 extern "C"
44405 {
44406 #endif
44407 /* We use char because int might match the return type of a gcc2
44408    builtin and then its argument prototype would still apply.  */
44409 char $ac_func ();
44410 /* The GNU C library defines this for functions which it implements
44411     to always fail with ENOSYS.  Some functions are actually named
44412     something starting with __ and the normal name is an alias.  */
44413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44414 choke me
44415 #else
44416 char (*f) () = $ac_func;
44417 #endif
44418 #ifdef __cplusplus
44419 }
44420 #endif
44421
44422 int
44423 main ()
44424 {
44425 return f != $ac_func;
44426   ;
44427   return 0;
44428 }
44429 _ACEOF
44430 rm -f conftest.$ac_objext conftest$ac_exeext
44431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44432   (eval $ac_link) 2>conftest.er1
44433   ac_status=$?
44434   grep -v '^ *+' conftest.er1 >conftest.err
44435   rm -f conftest.er1
44436   cat conftest.err >&5
44437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44438   (exit $ac_status); } &&
44439          { ac_try='test -z "$ac_c_werror_flag"
44440                          || test ! -s conftest.err'
44441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44442   (eval $ac_try) 2>&5
44443   ac_status=$?
44444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44445   (exit $ac_status); }; } &&
44446          { ac_try='test -s conftest$ac_exeext'
44447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44448   (eval $ac_try) 2>&5
44449   ac_status=$?
44450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44451   (exit $ac_status); }; }; then
44452   eval "$as_ac_var=yes"
44453 else
44454   echo "$as_me: failed program was:" >&5
44455 sed 's/^/| /' conftest.$ac_ext >&5
44456
44457 eval "$as_ac_var=no"
44458 fi
44459 rm -f conftest.err conftest.$ac_objext \
44460       conftest$ac_exeext conftest.$ac_ext
44461 fi
44462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44464 if test `eval echo '${'$as_ac_var'}'` = yes; then
44465   cat >>confdefs.h <<_ACEOF
44466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44467 _ACEOF
44468  ice_have_vsnprintf=yes
44469 fi
44470 done
44471
44472 if test "${ice_have_vsnprintf}" = yes; then
44473 echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
44474 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6
44475 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
44476   echo $ECHO_N "(cached) $ECHO_C" >&6
44477 else
44478
44479 ice_cv_have_vsnprintf_decl=no
44480 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44481 ice_re_word='(^|[^a-zA-Z0-9_])'
44482 for header in stdio.h; do
44483 # Check for ordinary declaration
44484 cat >conftest.$ac_ext <<_ACEOF
44485 /* confdefs.h.  */
44486 _ACEOF
44487 cat confdefs.h >>conftest.$ac_ext
44488 cat >>conftest.$ac_ext <<_ACEOF
44489 /* end confdefs.h.  */
44490 #include <$header>
44491
44492 _ACEOF
44493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44494   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
44495   ice_cv_have_vsnprintf_decl=yes
44496 fi
44497 rm -f conftest*
44498
44499 if test "$ice_cv_have_vsnprintf_decl" = yes; then
44500         break
44501 fi
44502 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44503 cat >conftest.$ac_ext <<_ACEOF
44504 /* confdefs.h.  */
44505 _ACEOF
44506 cat confdefs.h >>conftest.$ac_ext
44507 cat >>conftest.$ac_ext <<_ACEOF
44508 /* end confdefs.h.  */
44509 #include <$header>
44510
44511 _ACEOF
44512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44513   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44514   ice_cv_have_vsnprintf_decl=yes
44515 fi
44516 rm -f conftest*
44517
44518 if test "$ice_cv_have_vsnprintf_decl" = yes; then
44519         break
44520 fi
44521 done
44522
44523 fi
44524
44525 echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
44526 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6
44527 if test "$ice_cv_have_vsnprintf_decl" = yes; then
44528
44529 cat >>confdefs.h <<_ACEOF
44530 #define HAVE_VSNPRINTF_DECL 1
44531 _ACEOF
44532
44533 fi
44534 fi
44535
44536 if test x"$ice_have_snprintf" != x"yes" ||
44537    test x"$ice_have_vsnprintf" != x"yes"; then
44538     case $LIBOBJS in
44539     "snprintf.$ac_objext"   | \
44540   *" snprintf.$ac_objext"   | \
44541     "snprintf.$ac_objext "* | \
44542   *" snprintf.$ac_objext "* ) ;;
44543   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
44544 esac
44545
44546     if false; then :
44547
44548 for ac_func in snprintf
44549 do
44550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44551 echo "$as_me:$LINENO: checking for $ac_func" >&5
44552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44553 if eval "test \"\${$as_ac_var+set}\" = set"; then
44554   echo $ECHO_N "(cached) $ECHO_C" >&6
44555 else
44556   cat >conftest.$ac_ext <<_ACEOF
44557 /* confdefs.h.  */
44558 _ACEOF
44559 cat confdefs.h >>conftest.$ac_ext
44560 cat >>conftest.$ac_ext <<_ACEOF
44561 /* end confdefs.h.  */
44562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44564 #define $ac_func innocuous_$ac_func
44565
44566 /* System header to define __stub macros and hopefully few prototypes,
44567     which can conflict with char $ac_func (); below.
44568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44569     <limits.h> exists even on freestanding compilers.  */
44570
44571 #ifdef __STDC__
44572 # include <limits.h>
44573 #else
44574 # include <assert.h>
44575 #endif
44576
44577 #undef $ac_func
44578
44579 /* Override any gcc2 internal prototype to avoid an error.  */
44580 #ifdef __cplusplus
44581 extern "C"
44582 {
44583 #endif
44584 /* We use char because int might match the return type of a gcc2
44585    builtin and then its argument prototype would still apply.  */
44586 char $ac_func ();
44587 /* The GNU C library defines this for functions which it implements
44588     to always fail with ENOSYS.  Some functions are actually named
44589     something starting with __ and the normal name is an alias.  */
44590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44591 choke me
44592 #else
44593 char (*f) () = $ac_func;
44594 #endif
44595 #ifdef __cplusplus
44596 }
44597 #endif
44598
44599 int
44600 main ()
44601 {
44602 return f != $ac_func;
44603   ;
44604   return 0;
44605 }
44606 _ACEOF
44607 rm -f conftest.$ac_objext conftest$ac_exeext
44608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44609   (eval $ac_link) 2>conftest.er1
44610   ac_status=$?
44611   grep -v '^ *+' conftest.er1 >conftest.err
44612   rm -f conftest.er1
44613   cat conftest.err >&5
44614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44615   (exit $ac_status); } &&
44616          { ac_try='test -z "$ac_c_werror_flag"
44617                          || test ! -s conftest.err'
44618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44619   (eval $ac_try) 2>&5
44620   ac_status=$?
44621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44622   (exit $ac_status); }; } &&
44623          { ac_try='test -s conftest$ac_exeext'
44624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44625   (eval $ac_try) 2>&5
44626   ac_status=$?
44627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44628   (exit $ac_status); }; }; then
44629   eval "$as_ac_var=yes"
44630 else
44631   echo "$as_me: failed program was:" >&5
44632 sed 's/^/| /' conftest.$ac_ext >&5
44633
44634 eval "$as_ac_var=no"
44635 fi
44636 rm -f conftest.err conftest.$ac_objext \
44637       conftest$ac_exeext conftest.$ac_ext
44638 fi
44639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44641 if test `eval echo '${'$as_ac_var'}'` = yes; then
44642   cat >>confdefs.h <<_ACEOF
44643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44644 _ACEOF
44645
44646 else
44647   case $LIBOBJS in
44648     "$ac_func.$ac_objext"   | \
44649   *" $ac_func.$ac_objext"   | \
44650     "$ac_func.$ac_objext "* | \
44651   *" $ac_func.$ac_objext "* ) ;;
44652   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
44653 esac
44654
44655 fi
44656 done
44657
44658
44659     fi
44660 fi
44661
44662
44663
44664
44665 for ac_func in sigaction sigemptyset sigvec
44666 do
44667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44668 echo "$as_me:$LINENO: checking for $ac_func" >&5
44669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44670 if eval "test \"\${$as_ac_var+set}\" = set"; then
44671   echo $ECHO_N "(cached) $ECHO_C" >&6
44672 else
44673   cat >conftest.$ac_ext <<_ACEOF
44674 /* confdefs.h.  */
44675 _ACEOF
44676 cat confdefs.h >>conftest.$ac_ext
44677 cat >>conftest.$ac_ext <<_ACEOF
44678 /* end confdefs.h.  */
44679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44681 #define $ac_func innocuous_$ac_func
44682
44683 /* System header to define __stub macros and hopefully few prototypes,
44684     which can conflict with char $ac_func (); below.
44685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44686     <limits.h> exists even on freestanding compilers.  */
44687
44688 #ifdef __STDC__
44689 # include <limits.h>
44690 #else
44691 # include <assert.h>
44692 #endif
44693
44694 #undef $ac_func
44695
44696 /* Override any gcc2 internal prototype to avoid an error.  */
44697 #ifdef __cplusplus
44698 extern "C"
44699 {
44700 #endif
44701 /* We use char because int might match the return type of a gcc2
44702    builtin and then its argument prototype would still apply.  */
44703 char $ac_func ();
44704 /* The GNU C library defines this for functions which it implements
44705     to always fail with ENOSYS.  Some functions are actually named
44706     something starting with __ and the normal name is an alias.  */
44707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44708 choke me
44709 #else
44710 char (*f) () = $ac_func;
44711 #endif
44712 #ifdef __cplusplus
44713 }
44714 #endif
44715
44716 int
44717 main ()
44718 {
44719 return f != $ac_func;
44720   ;
44721   return 0;
44722 }
44723 _ACEOF
44724 rm -f conftest.$ac_objext conftest$ac_exeext
44725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44726   (eval $ac_link) 2>conftest.er1
44727   ac_status=$?
44728   grep -v '^ *+' conftest.er1 >conftest.err
44729   rm -f conftest.er1
44730   cat conftest.err >&5
44731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44732   (exit $ac_status); } &&
44733          { ac_try='test -z "$ac_c_werror_flag"
44734                          || test ! -s conftest.err'
44735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44736   (eval $ac_try) 2>&5
44737   ac_status=$?
44738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44739   (exit $ac_status); }; } &&
44740          { ac_try='test -s conftest$ac_exeext'
44741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44742   (eval $ac_try) 2>&5
44743   ac_status=$?
44744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44745   (exit $ac_status); }; }; then
44746   eval "$as_ac_var=yes"
44747 else
44748   echo "$as_me: failed program was:" >&5
44749 sed 's/^/| /' conftest.$ac_ext >&5
44750
44751 eval "$as_ac_var=no"
44752 fi
44753 rm -f conftest.err conftest.$ac_objext \
44754       conftest$ac_exeext conftest.$ac_ext
44755 fi
44756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44758 if test `eval echo '${'$as_ac_var'}'` = yes; then
44759   cat >>confdefs.h <<_ACEOF
44760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44761 _ACEOF
44762
44763 fi
44764 done
44765
44766
44767 ice_have_socket=no
44768
44769 for ac_func in socket
44770 do
44771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44772 echo "$as_me:$LINENO: checking for $ac_func" >&5
44773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44774 if eval "test \"\${$as_ac_var+set}\" = set"; then
44775   echo $ECHO_N "(cached) $ECHO_C" >&6
44776 else
44777   cat >conftest.$ac_ext <<_ACEOF
44778 /* confdefs.h.  */
44779 _ACEOF
44780 cat confdefs.h >>conftest.$ac_ext
44781 cat >>conftest.$ac_ext <<_ACEOF
44782 /* end confdefs.h.  */
44783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44785 #define $ac_func innocuous_$ac_func
44786
44787 /* System header to define __stub macros and hopefully few prototypes,
44788     which can conflict with char $ac_func (); below.
44789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44790     <limits.h> exists even on freestanding compilers.  */
44791
44792 #ifdef __STDC__
44793 # include <limits.h>
44794 #else
44795 # include <assert.h>
44796 #endif
44797
44798 #undef $ac_func
44799
44800 /* Override any gcc2 internal prototype to avoid an error.  */
44801 #ifdef __cplusplus
44802 extern "C"
44803 {
44804 #endif
44805 /* We use char because int might match the return type of a gcc2
44806    builtin and then its argument prototype would still apply.  */
44807 char $ac_func ();
44808 /* The GNU C library defines this for functions which it implements
44809     to always fail with ENOSYS.  Some functions are actually named
44810     something starting with __ and the normal name is an alias.  */
44811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44812 choke me
44813 #else
44814 char (*f) () = $ac_func;
44815 #endif
44816 #ifdef __cplusplus
44817 }
44818 #endif
44819
44820 int
44821 main ()
44822 {
44823 return f != $ac_func;
44824   ;
44825   return 0;
44826 }
44827 _ACEOF
44828 rm -f conftest.$ac_objext conftest$ac_exeext
44829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44830   (eval $ac_link) 2>conftest.er1
44831   ac_status=$?
44832   grep -v '^ *+' conftest.er1 >conftest.err
44833   rm -f conftest.er1
44834   cat conftest.err >&5
44835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44836   (exit $ac_status); } &&
44837          { ac_try='test -z "$ac_c_werror_flag"
44838                          || test ! -s conftest.err'
44839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44840   (eval $ac_try) 2>&5
44841   ac_status=$?
44842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44843   (exit $ac_status); }; } &&
44844          { ac_try='test -s conftest$ac_exeext'
44845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44846   (eval $ac_try) 2>&5
44847   ac_status=$?
44848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44849   (exit $ac_status); }; }; then
44850   eval "$as_ac_var=yes"
44851 else
44852   echo "$as_me: failed program was:" >&5
44853 sed 's/^/| /' conftest.$ac_ext >&5
44854
44855 eval "$as_ac_var=no"
44856 fi
44857 rm -f conftest.err conftest.$ac_objext \
44858       conftest$ac_exeext conftest.$ac_ext
44859 fi
44860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44862 if test `eval echo '${'$as_ac_var'}'` = yes; then
44863   cat >>confdefs.h <<_ACEOF
44864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44865 _ACEOF
44866  ice_have_socket=yes
44867 fi
44868 done
44869
44870 if test "${ice_have_socket}" = yes; then
44871 echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
44872 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
44873 if test "${ice_cv_have_socket_decl+set}" = set; then
44874   echo $ECHO_N "(cached) $ECHO_C" >&6
44875 else
44876
44877 ice_cv_have_socket_decl=no
44878 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44879 ice_re_word='(^|[^a-zA-Z0-9_])'
44880 for header in sys/types.h sys/socket.h; do
44881 # Check for ordinary declaration
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 #include <$header>
44889
44890 _ACEOF
44891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44892   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
44893   ice_cv_have_socket_decl=yes
44894 fi
44895 rm -f conftest*
44896
44897 if test "$ice_cv_have_socket_decl" = yes; then
44898         break
44899 fi
44900 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44901 cat >conftest.$ac_ext <<_ACEOF
44902 /* confdefs.h.  */
44903 _ACEOF
44904 cat confdefs.h >>conftest.$ac_ext
44905 cat >>conftest.$ac_ext <<_ACEOF
44906 /* end confdefs.h.  */
44907 #include <$header>
44908
44909 _ACEOF
44910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44911   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44912   ice_cv_have_socket_decl=yes
44913 fi
44914 rm -f conftest*
44915
44916 if test "$ice_cv_have_socket_decl" = yes; then
44917         break
44918 fi
44919 done
44920
44921 fi
44922
44923 echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
44924 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6
44925 if test "$ice_cv_have_socket_decl" = yes; then
44926
44927 cat >>confdefs.h <<_ACEOF
44928 #define HAVE_SOCKET_DECL 1
44929 _ACEOF
44930
44931 fi
44932 fi
44933
44934
44935 ice_have_socketpair=no
44936
44937 for ac_func in socketpair
44938 do
44939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44940 echo "$as_me:$LINENO: checking for $ac_func" >&5
44941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44942 if eval "test \"\${$as_ac_var+set}\" = set"; then
44943   echo $ECHO_N "(cached) $ECHO_C" >&6
44944 else
44945   cat >conftest.$ac_ext <<_ACEOF
44946 /* confdefs.h.  */
44947 _ACEOF
44948 cat confdefs.h >>conftest.$ac_ext
44949 cat >>conftest.$ac_ext <<_ACEOF
44950 /* end confdefs.h.  */
44951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44953 #define $ac_func innocuous_$ac_func
44954
44955 /* System header to define __stub macros and hopefully few prototypes,
44956     which can conflict with char $ac_func (); below.
44957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44958     <limits.h> exists even on freestanding compilers.  */
44959
44960 #ifdef __STDC__
44961 # include <limits.h>
44962 #else
44963 # include <assert.h>
44964 #endif
44965
44966 #undef $ac_func
44967
44968 /* Override any gcc2 internal prototype to avoid an error.  */
44969 #ifdef __cplusplus
44970 extern "C"
44971 {
44972 #endif
44973 /* We use char because int might match the return type of a gcc2
44974    builtin and then its argument prototype would still apply.  */
44975 char $ac_func ();
44976 /* The GNU C library defines this for functions which it implements
44977     to always fail with ENOSYS.  Some functions are actually named
44978     something starting with __ and the normal name is an alias.  */
44979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44980 choke me
44981 #else
44982 char (*f) () = $ac_func;
44983 #endif
44984 #ifdef __cplusplus
44985 }
44986 #endif
44987
44988 int
44989 main ()
44990 {
44991 return f != $ac_func;
44992   ;
44993   return 0;
44994 }
44995 _ACEOF
44996 rm -f conftest.$ac_objext conftest$ac_exeext
44997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44998   (eval $ac_link) 2>conftest.er1
44999   ac_status=$?
45000   grep -v '^ *+' conftest.er1 >conftest.err
45001   rm -f conftest.er1
45002   cat conftest.err >&5
45003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45004   (exit $ac_status); } &&
45005          { ac_try='test -z "$ac_c_werror_flag"
45006                          || test ! -s conftest.err'
45007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45008   (eval $ac_try) 2>&5
45009   ac_status=$?
45010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45011   (exit $ac_status); }; } &&
45012          { ac_try='test -s conftest$ac_exeext'
45013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45014   (eval $ac_try) 2>&5
45015   ac_status=$?
45016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45017   (exit $ac_status); }; }; then
45018   eval "$as_ac_var=yes"
45019 else
45020   echo "$as_me: failed program was:" >&5
45021 sed 's/^/| /' conftest.$ac_ext >&5
45022
45023 eval "$as_ac_var=no"
45024 fi
45025 rm -f conftest.err conftest.$ac_objext \
45026       conftest$ac_exeext conftest.$ac_ext
45027 fi
45028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45030 if test `eval echo '${'$as_ac_var'}'` = yes; then
45031   cat >>confdefs.h <<_ACEOF
45032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45033 _ACEOF
45034  ice_have_socketpair=yes
45035 fi
45036 done
45037
45038 if test "${ice_have_socketpair}" = yes; then
45039 echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
45040 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
45041 if test "${ice_cv_have_socketpair_decl+set}" = set; then
45042   echo $ECHO_N "(cached) $ECHO_C" >&6
45043 else
45044
45045 ice_cv_have_socketpair_decl=no
45046 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45047 ice_re_word='(^|[^a-zA-Z0-9_])'
45048 for header in sys/types.h sys/socket.h; do
45049 # Check for ordinary declaration
45050 cat >conftest.$ac_ext <<_ACEOF
45051 /* confdefs.h.  */
45052 _ACEOF
45053 cat confdefs.h >>conftest.$ac_ext
45054 cat >>conftest.$ac_ext <<_ACEOF
45055 /* end confdefs.h.  */
45056 #include <$header>
45057
45058 _ACEOF
45059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45060   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
45061   ice_cv_have_socketpair_decl=yes
45062 fi
45063 rm -f conftest*
45064
45065 if test "$ice_cv_have_socketpair_decl" = yes; then
45066         break
45067 fi
45068 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45069 cat >conftest.$ac_ext <<_ACEOF
45070 /* confdefs.h.  */
45071 _ACEOF
45072 cat confdefs.h >>conftest.$ac_ext
45073 cat >>conftest.$ac_ext <<_ACEOF
45074 /* end confdefs.h.  */
45075 #include <$header>
45076
45077 _ACEOF
45078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45079   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45080   ice_cv_have_socketpair_decl=yes
45081 fi
45082 rm -f conftest*
45083
45084 if test "$ice_cv_have_socketpair_decl" = yes; then
45085         break
45086 fi
45087 done
45088
45089 fi
45090
45091 echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
45092 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6
45093 if test "$ice_cv_have_socketpair_decl" = yes; then
45094
45095 cat >>confdefs.h <<_ACEOF
45096 #define HAVE_SOCKETPAIR_DECL 1
45097 _ACEOF
45098
45099 fi
45100 fi
45101
45102
45103 ice_have_sscanf=no
45104
45105 for ac_func in sscanf
45106 do
45107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45108 echo "$as_me:$LINENO: checking for $ac_func" >&5
45109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45110 if eval "test \"\${$as_ac_var+set}\" = set"; then
45111   echo $ECHO_N "(cached) $ECHO_C" >&6
45112 else
45113   cat >conftest.$ac_ext <<_ACEOF
45114 /* confdefs.h.  */
45115 _ACEOF
45116 cat confdefs.h >>conftest.$ac_ext
45117 cat >>conftest.$ac_ext <<_ACEOF
45118 /* end confdefs.h.  */
45119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45121 #define $ac_func innocuous_$ac_func
45122
45123 /* System header to define __stub macros and hopefully few prototypes,
45124     which can conflict with char $ac_func (); below.
45125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45126     <limits.h> exists even on freestanding compilers.  */
45127
45128 #ifdef __STDC__
45129 # include <limits.h>
45130 #else
45131 # include <assert.h>
45132 #endif
45133
45134 #undef $ac_func
45135
45136 /* Override any gcc2 internal prototype to avoid an error.  */
45137 #ifdef __cplusplus
45138 extern "C"
45139 {
45140 #endif
45141 /* We use char because int might match the return type of a gcc2
45142    builtin and then its argument prototype would still apply.  */
45143 char $ac_func ();
45144 /* The GNU C library defines this for functions which it implements
45145     to always fail with ENOSYS.  Some functions are actually named
45146     something starting with __ and the normal name is an alias.  */
45147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45148 choke me
45149 #else
45150 char (*f) () = $ac_func;
45151 #endif
45152 #ifdef __cplusplus
45153 }
45154 #endif
45155
45156 int
45157 main ()
45158 {
45159 return f != $ac_func;
45160   ;
45161   return 0;
45162 }
45163 _ACEOF
45164 rm -f conftest.$ac_objext conftest$ac_exeext
45165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45166   (eval $ac_link) 2>conftest.er1
45167   ac_status=$?
45168   grep -v '^ *+' conftest.er1 >conftest.err
45169   rm -f conftest.er1
45170   cat conftest.err >&5
45171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45172   (exit $ac_status); } &&
45173          { ac_try='test -z "$ac_c_werror_flag"
45174                          || test ! -s conftest.err'
45175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45176   (eval $ac_try) 2>&5
45177   ac_status=$?
45178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45179   (exit $ac_status); }; } &&
45180          { ac_try='test -s conftest$ac_exeext'
45181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45182   (eval $ac_try) 2>&5
45183   ac_status=$?
45184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45185   (exit $ac_status); }; }; then
45186   eval "$as_ac_var=yes"
45187 else
45188   echo "$as_me: failed program was:" >&5
45189 sed 's/^/| /' conftest.$ac_ext >&5
45190
45191 eval "$as_ac_var=no"
45192 fi
45193 rm -f conftest.err conftest.$ac_objext \
45194       conftest$ac_exeext conftest.$ac_ext
45195 fi
45196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45198 if test `eval echo '${'$as_ac_var'}'` = yes; then
45199   cat >>confdefs.h <<_ACEOF
45200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45201 _ACEOF
45202  ice_have_sscanf=yes
45203 fi
45204 done
45205
45206 if test "${ice_have_sscanf}" = yes; then
45207 echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
45208 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6
45209 if test "${ice_cv_have_sscanf_decl+set}" = set; then
45210   echo $ECHO_N "(cached) $ECHO_C" >&6
45211 else
45212
45213 ice_cv_have_sscanf_decl=no
45214 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45215 ice_re_word='(^|[^a-zA-Z0-9_])'
45216 for header in stdio.h; do
45217 # Check for ordinary declaration
45218 cat >conftest.$ac_ext <<_ACEOF
45219 /* confdefs.h.  */
45220 _ACEOF
45221 cat confdefs.h >>conftest.$ac_ext
45222 cat >>conftest.$ac_ext <<_ACEOF
45223 /* end confdefs.h.  */
45224 #include <$header>
45225
45226 _ACEOF
45227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45228   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
45229   ice_cv_have_sscanf_decl=yes
45230 fi
45231 rm -f conftest*
45232
45233 if test "$ice_cv_have_sscanf_decl" = yes; then
45234         break
45235 fi
45236 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45237 cat >conftest.$ac_ext <<_ACEOF
45238 /* confdefs.h.  */
45239 _ACEOF
45240 cat confdefs.h >>conftest.$ac_ext
45241 cat >>conftest.$ac_ext <<_ACEOF
45242 /* end confdefs.h.  */
45243 #include <$header>
45244
45245 _ACEOF
45246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45247   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45248   ice_cv_have_sscanf_decl=yes
45249 fi
45250 rm -f conftest*
45251
45252 if test "$ice_cv_have_sscanf_decl" = yes; then
45253         break
45254 fi
45255 done
45256
45257 fi
45258
45259 echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
45260 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6
45261 if test "$ice_cv_have_sscanf_decl" = yes; then
45262
45263 cat >>confdefs.h <<_ACEOF
45264 #define HAVE_SSCANF_DECL 1
45265 _ACEOF
45266
45267 fi
45268 fi
45269
45270
45271
45272 for ac_func in statfs statvfs
45273 do
45274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45275 echo "$as_me:$LINENO: checking for $ac_func" >&5
45276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45277 if eval "test \"\${$as_ac_var+set}\" = set"; then
45278   echo $ECHO_N "(cached) $ECHO_C" >&6
45279 else
45280   cat >conftest.$ac_ext <<_ACEOF
45281 /* confdefs.h.  */
45282 _ACEOF
45283 cat confdefs.h >>conftest.$ac_ext
45284 cat >>conftest.$ac_ext <<_ACEOF
45285 /* end confdefs.h.  */
45286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45288 #define $ac_func innocuous_$ac_func
45289
45290 /* System header to define __stub macros and hopefully few prototypes,
45291     which can conflict with char $ac_func (); below.
45292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45293     <limits.h> exists even on freestanding compilers.  */
45294
45295 #ifdef __STDC__
45296 # include <limits.h>
45297 #else
45298 # include <assert.h>
45299 #endif
45300
45301 #undef $ac_func
45302
45303 /* Override any gcc2 internal prototype to avoid an error.  */
45304 #ifdef __cplusplus
45305 extern "C"
45306 {
45307 #endif
45308 /* We use char because int might match the return type of a gcc2
45309    builtin and then its argument prototype would still apply.  */
45310 char $ac_func ();
45311 /* The GNU C library defines this for functions which it implements
45312     to always fail with ENOSYS.  Some functions are actually named
45313     something starting with __ and the normal name is an alias.  */
45314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45315 choke me
45316 #else
45317 char (*f) () = $ac_func;
45318 #endif
45319 #ifdef __cplusplus
45320 }
45321 #endif
45322
45323 int
45324 main ()
45325 {
45326 return f != $ac_func;
45327   ;
45328   return 0;
45329 }
45330 _ACEOF
45331 rm -f conftest.$ac_objext conftest$ac_exeext
45332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45333   (eval $ac_link) 2>conftest.er1
45334   ac_status=$?
45335   grep -v '^ *+' conftest.er1 >conftest.err
45336   rm -f conftest.er1
45337   cat conftest.err >&5
45338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45339   (exit $ac_status); } &&
45340          { ac_try='test -z "$ac_c_werror_flag"
45341                          || test ! -s conftest.err'
45342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45343   (eval $ac_try) 2>&5
45344   ac_status=$?
45345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45346   (exit $ac_status); }; } &&
45347          { ac_try='test -s conftest$ac_exeext'
45348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45349   (eval $ac_try) 2>&5
45350   ac_status=$?
45351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45352   (exit $ac_status); }; }; then
45353   eval "$as_ac_var=yes"
45354 else
45355   echo "$as_me: failed program was:" >&5
45356 sed 's/^/| /' conftest.$ac_ext >&5
45357
45358 eval "$as_ac_var=no"
45359 fi
45360 rm -f conftest.err conftest.$ac_objext \
45361       conftest$ac_exeext conftest.$ac_ext
45362 fi
45363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45365 if test `eval echo '${'$as_ac_var'}'` = yes; then
45366   cat >>confdefs.h <<_ACEOF
45367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45368 _ACEOF
45369
45370 fi
45371 done
45372
45373
45374 for ac_func in strerror
45375 do
45376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45377 echo "$as_me:$LINENO: checking for $ac_func" >&5
45378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45379 if eval "test \"\${$as_ac_var+set}\" = set"; then
45380   echo $ECHO_N "(cached) $ECHO_C" >&6
45381 else
45382   cat >conftest.$ac_ext <<_ACEOF
45383 /* confdefs.h.  */
45384 _ACEOF
45385 cat confdefs.h >>conftest.$ac_ext
45386 cat >>conftest.$ac_ext <<_ACEOF
45387 /* end confdefs.h.  */
45388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45390 #define $ac_func innocuous_$ac_func
45391
45392 /* System header to define __stub macros and hopefully few prototypes,
45393     which can conflict with char $ac_func (); below.
45394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45395     <limits.h> exists even on freestanding compilers.  */
45396
45397 #ifdef __STDC__
45398 # include <limits.h>
45399 #else
45400 # include <assert.h>
45401 #endif
45402
45403 #undef $ac_func
45404
45405 /* Override any gcc2 internal prototype to avoid an error.  */
45406 #ifdef __cplusplus
45407 extern "C"
45408 {
45409 #endif
45410 /* We use char because int might match the return type of a gcc2
45411    builtin and then its argument prototype would still apply.  */
45412 char $ac_func ();
45413 /* The GNU C library defines this for functions which it implements
45414     to always fail with ENOSYS.  Some functions are actually named
45415     something starting with __ and the normal name is an alias.  */
45416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45417 choke me
45418 #else
45419 char (*f) () = $ac_func;
45420 #endif
45421 #ifdef __cplusplus
45422 }
45423 #endif
45424
45425 int
45426 main ()
45427 {
45428 return f != $ac_func;
45429   ;
45430   return 0;
45431 }
45432 _ACEOF
45433 rm -f conftest.$ac_objext conftest$ac_exeext
45434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45435   (eval $ac_link) 2>conftest.er1
45436   ac_status=$?
45437   grep -v '^ *+' conftest.er1 >conftest.err
45438   rm -f conftest.er1
45439   cat conftest.err >&5
45440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45441   (exit $ac_status); } &&
45442          { ac_try='test -z "$ac_c_werror_flag"
45443                          || test ! -s conftest.err'
45444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45445   (eval $ac_try) 2>&5
45446   ac_status=$?
45447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45448   (exit $ac_status); }; } &&
45449          { ac_try='test -s conftest$ac_exeext'
45450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45451   (eval $ac_try) 2>&5
45452   ac_status=$?
45453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45454   (exit $ac_status); }; }; then
45455   eval "$as_ac_var=yes"
45456 else
45457   echo "$as_me: failed program was:" >&5
45458 sed 's/^/| /' conftest.$ac_ext >&5
45459
45460 eval "$as_ac_var=no"
45461 fi
45462 rm -f conftest.err conftest.$ac_objext \
45463       conftest$ac_exeext conftest.$ac_ext
45464 fi
45465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45467 if test `eval echo '${'$as_ac_var'}'` = yes; then
45468   cat >>confdefs.h <<_ACEOF
45469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45470 _ACEOF
45471
45472 else
45473   case $LIBOBJS in
45474     "$ac_func.$ac_objext"   | \
45475   *" $ac_func.$ac_objext"   | \
45476     "$ac_func.$ac_objext "* | \
45477   *" $ac_func.$ac_objext "* ) ;;
45478   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
45479 esac
45480
45481 fi
45482 done
45483
45484
45485
45486 ice_have_strerror=no
45487
45488 for ac_func in strerror
45489 do
45490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45491 echo "$as_me:$LINENO: checking for $ac_func" >&5
45492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45493 if eval "test \"\${$as_ac_var+set}\" = set"; then
45494   echo $ECHO_N "(cached) $ECHO_C" >&6
45495 else
45496   cat >conftest.$ac_ext <<_ACEOF
45497 /* confdefs.h.  */
45498 _ACEOF
45499 cat confdefs.h >>conftest.$ac_ext
45500 cat >>conftest.$ac_ext <<_ACEOF
45501 /* end confdefs.h.  */
45502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45504 #define $ac_func innocuous_$ac_func
45505
45506 /* System header to define __stub macros and hopefully few prototypes,
45507     which can conflict with char $ac_func (); below.
45508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45509     <limits.h> exists even on freestanding compilers.  */
45510
45511 #ifdef __STDC__
45512 # include <limits.h>
45513 #else
45514 # include <assert.h>
45515 #endif
45516
45517 #undef $ac_func
45518
45519 /* Override any gcc2 internal prototype to avoid an error.  */
45520 #ifdef __cplusplus
45521 extern "C"
45522 {
45523 #endif
45524 /* We use char because int might match the return type of a gcc2
45525    builtin and then its argument prototype would still apply.  */
45526 char $ac_func ();
45527 /* The GNU C library defines this for functions which it implements
45528     to always fail with ENOSYS.  Some functions are actually named
45529     something starting with __ and the normal name is an alias.  */
45530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45531 choke me
45532 #else
45533 char (*f) () = $ac_func;
45534 #endif
45535 #ifdef __cplusplus
45536 }
45537 #endif
45538
45539 int
45540 main ()
45541 {
45542 return f != $ac_func;
45543   ;
45544   return 0;
45545 }
45546 _ACEOF
45547 rm -f conftest.$ac_objext conftest$ac_exeext
45548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45549   (eval $ac_link) 2>conftest.er1
45550   ac_status=$?
45551   grep -v '^ *+' conftest.er1 >conftest.err
45552   rm -f conftest.er1
45553   cat conftest.err >&5
45554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45555   (exit $ac_status); } &&
45556          { ac_try='test -z "$ac_c_werror_flag"
45557                          || test ! -s conftest.err'
45558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45559   (eval $ac_try) 2>&5
45560   ac_status=$?
45561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45562   (exit $ac_status); }; } &&
45563          { ac_try='test -s conftest$ac_exeext'
45564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45565   (eval $ac_try) 2>&5
45566   ac_status=$?
45567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45568   (exit $ac_status); }; }; then
45569   eval "$as_ac_var=yes"
45570 else
45571   echo "$as_me: failed program was:" >&5
45572 sed 's/^/| /' conftest.$ac_ext >&5
45573
45574 eval "$as_ac_var=no"
45575 fi
45576 rm -f conftest.err conftest.$ac_objext \
45577       conftest$ac_exeext conftest.$ac_ext
45578 fi
45579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45581 if test `eval echo '${'$as_ac_var'}'` = yes; then
45582   cat >>confdefs.h <<_ACEOF
45583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45584 _ACEOF
45585  ice_have_strerror=yes
45586 fi
45587 done
45588
45589 if test "${ice_have_strerror}" = yes; then
45590 echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
45591 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6
45592 if test "${ice_cv_have_strerror_decl+set}" = set; then
45593   echo $ECHO_N "(cached) $ECHO_C" >&6
45594 else
45595
45596 ice_cv_have_strerror_decl=no
45597 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45598 ice_re_word='(^|[^a-zA-Z0-9_])'
45599 for header in string.h strings.h; do
45600 # Check for ordinary declaration
45601 cat >conftest.$ac_ext <<_ACEOF
45602 /* confdefs.h.  */
45603 _ACEOF
45604 cat confdefs.h >>conftest.$ac_ext
45605 cat >>conftest.$ac_ext <<_ACEOF
45606 /* end confdefs.h.  */
45607 #include <$header>
45608
45609 _ACEOF
45610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45611   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
45612   ice_cv_have_strerror_decl=yes
45613 fi
45614 rm -f conftest*
45615
45616 if test "$ice_cv_have_strerror_decl" = yes; then
45617         break
45618 fi
45619 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45620 cat >conftest.$ac_ext <<_ACEOF
45621 /* confdefs.h.  */
45622 _ACEOF
45623 cat confdefs.h >>conftest.$ac_ext
45624 cat >>conftest.$ac_ext <<_ACEOF
45625 /* end confdefs.h.  */
45626 #include <$header>
45627
45628 _ACEOF
45629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45630   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45631   ice_cv_have_strerror_decl=yes
45632 fi
45633 rm -f conftest*
45634
45635 if test "$ice_cv_have_strerror_decl" = yes; then
45636         break
45637 fi
45638 done
45639
45640 fi
45641
45642 echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
45643 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6
45644 if test "$ice_cv_have_strerror_decl" = yes; then
45645
45646 cat >>confdefs.h <<_ACEOF
45647 #define HAVE_STRERROR_DECL 1
45648 _ACEOF
45649
45650 fi
45651 fi
45652
45653
45654 for ac_func in strftime
45655 do
45656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45657 echo "$as_me:$LINENO: checking for $ac_func" >&5
45658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45659 if eval "test \"\${$as_ac_var+set}\" = set"; then
45660   echo $ECHO_N "(cached) $ECHO_C" >&6
45661 else
45662   cat >conftest.$ac_ext <<_ACEOF
45663 /* confdefs.h.  */
45664 _ACEOF
45665 cat confdefs.h >>conftest.$ac_ext
45666 cat >>conftest.$ac_ext <<_ACEOF
45667 /* end confdefs.h.  */
45668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45670 #define $ac_func innocuous_$ac_func
45671
45672 /* System header to define __stub macros and hopefully few prototypes,
45673     which can conflict with char $ac_func (); below.
45674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45675     <limits.h> exists even on freestanding compilers.  */
45676
45677 #ifdef __STDC__
45678 # include <limits.h>
45679 #else
45680 # include <assert.h>
45681 #endif
45682
45683 #undef $ac_func
45684
45685 /* Override any gcc2 internal prototype to avoid an error.  */
45686 #ifdef __cplusplus
45687 extern "C"
45688 {
45689 #endif
45690 /* We use char because int might match the return type of a gcc2
45691    builtin and then its argument prototype would still apply.  */
45692 char $ac_func ();
45693 /* The GNU C library defines this for functions which it implements
45694     to always fail with ENOSYS.  Some functions are actually named
45695     something starting with __ and the normal name is an alias.  */
45696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45697 choke me
45698 #else
45699 char (*f) () = $ac_func;
45700 #endif
45701 #ifdef __cplusplus
45702 }
45703 #endif
45704
45705 int
45706 main ()
45707 {
45708 return f != $ac_func;
45709   ;
45710   return 0;
45711 }
45712 _ACEOF
45713 rm -f conftest.$ac_objext conftest$ac_exeext
45714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45715   (eval $ac_link) 2>conftest.er1
45716   ac_status=$?
45717   grep -v '^ *+' conftest.er1 >conftest.err
45718   rm -f conftest.er1
45719   cat conftest.err >&5
45720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45721   (exit $ac_status); } &&
45722          { ac_try='test -z "$ac_c_werror_flag"
45723                          || test ! -s conftest.err'
45724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45725   (eval $ac_try) 2>&5
45726   ac_status=$?
45727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45728   (exit $ac_status); }; } &&
45729          { ac_try='test -s conftest$ac_exeext'
45730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45731   (eval $ac_try) 2>&5
45732   ac_status=$?
45733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45734   (exit $ac_status); }; }; then
45735   eval "$as_ac_var=yes"
45736 else
45737   echo "$as_me: failed program was:" >&5
45738 sed 's/^/| /' conftest.$ac_ext >&5
45739
45740 eval "$as_ac_var=no"
45741 fi
45742 rm -f conftest.err conftest.$ac_objext \
45743       conftest$ac_exeext conftest.$ac_ext
45744 fi
45745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45747 if test `eval echo '${'$as_ac_var'}'` = yes; then
45748   cat >>confdefs.h <<_ACEOF
45749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45750 _ACEOF
45751
45752 else
45753   # strftime is in -lintl on SCO UNIX.
45754 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
45755 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
45756 if test "${ac_cv_lib_intl_strftime+set}" = set; then
45757   echo $ECHO_N "(cached) $ECHO_C" >&6
45758 else
45759   ac_check_lib_save_LIBS=$LIBS
45760 LIBS="-lintl  $LIBS"
45761 cat >conftest.$ac_ext <<_ACEOF
45762 /* confdefs.h.  */
45763 _ACEOF
45764 cat confdefs.h >>conftest.$ac_ext
45765 cat >>conftest.$ac_ext <<_ACEOF
45766 /* end confdefs.h.  */
45767
45768 /* Override any gcc2 internal prototype to avoid an error.  */
45769 #ifdef __cplusplus
45770 extern "C"
45771 #endif
45772 /* We use char because int might match the return type of a gcc2
45773    builtin and then its argument prototype would still apply.  */
45774 char strftime ();
45775 int
45776 main ()
45777 {
45778 strftime ();
45779   ;
45780   return 0;
45781 }
45782 _ACEOF
45783 rm -f conftest.$ac_objext conftest$ac_exeext
45784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45785   (eval $ac_link) 2>conftest.er1
45786   ac_status=$?
45787   grep -v '^ *+' conftest.er1 >conftest.err
45788   rm -f conftest.er1
45789   cat conftest.err >&5
45790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45791   (exit $ac_status); } &&
45792          { ac_try='test -z "$ac_c_werror_flag"
45793                          || test ! -s conftest.err'
45794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45795   (eval $ac_try) 2>&5
45796   ac_status=$?
45797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45798   (exit $ac_status); }; } &&
45799          { ac_try='test -s conftest$ac_exeext'
45800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45801   (eval $ac_try) 2>&5
45802   ac_status=$?
45803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45804   (exit $ac_status); }; }; then
45805   ac_cv_lib_intl_strftime=yes
45806 else
45807   echo "$as_me: failed program was:" >&5
45808 sed 's/^/| /' conftest.$ac_ext >&5
45809
45810 ac_cv_lib_intl_strftime=no
45811 fi
45812 rm -f conftest.err conftest.$ac_objext \
45813       conftest$ac_exeext conftest.$ac_ext
45814 LIBS=$ac_check_lib_save_LIBS
45815 fi
45816 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
45817 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
45818 if test $ac_cv_lib_intl_strftime = yes; then
45819   cat >>confdefs.h <<\_ACEOF
45820 #define HAVE_STRFTIME 1
45821 _ACEOF
45822
45823 LIBS="-lintl $LIBS"
45824 fi
45825
45826 fi
45827 done
45828
45829
45830 for ac_func in strftime
45831 do
45832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45833 echo "$as_me:$LINENO: checking for $ac_func" >&5
45834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45835 if eval "test \"\${$as_ac_var+set}\" = set"; then
45836   echo $ECHO_N "(cached) $ECHO_C" >&6
45837 else
45838   cat >conftest.$ac_ext <<_ACEOF
45839 /* confdefs.h.  */
45840 _ACEOF
45841 cat confdefs.h >>conftest.$ac_ext
45842 cat >>conftest.$ac_ext <<_ACEOF
45843 /* end confdefs.h.  */
45844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45846 #define $ac_func innocuous_$ac_func
45847
45848 /* System header to define __stub macros and hopefully few prototypes,
45849     which can conflict with char $ac_func (); below.
45850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45851     <limits.h> exists even on freestanding compilers.  */
45852
45853 #ifdef __STDC__
45854 # include <limits.h>
45855 #else
45856 # include <assert.h>
45857 #endif
45858
45859 #undef $ac_func
45860
45861 /* Override any gcc2 internal prototype to avoid an error.  */
45862 #ifdef __cplusplus
45863 extern "C"
45864 {
45865 #endif
45866 /* We use char because int might match the return type of a gcc2
45867    builtin and then its argument prototype would still apply.  */
45868 char $ac_func ();
45869 /* The GNU C library defines this for functions which it implements
45870     to always fail with ENOSYS.  Some functions are actually named
45871     something starting with __ and the normal name is an alias.  */
45872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45873 choke me
45874 #else
45875 char (*f) () = $ac_func;
45876 #endif
45877 #ifdef __cplusplus
45878 }
45879 #endif
45880
45881 int
45882 main ()
45883 {
45884 return f != $ac_func;
45885   ;
45886   return 0;
45887 }
45888 _ACEOF
45889 rm -f conftest.$ac_objext conftest$ac_exeext
45890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45891   (eval $ac_link) 2>conftest.er1
45892   ac_status=$?
45893   grep -v '^ *+' conftest.er1 >conftest.err
45894   rm -f conftest.er1
45895   cat conftest.err >&5
45896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45897   (exit $ac_status); } &&
45898          { ac_try='test -z "$ac_c_werror_flag"
45899                          || test ! -s conftest.err'
45900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45901   (eval $ac_try) 2>&5
45902   ac_status=$?
45903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45904   (exit $ac_status); }; } &&
45905          { ac_try='test -s conftest$ac_exeext'
45906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45907   (eval $ac_try) 2>&5
45908   ac_status=$?
45909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45910   (exit $ac_status); }; }; then
45911   eval "$as_ac_var=yes"
45912 else
45913   echo "$as_me: failed program was:" >&5
45914 sed 's/^/| /' conftest.$ac_ext >&5
45915
45916 eval "$as_ac_var=no"
45917 fi
45918 rm -f conftest.err conftest.$ac_objext \
45919       conftest$ac_exeext conftest.$ac_ext
45920 fi
45921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45923 if test `eval echo '${'$as_ac_var'}'` = yes; then
45924   cat >>confdefs.h <<_ACEOF
45925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45926 _ACEOF
45927
45928 else
45929   case $LIBOBJS in
45930     "$ac_func.$ac_objext"   | \
45931   *" $ac_func.$ac_objext"   | \
45932     "$ac_func.$ac_objext "* | \
45933   *" $ac_func.$ac_objext "* ) ;;
45934   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
45935 esac
45936
45937 fi
45938 done
45939
45940
45941
45942 ice_have_strftime=no
45943
45944 for ac_func in strftime
45945 do
45946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45947 echo "$as_me:$LINENO: checking for $ac_func" >&5
45948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45949 if eval "test \"\${$as_ac_var+set}\" = set"; then
45950   echo $ECHO_N "(cached) $ECHO_C" >&6
45951 else
45952   cat >conftest.$ac_ext <<_ACEOF
45953 /* confdefs.h.  */
45954 _ACEOF
45955 cat confdefs.h >>conftest.$ac_ext
45956 cat >>conftest.$ac_ext <<_ACEOF
45957 /* end confdefs.h.  */
45958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45960 #define $ac_func innocuous_$ac_func
45961
45962 /* System header to define __stub macros and hopefully few prototypes,
45963     which can conflict with char $ac_func (); below.
45964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45965     <limits.h> exists even on freestanding compilers.  */
45966
45967 #ifdef __STDC__
45968 # include <limits.h>
45969 #else
45970 # include <assert.h>
45971 #endif
45972
45973 #undef $ac_func
45974
45975 /* Override any gcc2 internal prototype to avoid an error.  */
45976 #ifdef __cplusplus
45977 extern "C"
45978 {
45979 #endif
45980 /* We use char because int might match the return type of a gcc2
45981    builtin and then its argument prototype would still apply.  */
45982 char $ac_func ();
45983 /* The GNU C library defines this for functions which it implements
45984     to always fail with ENOSYS.  Some functions are actually named
45985     something starting with __ and the normal name is an alias.  */
45986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45987 choke me
45988 #else
45989 char (*f) () = $ac_func;
45990 #endif
45991 #ifdef __cplusplus
45992 }
45993 #endif
45994
45995 int
45996 main ()
45997 {
45998 return f != $ac_func;
45999   ;
46000   return 0;
46001 }
46002 _ACEOF
46003 rm -f conftest.$ac_objext conftest$ac_exeext
46004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46005   (eval $ac_link) 2>conftest.er1
46006   ac_status=$?
46007   grep -v '^ *+' conftest.er1 >conftest.err
46008   rm -f conftest.er1
46009   cat conftest.err >&5
46010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46011   (exit $ac_status); } &&
46012          { ac_try='test -z "$ac_c_werror_flag"
46013                          || test ! -s conftest.err'
46014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46015   (eval $ac_try) 2>&5
46016   ac_status=$?
46017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46018   (exit $ac_status); }; } &&
46019          { ac_try='test -s conftest$ac_exeext'
46020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46021   (eval $ac_try) 2>&5
46022   ac_status=$?
46023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46024   (exit $ac_status); }; }; then
46025   eval "$as_ac_var=yes"
46026 else
46027   echo "$as_me: failed program was:" >&5
46028 sed 's/^/| /' conftest.$ac_ext >&5
46029
46030 eval "$as_ac_var=no"
46031 fi
46032 rm -f conftest.err conftest.$ac_objext \
46033       conftest$ac_exeext conftest.$ac_ext
46034 fi
46035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46037 if test `eval echo '${'$as_ac_var'}'` = yes; then
46038   cat >>confdefs.h <<_ACEOF
46039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46040 _ACEOF
46041  ice_have_strftime=yes
46042 fi
46043 done
46044
46045 if test "${ice_have_strftime}" = yes; then
46046 echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
46047 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6
46048 if test "${ice_cv_have_strftime_decl+set}" = set; then
46049   echo $ECHO_N "(cached) $ECHO_C" >&6
46050 else
46051
46052 ice_cv_have_strftime_decl=no
46053 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46054 ice_re_word='(^|[^a-zA-Z0-9_])'
46055 for header in time.h sys/time.h; do
46056 # Check for ordinary declaration
46057 cat >conftest.$ac_ext <<_ACEOF
46058 /* confdefs.h.  */
46059 _ACEOF
46060 cat confdefs.h >>conftest.$ac_ext
46061 cat >>conftest.$ac_ext <<_ACEOF
46062 /* end confdefs.h.  */
46063 #include <$header>
46064
46065 _ACEOF
46066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46067   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
46068   ice_cv_have_strftime_decl=yes
46069 fi
46070 rm -f conftest*
46071
46072 if test "$ice_cv_have_strftime_decl" = yes; then
46073         break
46074 fi
46075 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46076 cat >conftest.$ac_ext <<_ACEOF
46077 /* confdefs.h.  */
46078 _ACEOF
46079 cat confdefs.h >>conftest.$ac_ext
46080 cat >>conftest.$ac_ext <<_ACEOF
46081 /* end confdefs.h.  */
46082 #include <$header>
46083
46084 _ACEOF
46085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46086   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46087   ice_cv_have_strftime_decl=yes
46088 fi
46089 rm -f conftest*
46090
46091 if test "$ice_cv_have_strftime_decl" = yes; then
46092         break
46093 fi
46094 done
46095
46096 fi
46097
46098 echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
46099 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6
46100 if test "$ice_cv_have_strftime_decl" = yes; then
46101
46102 cat >>confdefs.h <<_ACEOF
46103 #define HAVE_STRFTIME_DECL 1
46104 _ACEOF
46105
46106 fi
46107 fi
46108
46109
46110 for ac_func in strncasecmp
46111 do
46112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46113 echo "$as_me:$LINENO: checking for $ac_func" >&5
46114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46115 if eval "test \"\${$as_ac_var+set}\" = set"; then
46116   echo $ECHO_N "(cached) $ECHO_C" >&6
46117 else
46118   cat >conftest.$ac_ext <<_ACEOF
46119 /* confdefs.h.  */
46120 _ACEOF
46121 cat confdefs.h >>conftest.$ac_ext
46122 cat >>conftest.$ac_ext <<_ACEOF
46123 /* end confdefs.h.  */
46124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46126 #define $ac_func innocuous_$ac_func
46127
46128 /* System header to define __stub macros and hopefully few prototypes,
46129     which can conflict with char $ac_func (); below.
46130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46131     <limits.h> exists even on freestanding compilers.  */
46132
46133 #ifdef __STDC__
46134 # include <limits.h>
46135 #else
46136 # include <assert.h>
46137 #endif
46138
46139 #undef $ac_func
46140
46141 /* Override any gcc2 internal prototype to avoid an error.  */
46142 #ifdef __cplusplus
46143 extern "C"
46144 {
46145 #endif
46146 /* We use char because int might match the return type of a gcc2
46147    builtin and then its argument prototype would still apply.  */
46148 char $ac_func ();
46149 /* The GNU C library defines this for functions which it implements
46150     to always fail with ENOSYS.  Some functions are actually named
46151     something starting with __ and the normal name is an alias.  */
46152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46153 choke me
46154 #else
46155 char (*f) () = $ac_func;
46156 #endif
46157 #ifdef __cplusplus
46158 }
46159 #endif
46160
46161 int
46162 main ()
46163 {
46164 return f != $ac_func;
46165   ;
46166   return 0;
46167 }
46168 _ACEOF
46169 rm -f conftest.$ac_objext conftest$ac_exeext
46170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46171   (eval $ac_link) 2>conftest.er1
46172   ac_status=$?
46173   grep -v '^ *+' conftest.er1 >conftest.err
46174   rm -f conftest.er1
46175   cat conftest.err >&5
46176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46177   (exit $ac_status); } &&
46178          { ac_try='test -z "$ac_c_werror_flag"
46179                          || test ! -s conftest.err'
46180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46181   (eval $ac_try) 2>&5
46182   ac_status=$?
46183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46184   (exit $ac_status); }; } &&
46185          { ac_try='test -s conftest$ac_exeext'
46186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46187   (eval $ac_try) 2>&5
46188   ac_status=$?
46189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46190   (exit $ac_status); }; }; then
46191   eval "$as_ac_var=yes"
46192 else
46193   echo "$as_me: failed program was:" >&5
46194 sed 's/^/| /' conftest.$ac_ext >&5
46195
46196 eval "$as_ac_var=no"
46197 fi
46198 rm -f conftest.err conftest.$ac_objext \
46199       conftest$ac_exeext conftest.$ac_ext
46200 fi
46201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46203 if test `eval echo '${'$as_ac_var'}'` = yes; then
46204   cat >>confdefs.h <<_ACEOF
46205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46206 _ACEOF
46207
46208 else
46209   case $LIBOBJS in
46210     "$ac_func.$ac_objext"   | \
46211   *" $ac_func.$ac_objext"   | \
46212     "$ac_func.$ac_objext "* | \
46213   *" $ac_func.$ac_objext "* ) ;;
46214   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
46215 esac
46216
46217 fi
46218 done
46219
46220
46221
46222 ice_have_strncasecmp=no
46223
46224 for ac_func in strncasecmp
46225 do
46226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46227 echo "$as_me:$LINENO: checking for $ac_func" >&5
46228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46229 if eval "test \"\${$as_ac_var+set}\" = set"; then
46230   echo $ECHO_N "(cached) $ECHO_C" >&6
46231 else
46232   cat >conftest.$ac_ext <<_ACEOF
46233 /* confdefs.h.  */
46234 _ACEOF
46235 cat confdefs.h >>conftest.$ac_ext
46236 cat >>conftest.$ac_ext <<_ACEOF
46237 /* end confdefs.h.  */
46238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46240 #define $ac_func innocuous_$ac_func
46241
46242 /* System header to define __stub macros and hopefully few prototypes,
46243     which can conflict with char $ac_func (); below.
46244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46245     <limits.h> exists even on freestanding compilers.  */
46246
46247 #ifdef __STDC__
46248 # include <limits.h>
46249 #else
46250 # include <assert.h>
46251 #endif
46252
46253 #undef $ac_func
46254
46255 /* Override any gcc2 internal prototype to avoid an error.  */
46256 #ifdef __cplusplus
46257 extern "C"
46258 {
46259 #endif
46260 /* We use char because int might match the return type of a gcc2
46261    builtin and then its argument prototype would still apply.  */
46262 char $ac_func ();
46263 /* The GNU C library defines this for functions which it implements
46264     to always fail with ENOSYS.  Some functions are actually named
46265     something starting with __ and the normal name is an alias.  */
46266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46267 choke me
46268 #else
46269 char (*f) () = $ac_func;
46270 #endif
46271 #ifdef __cplusplus
46272 }
46273 #endif
46274
46275 int
46276 main ()
46277 {
46278 return f != $ac_func;
46279   ;
46280   return 0;
46281 }
46282 _ACEOF
46283 rm -f conftest.$ac_objext conftest$ac_exeext
46284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46285   (eval $ac_link) 2>conftest.er1
46286   ac_status=$?
46287   grep -v '^ *+' conftest.er1 >conftest.err
46288   rm -f conftest.er1
46289   cat conftest.err >&5
46290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46291   (exit $ac_status); } &&
46292          { ac_try='test -z "$ac_c_werror_flag"
46293                          || test ! -s conftest.err'
46294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46295   (eval $ac_try) 2>&5
46296   ac_status=$?
46297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46298   (exit $ac_status); }; } &&
46299          { ac_try='test -s conftest$ac_exeext'
46300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46301   (eval $ac_try) 2>&5
46302   ac_status=$?
46303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46304   (exit $ac_status); }; }; then
46305   eval "$as_ac_var=yes"
46306 else
46307   echo "$as_me: failed program was:" >&5
46308 sed 's/^/| /' conftest.$ac_ext >&5
46309
46310 eval "$as_ac_var=no"
46311 fi
46312 rm -f conftest.err conftest.$ac_objext \
46313       conftest$ac_exeext conftest.$ac_ext
46314 fi
46315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46317 if test `eval echo '${'$as_ac_var'}'` = yes; then
46318   cat >>confdefs.h <<_ACEOF
46319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46320 _ACEOF
46321  ice_have_strncasecmp=yes
46322 fi
46323 done
46324
46325 if test "${ice_have_strncasecmp}" = yes; then
46326 echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
46327 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6
46328 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
46329   echo $ECHO_N "(cached) $ECHO_C" >&6
46330 else
46331
46332 ice_cv_have_strncasecmp_decl=no
46333 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46334 ice_re_word='(^|[^a-zA-Z0-9_])'
46335 for header in string.h strings.h; do
46336 # Check for ordinary declaration
46337 cat >conftest.$ac_ext <<_ACEOF
46338 /* confdefs.h.  */
46339 _ACEOF
46340 cat confdefs.h >>conftest.$ac_ext
46341 cat >>conftest.$ac_ext <<_ACEOF
46342 /* end confdefs.h.  */
46343 #include <$header>
46344
46345 _ACEOF
46346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46347   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
46348   ice_cv_have_strncasecmp_decl=yes
46349 fi
46350 rm -f conftest*
46351
46352 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46353         break
46354 fi
46355 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46356 cat >conftest.$ac_ext <<_ACEOF
46357 /* confdefs.h.  */
46358 _ACEOF
46359 cat confdefs.h >>conftest.$ac_ext
46360 cat >>conftest.$ac_ext <<_ACEOF
46361 /* end confdefs.h.  */
46362 #include <$header>
46363
46364 _ACEOF
46365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46366   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46367   ice_cv_have_strncasecmp_decl=yes
46368 fi
46369 rm -f conftest*
46370
46371 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46372         break
46373 fi
46374 done
46375
46376 fi
46377
46378 echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
46379 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6
46380 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46381
46382 cat >>confdefs.h <<_ACEOF
46383 #define HAVE_STRNCASECMP_DECL 1
46384 _ACEOF
46385
46386 fi
46387 fi
46388
46389
46390 for ac_func in strstr
46391 do
46392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46393 echo "$as_me:$LINENO: checking for $ac_func" >&5
46394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46395 if eval "test \"\${$as_ac_var+set}\" = set"; then
46396   echo $ECHO_N "(cached) $ECHO_C" >&6
46397 else
46398   cat >conftest.$ac_ext <<_ACEOF
46399 /* confdefs.h.  */
46400 _ACEOF
46401 cat confdefs.h >>conftest.$ac_ext
46402 cat >>conftest.$ac_ext <<_ACEOF
46403 /* end confdefs.h.  */
46404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46406 #define $ac_func innocuous_$ac_func
46407
46408 /* System header to define __stub macros and hopefully few prototypes,
46409     which can conflict with char $ac_func (); below.
46410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46411     <limits.h> exists even on freestanding compilers.  */
46412
46413 #ifdef __STDC__
46414 # include <limits.h>
46415 #else
46416 # include <assert.h>
46417 #endif
46418
46419 #undef $ac_func
46420
46421 /* Override any gcc2 internal prototype to avoid an error.  */
46422 #ifdef __cplusplus
46423 extern "C"
46424 {
46425 #endif
46426 /* We use char because int might match the return type of a gcc2
46427    builtin and then its argument prototype would still apply.  */
46428 char $ac_func ();
46429 /* The GNU C library defines this for functions which it implements
46430     to always fail with ENOSYS.  Some functions are actually named
46431     something starting with __ and the normal name is an alias.  */
46432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46433 choke me
46434 #else
46435 char (*f) () = $ac_func;
46436 #endif
46437 #ifdef __cplusplus
46438 }
46439 #endif
46440
46441 int
46442 main ()
46443 {
46444 return f != $ac_func;
46445   ;
46446   return 0;
46447 }
46448 _ACEOF
46449 rm -f conftest.$ac_objext conftest$ac_exeext
46450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46451   (eval $ac_link) 2>conftest.er1
46452   ac_status=$?
46453   grep -v '^ *+' conftest.er1 >conftest.err
46454   rm -f conftest.er1
46455   cat conftest.err >&5
46456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46457   (exit $ac_status); } &&
46458          { ac_try='test -z "$ac_c_werror_flag"
46459                          || test ! -s conftest.err'
46460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46461   (eval $ac_try) 2>&5
46462   ac_status=$?
46463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46464   (exit $ac_status); }; } &&
46465          { ac_try='test -s conftest$ac_exeext'
46466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46467   (eval $ac_try) 2>&5
46468   ac_status=$?
46469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46470   (exit $ac_status); }; }; then
46471   eval "$as_ac_var=yes"
46472 else
46473   echo "$as_me: failed program was:" >&5
46474 sed 's/^/| /' conftest.$ac_ext >&5
46475
46476 eval "$as_ac_var=no"
46477 fi
46478 rm -f conftest.err conftest.$ac_objext \
46479       conftest$ac_exeext conftest.$ac_ext
46480 fi
46481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46483 if test `eval echo '${'$as_ac_var'}'` = yes; then
46484   cat >>confdefs.h <<_ACEOF
46485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46486 _ACEOF
46487
46488 else
46489   case $LIBOBJS in
46490     "$ac_func.$ac_objext"   | \
46491   *" $ac_func.$ac_objext"   | \
46492     "$ac_func.$ac_objext "* | \
46493   *" $ac_func.$ac_objext "* ) ;;
46494   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
46495 esac
46496
46497 fi
46498 done
46499
46500
46501
46502 ice_have_syslog=no
46503
46504 for ac_func in syslog
46505 do
46506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46507 echo "$as_me:$LINENO: checking for $ac_func" >&5
46508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46509 if eval "test \"\${$as_ac_var+set}\" = set"; then
46510   echo $ECHO_N "(cached) $ECHO_C" >&6
46511 else
46512   cat >conftest.$ac_ext <<_ACEOF
46513 /* confdefs.h.  */
46514 _ACEOF
46515 cat confdefs.h >>conftest.$ac_ext
46516 cat >>conftest.$ac_ext <<_ACEOF
46517 /* end confdefs.h.  */
46518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46520 #define $ac_func innocuous_$ac_func
46521
46522 /* System header to define __stub macros and hopefully few prototypes,
46523     which can conflict with char $ac_func (); below.
46524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46525     <limits.h> exists even on freestanding compilers.  */
46526
46527 #ifdef __STDC__
46528 # include <limits.h>
46529 #else
46530 # include <assert.h>
46531 #endif
46532
46533 #undef $ac_func
46534
46535 /* Override any gcc2 internal prototype to avoid an error.  */
46536 #ifdef __cplusplus
46537 extern "C"
46538 {
46539 #endif
46540 /* We use char because int might match the return type of a gcc2
46541    builtin and then its argument prototype would still apply.  */
46542 char $ac_func ();
46543 /* The GNU C library defines this for functions which it implements
46544     to always fail with ENOSYS.  Some functions are actually named
46545     something starting with __ and the normal name is an alias.  */
46546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46547 choke me
46548 #else
46549 char (*f) () = $ac_func;
46550 #endif
46551 #ifdef __cplusplus
46552 }
46553 #endif
46554
46555 int
46556 main ()
46557 {
46558 return f != $ac_func;
46559   ;
46560   return 0;
46561 }
46562 _ACEOF
46563 rm -f conftest.$ac_objext conftest$ac_exeext
46564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46565   (eval $ac_link) 2>conftest.er1
46566   ac_status=$?
46567   grep -v '^ *+' conftest.er1 >conftest.err
46568   rm -f conftest.er1
46569   cat conftest.err >&5
46570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46571   (exit $ac_status); } &&
46572          { ac_try='test -z "$ac_c_werror_flag"
46573                          || test ! -s conftest.err'
46574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46575   (eval $ac_try) 2>&5
46576   ac_status=$?
46577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46578   (exit $ac_status); }; } &&
46579          { ac_try='test -s conftest$ac_exeext'
46580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46581   (eval $ac_try) 2>&5
46582   ac_status=$?
46583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46584   (exit $ac_status); }; }; then
46585   eval "$as_ac_var=yes"
46586 else
46587   echo "$as_me: failed program was:" >&5
46588 sed 's/^/| /' conftest.$ac_ext >&5
46589
46590 eval "$as_ac_var=no"
46591 fi
46592 rm -f conftest.err conftest.$ac_objext \
46593       conftest$ac_exeext conftest.$ac_ext
46594 fi
46595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46597 if test `eval echo '${'$as_ac_var'}'` = yes; then
46598   cat >>confdefs.h <<_ACEOF
46599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46600 _ACEOF
46601  ice_have_syslog=yes
46602 fi
46603 done
46604
46605 if test "${ice_have_syslog}" = yes; then
46606 echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
46607 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6
46608 if test "${ice_cv_have_syslog_decl+set}" = set; then
46609   echo $ECHO_N "(cached) $ECHO_C" >&6
46610 else
46611
46612 ice_cv_have_syslog_decl=no
46613 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46614 ice_re_word='(^|[^a-zA-Z0-9_])'
46615 for header in syslog.h; do
46616 # Check for ordinary declaration
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 #include <$header>
46624
46625 _ACEOF
46626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46627   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
46628   ice_cv_have_syslog_decl=yes
46629 fi
46630 rm -f conftest*
46631
46632 if test "$ice_cv_have_syslog_decl" = yes; then
46633         break
46634 fi
46635 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46636 cat >conftest.$ac_ext <<_ACEOF
46637 /* confdefs.h.  */
46638 _ACEOF
46639 cat confdefs.h >>conftest.$ac_ext
46640 cat >>conftest.$ac_ext <<_ACEOF
46641 /* end confdefs.h.  */
46642 #include <$header>
46643
46644 _ACEOF
46645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46646   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46647   ice_cv_have_syslog_decl=yes
46648 fi
46649 rm -f conftest*
46650
46651 if test "$ice_cv_have_syslog_decl" = yes; then
46652         break
46653 fi
46654 done
46655
46656 fi
46657
46658 echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
46659 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6
46660 if test "$ice_cv_have_syslog_decl" = yes; then
46661
46662 cat >>confdefs.h <<_ACEOF
46663 #define HAVE_SYSLOG_DECL 1
46664 _ACEOF
46665
46666 fi
46667 fi
46668
46669
46670 ice_have_system=no
46671
46672 for ac_func in system
46673 do
46674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46675 echo "$as_me:$LINENO: checking for $ac_func" >&5
46676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46677 if eval "test \"\${$as_ac_var+set}\" = set"; then
46678   echo $ECHO_N "(cached) $ECHO_C" >&6
46679 else
46680   cat >conftest.$ac_ext <<_ACEOF
46681 /* confdefs.h.  */
46682 _ACEOF
46683 cat confdefs.h >>conftest.$ac_ext
46684 cat >>conftest.$ac_ext <<_ACEOF
46685 /* end confdefs.h.  */
46686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46688 #define $ac_func innocuous_$ac_func
46689
46690 /* System header to define __stub macros and hopefully few prototypes,
46691     which can conflict with char $ac_func (); below.
46692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46693     <limits.h> exists even on freestanding compilers.  */
46694
46695 #ifdef __STDC__
46696 # include <limits.h>
46697 #else
46698 # include <assert.h>
46699 #endif
46700
46701 #undef $ac_func
46702
46703 /* Override any gcc2 internal prototype to avoid an error.  */
46704 #ifdef __cplusplus
46705 extern "C"
46706 {
46707 #endif
46708 /* We use char because int might match the return type of a gcc2
46709    builtin and then its argument prototype would still apply.  */
46710 char $ac_func ();
46711 /* The GNU C library defines this for functions which it implements
46712     to always fail with ENOSYS.  Some functions are actually named
46713     something starting with __ and the normal name is an alias.  */
46714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46715 choke me
46716 #else
46717 char (*f) () = $ac_func;
46718 #endif
46719 #ifdef __cplusplus
46720 }
46721 #endif
46722
46723 int
46724 main ()
46725 {
46726 return f != $ac_func;
46727   ;
46728   return 0;
46729 }
46730 _ACEOF
46731 rm -f conftest.$ac_objext conftest$ac_exeext
46732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46733   (eval $ac_link) 2>conftest.er1
46734   ac_status=$?
46735   grep -v '^ *+' conftest.er1 >conftest.err
46736   rm -f conftest.er1
46737   cat conftest.err >&5
46738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46739   (exit $ac_status); } &&
46740          { ac_try='test -z "$ac_c_werror_flag"
46741                          || test ! -s conftest.err'
46742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46743   (eval $ac_try) 2>&5
46744   ac_status=$?
46745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46746   (exit $ac_status); }; } &&
46747          { ac_try='test -s conftest$ac_exeext'
46748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46749   (eval $ac_try) 2>&5
46750   ac_status=$?
46751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46752   (exit $ac_status); }; }; then
46753   eval "$as_ac_var=yes"
46754 else
46755   echo "$as_me: failed program was:" >&5
46756 sed 's/^/| /' conftest.$ac_ext >&5
46757
46758 eval "$as_ac_var=no"
46759 fi
46760 rm -f conftest.err conftest.$ac_objext \
46761       conftest$ac_exeext conftest.$ac_ext
46762 fi
46763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46765 if test `eval echo '${'$as_ac_var'}'` = yes; then
46766   cat >>confdefs.h <<_ACEOF
46767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46768 _ACEOF
46769  ice_have_system=yes
46770 fi
46771 done
46772
46773 if test "${ice_have_system}" = yes; then
46774 echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
46775 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6
46776 if test "${ice_cv_have_system_decl+set}" = set; then
46777   echo $ECHO_N "(cached) $ECHO_C" >&6
46778 else
46779
46780 ice_cv_have_system_decl=no
46781 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46782 ice_re_word='(^|[^a-zA-Z0-9_])'
46783 for header in stdlib.h; do
46784 # Check for ordinary declaration
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 #include <$header>
46792
46793 _ACEOF
46794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46795   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
46796   ice_cv_have_system_decl=yes
46797 fi
46798 rm -f conftest*
46799
46800 if test "$ice_cv_have_system_decl" = yes; then
46801         break
46802 fi
46803 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46804 cat >conftest.$ac_ext <<_ACEOF
46805 /* confdefs.h.  */
46806 _ACEOF
46807 cat confdefs.h >>conftest.$ac_ext
46808 cat >>conftest.$ac_ext <<_ACEOF
46809 /* end confdefs.h.  */
46810 #include <$header>
46811
46812 _ACEOF
46813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46814   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46815   ice_cv_have_system_decl=yes
46816 fi
46817 rm -f conftest*
46818
46819 if test "$ice_cv_have_system_decl" = yes; then
46820         break
46821 fi
46822 done
46823
46824 fi
46825
46826 echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
46827 echo "${ECHO_T}$ice_cv_have_system_decl" >&6
46828 if test "$ice_cv_have_system_decl" = yes; then
46829
46830 cat >>confdefs.h <<_ACEOF
46831 #define HAVE_SYSTEM_DECL 1
46832 _ACEOF
46833
46834 fi
46835 fi
46836
46837
46838 ice_have_time=no
46839
46840 for ac_func in time
46841 do
46842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46843 echo "$as_me:$LINENO: checking for $ac_func" >&5
46844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46845 if eval "test \"\${$as_ac_var+set}\" = set"; then
46846   echo $ECHO_N "(cached) $ECHO_C" >&6
46847 else
46848   cat >conftest.$ac_ext <<_ACEOF
46849 /* confdefs.h.  */
46850 _ACEOF
46851 cat confdefs.h >>conftest.$ac_ext
46852 cat >>conftest.$ac_ext <<_ACEOF
46853 /* end confdefs.h.  */
46854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46856 #define $ac_func innocuous_$ac_func
46857
46858 /* System header to define __stub macros and hopefully few prototypes,
46859     which can conflict with char $ac_func (); below.
46860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46861     <limits.h> exists even on freestanding compilers.  */
46862
46863 #ifdef __STDC__
46864 # include <limits.h>
46865 #else
46866 # include <assert.h>
46867 #endif
46868
46869 #undef $ac_func
46870
46871 /* Override any gcc2 internal prototype to avoid an error.  */
46872 #ifdef __cplusplus
46873 extern "C"
46874 {
46875 #endif
46876 /* We use char because int might match the return type of a gcc2
46877    builtin and then its argument prototype would still apply.  */
46878 char $ac_func ();
46879 /* The GNU C library defines this for functions which it implements
46880     to always fail with ENOSYS.  Some functions are actually named
46881     something starting with __ and the normal name is an alias.  */
46882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46883 choke me
46884 #else
46885 char (*f) () = $ac_func;
46886 #endif
46887 #ifdef __cplusplus
46888 }
46889 #endif
46890
46891 int
46892 main ()
46893 {
46894 return f != $ac_func;
46895   ;
46896   return 0;
46897 }
46898 _ACEOF
46899 rm -f conftest.$ac_objext conftest$ac_exeext
46900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46901   (eval $ac_link) 2>conftest.er1
46902   ac_status=$?
46903   grep -v '^ *+' conftest.er1 >conftest.err
46904   rm -f conftest.er1
46905   cat conftest.err >&5
46906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46907   (exit $ac_status); } &&
46908          { ac_try='test -z "$ac_c_werror_flag"
46909                          || test ! -s conftest.err'
46910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46911   (eval $ac_try) 2>&5
46912   ac_status=$?
46913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46914   (exit $ac_status); }; } &&
46915          { ac_try='test -s conftest$ac_exeext'
46916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46917   (eval $ac_try) 2>&5
46918   ac_status=$?
46919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46920   (exit $ac_status); }; }; then
46921   eval "$as_ac_var=yes"
46922 else
46923   echo "$as_me: failed program was:" >&5
46924 sed 's/^/| /' conftest.$ac_ext >&5
46925
46926 eval "$as_ac_var=no"
46927 fi
46928 rm -f conftest.err conftest.$ac_objext \
46929       conftest$ac_exeext conftest.$ac_ext
46930 fi
46931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46933 if test `eval echo '${'$as_ac_var'}'` = yes; then
46934   cat >>confdefs.h <<_ACEOF
46935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46936 _ACEOF
46937  ice_have_time=yes
46938 fi
46939 done
46940
46941 if test "${ice_have_time}" = yes; then
46942 echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
46943 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6
46944 if test "${ice_cv_have_time_decl+set}" = set; then
46945   echo $ECHO_N "(cached) $ECHO_C" >&6
46946 else
46947
46948 ice_cv_have_time_decl=no
46949 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46950 ice_re_word='(^|[^a-zA-Z0-9_])'
46951 for header in time.h sys/time.h; do
46952 # Check for ordinary declaration
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 #include <$header>
46960
46961 _ACEOF
46962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46963   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
46964   ice_cv_have_time_decl=yes
46965 fi
46966 rm -f conftest*
46967
46968 if test "$ice_cv_have_time_decl" = yes; then
46969         break
46970 fi
46971 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46972 cat >conftest.$ac_ext <<_ACEOF
46973 /* confdefs.h.  */
46974 _ACEOF
46975 cat confdefs.h >>conftest.$ac_ext
46976 cat >>conftest.$ac_ext <<_ACEOF
46977 /* end confdefs.h.  */
46978 #include <$header>
46979
46980 _ACEOF
46981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46982   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46983   ice_cv_have_time_decl=yes
46984 fi
46985 rm -f conftest*
46986
46987 if test "$ice_cv_have_time_decl" = yes; then
46988         break
46989 fi
46990 done
46991
46992 fi
46993
46994 echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
46995 echo "${ECHO_T}$ice_cv_have_time_decl" >&6
46996 if test "$ice_cv_have_time_decl" = yes; then
46997
46998 cat >>confdefs.h <<_ACEOF
46999 #define HAVE_TIME_DECL 1
47000 _ACEOF
47001
47002 fi
47003 fi
47004
47005
47006 ice_have_tolower=no
47007
47008 for ac_func in tolower
47009 do
47010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47011 echo "$as_me:$LINENO: checking for $ac_func" >&5
47012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47013 if eval "test \"\${$as_ac_var+set}\" = set"; then
47014   echo $ECHO_N "(cached) $ECHO_C" >&6
47015 else
47016   cat >conftest.$ac_ext <<_ACEOF
47017 /* confdefs.h.  */
47018 _ACEOF
47019 cat confdefs.h >>conftest.$ac_ext
47020 cat >>conftest.$ac_ext <<_ACEOF
47021 /* end confdefs.h.  */
47022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47024 #define $ac_func innocuous_$ac_func
47025
47026 /* System header to define __stub macros and hopefully few prototypes,
47027     which can conflict with char $ac_func (); below.
47028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47029     <limits.h> exists even on freestanding compilers.  */
47030
47031 #ifdef __STDC__
47032 # include <limits.h>
47033 #else
47034 # include <assert.h>
47035 #endif
47036
47037 #undef $ac_func
47038
47039 /* Override any gcc2 internal prototype to avoid an error.  */
47040 #ifdef __cplusplus
47041 extern "C"
47042 {
47043 #endif
47044 /* We use char because int might match the return type of a gcc2
47045    builtin and then its argument prototype would still apply.  */
47046 char $ac_func ();
47047 /* The GNU C library defines this for functions which it implements
47048     to always fail with ENOSYS.  Some functions are actually named
47049     something starting with __ and the normal name is an alias.  */
47050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47051 choke me
47052 #else
47053 char (*f) () = $ac_func;
47054 #endif
47055 #ifdef __cplusplus
47056 }
47057 #endif
47058
47059 int
47060 main ()
47061 {
47062 return f != $ac_func;
47063   ;
47064   return 0;
47065 }
47066 _ACEOF
47067 rm -f conftest.$ac_objext conftest$ac_exeext
47068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47069   (eval $ac_link) 2>conftest.er1
47070   ac_status=$?
47071   grep -v '^ *+' conftest.er1 >conftest.err
47072   rm -f conftest.er1
47073   cat conftest.err >&5
47074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47075   (exit $ac_status); } &&
47076          { ac_try='test -z "$ac_c_werror_flag"
47077                          || test ! -s conftest.err'
47078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47079   (eval $ac_try) 2>&5
47080   ac_status=$?
47081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47082   (exit $ac_status); }; } &&
47083          { ac_try='test -s conftest$ac_exeext'
47084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47085   (eval $ac_try) 2>&5
47086   ac_status=$?
47087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47088   (exit $ac_status); }; }; then
47089   eval "$as_ac_var=yes"
47090 else
47091   echo "$as_me: failed program was:" >&5
47092 sed 's/^/| /' conftest.$ac_ext >&5
47093
47094 eval "$as_ac_var=no"
47095 fi
47096 rm -f conftest.err conftest.$ac_objext \
47097       conftest$ac_exeext conftest.$ac_ext
47098 fi
47099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47101 if test `eval echo '${'$as_ac_var'}'` = yes; then
47102   cat >>confdefs.h <<_ACEOF
47103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47104 _ACEOF
47105  ice_have_tolower=yes
47106 fi
47107 done
47108
47109 if test "${ice_have_tolower}" = yes; then
47110 echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
47111 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6
47112 if test "${ice_cv_have_tolower_decl+set}" = set; then
47113   echo $ECHO_N "(cached) $ECHO_C" >&6
47114 else
47115
47116 ice_cv_have_tolower_decl=no
47117 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47118 ice_re_word='(^|[^a-zA-Z0-9_])'
47119 for header in ctype.h; do
47120 # Check for ordinary declaration
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 #include <$header>
47128
47129 _ACEOF
47130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47131   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
47132   ice_cv_have_tolower_decl=yes
47133 fi
47134 rm -f conftest*
47135
47136 if test "$ice_cv_have_tolower_decl" = yes; then
47137         break
47138 fi
47139 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47140 cat >conftest.$ac_ext <<_ACEOF
47141 /* confdefs.h.  */
47142 _ACEOF
47143 cat confdefs.h >>conftest.$ac_ext
47144 cat >>conftest.$ac_ext <<_ACEOF
47145 /* end confdefs.h.  */
47146 #include <$header>
47147
47148 _ACEOF
47149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47150   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47151   ice_cv_have_tolower_decl=yes
47152 fi
47153 rm -f conftest*
47154
47155 if test "$ice_cv_have_tolower_decl" = yes; then
47156         break
47157 fi
47158 done
47159
47160 fi
47161
47162 echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
47163 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6
47164 if test "$ice_cv_have_tolower_decl" = yes; then
47165
47166 cat >>confdefs.h <<_ACEOF
47167 #define HAVE_TOLOWER_DECL 1
47168 _ACEOF
47169
47170 fi
47171 fi
47172
47173
47174 ice_have_toupper=no
47175
47176 for ac_func in toupper
47177 do
47178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47179 echo "$as_me:$LINENO: checking for $ac_func" >&5
47180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47181 if eval "test \"\${$as_ac_var+set}\" = set"; then
47182   echo $ECHO_N "(cached) $ECHO_C" >&6
47183 else
47184   cat >conftest.$ac_ext <<_ACEOF
47185 /* confdefs.h.  */
47186 _ACEOF
47187 cat confdefs.h >>conftest.$ac_ext
47188 cat >>conftest.$ac_ext <<_ACEOF
47189 /* end confdefs.h.  */
47190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47192 #define $ac_func innocuous_$ac_func
47193
47194 /* System header to define __stub macros and hopefully few prototypes,
47195     which can conflict with char $ac_func (); below.
47196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47197     <limits.h> exists even on freestanding compilers.  */
47198
47199 #ifdef __STDC__
47200 # include <limits.h>
47201 #else
47202 # include <assert.h>
47203 #endif
47204
47205 #undef $ac_func
47206
47207 /* Override any gcc2 internal prototype to avoid an error.  */
47208 #ifdef __cplusplus
47209 extern "C"
47210 {
47211 #endif
47212 /* We use char because int might match the return type of a gcc2
47213    builtin and then its argument prototype would still apply.  */
47214 char $ac_func ();
47215 /* The GNU C library defines this for functions which it implements
47216     to always fail with ENOSYS.  Some functions are actually named
47217     something starting with __ and the normal name is an alias.  */
47218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47219 choke me
47220 #else
47221 char (*f) () = $ac_func;
47222 #endif
47223 #ifdef __cplusplus
47224 }
47225 #endif
47226
47227 int
47228 main ()
47229 {
47230 return f != $ac_func;
47231   ;
47232   return 0;
47233 }
47234 _ACEOF
47235 rm -f conftest.$ac_objext conftest$ac_exeext
47236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47237   (eval $ac_link) 2>conftest.er1
47238   ac_status=$?
47239   grep -v '^ *+' conftest.er1 >conftest.err
47240   rm -f conftest.er1
47241   cat conftest.err >&5
47242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47243   (exit $ac_status); } &&
47244          { ac_try='test -z "$ac_c_werror_flag"
47245                          || test ! -s conftest.err'
47246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47247   (eval $ac_try) 2>&5
47248   ac_status=$?
47249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47250   (exit $ac_status); }; } &&
47251          { ac_try='test -s conftest$ac_exeext'
47252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47253   (eval $ac_try) 2>&5
47254   ac_status=$?
47255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47256   (exit $ac_status); }; }; then
47257   eval "$as_ac_var=yes"
47258 else
47259   echo "$as_me: failed program was:" >&5
47260 sed 's/^/| /' conftest.$ac_ext >&5
47261
47262 eval "$as_ac_var=no"
47263 fi
47264 rm -f conftest.err conftest.$ac_objext \
47265       conftest$ac_exeext conftest.$ac_ext
47266 fi
47267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47269 if test `eval echo '${'$as_ac_var'}'` = yes; then
47270   cat >>confdefs.h <<_ACEOF
47271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47272 _ACEOF
47273  ice_have_toupper=yes
47274 fi
47275 done
47276
47277 if test "${ice_have_toupper}" = yes; then
47278 echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
47279 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6
47280 if test "${ice_cv_have_toupper_decl+set}" = set; then
47281   echo $ECHO_N "(cached) $ECHO_C" >&6
47282 else
47283
47284 ice_cv_have_toupper_decl=no
47285 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47286 ice_re_word='(^|[^a-zA-Z0-9_])'
47287 for header in ctype.h; do
47288 # Check for ordinary declaration
47289 cat >conftest.$ac_ext <<_ACEOF
47290 /* confdefs.h.  */
47291 _ACEOF
47292 cat confdefs.h >>conftest.$ac_ext
47293 cat >>conftest.$ac_ext <<_ACEOF
47294 /* end confdefs.h.  */
47295 #include <$header>
47296
47297 _ACEOF
47298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47299   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
47300   ice_cv_have_toupper_decl=yes
47301 fi
47302 rm -f conftest*
47303
47304 if test "$ice_cv_have_toupper_decl" = yes; then
47305         break
47306 fi
47307 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47308 cat >conftest.$ac_ext <<_ACEOF
47309 /* confdefs.h.  */
47310 _ACEOF
47311 cat confdefs.h >>conftest.$ac_ext
47312 cat >>conftest.$ac_ext <<_ACEOF
47313 /* end confdefs.h.  */
47314 #include <$header>
47315
47316 _ACEOF
47317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47318   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47319   ice_cv_have_toupper_decl=yes
47320 fi
47321 rm -f conftest*
47322
47323 if test "$ice_cv_have_toupper_decl" = yes; then
47324         break
47325 fi
47326 done
47327
47328 fi
47329
47330 echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
47331 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6
47332 if test "$ice_cv_have_toupper_decl" = yes; then
47333
47334 cat >>confdefs.h <<_ACEOF
47335 #define HAVE_TOUPPER_DECL 1
47336 _ACEOF
47337
47338 fi
47339 fi
47340
47341
47342 ice_have_ungetc=no
47343
47344 for ac_func in ungetc
47345 do
47346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47347 echo "$as_me:$LINENO: checking for $ac_func" >&5
47348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47349 if eval "test \"\${$as_ac_var+set}\" = set"; then
47350   echo $ECHO_N "(cached) $ECHO_C" >&6
47351 else
47352   cat >conftest.$ac_ext <<_ACEOF
47353 /* confdefs.h.  */
47354 _ACEOF
47355 cat confdefs.h >>conftest.$ac_ext
47356 cat >>conftest.$ac_ext <<_ACEOF
47357 /* end confdefs.h.  */
47358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47360 #define $ac_func innocuous_$ac_func
47361
47362 /* System header to define __stub macros and hopefully few prototypes,
47363     which can conflict with char $ac_func (); below.
47364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47365     <limits.h> exists even on freestanding compilers.  */
47366
47367 #ifdef __STDC__
47368 # include <limits.h>
47369 #else
47370 # include <assert.h>
47371 #endif
47372
47373 #undef $ac_func
47374
47375 /* Override any gcc2 internal prototype to avoid an error.  */
47376 #ifdef __cplusplus
47377 extern "C"
47378 {
47379 #endif
47380 /* We use char because int might match the return type of a gcc2
47381    builtin and then its argument prototype would still apply.  */
47382 char $ac_func ();
47383 /* The GNU C library defines this for functions which it implements
47384     to always fail with ENOSYS.  Some functions are actually named
47385     something starting with __ and the normal name is an alias.  */
47386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47387 choke me
47388 #else
47389 char (*f) () = $ac_func;
47390 #endif
47391 #ifdef __cplusplus
47392 }
47393 #endif
47394
47395 int
47396 main ()
47397 {
47398 return f != $ac_func;
47399   ;
47400   return 0;
47401 }
47402 _ACEOF
47403 rm -f conftest.$ac_objext conftest$ac_exeext
47404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47405   (eval $ac_link) 2>conftest.er1
47406   ac_status=$?
47407   grep -v '^ *+' conftest.er1 >conftest.err
47408   rm -f conftest.er1
47409   cat conftest.err >&5
47410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47411   (exit $ac_status); } &&
47412          { ac_try='test -z "$ac_c_werror_flag"
47413                          || test ! -s conftest.err'
47414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47415   (eval $ac_try) 2>&5
47416   ac_status=$?
47417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47418   (exit $ac_status); }; } &&
47419          { ac_try='test -s conftest$ac_exeext'
47420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47421   (eval $ac_try) 2>&5
47422   ac_status=$?
47423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47424   (exit $ac_status); }; }; then
47425   eval "$as_ac_var=yes"
47426 else
47427   echo "$as_me: failed program was:" >&5
47428 sed 's/^/| /' conftest.$ac_ext >&5
47429
47430 eval "$as_ac_var=no"
47431 fi
47432 rm -f conftest.err conftest.$ac_objext \
47433       conftest$ac_exeext conftest.$ac_ext
47434 fi
47435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47437 if test `eval echo '${'$as_ac_var'}'` = yes; then
47438   cat >>confdefs.h <<_ACEOF
47439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47440 _ACEOF
47441  ice_have_ungetc=yes
47442 fi
47443 done
47444
47445 if test "${ice_have_ungetc}" = yes; then
47446 echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
47447 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6
47448 if test "${ice_cv_have_ungetc_decl+set}" = set; then
47449   echo $ECHO_N "(cached) $ECHO_C" >&6
47450 else
47451
47452 ice_cv_have_ungetc_decl=no
47453 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47454 ice_re_word='(^|[^a-zA-Z0-9_])'
47455 for header in stdio.h; do
47456 # Check for ordinary declaration
47457 cat >conftest.$ac_ext <<_ACEOF
47458 /* confdefs.h.  */
47459 _ACEOF
47460 cat confdefs.h >>conftest.$ac_ext
47461 cat >>conftest.$ac_ext <<_ACEOF
47462 /* end confdefs.h.  */
47463 #include <$header>
47464
47465 _ACEOF
47466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47467   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
47468   ice_cv_have_ungetc_decl=yes
47469 fi
47470 rm -f conftest*
47471
47472 if test "$ice_cv_have_ungetc_decl" = yes; then
47473         break
47474 fi
47475 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47476 cat >conftest.$ac_ext <<_ACEOF
47477 /* confdefs.h.  */
47478 _ACEOF
47479 cat confdefs.h >>conftest.$ac_ext
47480 cat >>conftest.$ac_ext <<_ACEOF
47481 /* end confdefs.h.  */
47482 #include <$header>
47483
47484 _ACEOF
47485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47486   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47487   ice_cv_have_ungetc_decl=yes
47488 fi
47489 rm -f conftest*
47490
47491 if test "$ice_cv_have_ungetc_decl" = yes; then
47492         break
47493 fi
47494 done
47495
47496 fi
47497
47498 echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
47499 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6
47500 if test "$ice_cv_have_ungetc_decl" = yes; then
47501
47502 cat >>confdefs.h <<_ACEOF
47503 #define HAVE_UNGETC_DECL 1
47504 _ACEOF
47505
47506 fi
47507 fi
47508
47509
47510 for ac_func in vprintf
47511 do
47512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47513 echo "$as_me:$LINENO: checking for $ac_func" >&5
47514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47515 if eval "test \"\${$as_ac_var+set}\" = set"; then
47516   echo $ECHO_N "(cached) $ECHO_C" >&6
47517 else
47518   cat >conftest.$ac_ext <<_ACEOF
47519 /* confdefs.h.  */
47520 _ACEOF
47521 cat confdefs.h >>conftest.$ac_ext
47522 cat >>conftest.$ac_ext <<_ACEOF
47523 /* end confdefs.h.  */
47524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47526 #define $ac_func innocuous_$ac_func
47527
47528 /* System header to define __stub macros and hopefully few prototypes,
47529     which can conflict with char $ac_func (); below.
47530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47531     <limits.h> exists even on freestanding compilers.  */
47532
47533 #ifdef __STDC__
47534 # include <limits.h>
47535 #else
47536 # include <assert.h>
47537 #endif
47538
47539 #undef $ac_func
47540
47541 /* Override any gcc2 internal prototype to avoid an error.  */
47542 #ifdef __cplusplus
47543 extern "C"
47544 {
47545 #endif
47546 /* We use char because int might match the return type of a gcc2
47547    builtin and then its argument prototype would still apply.  */
47548 char $ac_func ();
47549 /* The GNU C library defines this for functions which it implements
47550     to always fail with ENOSYS.  Some functions are actually named
47551     something starting with __ and the normal name is an alias.  */
47552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47553 choke me
47554 #else
47555 char (*f) () = $ac_func;
47556 #endif
47557 #ifdef __cplusplus
47558 }
47559 #endif
47560
47561 int
47562 main ()
47563 {
47564 return f != $ac_func;
47565   ;
47566   return 0;
47567 }
47568 _ACEOF
47569 rm -f conftest.$ac_objext conftest$ac_exeext
47570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47571   (eval $ac_link) 2>conftest.er1
47572   ac_status=$?
47573   grep -v '^ *+' conftest.er1 >conftest.err
47574   rm -f conftest.er1
47575   cat conftest.err >&5
47576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47577   (exit $ac_status); } &&
47578          { ac_try='test -z "$ac_c_werror_flag"
47579                          || test ! -s conftest.err'
47580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47581   (eval $ac_try) 2>&5
47582   ac_status=$?
47583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47584   (exit $ac_status); }; } &&
47585          { ac_try='test -s conftest$ac_exeext'
47586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47587   (eval $ac_try) 2>&5
47588   ac_status=$?
47589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47590   (exit $ac_status); }; }; then
47591   eval "$as_ac_var=yes"
47592 else
47593   echo "$as_me: failed program was:" >&5
47594 sed 's/^/| /' conftest.$ac_ext >&5
47595
47596 eval "$as_ac_var=no"
47597 fi
47598 rm -f conftest.err conftest.$ac_objext \
47599       conftest$ac_exeext conftest.$ac_ext
47600 fi
47601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47603 if test `eval echo '${'$as_ac_var'}'` = yes; then
47604   cat >>confdefs.h <<_ACEOF
47605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47606 _ACEOF
47607
47608 echo "$as_me:$LINENO: checking for _doprnt" >&5
47609 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
47610 if test "${ac_cv_func__doprnt+set}" = set; then
47611   echo $ECHO_N "(cached) $ECHO_C" >&6
47612 else
47613   cat >conftest.$ac_ext <<_ACEOF
47614 /* confdefs.h.  */
47615 _ACEOF
47616 cat confdefs.h >>conftest.$ac_ext
47617 cat >>conftest.$ac_ext <<_ACEOF
47618 /* end confdefs.h.  */
47619 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
47620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47621 #define _doprnt innocuous__doprnt
47622
47623 /* System header to define __stub macros and hopefully few prototypes,
47624     which can conflict with char _doprnt (); below.
47625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47626     <limits.h> exists even on freestanding compilers.  */
47627
47628 #ifdef __STDC__
47629 # include <limits.h>
47630 #else
47631 # include <assert.h>
47632 #endif
47633
47634 #undef _doprnt
47635
47636 /* Override any gcc2 internal prototype to avoid an error.  */
47637 #ifdef __cplusplus
47638 extern "C"
47639 {
47640 #endif
47641 /* We use char because int might match the return type of a gcc2
47642    builtin and then its argument prototype would still apply.  */
47643 char _doprnt ();
47644 /* The GNU C library defines this for functions which it implements
47645     to always fail with ENOSYS.  Some functions are actually named
47646     something starting with __ and the normal name is an alias.  */
47647 #if defined (__stub__doprnt) || defined (__stub____doprnt)
47648 choke me
47649 #else
47650 char (*f) () = _doprnt;
47651 #endif
47652 #ifdef __cplusplus
47653 }
47654 #endif
47655
47656 int
47657 main ()
47658 {
47659 return f != _doprnt;
47660   ;
47661   return 0;
47662 }
47663 _ACEOF
47664 rm -f conftest.$ac_objext conftest$ac_exeext
47665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47666   (eval $ac_link) 2>conftest.er1
47667   ac_status=$?
47668   grep -v '^ *+' conftest.er1 >conftest.err
47669   rm -f conftest.er1
47670   cat conftest.err >&5
47671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47672   (exit $ac_status); } &&
47673          { ac_try='test -z "$ac_c_werror_flag"
47674                          || test ! -s conftest.err'
47675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47676   (eval $ac_try) 2>&5
47677   ac_status=$?
47678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47679   (exit $ac_status); }; } &&
47680          { ac_try='test -s conftest$ac_exeext'
47681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47682   (eval $ac_try) 2>&5
47683   ac_status=$?
47684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47685   (exit $ac_status); }; }; then
47686   ac_cv_func__doprnt=yes
47687 else
47688   echo "$as_me: failed program was:" >&5
47689 sed 's/^/| /' conftest.$ac_ext >&5
47690
47691 ac_cv_func__doprnt=no
47692 fi
47693 rm -f conftest.err conftest.$ac_objext \
47694       conftest$ac_exeext conftest.$ac_ext
47695 fi
47696 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
47697 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
47698 if test $ac_cv_func__doprnt = yes; then
47699
47700 cat >>confdefs.h <<\_ACEOF
47701 #define HAVE_DOPRNT 1
47702 _ACEOF
47703
47704 fi
47705
47706 fi
47707 done
47708
47709
47710
47711 ice_have_vfprintf=no
47712
47713 for ac_func in vfprintf
47714 do
47715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47716 echo "$as_me:$LINENO: checking for $ac_func" >&5
47717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47718 if eval "test \"\${$as_ac_var+set}\" = set"; then
47719   echo $ECHO_N "(cached) $ECHO_C" >&6
47720 else
47721   cat >conftest.$ac_ext <<_ACEOF
47722 /* confdefs.h.  */
47723 _ACEOF
47724 cat confdefs.h >>conftest.$ac_ext
47725 cat >>conftest.$ac_ext <<_ACEOF
47726 /* end confdefs.h.  */
47727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47729 #define $ac_func innocuous_$ac_func
47730
47731 /* System header to define __stub macros and hopefully few prototypes,
47732     which can conflict with char $ac_func (); below.
47733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47734     <limits.h> exists even on freestanding compilers.  */
47735
47736 #ifdef __STDC__
47737 # include <limits.h>
47738 #else
47739 # include <assert.h>
47740 #endif
47741
47742 #undef $ac_func
47743
47744 /* Override any gcc2 internal prototype to avoid an error.  */
47745 #ifdef __cplusplus
47746 extern "C"
47747 {
47748 #endif
47749 /* We use char because int might match the return type of a gcc2
47750    builtin and then its argument prototype would still apply.  */
47751 char $ac_func ();
47752 /* The GNU C library defines this for functions which it implements
47753     to always fail with ENOSYS.  Some functions are actually named
47754     something starting with __ and the normal name is an alias.  */
47755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47756 choke me
47757 #else
47758 char (*f) () = $ac_func;
47759 #endif
47760 #ifdef __cplusplus
47761 }
47762 #endif
47763
47764 int
47765 main ()
47766 {
47767 return f != $ac_func;
47768   ;
47769   return 0;
47770 }
47771 _ACEOF
47772 rm -f conftest.$ac_objext conftest$ac_exeext
47773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47774   (eval $ac_link) 2>conftest.er1
47775   ac_status=$?
47776   grep -v '^ *+' conftest.er1 >conftest.err
47777   rm -f conftest.er1
47778   cat conftest.err >&5
47779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47780   (exit $ac_status); } &&
47781          { ac_try='test -z "$ac_c_werror_flag"
47782                          || test ! -s conftest.err'
47783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47784   (eval $ac_try) 2>&5
47785   ac_status=$?
47786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47787   (exit $ac_status); }; } &&
47788          { ac_try='test -s conftest$ac_exeext'
47789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47790   (eval $ac_try) 2>&5
47791   ac_status=$?
47792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47793   (exit $ac_status); }; }; then
47794   eval "$as_ac_var=yes"
47795 else
47796   echo "$as_me: failed program was:" >&5
47797 sed 's/^/| /' conftest.$ac_ext >&5
47798
47799 eval "$as_ac_var=no"
47800 fi
47801 rm -f conftest.err conftest.$ac_objext \
47802       conftest$ac_exeext conftest.$ac_ext
47803 fi
47804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47806 if test `eval echo '${'$as_ac_var'}'` = yes; then
47807   cat >>confdefs.h <<_ACEOF
47808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47809 _ACEOF
47810  ice_have_vfprintf=yes
47811 fi
47812 done
47813
47814 if test "${ice_have_vfprintf}" = yes; then
47815 echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
47816 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
47817 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
47818   echo $ECHO_N "(cached) $ECHO_C" >&6
47819 else
47820
47821 ice_cv_have_vfprintf_decl=no
47822 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47823 ice_re_word='(^|[^a-zA-Z0-9_])'
47824 for header in stdio.h stdlib.h; do
47825 # Check for ordinary declaration
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 #include <$header>
47833
47834 _ACEOF
47835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47836   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
47837   ice_cv_have_vfprintf_decl=yes
47838 fi
47839 rm -f conftest*
47840
47841 if test "$ice_cv_have_vfprintf_decl" = yes; then
47842         break
47843 fi
47844 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47845 cat >conftest.$ac_ext <<_ACEOF
47846 /* confdefs.h.  */
47847 _ACEOF
47848 cat confdefs.h >>conftest.$ac_ext
47849 cat >>conftest.$ac_ext <<_ACEOF
47850 /* end confdefs.h.  */
47851 #include <$header>
47852
47853 _ACEOF
47854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47855   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47856   ice_cv_have_vfprintf_decl=yes
47857 fi
47858 rm -f conftest*
47859
47860 if test "$ice_cv_have_vfprintf_decl" = yes; then
47861         break
47862 fi
47863 done
47864
47865 fi
47866
47867 echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
47868 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6
47869 if test "$ice_cv_have_vfprintf_decl" = yes; then
47870
47871 cat >>confdefs.h <<_ACEOF
47872 #define HAVE_VFPRINTF_DECL 1
47873 _ACEOF
47874
47875 fi
47876 fi
47877
47878
47879 ice_have_vprintf=no
47880
47881 for ac_func in vprintf
47882 do
47883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47884 echo "$as_me:$LINENO: checking for $ac_func" >&5
47885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47886 if eval "test \"\${$as_ac_var+set}\" = set"; then
47887   echo $ECHO_N "(cached) $ECHO_C" >&6
47888 else
47889   cat >conftest.$ac_ext <<_ACEOF
47890 /* confdefs.h.  */
47891 _ACEOF
47892 cat confdefs.h >>conftest.$ac_ext
47893 cat >>conftest.$ac_ext <<_ACEOF
47894 /* end confdefs.h.  */
47895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47897 #define $ac_func innocuous_$ac_func
47898
47899 /* System header to define __stub macros and hopefully few prototypes,
47900     which can conflict with char $ac_func (); below.
47901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47902     <limits.h> exists even on freestanding compilers.  */
47903
47904 #ifdef __STDC__
47905 # include <limits.h>
47906 #else
47907 # include <assert.h>
47908 #endif
47909
47910 #undef $ac_func
47911
47912 /* Override any gcc2 internal prototype to avoid an error.  */
47913 #ifdef __cplusplus
47914 extern "C"
47915 {
47916 #endif
47917 /* We use char because int might match the return type of a gcc2
47918    builtin and then its argument prototype would still apply.  */
47919 char $ac_func ();
47920 /* The GNU C library defines this for functions which it implements
47921     to always fail with ENOSYS.  Some functions are actually named
47922     something starting with __ and the normal name is an alias.  */
47923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47924 choke me
47925 #else
47926 char (*f) () = $ac_func;
47927 #endif
47928 #ifdef __cplusplus
47929 }
47930 #endif
47931
47932 int
47933 main ()
47934 {
47935 return f != $ac_func;
47936   ;
47937   return 0;
47938 }
47939 _ACEOF
47940 rm -f conftest.$ac_objext conftest$ac_exeext
47941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47942   (eval $ac_link) 2>conftest.er1
47943   ac_status=$?
47944   grep -v '^ *+' conftest.er1 >conftest.err
47945   rm -f conftest.er1
47946   cat conftest.err >&5
47947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47948   (exit $ac_status); } &&
47949          { ac_try='test -z "$ac_c_werror_flag"
47950                          || test ! -s conftest.err'
47951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47952   (eval $ac_try) 2>&5
47953   ac_status=$?
47954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47955   (exit $ac_status); }; } &&
47956          { ac_try='test -s conftest$ac_exeext'
47957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47958   (eval $ac_try) 2>&5
47959   ac_status=$?
47960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47961   (exit $ac_status); }; }; then
47962   eval "$as_ac_var=yes"
47963 else
47964   echo "$as_me: failed program was:" >&5
47965 sed 's/^/| /' conftest.$ac_ext >&5
47966
47967 eval "$as_ac_var=no"
47968 fi
47969 rm -f conftest.err conftest.$ac_objext \
47970       conftest$ac_exeext conftest.$ac_ext
47971 fi
47972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47974 if test `eval echo '${'$as_ac_var'}'` = yes; then
47975   cat >>confdefs.h <<_ACEOF
47976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47977 _ACEOF
47978  ice_have_vprintf=yes
47979 fi
47980 done
47981
47982 if test "${ice_have_vprintf}" = yes; then
47983 echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
47984 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
47985 if test "${ice_cv_have_vprintf_decl+set}" = set; then
47986   echo $ECHO_N "(cached) $ECHO_C" >&6
47987 else
47988
47989 ice_cv_have_vprintf_decl=no
47990 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47991 ice_re_word='(^|[^a-zA-Z0-9_])'
47992 for header in stdio.h stdlib.h; do
47993 # Check for ordinary declaration
47994 cat >conftest.$ac_ext <<_ACEOF
47995 /* confdefs.h.  */
47996 _ACEOF
47997 cat confdefs.h >>conftest.$ac_ext
47998 cat >>conftest.$ac_ext <<_ACEOF
47999 /* end confdefs.h.  */
48000 #include <$header>
48001
48002 _ACEOF
48003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48004   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
48005   ice_cv_have_vprintf_decl=yes
48006 fi
48007 rm -f conftest*
48008
48009 if test "$ice_cv_have_vprintf_decl" = yes; then
48010         break
48011 fi
48012 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48013 cat >conftest.$ac_ext <<_ACEOF
48014 /* confdefs.h.  */
48015 _ACEOF
48016 cat confdefs.h >>conftest.$ac_ext
48017 cat >>conftest.$ac_ext <<_ACEOF
48018 /* end confdefs.h.  */
48019 #include <$header>
48020
48021 _ACEOF
48022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48023   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48024   ice_cv_have_vprintf_decl=yes
48025 fi
48026 rm -f conftest*
48027
48028 if test "$ice_cv_have_vprintf_decl" = yes; then
48029         break
48030 fi
48031 done
48032
48033 fi
48034
48035 echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
48036 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6
48037 if test "$ice_cv_have_vprintf_decl" = yes; then
48038
48039 cat >>confdefs.h <<_ACEOF
48040 #define HAVE_VPRINTF_DECL 1
48041 _ACEOF
48042
48043 fi
48044 fi
48045
48046
48047 ice_have_vsprintf=no
48048
48049 for ac_func in vsprintf
48050 do
48051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48052 echo "$as_me:$LINENO: checking for $ac_func" >&5
48053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48054 if eval "test \"\${$as_ac_var+set}\" = set"; then
48055   echo $ECHO_N "(cached) $ECHO_C" >&6
48056 else
48057   cat >conftest.$ac_ext <<_ACEOF
48058 /* confdefs.h.  */
48059 _ACEOF
48060 cat confdefs.h >>conftest.$ac_ext
48061 cat >>conftest.$ac_ext <<_ACEOF
48062 /* end confdefs.h.  */
48063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48065 #define $ac_func innocuous_$ac_func
48066
48067 /* System header to define __stub macros and hopefully few prototypes,
48068     which can conflict with char $ac_func (); below.
48069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48070     <limits.h> exists even on freestanding compilers.  */
48071
48072 #ifdef __STDC__
48073 # include <limits.h>
48074 #else
48075 # include <assert.h>
48076 #endif
48077
48078 #undef $ac_func
48079
48080 /* Override any gcc2 internal prototype to avoid an error.  */
48081 #ifdef __cplusplus
48082 extern "C"
48083 {
48084 #endif
48085 /* We use char because int might match the return type of a gcc2
48086    builtin and then its argument prototype would still apply.  */
48087 char $ac_func ();
48088 /* The GNU C library defines this for functions which it implements
48089     to always fail with ENOSYS.  Some functions are actually named
48090     something starting with __ and the normal name is an alias.  */
48091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48092 choke me
48093 #else
48094 char (*f) () = $ac_func;
48095 #endif
48096 #ifdef __cplusplus
48097 }
48098 #endif
48099
48100 int
48101 main ()
48102 {
48103 return f != $ac_func;
48104   ;
48105   return 0;
48106 }
48107 _ACEOF
48108 rm -f conftest.$ac_objext conftest$ac_exeext
48109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48110   (eval $ac_link) 2>conftest.er1
48111   ac_status=$?
48112   grep -v '^ *+' conftest.er1 >conftest.err
48113   rm -f conftest.er1
48114   cat conftest.err >&5
48115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48116   (exit $ac_status); } &&
48117          { ac_try='test -z "$ac_c_werror_flag"
48118                          || test ! -s conftest.err'
48119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48120   (eval $ac_try) 2>&5
48121   ac_status=$?
48122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48123   (exit $ac_status); }; } &&
48124          { ac_try='test -s conftest$ac_exeext'
48125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48126   (eval $ac_try) 2>&5
48127   ac_status=$?
48128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48129   (exit $ac_status); }; }; then
48130   eval "$as_ac_var=yes"
48131 else
48132   echo "$as_me: failed program was:" >&5
48133 sed 's/^/| /' conftest.$ac_ext >&5
48134
48135 eval "$as_ac_var=no"
48136 fi
48137 rm -f conftest.err conftest.$ac_objext \
48138       conftest$ac_exeext conftest.$ac_ext
48139 fi
48140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48142 if test `eval echo '${'$as_ac_var'}'` = yes; then
48143   cat >>confdefs.h <<_ACEOF
48144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48145 _ACEOF
48146  ice_have_vsprintf=yes
48147 fi
48148 done
48149
48150 if test "${ice_have_vsprintf}" = yes; then
48151 echo "$as_me:$LINENO: checking for vsprintf declaration in stdio.h stdlib.h" >&5
48152 echo $ECHO_N "checking for vsprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
48153 if test "${ice_cv_have_vsprintf_decl+set}" = set; then
48154   echo $ECHO_N "(cached) $ECHO_C" >&6
48155 else
48156
48157 ice_cv_have_vsprintf_decl=no
48158 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48159 ice_re_word='(^|[^a-zA-Z0-9_])'
48160 for header in stdio.h stdlib.h; do
48161 # Check for ordinary declaration
48162 cat >conftest.$ac_ext <<_ACEOF
48163 /* confdefs.h.  */
48164 _ACEOF
48165 cat confdefs.h >>conftest.$ac_ext
48166 cat >>conftest.$ac_ext <<_ACEOF
48167 /* end confdefs.h.  */
48168 #include <$header>
48169
48170 _ACEOF
48171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48172   $EGREP "${ice_re_word}vsprintf[       ]*\(" >/dev/null 2>&1; then
48173   ice_cv_have_vsprintf_decl=yes
48174 fi
48175 rm -f conftest*
48176
48177 if test "$ice_cv_have_vsprintf_decl" = yes; then
48178         break
48179 fi
48180 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48181 cat >conftest.$ac_ext <<_ACEOF
48182 /* confdefs.h.  */
48183 _ACEOF
48184 cat confdefs.h >>conftest.$ac_ext
48185 cat >>conftest.$ac_ext <<_ACEOF
48186 /* end confdefs.h.  */
48187 #include <$header>
48188
48189 _ACEOF
48190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48191   $EGREP "${ice_re_word}vsprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48192   ice_cv_have_vsprintf_decl=yes
48193 fi
48194 rm -f conftest*
48195
48196 if test "$ice_cv_have_vsprintf_decl" = yes; then
48197         break
48198 fi
48199 done
48200
48201 fi
48202
48203 echo "$as_me:$LINENO: result: $ice_cv_have_vsprintf_decl" >&5
48204 echo "${ECHO_T}$ice_cv_have_vsprintf_decl" >&6
48205 if test "$ice_cv_have_vsprintf_decl" = yes; then
48206
48207 cat >>confdefs.h <<_ACEOF
48208 #define HAVE_VSPRINTF_DECL 1
48209 _ACEOF
48210
48211 fi
48212 fi
48213
48214 echo "$as_me:$LINENO: checking for wait4" >&5
48215 echo $ECHO_N "checking for wait4... $ECHO_C" >&6
48216 if test "${ac_cv_func_wait4+set}" = set; then
48217   echo $ECHO_N "(cached) $ECHO_C" >&6
48218 else
48219   cat >conftest.$ac_ext <<_ACEOF
48220 /* confdefs.h.  */
48221 _ACEOF
48222 cat confdefs.h >>conftest.$ac_ext
48223 cat >>conftest.$ac_ext <<_ACEOF
48224 /* end confdefs.h.  */
48225 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
48226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48227 #define wait4 innocuous_wait4
48228
48229 /* System header to define __stub macros and hopefully few prototypes,
48230     which can conflict with char wait4 (); below.
48231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48232     <limits.h> exists even on freestanding compilers.  */
48233
48234 #ifdef __STDC__
48235 # include <limits.h>
48236 #else
48237 # include <assert.h>
48238 #endif
48239
48240 #undef wait4
48241
48242 /* Override any gcc2 internal prototype to avoid an error.  */
48243 #ifdef __cplusplus
48244 extern "C"
48245 {
48246 #endif
48247 /* We use char because int might match the return type of a gcc2
48248    builtin and then its argument prototype would still apply.  */
48249 char wait4 ();
48250 /* The GNU C library defines this for functions which it implements
48251     to always fail with ENOSYS.  Some functions are actually named
48252     something starting with __ and the normal name is an alias.  */
48253 #if defined (__stub_wait4) || defined (__stub___wait4)
48254 choke me
48255 #else
48256 char (*f) () = wait4;
48257 #endif
48258 #ifdef __cplusplus
48259 }
48260 #endif
48261
48262 int
48263 main ()
48264 {
48265 return f != wait4;
48266   ;
48267   return 0;
48268 }
48269 _ACEOF
48270 rm -f conftest.$ac_objext conftest$ac_exeext
48271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48272   (eval $ac_link) 2>conftest.er1
48273   ac_status=$?
48274   grep -v '^ *+' conftest.er1 >conftest.err
48275   rm -f conftest.er1
48276   cat conftest.err >&5
48277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48278   (exit $ac_status); } &&
48279          { ac_try='test -z "$ac_c_werror_flag"
48280                          || test ! -s conftest.err'
48281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48282   (eval $ac_try) 2>&5
48283   ac_status=$?
48284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48285   (exit $ac_status); }; } &&
48286          { ac_try='test -s conftest$ac_exeext'
48287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48288   (eval $ac_try) 2>&5
48289   ac_status=$?
48290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48291   (exit $ac_status); }; }; then
48292   ac_cv_func_wait4=yes
48293 else
48294   echo "$as_me: failed program was:" >&5
48295 sed 's/^/| /' conftest.$ac_ext >&5
48296
48297 ac_cv_func_wait4=no
48298 fi
48299 rm -f conftest.err conftest.$ac_objext \
48300       conftest$ac_exeext conftest.$ac_ext
48301 fi
48302 echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
48303 echo "${ECHO_T}$ac_cv_func_wait4" >&6
48304
48305
48306 for ac_func in waitpid
48307 do
48308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48309 echo "$as_me:$LINENO: checking for $ac_func" >&5
48310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48311 if eval "test \"\${$as_ac_var+set}\" = set"; then
48312   echo $ECHO_N "(cached) $ECHO_C" >&6
48313 else
48314   cat >conftest.$ac_ext <<_ACEOF
48315 /* confdefs.h.  */
48316 _ACEOF
48317 cat confdefs.h >>conftest.$ac_ext
48318 cat >>conftest.$ac_ext <<_ACEOF
48319 /* end confdefs.h.  */
48320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48322 #define $ac_func innocuous_$ac_func
48323
48324 /* System header to define __stub macros and hopefully few prototypes,
48325     which can conflict with char $ac_func (); below.
48326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48327     <limits.h> exists even on freestanding compilers.  */
48328
48329 #ifdef __STDC__
48330 # include <limits.h>
48331 #else
48332 # include <assert.h>
48333 #endif
48334
48335 #undef $ac_func
48336
48337 /* Override any gcc2 internal prototype to avoid an error.  */
48338 #ifdef __cplusplus
48339 extern "C"
48340 {
48341 #endif
48342 /* We use char because int might match the return type of a gcc2
48343    builtin and then its argument prototype would still apply.  */
48344 char $ac_func ();
48345 /* The GNU C library defines this for functions which it implements
48346     to always fail with ENOSYS.  Some functions are actually named
48347     something starting with __ and the normal name is an alias.  */
48348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48349 choke me
48350 #else
48351 char (*f) () = $ac_func;
48352 #endif
48353 #ifdef __cplusplus
48354 }
48355 #endif
48356
48357 int
48358 main ()
48359 {
48360 return f != $ac_func;
48361   ;
48362   return 0;
48363 }
48364 _ACEOF
48365 rm -f conftest.$ac_objext conftest$ac_exeext
48366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48367   (eval $ac_link) 2>conftest.er1
48368   ac_status=$?
48369   grep -v '^ *+' conftest.er1 >conftest.err
48370   rm -f conftest.er1
48371   cat conftest.err >&5
48372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48373   (exit $ac_status); } &&
48374          { ac_try='test -z "$ac_c_werror_flag"
48375                          || test ! -s conftest.err'
48376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48377   (eval $ac_try) 2>&5
48378   ac_status=$?
48379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48380   (exit $ac_status); }; } &&
48381          { ac_try='test -s conftest$ac_exeext'
48382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48383   (eval $ac_try) 2>&5
48384   ac_status=$?
48385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48386   (exit $ac_status); }; }; then
48387   eval "$as_ac_var=yes"
48388 else
48389   echo "$as_me: failed program was:" >&5
48390 sed 's/^/| /' conftest.$ac_ext >&5
48391
48392 eval "$as_ac_var=no"
48393 fi
48394 rm -f conftest.err conftest.$ac_objext \
48395       conftest$ac_exeext conftest.$ac_ext
48396 fi
48397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48399 if test `eval echo '${'$as_ac_var'}'` = yes; then
48400   cat >>confdefs.h <<_ACEOF
48401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48402 _ACEOF
48403
48404 else
48405   case $LIBOBJS in
48406     "$ac_func.$ac_objext"   | \
48407   *" $ac_func.$ac_objext"   | \
48408     "$ac_func.$ac_objext "* | \
48409   *" $ac_func.$ac_objext "* ) ;;
48410   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
48411 esac
48412
48413 fi
48414 done
48415
48416
48417
48418 for ac_func in strcasecmp
48419 do
48420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48421 echo "$as_me:$LINENO: checking for $ac_func" >&5
48422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48423 if eval "test \"\${$as_ac_var+set}\" = set"; then
48424   echo $ECHO_N "(cached) $ECHO_C" >&6
48425 else
48426   cat >conftest.$ac_ext <<_ACEOF
48427 /* confdefs.h.  */
48428 _ACEOF
48429 cat confdefs.h >>conftest.$ac_ext
48430 cat >>conftest.$ac_ext <<_ACEOF
48431 /* end confdefs.h.  */
48432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48434 #define $ac_func innocuous_$ac_func
48435
48436 /* System header to define __stub macros and hopefully few prototypes,
48437     which can conflict with char $ac_func (); below.
48438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48439     <limits.h> exists even on freestanding compilers.  */
48440
48441 #ifdef __STDC__
48442 # include <limits.h>
48443 #else
48444 # include <assert.h>
48445 #endif
48446
48447 #undef $ac_func
48448
48449 /* Override any gcc2 internal prototype to avoid an error.  */
48450 #ifdef __cplusplus
48451 extern "C"
48452 {
48453 #endif
48454 /* We use char because int might match the return type of a gcc2
48455    builtin and then its argument prototype would still apply.  */
48456 char $ac_func ();
48457 /* The GNU C library defines this for functions which it implements
48458     to always fail with ENOSYS.  Some functions are actually named
48459     something starting with __ and the normal name is an alias.  */
48460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48461 choke me
48462 #else
48463 char (*f) () = $ac_func;
48464 #endif
48465 #ifdef __cplusplus
48466 }
48467 #endif
48468
48469 int
48470 main ()
48471 {
48472 return f != $ac_func;
48473   ;
48474   return 0;
48475 }
48476 _ACEOF
48477 rm -f conftest.$ac_objext conftest$ac_exeext
48478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48479   (eval $ac_link) 2>conftest.er1
48480   ac_status=$?
48481   grep -v '^ *+' conftest.er1 >conftest.err
48482   rm -f conftest.er1
48483   cat conftest.err >&5
48484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48485   (exit $ac_status); } &&
48486          { ac_try='test -z "$ac_c_werror_flag"
48487                          || test ! -s conftest.err'
48488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48489   (eval $ac_try) 2>&5
48490   ac_status=$?
48491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48492   (exit $ac_status); }; } &&
48493          { ac_try='test -s conftest$ac_exeext'
48494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48495   (eval $ac_try) 2>&5
48496   ac_status=$?
48497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48498   (exit $ac_status); }; }; then
48499   eval "$as_ac_var=yes"
48500 else
48501   echo "$as_me: failed program was:" >&5
48502 sed 's/^/| /' conftest.$ac_ext >&5
48503
48504 eval "$as_ac_var=no"
48505 fi
48506 rm -f conftest.err conftest.$ac_objext \
48507       conftest$ac_exeext conftest.$ac_ext
48508 fi
48509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48511 if test `eval echo '${'$as_ac_var'}'` = yes; then
48512   cat >>confdefs.h <<_ACEOF
48513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48514 _ACEOF
48515
48516 else
48517   case $LIBOBJS in
48518     "$ac_func.$ac_objext"   | \
48519   *" $ac_func.$ac_objext"   | \
48520     "$ac_func.$ac_objext "* | \
48521   *" $ac_func.$ac_objext "* ) ;;
48522   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
48523 esac
48524
48525 fi
48526 done
48527
48528
48529
48530 ice_have_strcasecmp=no
48531
48532 for ac_func in strcasecmp
48533 do
48534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48535 echo "$as_me:$LINENO: checking for $ac_func" >&5
48536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48537 if eval "test \"\${$as_ac_var+set}\" = set"; then
48538   echo $ECHO_N "(cached) $ECHO_C" >&6
48539 else
48540   cat >conftest.$ac_ext <<_ACEOF
48541 /* confdefs.h.  */
48542 _ACEOF
48543 cat confdefs.h >>conftest.$ac_ext
48544 cat >>conftest.$ac_ext <<_ACEOF
48545 /* end confdefs.h.  */
48546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48548 #define $ac_func innocuous_$ac_func
48549
48550 /* System header to define __stub macros and hopefully few prototypes,
48551     which can conflict with char $ac_func (); below.
48552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48553     <limits.h> exists even on freestanding compilers.  */
48554
48555 #ifdef __STDC__
48556 # include <limits.h>
48557 #else
48558 # include <assert.h>
48559 #endif
48560
48561 #undef $ac_func
48562
48563 /* Override any gcc2 internal prototype to avoid an error.  */
48564 #ifdef __cplusplus
48565 extern "C"
48566 {
48567 #endif
48568 /* We use char because int might match the return type of a gcc2
48569    builtin and then its argument prototype would still apply.  */
48570 char $ac_func ();
48571 /* The GNU C library defines this for functions which it implements
48572     to always fail with ENOSYS.  Some functions are actually named
48573     something starting with __ and the normal name is an alias.  */
48574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48575 choke me
48576 #else
48577 char (*f) () = $ac_func;
48578 #endif
48579 #ifdef __cplusplus
48580 }
48581 #endif
48582
48583 int
48584 main ()
48585 {
48586 return f != $ac_func;
48587   ;
48588   return 0;
48589 }
48590 _ACEOF
48591 rm -f conftest.$ac_objext conftest$ac_exeext
48592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48593   (eval $ac_link) 2>conftest.er1
48594   ac_status=$?
48595   grep -v '^ *+' conftest.er1 >conftest.err
48596   rm -f conftest.er1
48597   cat conftest.err >&5
48598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48599   (exit $ac_status); } &&
48600          { ac_try='test -z "$ac_c_werror_flag"
48601                          || test ! -s conftest.err'
48602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48603   (eval $ac_try) 2>&5
48604   ac_status=$?
48605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48606   (exit $ac_status); }; } &&
48607          { ac_try='test -s conftest$ac_exeext'
48608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48609   (eval $ac_try) 2>&5
48610   ac_status=$?
48611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48612   (exit $ac_status); }; }; then
48613   eval "$as_ac_var=yes"
48614 else
48615   echo "$as_me: failed program was:" >&5
48616 sed 's/^/| /' conftest.$ac_ext >&5
48617
48618 eval "$as_ac_var=no"
48619 fi
48620 rm -f conftest.err conftest.$ac_objext \
48621       conftest$ac_exeext conftest.$ac_ext
48622 fi
48623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48625 if test `eval echo '${'$as_ac_var'}'` = yes; then
48626   cat >>confdefs.h <<_ACEOF
48627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48628 _ACEOF
48629  ice_have_strcasecmp=yes
48630 fi
48631 done
48632
48633 if test "${ice_have_strcasecmp}" = yes; then
48634 echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
48635 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6
48636 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
48637   echo $ECHO_N "(cached) $ECHO_C" >&6
48638 else
48639
48640 ice_cv_have_strcasecmp_decl=no
48641 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48642 ice_re_word='(^|[^a-zA-Z0-9_])'
48643 for header in string.h strings.h; do
48644 # Check for ordinary declaration
48645 cat >conftest.$ac_ext <<_ACEOF
48646 /* confdefs.h.  */
48647 _ACEOF
48648 cat confdefs.h >>conftest.$ac_ext
48649 cat >>conftest.$ac_ext <<_ACEOF
48650 /* end confdefs.h.  */
48651 #include <$header>
48652
48653 _ACEOF
48654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48655   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then
48656   ice_cv_have_strcasecmp_decl=yes
48657 fi
48658 rm -f conftest*
48659
48660 if test "$ice_cv_have_strcasecmp_decl" = yes; then
48661         break
48662 fi
48663 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48664 cat >conftest.$ac_ext <<_ACEOF
48665 /* confdefs.h.  */
48666 _ACEOF
48667 cat confdefs.h >>conftest.$ac_ext
48668 cat >>conftest.$ac_ext <<_ACEOF
48669 /* end confdefs.h.  */
48670 #include <$header>
48671
48672 _ACEOF
48673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48674   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48675   ice_cv_have_strcasecmp_decl=yes
48676 fi
48677 rm -f conftest*
48678
48679 if test "$ice_cv_have_strcasecmp_decl" = yes; then
48680         break
48681 fi
48682 done
48683
48684 fi
48685
48686 echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
48687 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6
48688 if test "$ice_cv_have_strcasecmp_decl" = yes; then
48689
48690 cat >>confdefs.h <<_ACEOF
48691 #define HAVE_STRCASECMP_DECL 1
48692 _ACEOF
48693
48694 fi
48695 fi
48696
48697
48698
48699 for ac_func in fnmatch
48700 do
48701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48702 echo "$as_me:$LINENO: checking for $ac_func" >&5
48703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48704 if eval "test \"\${$as_ac_var+set}\" = set"; then
48705   echo $ECHO_N "(cached) $ECHO_C" >&6
48706 else
48707   cat >conftest.$ac_ext <<_ACEOF
48708 /* confdefs.h.  */
48709 _ACEOF
48710 cat confdefs.h >>conftest.$ac_ext
48711 cat >>conftest.$ac_ext <<_ACEOF
48712 /* end confdefs.h.  */
48713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48715 #define $ac_func innocuous_$ac_func
48716
48717 /* System header to define __stub macros and hopefully few prototypes,
48718     which can conflict with char $ac_func (); below.
48719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48720     <limits.h> exists even on freestanding compilers.  */
48721
48722 #ifdef __STDC__
48723 # include <limits.h>
48724 #else
48725 # include <assert.h>
48726 #endif
48727
48728 #undef $ac_func
48729
48730 /* Override any gcc2 internal prototype to avoid an error.  */
48731 #ifdef __cplusplus
48732 extern "C"
48733 {
48734 #endif
48735 /* We use char because int might match the return type of a gcc2
48736    builtin and then its argument prototype would still apply.  */
48737 char $ac_func ();
48738 /* The GNU C library defines this for functions which it implements
48739     to always fail with ENOSYS.  Some functions are actually named
48740     something starting with __ and the normal name is an alias.  */
48741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48742 choke me
48743 #else
48744 char (*f) () = $ac_func;
48745 #endif
48746 #ifdef __cplusplus
48747 }
48748 #endif
48749
48750 int
48751 main ()
48752 {
48753 return f != $ac_func;
48754   ;
48755   return 0;
48756 }
48757 _ACEOF
48758 rm -f conftest.$ac_objext conftest$ac_exeext
48759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48760   (eval $ac_link) 2>conftest.er1
48761   ac_status=$?
48762   grep -v '^ *+' conftest.er1 >conftest.err
48763   rm -f conftest.er1
48764   cat conftest.err >&5
48765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48766   (exit $ac_status); } &&
48767          { ac_try='test -z "$ac_c_werror_flag"
48768                          || test ! -s conftest.err'
48769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48770   (eval $ac_try) 2>&5
48771   ac_status=$?
48772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48773   (exit $ac_status); }; } &&
48774          { ac_try='test -s conftest$ac_exeext'
48775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48776   (eval $ac_try) 2>&5
48777   ac_status=$?
48778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48779   (exit $ac_status); }; }; then
48780   eval "$as_ac_var=yes"
48781 else
48782   echo "$as_me: failed program was:" >&5
48783 sed 's/^/| /' conftest.$ac_ext >&5
48784
48785 eval "$as_ac_var=no"
48786 fi
48787 rm -f conftest.err conftest.$ac_objext \
48788       conftest$ac_exeext conftest.$ac_ext
48789 fi
48790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48792 if test `eval echo '${'$as_ac_var'}'` = yes; then
48793   cat >>confdefs.h <<_ACEOF
48794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48795 _ACEOF
48796
48797 fi
48798 done
48799
48800
48801 if test "$ac_cv_func_fnmatch" != yes -a "$USE_QUICK_AND_DIRTY_ESTIMATES" != yes ; then
48802     { echo "$as_me:$LINENO: WARNING: --with-qde and no fnmatch -- gnutar exclude files will not work" >&5
48803 echo "$as_me: WARNING: --with-qde and no fnmatch -- gnutar exclude files will not work" >&2;}
48804 fi
48805
48806 echo "$as_me:$LINENO: checking disk device prefixes" >&5
48807 echo $ECHO_N "checking disk device prefixes... $ECHO_C" >&6
48808 dfline=`(
48809     df / | while read line; do
48810         set -- $line
48811         while test $# -gt 0; do
48812             if test "$1" = "/"; then
48813                 echo $line
48814                 break 2
48815             fi
48816             shift
48817         done
48818     done
48819 ) | sed 's/(//' | sed 's/)//' `
48820
48821 mount=`(
48822     set -- $dfline
48823     while test $# -gt 0; do
48824         if expr "$1" : '.*dev' >/dev/null 2>&1; then
48825             echo $1
48826             break
48827         fi
48828         shift
48829     done
48830 )`
48831
48832 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
48833     echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
48834 echo "${ECHO_T}(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6
48835 else
48836     if test -d /dev/dsk; then
48837         DEV_PREFIX=/dev/dsk/
48838         if test -d /dev/rdsk; then
48839             RDEV_PREFIX=/dev/rdsk/
48840         else
48841             RDEV_PREFIX=/dev/dsk/
48842         fi
48843     elif test -d /dev; then
48844         case "$target" in
48845             *-sni-sysv4)
48846                 dev_prefix=/dev/dsk/
48847                 rdev_prefix=/dev/rdsk/
48848                 { echo "$as_me:$LINENO: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&5
48849 echo "$as_me: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&2;}
48850                 ;;
48851
48852             *)
48853                 DEV_PREFIX=/dev/
48854                 # Some systems, notably Linux, do not have raw disk devices
48855                 # names.  Check this by trying to see if a raw disk device name
48856                 # exists using the normal raw device path prepended to the
48857                 # mount point of the root filesystem.
48858                 if test "$mount"; then
48859                     dev_name="/dev/r`basename $mount`"
48860                     if test -b $dev_name -o -c $dev_name; then
48861                         RDEV_PREFIX=/dev/r
48862                     else
48863                         RDEV_PREFIX=/dev/
48864                     fi
48865                 else
48866                     RDEV_PREFIX=/dev/r
48867                 fi
48868                 ;;
48869         esac
48870     else
48871         DEV_PREFIX=/
48872         RDEV_PREFIX=/
48873     fi
48874     echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
48875 echo "${ECHO_T}$DEV_PREFIX - $RDEV_PREFIX" >&6
48876 fi
48877
48878
48879 cat >>confdefs.h <<_ACEOF
48880 #define DEV_PREFIX "${DEV_PREFIX}"
48881 _ACEOF
48882
48883
48884 cat >>confdefs.h <<_ACEOF
48885 #define RDEV_PREFIX "${RDEV_PREFIX}"
48886 _ACEOF
48887
48888
48889 case $mount in
48890     /dev/vg*)
48891         { echo "$as_me:$LINENO: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&5
48892 echo "$as_me: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&2;}
48893         ;;
48894 esac
48895
48896 echo "$as_me:$LINENO: checking whether posix fcntl locking works" >&5
48897 echo $ECHO_N "checking whether posix fcntl locking works... $ECHO_C" >&6
48898 if test "${amanda_cv_posix_filelocking+set}" = set; then
48899   echo $ECHO_N "(cached) $ECHO_C" >&6
48900 else
48901
48902         if test "$cross_compiling" = yes; then
48903
48904         amanda_cv_posix_filelocking="no (cannot run test)"
48905
48906 else
48907   cat >conftest.$ac_ext <<_ACEOF
48908 /* confdefs.h.  */
48909 _ACEOF
48910 cat confdefs.h >>conftest.$ac_ext
48911 cat >>conftest.$ac_ext <<_ACEOF
48912 /* end confdefs.h.  */
48913
48914 #undef  ASSERTIONS
48915 #define CONFIGURE_TEST
48916 #define USE_POSIX_FCNTL
48917 #include "${srcdir-.}/common-src/amflock.c"
48918
48919 _ACEOF
48920 rm -f conftest$ac_exeext
48921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48922   (eval $ac_link) 2>&5
48923   ac_status=$?
48924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48927   (eval $ac_try) 2>&5
48928   ac_status=$?
48929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48930   (exit $ac_status); }; }; then
48931
48932         amanda_cv_posix_filelocking=yes
48933
48934 else
48935   echo "$as_me: program exited with status $ac_status" >&5
48936 echo "$as_me: failed program was:" >&5
48937 sed 's/^/| /' conftest.$ac_ext >&5
48938
48939 ( exit $ac_status )
48940
48941         amanda_cv_posix_filelocking="no"
48942
48943 fi
48944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48945 fi
48946     rm -f /tmp/conftest.lock
48947
48948 fi
48949 echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
48950 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6
48951 if test "$amanda_cv_posix_filelocking" = yes; then
48952
48953 cat >>confdefs.h <<\_ACEOF
48954 #define USE_POSIX_FCNTL 1
48955 _ACEOF
48956
48957     HAS_WORKING_FILE_LOCK=1
48958 fi
48959
48960 if test -z "$HAS_WORKING_FILE_LOCK"; then
48961     echo "$as_me:$LINENO: checking whether flock locking works" >&5
48962 echo $ECHO_N "checking whether flock locking works... $ECHO_C" >&6
48963 if test "${amanda_cv_flock_filelocking+set}" = set; then
48964   echo $ECHO_N "(cached) $ECHO_C" >&6
48965 else
48966
48967             if test "$cross_compiling" = yes; then
48968
48969                     amanda_cv_flock_filelocking="no (cannot run test)"
48970
48971 else
48972   cat >conftest.$ac_ext <<_ACEOF
48973 /* confdefs.h.  */
48974 _ACEOF
48975 cat confdefs.h >>conftest.$ac_ext
48976 cat >>conftest.$ac_ext <<_ACEOF
48977 /* end confdefs.h.  */
48978
48979 #undef  ASSERTIONS
48980 #define CONFIGURE_TEST
48981 #define USE_FLOCK
48982 #include "${srcdir-.}/common-src/amflock.c"
48983
48984 _ACEOF
48985 rm -f conftest$ac_exeext
48986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48987   (eval $ac_link) 2>&5
48988   ac_status=$?
48989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48990   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48992   (eval $ac_try) 2>&5
48993   ac_status=$?
48994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48995   (exit $ac_status); }; }; then
48996
48997                     amanda_cv_flock_filelocking="yes"
48998
48999 else
49000   echo "$as_me: program exited with status $ac_status" >&5
49001 echo "$as_me: failed program was:" >&5
49002 sed 's/^/| /' conftest.$ac_ext >&5
49003
49004 ( exit $ac_status )
49005
49006                     amanda_cv_flock_filelocking="no"
49007
49008 fi
49009 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49010 fi
49011         rm -f /tmp/conftest.lock
49012
49013 fi
49014 echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
49015 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6
49016     if test "$amanda_cv_flock_filelocking" = yes; then
49017
49018 cat >>confdefs.h <<\_ACEOF
49019 #define USE_FLOCK 1
49020 _ACEOF
49021
49022         HAS_WORKING_FILE_LOCK=1
49023     fi
49024 fi
49025
49026 if test -z "$HAS_WORKING_FILE_LOCK"; then
49027     echo "$as_me:$LINENO: checking whether lockf locking works" >&5
49028 echo $ECHO_N "checking whether lockf locking works... $ECHO_C" >&6
49029 if test "${amanda_cv_lockf_filelocking+set}" = set; then
49030   echo $ECHO_N "(cached) $ECHO_C" >&6
49031 else
49032
49033             if test "$cross_compiling" = yes; then
49034
49035                     amanda_cv_lockf_filelocking="no (cannot run test)"
49036
49037 else
49038   cat >conftest.$ac_ext <<_ACEOF
49039 /* confdefs.h.  */
49040 _ACEOF
49041 cat confdefs.h >>conftest.$ac_ext
49042 cat >>conftest.$ac_ext <<_ACEOF
49043 /* end confdefs.h.  */
49044
49045 #undef  ASSERTIONS
49046 #define CONFIGURE_TEST
49047 #define USE_LOCKF
49048 #include "${srcdir-.}/common-src/amflock.c"
49049
49050 _ACEOF
49051 rm -f conftest$ac_exeext
49052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49053   (eval $ac_link) 2>&5
49054   ac_status=$?
49055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49056   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49058   (eval $ac_try) 2>&5
49059   ac_status=$?
49060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49061   (exit $ac_status); }; }; then
49062
49063                     amanda_cv_lockf_filelocking="yes"
49064
49065 else
49066   echo "$as_me: program exited with status $ac_status" >&5
49067 echo "$as_me: failed program was:" >&5
49068 sed 's/^/| /' conftest.$ac_ext >&5
49069
49070 ( exit $ac_status )
49071
49072                     amanda_cv_lockf_filelocking="no"
49073
49074 fi
49075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49076 fi
49077         rm -f /tmp/conftest.lock
49078
49079 fi
49080 echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
49081 echo "${ECHO_T}$amanda_cv_lockf_filelocking" >&6
49082     if test "$amanda_cv_lockf_filelocking" = yes; then
49083
49084 cat >>confdefs.h <<\_ACEOF
49085 #define USE_LOCKF 1
49086 _ACEOF
49087
49088         HAS_WORKING_FILE_LOCK=1
49089     fi
49090 fi
49091
49092 if test -z "$HAS_WORKING_FILE_LOCK"; then
49093     echo "$as_me:$LINENO: checking whether lnlock locking works" >&5
49094 echo $ECHO_N "checking whether lnlock locking works... $ECHO_C" >&6
49095 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
49096   echo $ECHO_N "(cached) $ECHO_C" >&6
49097 else
49098
49099             if test "$cross_compiling" = yes; then
49100
49101                     amanda_cv_lnlock_filelocking="no (cannot run test)"
49102
49103 else
49104   cat >conftest.$ac_ext <<_ACEOF
49105 /* confdefs.h.  */
49106 _ACEOF
49107 cat confdefs.h >>conftest.$ac_ext
49108 cat >>conftest.$ac_ext <<_ACEOF
49109 /* end confdefs.h.  */
49110
49111 #undef  ASSERTIONS
49112 #define CONFIGURE_TEST
49113 #define USE_LNLOCK
49114 #include "${srcdir-.}/common-src/amflock.c"
49115 #include "${srcdir-.}/common-src/alloc.c"
49116 #include "${srcdir-.}/common-src/error.c"
49117 #include "${srcdir-.}/common-src/snprintf.c"
49118
49119 _ACEOF
49120 rm -f conftest$ac_exeext
49121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49122   (eval $ac_link) 2>&5
49123   ac_status=$?
49124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49125   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49127   (eval $ac_try) 2>&5
49128   ac_status=$?
49129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49130   (exit $ac_status); }; }; then
49131
49132                     amanda_cv_lnlock_filelocking="yes"
49133
49134 else
49135   echo "$as_me: program exited with status $ac_status" >&5
49136 echo "$as_me: failed program was:" >&5
49137 sed 's/^/| /' conftest.$ac_ext >&5
49138
49139 ( exit $ac_status )
49140
49141                     amanda_cv_lnlock_filelocking="no"
49142
49143 fi
49144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49145 fi
49146         rm -f /tmp/conftest.lock
49147
49148 fi
49149 echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
49150 echo "${ECHO_T}$amanda_cv_lnlock_filelocking" >&6
49151     if test "$amanda_cv_lnlock_filelocking" = yes; then
49152
49153 cat >>confdefs.h <<\_ACEOF
49154 #define USE_LNLOCK 1
49155 _ACEOF
49156
49157         HAS_WORKING_FILE_LOCK=1
49158     fi
49159 fi
49160
49161 if test -z "$HAS_WORKING_FILE_LOCK"; then
49162     { echo "$as_me:$LINENO: WARNING: *** No working file locking capability found!" >&5
49163 echo "$as_me: WARNING: *** No working file locking capability found!" >&2;}
49164     { echo "$as_me:$LINENO: WARNING: *** Be VERY VERY careful." >&5
49165 echo "$as_me: WARNING: *** Be VERY VERY careful." >&2;}
49166 fi
49167
49168
49169
49170
49171
49172
49173
49174
49175
49176 if test x"$NO_CLIENT_MODE" != x"true"; then
49177   WANT_CLIENT_TRUE=
49178   WANT_CLIENT_FALSE='#'
49179 else
49180   WANT_CLIENT_TRUE='#'
49181   WANT_CLIENT_FALSE=
49182 fi
49183
49184
49185
49186 if test ! -z "$SAMBA_CLIENT"; then
49187   WANT_SAMBA_TRUE=
49188   WANT_SAMBA_FALSE='#'
49189 else
49190   WANT_SAMBA_TRUE='#'
49191   WANT_SAMBA_FALSE=
49192 fi
49193
49194
49195
49196 if test x"$NO_RESTORE_MODE" != x"true"; then
49197   WANT_RESTORE_TRUE=
49198   WANT_RESTORE_FALSE='#'
49199 else
49200   WANT_RESTORE_TRUE='#'
49201   WANT_RESTORE_FALSE=
49202 fi
49203
49204
49205
49206 if test x"$NO_SERVER_MODE" != x"true"; then
49207   WANT_SERVER_TRUE=
49208   WANT_SERVER_FALSE='#'
49209 else
49210   WANT_SERVER_TRUE='#'
49211   WANT_SERVER_FALSE=
49212 fi
49213
49214
49215
49216 if test x"$NO_RECOVER_MODE" != x"true" && test x"$NO_CLIENT_MODE" != x"true"; then
49217   WANT_RECOVER_TRUE=
49218   WANT_RECOVER_FALSE='#'
49219 else
49220   WANT_RECOVER_TRUE='#'
49221   WANT_RECOVER_FALSE=
49222 fi
49223
49224
49225
49226 if test x"$NO_SERVER_MODE" != x"true" || test x"$NO_RESTORE_MODE" != x"true"; then
49227   WANT_TAPE_TRUE=
49228   WANT_TAPE_FALSE='#'
49229 else
49230   WANT_TAPE_TRUE='#'
49231   WANT_TAPE_FALSE=
49232 fi
49233
49234
49235
49236 if test x"$NO_AMPLOT_MODE" != x"true"; then
49237   WANT_AMPLOT_TRUE=
49238   WANT_AMPLOT_FALSE='#'
49239 else
49240   WANT_AMPLOT_TRUE='#'
49241   WANT_AMPLOT_FALSE=
49242 fi
49243
49244
49245
49246 if test x"$NO_SCSI_CHANGER_MODE" != x"true"; then
49247   WANT_CHG_SCSI_TRUE=
49248   WANT_CHG_SCSI_FALSE='#'
49249 else
49250   WANT_CHG_SCSI_TRUE='#'
49251   WANT_CHG_SCSI_FALSE=
49252 fi
49253
49254
49255
49256 if test x"$NO_CHIO_CHANGER_MODE" != x"true"; then
49257   WANT_CHIO_SCSI_TRUE=
49258   WANT_CHIO_SCSI_FALSE='#'
49259 else
49260   WANT_CHIO_SCSI_TRUE='#'
49261   WANT_CHIO_SCSI_FALSE=
49262 fi
49263
49264
49265
49266 if test x"$NEED_RUNTIME_PSEUDO_RELOC" = x"true"; then
49267   WANT_RUNTIME_PSEUDO_RELOC_TRUE=
49268   WANT_RUNTIME_PSEUDO_RELOC_FALSE='#'
49269 else
49270   WANT_RUNTIME_PSEUDO_RELOC_TRUE='#'
49271   WANT_RUNTIME_PSEUDO_RELOC_FALSE=
49272 fi
49273
49274
49275
49276 if test x"$NEED_SETUID_CLIENT" != x"false"; then
49277   WANT_SETUID_CLIENT_TRUE=
49278   WANT_SETUID_CLIENT_FALSE='#'
49279 else
49280   WANT_SETUID_CLIENT_TRUE='#'
49281   WANT_SETUID_CLIENT_FALSE=
49282 fi
49283
49284
49285 case "${FORCE_USE_RUNDUMP-${USE_RUNDUMP}}" in
49286 y |  ye | yes)
49287 cat >>confdefs.h <<\_ACEOF
49288 #define USE_RUNDUMP 1
49289 _ACEOF
49290 ;;
49291 esac
49292
49293 # This is necessary so that .o files in LIBOBJS are also built via
49294 # the ANSI2KNR-filtering rules.
49295 LIBOBJS=`echo "$LIBOBJS" |
49296              sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
49297 LTLIBOBJS=`echo "$LIBOBJS" |
49298            sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
49299
49300
49301 LTALLOCA=`echo "$ALLOCA" | sed 's/\.'"${ac_objext}"'/\.lo/g'`
49302
49303
49304                                                                                                                                                                                                                                                                                                                                                                                                                                                                             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/Makefile 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"
49305
49306 cat >confcache <<\_ACEOF
49307 # This file is a shell script that caches the results of configure
49308 # tests run on this system so they can be shared between configure
49309 # scripts and configure runs, see configure's option --config-cache.
49310 # It is not useful on other systems.  If it contains results you don't
49311 # want to keep, you may remove or edit it.
49312 #
49313 # config.status only pays attention to the cache file if you give it
49314 # the --recheck option to rerun configure.
49315 #
49316 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49317 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49318 # following values.
49319
49320 _ACEOF
49321
49322 # The following way of writing the cache mishandles newlines in values,
49323 # but we know of no workaround that is simple, portable, and efficient.
49324 # So, don't put newlines in cache variables' values.
49325 # Ultrix sh set writes to stderr and can't be redirected directly,
49326 # and sets the high bit in the cache file unless we assign to the vars.
49327 {
49328   (set) 2>&1 |
49329     case `(ac_space=' '; set | grep ac_space) 2>&1` in
49330     *ac_space=\ *)
49331       # `set' does not quote correctly, so add quotes (double-quote
49332       # substitution turns \\\\ into \\, and sed turns \\ into \).
49333       sed -n \
49334         "s/'/'\\\\''/g;
49335           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49336       ;;
49337     *)
49338       # `set' quotes correctly as required by POSIX, so do not add quotes.
49339       sed -n \
49340         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
49341       ;;
49342     esac;
49343 } |
49344   sed '
49345      t clear
49346      : clear
49347      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49348      t end
49349      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49350      : end' >>confcache
49351 if diff $cache_file confcache >/dev/null 2>&1; then :; else
49352   if test -w $cache_file; then
49353     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49354     cat confcache >$cache_file
49355   else
49356     echo "not updating unwritable cache $cache_file"
49357   fi
49358 fi
49359 rm -f confcache
49360
49361 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49362 # Let make expand exec_prefix.
49363 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49364
49365 # VPATH may cause trouble with some makes, so we remove $(srcdir),
49366 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49367 # trailing colons and then remove the whole line if VPATH becomes empty
49368 # (actually we leave an empty line to preserve line numbers).
49369 if test "x$srcdir" = x.; then
49370   ac_vpsub='/^[  ]*VPATH[        ]*=/{
49371 s/:*\$(srcdir):*/:/;
49372 s/:*\${srcdir}:*/:/;
49373 s/:*@srcdir@:*/:/;
49374 s/^\([^=]*=[     ]*\):*/\1/;
49375 s/:*$//;
49376 s/^[^=]*=[       ]*$//;
49377 }'
49378 fi
49379
49380 DEFS=-DHAVE_CONFIG_H
49381
49382 ac_libobjs=
49383 ac_ltlibobjs=
49384 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49385   # 1. Remove the extension, and $U if already installed.
49386   ac_i=`echo "$ac_i" |
49387          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
49388   # 2. Add them.
49389   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49390   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49391 done
49392 LIBOBJS=$ac_libobjs
49393
49394 LTLIBOBJS=$ac_ltlibobjs
49395
49396
49397 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
49398   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
49399 Usually this means the macro was only invoked conditionally." >&5
49400 echo "$as_me: error: conditional \"AMDEP\" was never defined.
49401 Usually this means the macro was only invoked conditionally." >&2;}
49402    { (exit 1); exit 1; }; }
49403 fi
49404 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
49405   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
49406 Usually this means the macro was only invoked conditionally." >&5
49407 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
49408 Usually this means the macro was only invoked conditionally." >&2;}
49409    { (exit 1); exit 1; }; }
49410 fi
49411 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
49412   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
49413 Usually this means the macro was only invoked conditionally." >&5
49414 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
49415 Usually this means the macro was only invoked conditionally." >&2;}
49416    { (exit 1); exit 1; }; }
49417 fi
49418 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
49419   { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
49420 Usually this means the macro was only invoked conditionally." >&5
49421 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
49422 Usually this means the macro was only invoked conditionally." >&2;}
49423    { (exit 1); exit 1; }; }
49424 fi
49425 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
49426   { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
49427 Usually this means the macro was only invoked conditionally." >&5
49428 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
49429 Usually this means the macro was only invoked conditionally." >&2;}
49430    { (exit 1); exit 1; }; }
49431 fi
49432 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
49433   { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
49434 Usually this means the macro was only invoked conditionally." >&5
49435 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
49436 Usually this means the macro was only invoked conditionally." >&2;}
49437    { (exit 1); exit 1; }; }
49438 fi
49439 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
49440   { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
49441 Usually this means the macro was only invoked conditionally." >&5
49442 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
49443 Usually this means the macro was only invoked conditionally." >&2;}
49444    { (exit 1); exit 1; }; }
49445 fi
49446 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
49447   { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
49448 Usually this means the macro was only invoked conditionally." >&5
49449 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
49450 Usually this means the macro was only invoked conditionally." >&2;}
49451    { (exit 1); exit 1; }; }
49452 fi
49453 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
49454   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
49455 Usually this means the macro was only invoked conditionally." >&5
49456 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
49457 Usually this means the macro was only invoked conditionally." >&2;}
49458    { (exit 1); exit 1; }; }
49459 fi
49460 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
49461   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
49462 Usually this means the macro was only invoked conditionally." >&5
49463 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
49464 Usually this means the macro was only invoked conditionally." >&2;}
49465    { (exit 1); exit 1; }; }
49466 fi
49467 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
49468   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
49469 Usually this means the macro was only invoked conditionally." >&5
49470 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
49471 Usually this means the macro was only invoked conditionally." >&2;}
49472    { (exit 1); exit 1; }; }
49473 fi
49474 if test -z "${WANT_CHIO_SCSI_TRUE}" && test -z "${WANT_CHIO_SCSI_FALSE}"; then
49475   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHIO_SCSI\" was never defined.
49476 Usually this means the macro was only invoked conditionally." >&5
49477 echo "$as_me: error: conditional \"WANT_CHIO_SCSI\" was never defined.
49478 Usually this means the macro was only invoked conditionally." >&2;}
49479    { (exit 1); exit 1; }; }
49480 fi
49481 if test -z "${WANT_RUNTIME_PSEUDO_RELOC_TRUE}" && test -z "${WANT_RUNTIME_PSEUDO_RELOC_FALSE}"; then
49482   { { echo "$as_me:$LINENO: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
49483 Usually this means the macro was only invoked conditionally." >&5
49484 echo "$as_me: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
49485 Usually this means the macro was only invoked conditionally." >&2;}
49486    { (exit 1); exit 1; }; }
49487 fi
49488 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
49489   { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
49490 Usually this means the macro was only invoked conditionally." >&5
49491 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
49492 Usually this means the macro was only invoked conditionally." >&2;}
49493    { (exit 1); exit 1; }; }
49494 fi
49495
49496 : ${CONFIG_STATUS=./config.status}
49497 ac_clean_files_save=$ac_clean_files
49498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49499 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49500 echo "$as_me: creating $CONFIG_STATUS" >&6;}
49501 cat >$CONFIG_STATUS <<_ACEOF
49502 #! $SHELL
49503 # Generated by $as_me.
49504 # Run this file to recreate the current configuration.
49505 # Compiler output produced by configure, useful for debugging
49506 # configure, is in config.log if it exists.
49507
49508 debug=false
49509 ac_cs_recheck=false
49510 ac_cs_silent=false
49511 SHELL=\${CONFIG_SHELL-$SHELL}
49512 _ACEOF
49513
49514 cat >>$CONFIG_STATUS <<\_ACEOF
49515 ## --------------------- ##
49516 ## M4sh Initialization.  ##
49517 ## --------------------- ##
49518
49519 # Be Bourne compatible
49520 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49521   emulate sh
49522   NULLCMD=:
49523   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49524   # is contrary to our usage.  Disable this feature.
49525   alias -g '${1+"$@"}'='"$@"'
49526 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49527   set -o posix
49528 fi
49529 DUALCASE=1; export DUALCASE # for MKS sh
49530
49531 # Support unset when possible.
49532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
49533   as_unset=unset
49534 else
49535   as_unset=false
49536 fi
49537
49538
49539 # Work around bugs in pre-3.0 UWIN ksh.
49540 $as_unset ENV MAIL MAILPATH
49541 PS1='$ '
49542 PS2='> '
49543 PS4='+ '
49544
49545 # NLS nuisances.
49546 for as_var in \
49547   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49548   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49549   LC_TELEPHONE LC_TIME
49550 do
49551   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49552     eval $as_var=C; export $as_var
49553   else
49554     $as_unset $as_var
49555   fi
49556 done
49557
49558 # Required to use basename.
49559 if expr a : '\(a\)' >/dev/null 2>&1; then
49560   as_expr=expr
49561 else
49562   as_expr=false
49563 fi
49564
49565 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49566   as_basename=basename
49567 else
49568   as_basename=false
49569 fi
49570
49571
49572 # Name of the executable.
49573 as_me=`$as_basename "$0" ||
49574 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49575          X"$0" : 'X\(//\)$' \| \
49576          X"$0" : 'X\(/\)$' \| \
49577          .     : '\(.\)' 2>/dev/null ||
49578 echo X/"$0" |
49579     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49580           /^X\/\(\/\/\)$/{ s//\1/; q; }
49581           /^X\/\(\/\).*/{ s//\1/; q; }
49582           s/.*/./; q'`
49583
49584
49585 # PATH needs CR, and LINENO needs CR and PATH.
49586 # Avoid depending upon Character Ranges.
49587 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49588 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49589 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49590 as_cr_digits='0123456789'
49591 as_cr_alnum=$as_cr_Letters$as_cr_digits
49592
49593 # The user is always right.
49594 if test "${PATH_SEPARATOR+set}" != set; then
49595   echo "#! /bin/sh" >conf$$.sh
49596   echo  "exit 0"   >>conf$$.sh
49597   chmod +x conf$$.sh
49598   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49599     PATH_SEPARATOR=';'
49600   else
49601     PATH_SEPARATOR=:
49602   fi
49603   rm -f conf$$.sh
49604 fi
49605
49606
49607   as_lineno_1=$LINENO
49608   as_lineno_2=$LINENO
49609   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49610   test "x$as_lineno_1" != "x$as_lineno_2" &&
49611   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
49612   # Find who we are.  Look in the path if we contain no path at all
49613   # relative or not.
49614   case $0 in
49615     *[\\/]* ) as_myself=$0 ;;
49616     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49617 for as_dir in $PATH
49618 do
49619   IFS=$as_save_IFS
49620   test -z "$as_dir" && as_dir=.
49621   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49622 done
49623
49624        ;;
49625   esac
49626   # We did not find ourselves, most probably we were run as `sh COMMAND'
49627   # in which case we are not to be found in the path.
49628   if test "x$as_myself" = x; then
49629     as_myself=$0
49630   fi
49631   if test ! -f "$as_myself"; then
49632     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49633 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49634    { (exit 1); exit 1; }; }
49635   fi
49636   case $CONFIG_SHELL in
49637   '')
49638     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49639 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49640 do
49641   IFS=$as_save_IFS
49642   test -z "$as_dir" && as_dir=.
49643   for as_base in sh bash ksh sh5; do
49644          case $as_dir in
49645          /*)
49646            if ("$as_dir/$as_base" -c '
49647   as_lineno_1=$LINENO
49648   as_lineno_2=$LINENO
49649   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49650   test "x$as_lineno_1" != "x$as_lineno_2" &&
49651   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
49652              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49653              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49654              CONFIG_SHELL=$as_dir/$as_base
49655              export CONFIG_SHELL
49656              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49657            fi;;
49658          esac
49659        done
49660 done
49661 ;;
49662   esac
49663
49664   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49665   # uniformly replaced by the line number.  The first 'sed' inserts a
49666   # line-number line before each line; the second 'sed' does the real
49667   # work.  The second script uses 'N' to pair each line-number line
49668   # with the numbered line, and appends trailing '-' during
49669   # substitution so that $LINENO is not a special case at line end.
49670   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49671   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
49672   sed '=' <$as_myself |
49673     sed '
49674       N
49675       s,$,-,
49676       : loop
49677       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49678       t loop
49679       s,-$,,
49680       s,^['$as_cr_digits']*\n,,
49681     ' >$as_me.lineno &&
49682   chmod +x $as_me.lineno ||
49683     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49684 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49685    { (exit 1); exit 1; }; }
49686
49687   # Don't try to exec as it changes $[0], causing all sort of problems
49688   # (the dirname of $[0] is not the place where we might find the
49689   # original and so on.  Autoconf is especially sensible to this).
49690   . ./$as_me.lineno
49691   # Exit status is that of the last command.
49692   exit
49693 }
49694
49695
49696 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49697   *c*,-n*) ECHO_N= ECHO_C='
49698 ' ECHO_T='      ' ;;
49699   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49700   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
49701 esac
49702
49703 if expr a : '\(a\)' >/dev/null 2>&1; then
49704   as_expr=expr
49705 else
49706   as_expr=false
49707 fi
49708
49709 rm -f conf$$ conf$$.exe conf$$.file
49710 echo >conf$$.file
49711 if ln -s conf$$.file conf$$ 2>/dev/null; then
49712   # We could just check for DJGPP; but this test a) works b) is more generic
49713   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49714   if test -f conf$$.exe; then
49715     # Don't use ln at all; we don't have any links
49716     as_ln_s='cp -p'
49717   else
49718     as_ln_s='ln -s'
49719   fi
49720 elif ln conf$$.file conf$$ 2>/dev/null; then
49721   as_ln_s=ln
49722 else
49723   as_ln_s='cp -p'
49724 fi
49725 rm -f conf$$ conf$$.exe conf$$.file
49726
49727 if mkdir -p . 2>/dev/null; then
49728   as_mkdir_p=:
49729 else
49730   test -d ./-p && rmdir ./-p
49731   as_mkdir_p=false
49732 fi
49733
49734 as_executable_p="test -f"
49735
49736 # Sed expression to map a string onto a valid CPP name.
49737 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
49738
49739 # Sed expression to map a string onto a valid variable name.
49740 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
49741
49742
49743 # IFS
49744 # We need space, tab and new line, in precisely that order.
49745 as_nl='
49746 '
49747 IFS="   $as_nl"
49748
49749 # CDPATH.
49750 $as_unset CDPATH
49751
49752 exec 6>&1
49753
49754 # Open the log real soon, to keep \$[0] and so on meaningful, and to
49755 # report actual input values of CONFIG_FILES etc. instead of their
49756 # values after options handling.  Logging --version etc. is OK.
49757 exec 5>>config.log
49758 {
49759   echo
49760   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49761 ## Running $as_me. ##
49762 _ASBOX
49763 } >&5
49764 cat >&5 <<_CSEOF
49765
49766 This file was extended by $as_me, which was
49767 generated by GNU Autoconf 2.59.  Invocation command line was
49768
49769   CONFIG_FILES    = $CONFIG_FILES
49770   CONFIG_HEADERS  = $CONFIG_HEADERS
49771   CONFIG_LINKS    = $CONFIG_LINKS
49772   CONFIG_COMMANDS = $CONFIG_COMMANDS
49773   $ $0 $@
49774
49775 _CSEOF
49776 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49777 echo >&5
49778 _ACEOF
49779
49780 # Files that config.status was made for.
49781 if test -n "$ac_config_files"; then
49782   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49783 fi
49784
49785 if test -n "$ac_config_headers"; then
49786   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49787 fi
49788
49789 if test -n "$ac_config_links"; then
49790   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49791 fi
49792
49793 if test -n "$ac_config_commands"; then
49794   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49795 fi
49796
49797 cat >>$CONFIG_STATUS <<\_ACEOF
49798
49799 ac_cs_usage="\
49800 \`$as_me' instantiates files from templates according to the
49801 current configuration.
49802
49803 Usage: $0 [OPTIONS] [FILE]...
49804
49805   -h, --help       print this help, then exit
49806   -V, --version    print version number, then exit
49807   -q, --quiet      do not print progress messages
49808   -d, --debug      don't remove temporary files
49809       --recheck    update $as_me by reconfiguring in the same conditions
49810   --file=FILE[:TEMPLATE]
49811                    instantiate the configuration file FILE
49812   --header=FILE[:TEMPLATE]
49813                    instantiate the configuration header FILE
49814
49815 Configuration files:
49816 $config_files
49817
49818 Configuration headers:
49819 $config_headers
49820
49821 Configuration commands:
49822 $config_commands
49823
49824 Report bugs to <bug-autoconf@gnu.org>."
49825 _ACEOF
49826
49827 cat >>$CONFIG_STATUS <<_ACEOF
49828 ac_cs_version="\\
49829 config.status
49830 configured by $0, generated by GNU Autoconf 2.59,
49831   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49832
49833 Copyright (C) 2003 Free Software Foundation, Inc.
49834 This config.status script is free software; the Free Software Foundation
49835 gives unlimited permission to copy, distribute and modify it."
49836 srcdir=$srcdir
49837 INSTALL="$INSTALL"
49838 _ACEOF
49839
49840 cat >>$CONFIG_STATUS <<\_ACEOF
49841 # If no file are specified by the user, then we need to provide default
49842 # value.  By we need to know if files were specified by the user.
49843 ac_need_defaults=:
49844 while test $# != 0
49845 do
49846   case $1 in
49847   --*=*)
49848     ac_option=`expr "x$1" : 'x\([^=]*\)='`
49849     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49850     ac_shift=:
49851     ;;
49852   -*)
49853     ac_option=$1
49854     ac_optarg=$2
49855     ac_shift=shift
49856     ;;
49857   *) # This is not an option, so the user has probably given explicit
49858      # arguments.
49859      ac_option=$1
49860      ac_need_defaults=false;;
49861   esac
49862
49863   case $ac_option in
49864   # Handling of the options.
49865 _ACEOF
49866 cat >>$CONFIG_STATUS <<\_ACEOF
49867   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49868     ac_cs_recheck=: ;;
49869   --version | --vers* | -V )
49870     echo "$ac_cs_version"; exit 0 ;;
49871   --he | --h)
49872     # Conflict between --help and --header
49873     { { echo "$as_me:$LINENO: error: ambiguous option: $1
49874 Try \`$0 --help' for more information." >&5
49875 echo "$as_me: error: ambiguous option: $1
49876 Try \`$0 --help' for more information." >&2;}
49877    { (exit 1); exit 1; }; };;
49878   --help | --hel | -h )
49879     echo "$ac_cs_usage"; exit 0 ;;
49880   --debug | --d* | -d )
49881     debug=: ;;
49882   --file | --fil | --fi | --f )
49883     $ac_shift
49884     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49885     ac_need_defaults=false;;
49886   --header | --heade | --head | --hea )
49887     $ac_shift
49888     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49889     ac_need_defaults=false;;
49890   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49891   | -silent | --silent | --silen | --sile | --sil | --si | --s)
49892     ac_cs_silent=: ;;
49893
49894   # This is an error.
49895   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49896 Try \`$0 --help' for more information." >&5
49897 echo "$as_me: error: unrecognized option: $1
49898 Try \`$0 --help' for more information." >&2;}
49899    { (exit 1); exit 1; }; } ;;
49900
49901   *) ac_config_targets="$ac_config_targets $1" ;;
49902
49903   esac
49904   shift
49905 done
49906
49907 ac_configure_extra_args=
49908
49909 if $ac_cs_silent; then
49910   exec 6>/dev/null
49911   ac_configure_extra_args="$ac_configure_extra_args --silent"
49912 fi
49913
49914 _ACEOF
49915 cat >>$CONFIG_STATUS <<_ACEOF
49916 if \$ac_cs_recheck; then
49917   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49918   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49919 fi
49920
49921 _ACEOF
49922
49923 cat >>$CONFIG_STATUS <<_ACEOF
49924 #
49925 # INIT-COMMANDS section.
49926 #
49927
49928 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
49929 # variables for create stdint.h replacement
49930 PACKAGE="$PACKAGE"
49931 VERSION="$VERSION"
49932 ac_stdint_h="$ac_stdint_h"
49933 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
49934 ac_cv_stdint_message="$ac_cv_stdint_message"
49935 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
49936 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
49937 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
49938 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
49939 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
49940 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
49941 ac_cv_stdint_char_model="$ac_cv_stdint_char_model"
49942 ac_cv_stdint_long_model="$ac_cv_stdint_long_model"
49943 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
49944 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
49945 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
49946
49947
49948 _ACEOF
49949
49950
49951
49952 cat >>$CONFIG_STATUS <<\_ACEOF
49953 for ac_config_target in $ac_config_targets
49954 do
49955   case "$ac_config_target" in
49956   # Handling of arguments.
49957   "amplot/amcat.awk" ) CONFIG_FILES="$CONFIG_FILES amplot/amcat.awk" ;;
49958   "amplot/amplot.sh" ) CONFIG_FILES="$CONFIG_FILES amplot/amplot.sh" ;;
49959   "amplot/Makefile" ) CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
49960   "changer-src/chg-manual.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-manual.sh" ;;
49961   "changer-src/chg-multi.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-multi.sh" ;;
49962   "changer-src/chg-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mtx.sh" ;;
49963   "changer-src/chg-chs.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chs.sh" ;;
49964   "changer-src/chg-rth.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rth.pl" ;;
49965   "changer-src/chg-chio.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chio.pl" ;;
49966   "changer-src/chg-zd-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-zd-mtx.sh" ;;
49967   "changer-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
49968   "changer-src/chg-juke.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-juke.sh" ;;
49969   "changer-src/chg-rait.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rait.sh" ;;
49970   "changer-src/chg-null.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-null.sh" ;;
49971   "changer-src/chg-mcutil.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mcutil.sh" ;;
49972   "changer-src/chg-disk.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-disk.sh" ;;
49973   "changer-src/chg-iomega.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-iomega.pl" ;;
49974   "client-src/patch-system.sh" ) CONFIG_FILES="$CONFIG_FILES client-src/patch-system.sh" ;;
49975   "client-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
49976   "common-src/versuff.c" ) CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
49977   "common-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
49978   "example/amanda.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
49979   "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
49980   "example/amanda.conf.chg-scsi" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf.chg-scsi" ;;
49981   "example/chg-scsi-linux.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-linux.conf" ;;
49982   "example/chg-scsi-solaris.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-solaris.conf" ;;
49983   "example/chg-scsi-hpux.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-hpux.conf" ;;
49984   "example/chg-mcutil.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
49985   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
49986   "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
49987   "recover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
49988   "restore-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
49989   "server-src/amcheckdb.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcheckdb.sh" ;;
49990   "server-src/amcleanup.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcleanup.sh" ;;
49991   "server-src/amdump.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amdump.sh" ;;
49992   "server-src/amfreetapes.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amfreetapes.sh" ;;
49993   "server-src/amoverview.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amoverview.pl" ;;
49994   "server-src/amrmtape.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amrmtape.sh" ;;
49995   "server-src/amtoc.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amtoc.pl" ;;
49996   "server-src/amverify.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverify.sh" ;;
49997   "server-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
49998   "server-src/amstatus.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amstatus.pl" ;;
49999   "server-src/amverifyrun.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverifyrun.sh" ;;
50000   "tape-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
50001   "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
50002   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50003   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
50004   "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
50005   "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
50006   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50007 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50008    { (exit 1); exit 1; }; };;
50009   esac
50010 done
50011
50012 # If the user did not use the arguments to specify the items to instantiate,
50013 # then the envvar interface is used.  Set only those that are not.
50014 # We use the long form for the default assignment because of an extremely
50015 # bizarre bug on SunOS 4.1.3.
50016 if $ac_need_defaults; then
50017   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50018   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50019   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50020 fi
50021
50022 # Have a temporary directory for convenience.  Make it in the build tree
50023 # simply because there is no reason to put it here, and in addition,
50024 # creating and moving files from /tmp can sometimes cause problems.
50025 # Create a temporary directory, and hook for its removal unless debugging.
50026 $debug ||
50027 {
50028   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
50029   trap '{ (exit 1); exit 1; }' 1 2 13 15
50030 }
50031
50032 # Create a (secure) tmp directory for tmp files.
50033
50034 {
50035   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
50036   test -n "$tmp" && test -d "$tmp"
50037 }  ||
50038 {
50039   tmp=./confstat$$-$RANDOM
50040   (umask 077 && mkdir $tmp)
50041 } ||
50042 {
50043    echo "$me: cannot create a temporary directory in ." >&2
50044    { (exit 1); exit 1; }
50045 }
50046
50047 _ACEOF
50048
50049 cat >>$CONFIG_STATUS <<_ACEOF
50050
50051 #
50052 # CONFIG_FILES section.
50053 #
50054
50055 # No need to generate the scripts if there are no CONFIG_FILES.
50056 # This happens for instance when ./config.status config.h
50057 if test -n "\$CONFIG_FILES"; then
50058   # Protect against being on the right side of a sed subst in config.status.
50059   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
50060    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
50061 s,@SHELL@,$SHELL,;t t
50062 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
50063 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
50064 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
50065 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
50066 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
50067 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
50068 s,@exec_prefix@,$exec_prefix,;t t
50069 s,@prefix@,$prefix,;t t
50070 s,@program_transform_name@,$program_transform_name,;t t
50071 s,@bindir@,$bindir,;t t
50072 s,@sbindir@,$sbindir,;t t
50073 s,@libexecdir@,$libexecdir,;t t
50074 s,@datadir@,$datadir,;t t
50075 s,@sysconfdir@,$sysconfdir,;t t
50076 s,@sharedstatedir@,$sharedstatedir,;t t
50077 s,@localstatedir@,$localstatedir,;t t
50078 s,@libdir@,$libdir,;t t
50079 s,@includedir@,$includedir,;t t
50080 s,@oldincludedir@,$oldincludedir,;t t
50081 s,@infodir@,$infodir,;t t
50082 s,@mandir@,$mandir,;t t
50083 s,@build_alias@,$build_alias,;t t
50084 s,@host_alias@,$host_alias,;t t
50085 s,@target_alias@,$target_alias,;t t
50086 s,@DEFS@,$DEFS,;t t
50087 s,@ECHO_C@,$ECHO_C,;t t
50088 s,@ECHO_N@,$ECHO_N,;t t
50089 s,@ECHO_T@,$ECHO_T,;t t
50090 s,@LIBS@,$LIBS,;t t
50091 s,@build@,$build,;t t
50092 s,@build_cpu@,$build_cpu,;t t
50093 s,@build_vendor@,$build_vendor,;t t
50094 s,@build_os@,$build_os,;t t
50095 s,@host@,$host,;t t
50096 s,@host_cpu@,$host_cpu,;t t
50097 s,@host_vendor@,$host_vendor,;t t
50098 s,@host_os@,$host_os,;t t
50099 s,@target@,$target,;t t
50100 s,@target_cpu@,$target_cpu,;t t
50101 s,@target_vendor@,$target_vendor,;t t
50102 s,@target_os@,$target_os,;t t
50103 s,@CONFIGURE_COMMAND@,$CONFIGURE_COMMAND,;t t
50104 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
50105 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
50106 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
50107 s,@CYGPATH_W@,$CYGPATH_W,;t t
50108 s,@PACKAGE@,$PACKAGE,;t t
50109 s,@VERSION@,$VERSION,;t t
50110 s,@ACLOCAL@,$ACLOCAL,;t t
50111 s,@AUTOCONF@,$AUTOCONF,;t t
50112 s,@AUTOMAKE@,$AUTOMAKE,;t t
50113 s,@AUTOHEADER@,$AUTOHEADER,;t t
50114 s,@MAKEINFO@,$MAKEINFO,;t t
50115 s,@AMTAR@,$AMTAR,;t t
50116 s,@install_sh@,$install_sh,;t t
50117 s,@STRIP@,$STRIP,;t t
50118 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
50119 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
50120 s,@mkdir_p@,$mkdir_p,;t t
50121 s,@AWK@,$AWK,;t t
50122 s,@SET_MAKE@,$SET_MAKE,;t t
50123 s,@am__leading_dot@,$am__leading_dot,;t t
50124 s,@SNAPSHOT_STAMP@,$SNAPSHOT_STAMP,;t t
50125 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
50126 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
50127 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
50128 s,@VERSION_COMMENT@,$VERSION_COMMENT,;t t
50129 s,@VERSION_SUFFIX@,$VERSION_SUFFIX,;t t
50130 s,@CONFIG_DIR@,$CONFIG_DIR,;t t
50131 s,@USE_VERSION_SUFFIXES@,$USE_VERSION_SUFFIXES,;t t
50132 s,@CLIENT_SCRIPTS_OPT@,$CLIENT_SCRIPTS_OPT,;t t
50133 s,@DEFAULT_SERVER@,$DEFAULT_SERVER,;t t
50134 s,@CLIENT_LOGIN@,$CLIENT_LOGIN,;t t
50135 s,@SETUID_GROUP@,$SETUID_GROUP,;t t
50136 s,@BINARY_OWNER@,$BINARY_OWNER,;t t
50137 s,@DEFAULT_CONFIG@,$DEFAULT_CONFIG,;t t
50138 s,@DEFAULT_TAPE_SERVER@,$DEFAULT_TAPE_SERVER,;t t
50139 s,@DEFAULT_TAPE_DEVICE@,$DEFAULT_TAPE_DEVICE,;t t
50140 s,@DEFAULT_RAW_TAPE_DEVICE@,$DEFAULT_RAW_TAPE_DEVICE,;t t
50141 s,@DEFAULT_CHANGER_DEVICE@,$DEFAULT_CHANGER_DEVICE,;t t
50142 s,@GNUTAR_LISTED_INCREMENTAL_DIRX@,$GNUTAR_LISTED_INCREMENTAL_DIRX,;t t
50143 s,@MAXTAPEBLOCKSIZE@,$MAXTAPEBLOCKSIZE,;t t
50144 s,@AMANDA_TMPDIR@,$AMANDA_TMPDIR,;t t
50145 s,@AMANDA_DBGDIR@,$AMANDA_DBGDIR,;t t
50146 s,@AMANDA_DEBUG_DAYS@,$AMANDA_DEBUG_DAYS,;t t
50147 s,@SERVICE_SUFFIX@,$SERVICE_SUFFIX,;t t
50148 s,@CC@,$CC,;t t
50149 s,@CFLAGS@,$CFLAGS,;t t
50150 s,@LDFLAGS@,$LDFLAGS,;t t
50151 s,@CPPFLAGS@,$CPPFLAGS,;t t
50152 s,@ac_ct_CC@,$ac_ct_CC,;t t
50153 s,@EXEEXT@,$EXEEXT,;t t
50154 s,@OBJEXT@,$OBJEXT,;t t
50155 s,@DEPDIR@,$DEPDIR,;t t
50156 s,@am__include@,$am__include,;t t
50157 s,@am__quote@,$am__quote,;t t
50158 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
50159 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
50160 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
50161 s,@CCDEPMODE@,$CCDEPMODE,;t t
50162 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
50163 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
50164 s,@MT_FILE_FLAG@,$MT_FILE_FLAG,;t t
50165 s,@CPP@,$CPP,;t t
50166 s,@EGREP@,$EGREP,;t t
50167 s,@AR@,$AR,;t t
50168 s,@AWK_VAR_ASSIGNMENT_OPT@,$AWK_VAR_ASSIGNMENT_OPT,;t t
50169 s,@YACC@,$YACC,;t t
50170 s,@CAT@,$CAT,;t t
50171 s,@COMPRESS@,$COMPRESS,;t t
50172 s,@DD@,$DD,;t t
50173 s,@GETCONF@,$GETCONF,;t t
50174 s,@GNUPLOT@,$GNUPLOT,;t t
50175 s,@GREP@,$GREP,;t t
50176 s,@GNUTAR@,$GNUTAR,;t t
50177 s,@SAMBA_CLIENT@,$SAMBA_CLIENT,;t t
50178 s,@GZIP@,$GZIP,;t t
50179 s,@MAILER@,$MAILER,;t t
50180 s,@MT@,$MT,;t t
50181 s,@CHIO@,$CHIO,;t t
50182 s,@CHS@,$CHS,;t t
50183 s,@MTX@,$MTX,;t t
50184 s,@MCUTIL@,$MCUTIL,;t t
50185 s,@PRINT@,$PRINT,;t t
50186 s,@PCAT@,$PCAT,;t t
50187 s,@PERL@,$PERL,;t t
50188 s,@DUMP@,$DUMP,;t t
50189 s,@RESTORE@,$RESTORE,;t t
50190 s,@XFSDUMP@,$XFSDUMP,;t t
50191 s,@XFSRESTORE@,$XFSRESTORE,;t t
50192 s,@VXDUMP@,$VXDUMP,;t t
50193 s,@VXRESTORE@,$VXRESTORE,;t t
50194 s,@VDUMP@,$VDUMP,;t t
50195 s,@VRESTORE@,$VRESTORE,;t t
50196 s,@AMPLOT_COMPRESS@,$AMPLOT_COMPRESS,;t t
50197 s,@AMPLOT_CAT_GZIP@,$AMPLOT_CAT_GZIP,;t t
50198 s,@AMPLOT_CAT_COMPRESS@,$AMPLOT_CAT_COMPRESS,;t t
50199 s,@AMPLOT_CAT_PACK@,$AMPLOT_CAT_PACK,;t t
50200 s,@LN_S@,$LN_S,;t t
50201 s,@ECHO@,$ECHO,;t t
50202 s,@ac_ct_AR@,$ac_ct_AR,;t t
50203 s,@RANLIB@,$RANLIB,;t t
50204 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
50205 s,@CXX@,$CXX,;t t
50206 s,@CXXFLAGS@,$CXXFLAGS,;t t
50207 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
50208 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
50209 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
50210 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
50211 s,@CXXCPP@,$CXXCPP,;t t
50212 s,@F77@,$F77,;t t
50213 s,@FFLAGS@,$FFLAGS,;t t
50214 s,@ac_ct_F77@,$ac_ct_F77,;t t
50215 s,@LIBTOOL@,$LIBTOOL,;t t
50216 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
50217 s,@LEX@,$LEX,;t t
50218 s,@LEXLIB@,$LEXLIB,;t t
50219 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
50220 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
50221 s,@DB_EXT@,$DB_EXT,;t t
50222 s,@ALLOCA@,$ALLOCA,;t t
50223 s,@LIBOBJS@,$LIBOBJS,;t t
50224 s,@ac_n@,$ac_n,;t t
50225 s,@ac_c@,$ac_c,;t t
50226 s,@WANT_CLIENT_TRUE@,$WANT_CLIENT_TRUE,;t t
50227 s,@WANT_CLIENT_FALSE@,$WANT_CLIENT_FALSE,;t t
50228 s,@WANT_SAMBA_TRUE@,$WANT_SAMBA_TRUE,;t t
50229 s,@WANT_SAMBA_FALSE@,$WANT_SAMBA_FALSE,;t t
50230 s,@WANT_RESTORE_TRUE@,$WANT_RESTORE_TRUE,;t t
50231 s,@WANT_RESTORE_FALSE@,$WANT_RESTORE_FALSE,;t t
50232 s,@WANT_SERVER_TRUE@,$WANT_SERVER_TRUE,;t t
50233 s,@WANT_SERVER_FALSE@,$WANT_SERVER_FALSE,;t t
50234 s,@WANT_RECOVER_TRUE@,$WANT_RECOVER_TRUE,;t t
50235 s,@WANT_RECOVER_FALSE@,$WANT_RECOVER_FALSE,;t t
50236 s,@WANT_TAPE_TRUE@,$WANT_TAPE_TRUE,;t t
50237 s,@WANT_TAPE_FALSE@,$WANT_TAPE_FALSE,;t t
50238 s,@WANT_AMPLOT_TRUE@,$WANT_AMPLOT_TRUE,;t t
50239 s,@WANT_AMPLOT_FALSE@,$WANT_AMPLOT_FALSE,;t t
50240 s,@WANT_CHG_SCSI_TRUE@,$WANT_CHG_SCSI_TRUE,;t t
50241 s,@WANT_CHG_SCSI_FALSE@,$WANT_CHG_SCSI_FALSE,;t t
50242 s,@WANT_CHIO_SCSI_TRUE@,$WANT_CHIO_SCSI_TRUE,;t t
50243 s,@WANT_CHIO_SCSI_FALSE@,$WANT_CHIO_SCSI_FALSE,;t t
50244 s,@WANT_RUNTIME_PSEUDO_RELOC_TRUE@,$WANT_RUNTIME_PSEUDO_RELOC_TRUE,;t t
50245 s,@WANT_RUNTIME_PSEUDO_RELOC_FALSE@,$WANT_RUNTIME_PSEUDO_RELOC_FALSE,;t t
50246 s,@WANT_SETUID_CLIENT_TRUE@,$WANT_SETUID_CLIENT_TRUE,;t t
50247 s,@WANT_SETUID_CLIENT_FALSE@,$WANT_SETUID_CLIENT_FALSE,;t t
50248 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50249 s,@LTALLOCA@,$LTALLOCA,;t t
50250 CEOF
50251
50252 _ACEOF
50253
50254   cat >>$CONFIG_STATUS <<\_ACEOF
50255   # Split the substitutions into bite-sized pieces for seds with
50256   # small command number limits, like on Digital OSF/1 and HP-UX.
50257   ac_max_sed_lines=48
50258   ac_sed_frag=1 # Number of current file.
50259   ac_beg=1 # First line for current file.
50260   ac_end=$ac_max_sed_lines # Line after last line for current file.
50261   ac_more_lines=:
50262   ac_sed_cmds=
50263   while $ac_more_lines; do
50264     if test $ac_beg -gt 1; then
50265       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50266     else
50267       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50268     fi
50269     if test ! -s $tmp/subs.frag; then
50270       ac_more_lines=false
50271     else
50272       # The purpose of the label and of the branching condition is to
50273       # speed up the sed processing (if there are no `@' at all, there
50274       # is no need to browse any of the substitutions).
50275       # These are the two extra sed commands mentioned above.
50276       (echo ':t
50277   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50278       if test -z "$ac_sed_cmds"; then
50279         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
50280       else
50281         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
50282       fi
50283       ac_sed_frag=`expr $ac_sed_frag + 1`
50284       ac_beg=$ac_end
50285       ac_end=`expr $ac_end + $ac_max_sed_lines`
50286     fi
50287   done
50288   if test -z "$ac_sed_cmds"; then
50289     ac_sed_cmds=cat
50290   fi
50291 fi # test -n "$CONFIG_FILES"
50292
50293 _ACEOF
50294 cat >>$CONFIG_STATUS <<\_ACEOF
50295 for ac_file in : $CONFIG_FILES; 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   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50308   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50310          X"$ac_file" : 'X\(//\)[^/]' \| \
50311          X"$ac_file" : 'X\(//\)$' \| \
50312          X"$ac_file" : 'X\(/\)' \| \
50313          .     : '\(.\)' 2>/dev/null ||
50314 echo X"$ac_file" |
50315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50316           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50317           /^X\(\/\/\)$/{ s//\1/; q; }
50318           /^X\(\/\).*/{ s//\1/; q; }
50319           s/.*/./; q'`
50320   { if $as_mkdir_p; then
50321     mkdir -p "$ac_dir"
50322   else
50323     as_dir="$ac_dir"
50324     as_dirs=
50325     while test ! -d "$as_dir"; do
50326       as_dirs="$as_dir $as_dirs"
50327       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50329          X"$as_dir" : 'X\(//\)[^/]' \| \
50330          X"$as_dir" : 'X\(//\)$' \| \
50331          X"$as_dir" : 'X\(/\)' \| \
50332          .     : '\(.\)' 2>/dev/null ||
50333 echo X"$as_dir" |
50334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50335           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50336           /^X\(\/\/\)$/{ s//\1/; q; }
50337           /^X\(\/\).*/{ s//\1/; q; }
50338           s/.*/./; q'`
50339     done
50340     test ! -n "$as_dirs" || mkdir $as_dirs
50341   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50342 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50343    { (exit 1); exit 1; }; }; }
50344
50345   ac_builddir=.
50346
50347 if test "$ac_dir" != .; then
50348   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50349   # A "../" for each directory in $ac_dir_suffix.
50350   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50351 else
50352   ac_dir_suffix= ac_top_builddir=
50353 fi
50354
50355 case $srcdir in
50356   .)  # No --srcdir option.  We are building in place.
50357     ac_srcdir=.
50358     if test -z "$ac_top_builddir"; then
50359        ac_top_srcdir=.
50360     else
50361        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50362     fi ;;
50363   [\\/]* | ?:[\\/]* )  # Absolute path.
50364     ac_srcdir=$srcdir$ac_dir_suffix;
50365     ac_top_srcdir=$srcdir ;;
50366   *) # Relative path.
50367     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50368     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50369 esac
50370
50371 # Do not use `cd foo && pwd` to compute absolute paths, because
50372 # the directories may not exist.
50373 case `pwd` in
50374 .) ac_abs_builddir="$ac_dir";;
50375 *)
50376   case "$ac_dir" in
50377   .) ac_abs_builddir=`pwd`;;
50378   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50379   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50380   esac;;
50381 esac
50382 case $ac_abs_builddir in
50383 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50384 *)
50385   case ${ac_top_builddir}. in
50386   .) ac_abs_top_builddir=$ac_abs_builddir;;
50387   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50388   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50389   esac;;
50390 esac
50391 case $ac_abs_builddir in
50392 .) ac_abs_srcdir=$ac_srcdir;;
50393 *)
50394   case $ac_srcdir in
50395   .) ac_abs_srcdir=$ac_abs_builddir;;
50396   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50397   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50398   esac;;
50399 esac
50400 case $ac_abs_builddir in
50401 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50402 *)
50403   case $ac_top_srcdir in
50404   .) ac_abs_top_srcdir=$ac_abs_builddir;;
50405   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50406   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50407   esac;;
50408 esac
50409
50410
50411   case $INSTALL in
50412   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50413   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50414   esac
50415
50416   if test x"$ac_file" != x-; then
50417     { echo "$as_me:$LINENO: creating $ac_file" >&5
50418 echo "$as_me: creating $ac_file" >&6;}
50419     rm -f "$ac_file"
50420   fi
50421   # Let's still pretend it is `configure' which instantiates (i.e., don't
50422   # use $as_me), people would be surprised to read:
50423   #    /* config.h.  Generated by config.status.  */
50424   if test x"$ac_file" = x-; then
50425     configure_input=
50426   else
50427     configure_input="$ac_file.  "
50428   fi
50429   configure_input=$configure_input"Generated from `echo $ac_file_in |
50430                                      sed 's,.*/,,'` by configure."
50431
50432   # First look for the input files in the build tree, otherwise in the
50433   # src tree.
50434   ac_file_inputs=`IFS=:
50435     for f in $ac_file_in; do
50436       case $f in
50437       -) echo $tmp/stdin ;;
50438       [\\/$]*)
50439          # Absolute (can't be DOS-style, as IFS=:)
50440          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50441 echo "$as_me: error: cannot find input file: $f" >&2;}
50442    { (exit 1); exit 1; }; }
50443          echo "$f";;
50444       *) # Relative
50445          if test -f "$f"; then
50446            # Build tree
50447            echo "$f"
50448          elif test -f "$srcdir/$f"; then
50449            # Source tree
50450            echo "$srcdir/$f"
50451          else
50452            # /dev/null tree
50453            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50454 echo "$as_me: error: cannot find input file: $f" >&2;}
50455    { (exit 1); exit 1; }; }
50456          fi;;
50457       esac
50458     done` || { (exit 1); exit 1; }
50459 _ACEOF
50460 cat >>$CONFIG_STATUS <<_ACEOF
50461   sed "$ac_vpsub
50462 $extrasub
50463 _ACEOF
50464 cat >>$CONFIG_STATUS <<\_ACEOF
50465 :t
50466 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50467 s,@configure_input@,$configure_input,;t t
50468 s,@srcdir@,$ac_srcdir,;t t
50469 s,@abs_srcdir@,$ac_abs_srcdir,;t t
50470 s,@top_srcdir@,$ac_top_srcdir,;t t
50471 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50472 s,@builddir@,$ac_builddir,;t t
50473 s,@abs_builddir@,$ac_abs_builddir,;t t
50474 s,@top_builddir@,$ac_top_builddir,;t t
50475 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50476 s,@INSTALL@,$ac_INSTALL,;t t
50477 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50478   rm -f $tmp/stdin
50479   if test x"$ac_file" != x-; then
50480     mv $tmp/out $ac_file
50481   else
50482     cat $tmp/out
50483     rm -f $tmp/out
50484   fi
50485
50486 done
50487 _ACEOF
50488 cat >>$CONFIG_STATUS <<\_ACEOF
50489
50490 #
50491 # CONFIG_HEADER section.
50492 #
50493
50494 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50495 # NAME is the cpp macro being defined and VALUE is the value it is being given.
50496 #
50497 # ac_d sets the value in "#define NAME VALUE" lines.
50498 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
50499 ac_dB='[         ].*$,\1#\2'
50500 ac_dC=' '
50501 ac_dD=',;t'
50502 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
50503 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
50504 ac_uB='$,\1#\2define\3'
50505 ac_uC=' '
50506 ac_uD=',;t'
50507
50508 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50509   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50510   case $ac_file in
50511   - | *:- | *:-:* ) # input from stdin
50512         cat >$tmp/stdin
50513         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50514         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50515   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50516         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50517   * )   ac_file_in=$ac_file.in ;;
50518   esac
50519
50520   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50521 echo "$as_me: creating $ac_file" >&6;}
50522
50523   # First look for the input files in the build tree, otherwise in the
50524   # src tree.
50525   ac_file_inputs=`IFS=:
50526     for f in $ac_file_in; do
50527       case $f in
50528       -) echo $tmp/stdin ;;
50529       [\\/$]*)
50530          # Absolute (can't be DOS-style, as IFS=:)
50531          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50532 echo "$as_me: error: cannot find input file: $f" >&2;}
50533    { (exit 1); exit 1; }; }
50534          # Do quote $f, to prevent DOS paths from being IFS'd.
50535          echo "$f";;
50536       *) # Relative
50537          if test -f "$f"; then
50538            # Build tree
50539            echo "$f"
50540          elif test -f "$srcdir/$f"; then
50541            # Source tree
50542            echo "$srcdir/$f"
50543          else
50544            # /dev/null tree
50545            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50546 echo "$as_me: error: cannot find input file: $f" >&2;}
50547    { (exit 1); exit 1; }; }
50548          fi;;
50549       esac
50550     done` || { (exit 1); exit 1; }
50551   # Remove the trailing spaces.
50552   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
50553
50554 _ACEOF
50555
50556 # Transform confdefs.h into two sed scripts, `conftest.defines' and
50557 # `conftest.undefs', that substitutes the proper values into
50558 # config.h.in to produce config.h.  The first handles `#define'
50559 # templates, and the second `#undef' templates.
50560 # And first: Protect against being on the right side of a sed subst in
50561 # config.status.  Protect against being in an unquoted here document
50562 # in config.status.
50563 rm -f conftest.defines conftest.undefs
50564 # Using a here document instead of a string reduces the quoting nightmare.
50565 # Putting comments in sed scripts is not portable.
50566 #
50567 # `end' is used to avoid that the second main sed command (meant for
50568 # 0-ary CPP macros) applies to n-ary macro definitions.
50569 # See the Autoconf documentation for `clear'.
50570 cat >confdef2sed.sed <<\_ACEOF
50571 s/[\\&,]/\\&/g
50572 s,[\\$`],\\&,g
50573 t clear
50574 : clear
50575 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
50576 t end
50577 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
50578 : end
50579 _ACEOF
50580 # If some macros were called several times there might be several times
50581 # the same #defines, which is useless.  Nevertheless, we may not want to
50582 # sort them, since we want the *last* AC-DEFINE to be honored.
50583 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50584 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50585 rm -f confdef2sed.sed
50586
50587 # This sed command replaces #undef with comments.  This is necessary, for
50588 # example, in the case of _POSIX_SOURCE, which is predefined and required
50589 # on some systems where configure will not decide to define it.
50590 cat >>conftest.undefs <<\_ACEOF
50591 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
50592 _ACEOF
50593
50594 # Break up conftest.defines because some shells have a limit on the size
50595 # of here documents, and old seds have small limits too (100 cmds).
50596 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
50597 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
50598 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50599 echo '  :' >>$CONFIG_STATUS
50600 rm -f conftest.tail
50601 while grep . conftest.defines >/dev/null
50602 do
50603   # Write a limited-size here document to $tmp/defines.sed.
50604   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50605   # Speed up: don't consider the non `#define' lines.
50606   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
50607   # Work around the forget-to-reset-the-flag bug.
50608   echo 't clr' >>$CONFIG_STATUS
50609   echo ': clr' >>$CONFIG_STATUS
50610   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50611   echo 'CEOF
50612   sed -f $tmp/defines.sed $tmp/in >$tmp/out
50613   rm -f $tmp/in
50614   mv $tmp/out $tmp/in
50615 ' >>$CONFIG_STATUS
50616   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50617   rm -f conftest.defines
50618   mv conftest.tail conftest.defines
50619 done
50620 rm -f conftest.defines
50621 echo '  fi # grep' >>$CONFIG_STATUS
50622 echo >>$CONFIG_STATUS
50623
50624 # Break up conftest.undefs because some shells have a limit on the size
50625 # of here documents, and old seds have small limits too (100 cmds).
50626 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
50627 rm -f conftest.tail
50628 while grep . conftest.undefs >/dev/null
50629 do
50630   # Write a limited-size here document to $tmp/undefs.sed.
50631   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50632   # Speed up: don't consider the non `#undef'
50633   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
50634   # Work around the forget-to-reset-the-flag bug.
50635   echo 't clr' >>$CONFIG_STATUS
50636   echo ': clr' >>$CONFIG_STATUS
50637   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50638   echo 'CEOF
50639   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50640   rm -f $tmp/in
50641   mv $tmp/out $tmp/in
50642 ' >>$CONFIG_STATUS
50643   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50644   rm -f conftest.undefs
50645   mv conftest.tail conftest.undefs
50646 done
50647 rm -f conftest.undefs
50648
50649 cat >>$CONFIG_STATUS <<\_ACEOF
50650   # Let's still pretend it is `configure' which instantiates (i.e., don't
50651   # use $as_me), people would be surprised to read:
50652   #    /* config.h.  Generated by config.status.  */
50653   if test x"$ac_file" = x-; then
50654     echo "/* Generated by configure.  */" >$tmp/config.h
50655   else
50656     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
50657   fi
50658   cat $tmp/in >>$tmp/config.h
50659   rm -f $tmp/in
50660   if test x"$ac_file" != x-; then
50661     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50662       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50663 echo "$as_me: $ac_file is unchanged" >&6;}
50664     else
50665       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50666 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50667          X"$ac_file" : 'X\(//\)[^/]' \| \
50668          X"$ac_file" : 'X\(//\)$' \| \
50669          X"$ac_file" : 'X\(/\)' \| \
50670          .     : '\(.\)' 2>/dev/null ||
50671 echo X"$ac_file" |
50672     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50673           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50674           /^X\(\/\/\)$/{ s//\1/; q; }
50675           /^X\(\/\).*/{ s//\1/; q; }
50676           s/.*/./; q'`
50677       { if $as_mkdir_p; then
50678     mkdir -p "$ac_dir"
50679   else
50680     as_dir="$ac_dir"
50681     as_dirs=
50682     while test ! -d "$as_dir"; do
50683       as_dirs="$as_dir $as_dirs"
50684       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50685 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50686          X"$as_dir" : 'X\(//\)[^/]' \| \
50687          X"$as_dir" : 'X\(//\)$' \| \
50688          X"$as_dir" : 'X\(/\)' \| \
50689          .     : '\(.\)' 2>/dev/null ||
50690 echo X"$as_dir" |
50691     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50692           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50693           /^X\(\/\/\)$/{ s//\1/; q; }
50694           /^X\(\/\).*/{ s//\1/; q; }
50695           s/.*/./; q'`
50696     done
50697     test ! -n "$as_dirs" || mkdir $as_dirs
50698   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50699 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50700    { (exit 1); exit 1; }; }; }
50701
50702       rm -f $ac_file
50703       mv $tmp/config.h $ac_file
50704     fi
50705   else
50706     cat $tmp/config.h
50707     rm -f $tmp/config.h
50708   fi
50709 # Compute $ac_file's index in $config_headers.
50710 _am_stamp_count=1
50711 for _am_header in $config_headers :; do
50712   case $_am_header in
50713     $ac_file | $ac_file:* )
50714       break ;;
50715     * )
50716       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
50717   esac
50718 done
50719 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
50720 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50721          X$ac_file : 'X\(//\)[^/]' \| \
50722          X$ac_file : 'X\(//\)$' \| \
50723          X$ac_file : 'X\(/\)' \| \
50724          .     : '\(.\)' 2>/dev/null ||
50725 echo X$ac_file |
50726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50727           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50728           /^X\(\/\/\)$/{ s//\1/; q; }
50729           /^X\(\/\).*/{ s//\1/; q; }
50730           s/.*/./; q'`/stamp-h$_am_stamp_count
50731 done
50732 _ACEOF
50733 cat >>$CONFIG_STATUS <<\_ACEOF
50734
50735 #
50736 # CONFIG_COMMANDS section.
50737 #
50738 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50739   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50740   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50741   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50742 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50743          X"$ac_dest" : 'X\(//\)[^/]' \| \
50744          X"$ac_dest" : 'X\(//\)$' \| \
50745          X"$ac_dest" : 'X\(/\)' \| \
50746          .     : '\(.\)' 2>/dev/null ||
50747 echo X"$ac_dest" |
50748     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50749           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50750           /^X\(\/\/\)$/{ s//\1/; q; }
50751           /^X\(\/\).*/{ s//\1/; q; }
50752           s/.*/./; q'`
50753   { if $as_mkdir_p; then
50754     mkdir -p "$ac_dir"
50755   else
50756     as_dir="$ac_dir"
50757     as_dirs=
50758     while test ! -d "$as_dir"; do
50759       as_dirs="$as_dir $as_dirs"
50760       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50762          X"$as_dir" : 'X\(//\)[^/]' \| \
50763          X"$as_dir" : 'X\(//\)$' \| \
50764          X"$as_dir" : 'X\(/\)' \| \
50765          .     : '\(.\)' 2>/dev/null ||
50766 echo X"$as_dir" |
50767     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50768           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50769           /^X\(\/\/\)$/{ s//\1/; q; }
50770           /^X\(\/\).*/{ s//\1/; q; }
50771           s/.*/./; q'`
50772     done
50773     test ! -n "$as_dirs" || mkdir $as_dirs
50774   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50775 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50776    { (exit 1); exit 1; }; }; }
50777
50778   ac_builddir=.
50779
50780 if test "$ac_dir" != .; then
50781   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50782   # A "../" for each directory in $ac_dir_suffix.
50783   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50784 else
50785   ac_dir_suffix= ac_top_builddir=
50786 fi
50787
50788 case $srcdir in
50789   .)  # No --srcdir option.  We are building in place.
50790     ac_srcdir=.
50791     if test -z "$ac_top_builddir"; then
50792        ac_top_srcdir=.
50793     else
50794        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50795     fi ;;
50796   [\\/]* | ?:[\\/]* )  # Absolute path.
50797     ac_srcdir=$srcdir$ac_dir_suffix;
50798     ac_top_srcdir=$srcdir ;;
50799   *) # Relative path.
50800     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50801     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50802 esac
50803
50804 # Do not use `cd foo && pwd` to compute absolute paths, because
50805 # the directories may not exist.
50806 case `pwd` in
50807 .) ac_abs_builddir="$ac_dir";;
50808 *)
50809   case "$ac_dir" in
50810   .) ac_abs_builddir=`pwd`;;
50811   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50812   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50813   esac;;
50814 esac
50815 case $ac_abs_builddir in
50816 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50817 *)
50818   case ${ac_top_builddir}. in
50819   .) ac_abs_top_builddir=$ac_abs_builddir;;
50820   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50821   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50822   esac;;
50823 esac
50824 case $ac_abs_builddir in
50825 .) ac_abs_srcdir=$ac_srcdir;;
50826 *)
50827   case $ac_srcdir in
50828   .) ac_abs_srcdir=$ac_abs_builddir;;
50829   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50830   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50831   esac;;
50832 esac
50833 case $ac_abs_builddir in
50834 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50835 *)
50836   case $ac_top_srcdir in
50837   .) ac_abs_top_srcdir=$ac_abs_builddir;;
50838   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50839   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50840   esac;;
50841 esac
50842
50843
50844   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50845 echo "$as_me: executing $ac_dest commands" >&6;}
50846   case $ac_dest in
50847     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
50848   # Strip MF so we end up with the name of the file.
50849   mf=`echo "$mf" | sed -e 's/:.*$//'`
50850   # Check whether this is an Automake generated Makefile or not.
50851   # We used to match only the files named `Makefile.in', but
50852   # some people rename them; so instead we look at the file content.
50853   # Grep'ing the first line is not enough: some people post-process
50854   # each Makefile.in and add a new line on top of each file to say so.
50855   # So let's grep whole file.
50856   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
50857     dirpart=`(dirname "$mf") 2>/dev/null ||
50858 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50859          X"$mf" : 'X\(//\)[^/]' \| \
50860          X"$mf" : 'X\(//\)$' \| \
50861          X"$mf" : 'X\(/\)' \| \
50862          .     : '\(.\)' 2>/dev/null ||
50863 echo X"$mf" |
50864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50865           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50866           /^X\(\/\/\)$/{ s//\1/; q; }
50867           /^X\(\/\).*/{ s//\1/; q; }
50868           s/.*/./; q'`
50869   else
50870     continue
50871   fi
50872   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
50873   # Extract the definition of DEP_FILES from the Makefile without
50874   # running `make'.
50875   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
50876   test -z "$DEPDIR" && continue
50877   # When using ansi2knr, U may be empty or an underscore; expand it
50878   U=`sed -n 's/^U = //p' < "$mf"`
50879   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
50880   # We invoke sed twice because it is the simplest approach to
50881   # changing $(DEPDIR) to its actual value in the expansion.
50882   for file in `sed -n '
50883     /^DEP_FILES = .*\\\\$/ {
50884       s/^DEP_FILES = //
50885       :loop
50886         s/\\\\$//
50887         p
50888         n
50889         /\\\\$/ b loop
50890       p
50891     }
50892     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
50893        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
50894     # Make sure the directory exists.
50895     test -f "$dirpart/$file" && continue
50896     fdir=`(dirname "$file") 2>/dev/null ||
50897 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50898          X"$file" : 'X\(//\)[^/]' \| \
50899          X"$file" : 'X\(//\)$' \| \
50900          X"$file" : 'X\(/\)' \| \
50901          .     : '\(.\)' 2>/dev/null ||
50902 echo X"$file" |
50903     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50904           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50905           /^X\(\/\/\)$/{ s//\1/; q; }
50906           /^X\(\/\).*/{ s//\1/; q; }
50907           s/.*/./; q'`
50908     { if $as_mkdir_p; then
50909     mkdir -p $dirpart/$fdir
50910   else
50911     as_dir=$dirpart/$fdir
50912     as_dirs=
50913     while test ! -d "$as_dir"; do
50914       as_dirs="$as_dir $as_dirs"
50915       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50916 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50917          X"$as_dir" : 'X\(//\)[^/]' \| \
50918          X"$as_dir" : 'X\(//\)$' \| \
50919          X"$as_dir" : 'X\(/\)' \| \
50920          .     : '\(.\)' 2>/dev/null ||
50921 echo X"$as_dir" |
50922     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50923           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50924           /^X\(\/\/\)$/{ s//\1/; q; }
50925           /^X\(\/\).*/{ s//\1/; q; }
50926           s/.*/./; q'`
50927     done
50928     test ! -n "$as_dirs" || mkdir $as_dirs
50929   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
50930 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
50931    { (exit 1); exit 1; }; }; }
50932
50933     # echo "creating $dirpart/$file"
50934     echo '# dummy' > "$dirpart/$file"
50935   done
50936 done
50937  ;;
50938     $ac_stdint_h )
50939 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
50940 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
50941 ac_stdint=$tmp/_stdint.h
50942
50943 echo "#ifndef" $_ac_stdint_h >$ac_stdint
50944 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
50945 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
50946 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
50947 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
50948 if test "_$ac_cv_header_stdint_t" != "_" ; then
50949 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
50950 fi
50951
50952 cat >>$ac_stdint <<STDINT_EOF
50953
50954 /* ................... shortcircuit part ........................... */
50955
50956 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
50957 #include <stdint.h>
50958 #else
50959 #include <stddef.h>
50960
50961 /* .................... configured part ............................ */
50962
50963 STDINT_EOF
50964
50965 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
50966 if test "_$ac_cv_header_stdint_x" != "_" ; then
50967   ac_header="$ac_cv_header_stdint_x"
50968   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
50969 else
50970   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
50971 fi
50972
50973 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
50974 if  test "_$ac_cv_header_stdint_o" != "_" ; then
50975   ac_header="$ac_cv_header_stdint_o"
50976   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
50977 else
50978   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
50979 fi
50980
50981 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
50982 if  test "_$ac_cv_header_stdint_u" != "_" ; then
50983   ac_header="$ac_cv_header_stdint_u"
50984   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
50985 else
50986   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
50987 fi
50988
50989 echo "" >>$ac_stdint
50990
50991 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
50992   echo "#include <$ac_header>" >>$ac_stdint
50993   echo "" >>$ac_stdint
50994 fi fi
50995
50996 echo "/* which 64bit typedef has been found */" >>$ac_stdint
50997 if test "$ac_cv_type_uint64_t" = "yes" ; then
50998 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
50999 else
51000 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
51001 fi
51002 if test "$ac_cv_type_u_int64_t" = "yes" ; then
51003 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
51004 else
51005 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
51006 fi
51007 echo "" >>$ac_stdint
51008
51009 echo "/* which type model has been detected */" >>$ac_stdint
51010 if test "_$ac_cv_stdint_char_model" != "_" ; then
51011 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_stdint_char_model" >>$ac_stdint
51012 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_stdint_long_model" >>$ac_stdint
51013 else
51014 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
51015 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
51016 fi
51017 echo "" >>$ac_stdint
51018
51019 echo "/* whether int_least types were detected */" >>$ac_stdint
51020 if test "$ac_cv_type_int_least32_t" = "yes"; then
51021 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
51022 else
51023 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
51024 fi
51025 echo "/* whether int_fast types were detected */" >>$ac_stdint
51026 if test "$ac_cv_type_int_fast32_t" = "yes"; then
51027 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
51028 else
51029 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
51030 fi
51031 echo "/* whether intmax_t type was detected */" >>$ac_stdint
51032 if test "$ac_cv_type_intmax_t" = "yes"; then
51033 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
51034 else
51035 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
51036 fi
51037 echo "" >>$ac_stdint
51038
51039   cat >>$ac_stdint <<STDINT_EOF
51040 /* .................... detections part ............................ */
51041
51042 /* whether we need to define bitspecific types from compiler base types */
51043 #ifndef _STDINT_HEADER_INTPTR
51044 #ifndef _STDINT_HEADER_UINT32
51045 #ifndef _STDINT_HEADER_U_INT32
51046 #define _STDINT_NEED_INT_MODEL_T
51047 #else
51048 #define _STDINT_HAVE_U_INT_TYPES
51049 #endif
51050 #endif
51051 #endif
51052
51053 #ifdef _STDINT_HAVE_U_INT_TYPES
51054 #undef _STDINT_NEED_INT_MODEL_T
51055 #endif
51056
51057 #ifdef  _STDINT_CHAR_MODEL
51058 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
51059 #ifndef _STDINT_BYTE_MODEL
51060 #define _STDINT_BYTE_MODEL 12
51061 #endif
51062 #endif
51063 #endif
51064
51065 #ifndef _STDINT_HAVE_INT_LEAST32_T
51066 #define _STDINT_NEED_INT_LEAST_T
51067 #endif
51068
51069 #ifndef _STDINT_HAVE_INT_FAST32_T
51070 #define _STDINT_NEED_INT_FAST_T
51071 #endif
51072
51073 #ifndef _STDINT_HEADER_INTPTR
51074 #define _STDINT_NEED_INTPTR_T
51075 #ifndef _STDINT_HAVE_INTMAX_T
51076 #define _STDINT_NEED_INTMAX_T
51077 #endif
51078 #endif
51079
51080
51081 /* .................... definition part ............................ */
51082
51083 /* some system headers have good uint64_t */
51084 #ifndef _HAVE_UINT64_T
51085 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
51086 #define _HAVE_UINT64_T
51087 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
51088 #define _HAVE_UINT64_T
51089 typedef u_int64_t uint64_t;
51090 #endif
51091 #endif
51092
51093 #ifndef _HAVE_UINT64_T
51094 /* .. here are some common heuristics using compiler runtime specifics */
51095 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
51096 #define _HAVE_UINT64_T
51097 typedef long long int64_t;
51098 typedef unsigned long long uint64_t;
51099
51100 #elif !defined __STRICT_ANSI__
51101 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
51102 #define _HAVE_UINT64_T
51103 typedef __int64 int64_t;
51104 typedef unsigned __int64 uint64_t;
51105
51106 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
51107 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
51108 #if !defined _NO_LONGLONG
51109 #define _HAVE_UINT64_T
51110 typedef long long int64_t;
51111 typedef unsigned long long uint64_t;
51112 #endif
51113
51114 #elif defined __alpha || (defined __mips && defined _ABIN32)
51115 #if !defined _NO_LONGLONG
51116 typedef long int64_t;
51117 typedef unsigned long uint64_t;
51118 #endif
51119   /* compiler/cpu type to define int64_t */
51120 #endif
51121 #endif
51122 #endif
51123
51124 #if defined _STDINT_HAVE_U_INT_TYPES
51125 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
51126 typedef u_int8_t uint8_t;
51127 typedef u_int16_t uint16_t;
51128 typedef u_int32_t uint32_t;
51129
51130 /* glibc compatibility */
51131 #ifndef __int8_t_defined
51132 #define __int8_t_defined
51133 #endif
51134 #endif
51135
51136 #ifdef _STDINT_NEED_INT_MODEL_T
51137 /* we must guess all the basic types. Apart from byte-adressable system, */
51138 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
51139 /* (btw, those nibble-addressable systems are way off, or so we assume) */
51140
51141
51142 #if defined _STDINT_BYTE_MODEL
51143 #if _STDINT_LONG_MODEL+0 == 242
51144 /* 2:4:2 =  IP16 = a normal 16-bit system                */
51145 typedef unsigned char   uint8_t;
51146 typedef unsigned short  uint16_t;
51147 typedef unsigned long   uint32_t;
51148 #ifndef __int8_t_defined
51149 #define __int8_t_defined
51150 typedef          char    int8_t;
51151 typedef          short   int16_t;
51152 typedef          long    int32_t;
51153 #endif
51154 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
51155 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
51156 /* 4:4:4 = ILP32 = a normal 32-bit system                */
51157 typedef unsigned char   uint8_t;
51158 typedef unsigned short  uint16_t;
51159 typedef unsigned int    uint32_t;
51160 #ifndef __int8_t_defined
51161 #define __int8_t_defined
51162 typedef          char    int8_t;
51163 typedef          short   int16_t;
51164 typedef          int     int32_t;
51165 #endif
51166 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
51167 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
51168 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
51169 typedef unsigned char   uint8_t;
51170 typedef unsigned short  uint16_t;
51171 typedef unsigned int    uint32_t;
51172 #ifndef __int8_t_defined
51173 #define __int8_t_defined
51174 typedef          char    int8_t;
51175 typedef          short   int16_t;
51176 typedef          int     int32_t;
51177 #endif
51178 /* this system has a "long" of 64bit */
51179 #ifndef _HAVE_UINT64_T
51180 #define _HAVE_UINT64_T
51181 typedef unsigned long   uint64_t;
51182 typedef          long    int64_t;
51183 #endif
51184 #elif _STDINT_LONG_MODEL+0 == 448
51185 /*      LLP64   a 64-bit system derived from a 32-bit system */
51186 typedef unsigned char   uint8_t;
51187 typedef unsigned short  uint16_t;
51188 typedef unsigned int    uint32_t;
51189 #ifndef __int8_t_defined
51190 #define __int8_t_defined
51191 typedef          char    int8_t;
51192 typedef          short   int16_t;
51193 typedef          int     int32_t;
51194 #endif
51195 /* assuming the system has a "long long" */
51196 #ifndef _HAVE_UINT64_T
51197 #define _HAVE_UINT64_T
51198 typedef unsigned long long uint64_t;
51199 typedef          long long  int64_t;
51200 #endif
51201 #else
51202 #define _STDINT_NO_INT32_T
51203 #endif
51204 #else
51205 #define _STDINT_NO_INT8_T
51206 #define _STDINT_NO_INT32_T
51207 #endif
51208 #endif
51209
51210 /*
51211  * quote from SunOS-5.8 sys/inttypes.h:
51212  * Use at your own risk.  As of February 1996, the committee is squarely
51213  * behind the fixed sized types; the "least" and "fast" types are still being
51214  * discussed.  The probability that the "fast" types may be removed before
51215  * the standard is finalized is high enough that they are not currently
51216  * implemented.
51217  */
51218
51219 #if defined _STDINT_NEED_INT_LEAST_T
51220 typedef  int8_t    int_least8_t;
51221 typedef  int16_t   int_least16_t;
51222 typedef  int32_t   int_least32_t;
51223 #ifdef _HAVE_UINT64_T
51224 typedef  int64_t   int_least64_t;
51225 #endif
51226
51227 typedef uint8_t   uint_least8_t;
51228 typedef uint16_t  uint_least16_t;
51229 typedef uint32_t  uint_least32_t;
51230 #ifdef _HAVE_UINT64_T
51231 typedef uint64_t  uint_least64_t;
51232 #endif
51233   /* least types */
51234 #endif
51235
51236 #if defined _STDINT_NEED_INT_FAST_T
51237 typedef  int8_t    int_fast8_t;
51238 typedef  int       int_fast16_t;
51239 typedef  int32_t   int_fast32_t;
51240 #ifdef _HAVE_UINT64_T
51241 typedef  int64_t   int_fast64_t;
51242 #endif
51243
51244 typedef uint8_t   uint_fast8_t;
51245 typedef unsigned  uint_fast16_t;
51246 typedef uint32_t  uint_fast32_t;
51247 #ifdef _HAVE_UINT64_T
51248 typedef uint64_t  uint_fast64_t;
51249 #endif
51250   /* fast types */
51251 #endif
51252
51253 #ifdef _STDINT_NEED_INTMAX_T
51254 #ifdef _HAVE_UINT64_T
51255 typedef  int64_t       intmax_t;
51256 typedef uint64_t      uintmax_t;
51257 #else
51258 typedef          long  intmax_t;
51259 typedef unsigned long uintmax_t;
51260 #endif
51261 #endif
51262
51263 #ifdef _STDINT_NEED_INTPTR_T
51264 #ifndef __intptr_t_defined
51265 #define __intptr_t_defined
51266 /* we encourage using "long" to store pointer values, never use "int" ! */
51267 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
51268 typedef  unsinged int   uintptr_t;
51269 typedef           int    intptr_t;
51270 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
51271 typedef  unsigned long  uintptr_t;
51272 typedef           long   intptr_t;
51273 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
51274 typedef        uint64_t uintptr_t;
51275 typedef         int64_t  intptr_t;
51276 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
51277 typedef  unsigned long  uintptr_t;
51278 typedef           long   intptr_t;
51279 #endif
51280 #endif
51281 #endif
51282
51283   /* shortcircuit*/
51284 #endif
51285   /* once */
51286 #endif
51287 #endif
51288 STDINT_EOF
51289     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
51290       { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
51291 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
51292     else
51293       ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
51294 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51295          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
51296          X"$ac_stdint_h" : 'X\(//\)$' \| \
51297          X"$ac_stdint_h" : 'X\(/\)' \| \
51298          .     : '\(.\)' 2>/dev/null ||
51299 echo X"$ac_stdint_h" |
51300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51301           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51302           /^X\(\/\/\)$/{ s//\1/; q; }
51303           /^X\(\/\).*/{ s//\1/; q; }
51304           s/.*/./; q'`
51305       { if $as_mkdir_p; then
51306     mkdir -p "$ac_dir"
51307   else
51308     as_dir="$ac_dir"
51309     as_dirs=
51310     while test ! -d "$as_dir"; do
51311       as_dirs="$as_dir $as_dirs"
51312       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51314          X"$as_dir" : 'X\(//\)[^/]' \| \
51315          X"$as_dir" : 'X\(//\)$' \| \
51316          X"$as_dir" : 'X\(/\)' \| \
51317          .     : '\(.\)' 2>/dev/null ||
51318 echo X"$as_dir" |
51319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51320           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51321           /^X\(\/\/\)$/{ s//\1/; q; }
51322           /^X\(\/\).*/{ s//\1/; q; }
51323           s/.*/./; q'`
51324     done
51325     test ! -n "$as_dirs" || mkdir $as_dirs
51326   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51327 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51328    { (exit 1); exit 1; }; }; }
51329
51330       rm -f $ac_stdint_h
51331       mv $ac_stdint $ac_stdint_h
51332     fi
51333  ;;
51334   esac
51335 done
51336 _ACEOF
51337
51338 cat >>$CONFIG_STATUS <<\_ACEOF
51339
51340 { (exit 0); exit 0; }
51341 _ACEOF
51342 chmod +x $CONFIG_STATUS
51343 ac_clean_files=$ac_clean_files_save
51344
51345
51346 # configure is writing to config.log, and then calls config.status.
51347 # config.status does its own redirection, appending to config.log.
51348 # Unfortunately, on DOS this fails, as config.log is still kept open
51349 # by configure, so config.status won't be able to write to it; its
51350 # output is simply discarded.  So we exec the FD to /dev/null,
51351 # effectively closing config.log, so it can be properly (re)opened and
51352 # appended to by config.status.  When coming back to configure, we
51353 # need to make the FD available again.
51354 if test "$no_create" != yes; then
51355   ac_cs_success=:
51356   ac_config_status_args=
51357   test "$silent" = yes &&
51358     ac_config_status_args="$ac_config_status_args --quiet"
51359   exec 5>/dev/null
51360   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51361   exec 5>>config.log
51362   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51363   # would make configure fail if this is the last instruction.
51364   $ac_cs_success || { (exit 1); exit 1; }
51365 fi
51366